/
autoyast2.spec
294 lines (245 loc) · 8.8 KB
/
autoyast2.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
#
# spec file for package autoyast2
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
#Compat macro for new _fillupdir macro introduced in Nov 2017
%if ! %{defined _fillupdir}
%define _fillupdir %{_localstatedir}/adm/fillup-templates
%endif
Name: autoyast2
Version: 4.3.76
Release: 0
Summary: YaST2 - Automated Installation
License: GPL-2.0-only
Group: System/YaST
Url: https://github.com/yast/yast-autoinstallation
Source0: autoyast2-%{version}.tar.bz2
Source1: autoyast_en_html.tar.bz2
BuildRequires: update-desktop-files
BuildRequires: yast2-devtools >= 4.2.2
# control.rng
BuildRequires: yast2-installation-control
# xmllint
BuildRequires: libxml2-tools
# xsltproc for AutoinstClass
BuildRequires: libxslt
BuildRequires: rubygem(%{rb_default_ruby_abi}:rspec)
# GPG symmetric methods and Password dialog
BuildRequires: yast2 >= 4.3.25
# FileSystems.read_default_subvol_from_target
BuildRequires: yast2-xml
BuildRequires: yast2-transfer
BuildRequires: yast2-services-manager
BuildRequires: yast2-packager
BuildRequires: yast2-update >= 3.3.0
BuildRequires: yast2-network >= 3.1.145
BuildRequires: yast2-slp
BuildRequires: yast2-country
# Required for test suite testing one time sync
BuildRequires: yast2-ntp-client >= 4.0.1
# New API for Y2Storage::PackageHandler and storage features
BuildRequires: yast2-storage-ng >= 4.2.95
# %%{_unitdir} macro definition is in a separate package since 13.1
%if 0%{?suse_version} >= 1310
BuildRequires: systemd-rpm-macros
%else
BuildRequires: systemd
%endif
BuildRequires: rubygem(%rb_default_ruby_abi:yast-rake)
Requires: autoyast2-installation = %{version}
Requires: libxslt
# GPG symmetric methods and Password dialog
Requires: yast2 >= 4.3.25
Requires: yast2-core
Requires: yast2-country >= 3.1.13
# Moving security module to first installation stage
Requires: yast2-security >= 4.1.1
# Modify start_immediately default value
Requires: yast2-network >= 4.3.59
Requires: yast2-schema >= 4.0.6
Requires: yast2-transfer >= 2.21.0
Requires: yast2-xml
# New API for Y2Storage::PackageHandler and storage features
Requires: yast2-storage-ng >= 4.2.95
Requires: yast2-ruby-bindings >= 1.0.0
Conflicts: yast2-installation < 3.1.166
Provides: yast2-config-autoinst
Provides: yast2-module-autoinst
Provides: yast2-lib-autoinst
Obsoletes: yast2-config-autoinst
Obsoletes: yast2-module-autoinst
Obsoletes: yast2-lib-autoinst
BuildArch: noarch
Requires(post): %fillup_prereq
%description
This package is intended for management of the control files and the
AutoYaST2 configurations. This system should only be used by
experienced system administrators. Warning: AutoYaST2 performs the
installation without any user intervention, warnings, or confirmations
(unless specified otherwise in the control file).
This file contains YaST2-independent files needed to create
installation sources.
%package installation
Summary: YaST2 - Auto Installation Modules
Group: System/YaST
# New API for Y2Storage::PackageHandler and storage features
BuildRequires: yast2-storage-ng >= 4.2.95
# API for Disabled Modules (ProductControl)
Requires: yast2 >= 2.16.36
# After API cleanup
Requires: yast2
Requires: yast2-bootloader
Requires: yast2-core
Requires: yast2-country
Requires: yast2-ncurses
# Y2Packager::MediumType
Requires: yast2-packager >= 4.2.25
# ServicesManagerTargetClass::BaseTargets
Requires: yast2-services-manager >= 3.1.10
# Required for one time sync before installation
Requires: yast2-ntp-client >= 4.0.1
Requires: yast2-slp
Requires: yast2-transfer >= 2.21.0
# storage-ng based version
Requires: yast2-update >= 3.3.0
Requires: yast2-xml
# RPM dependencies in Pkg.Resolvables
Requires: yast2-pkg-bindings >= 4.3.0
Requires: yast2-ruby-bindings >= 1.0.0
Provides: yast2-trans-autoinst
Obsoletes: yast2-trans-autoinst
Supplements: autoyast(files:general:report:scripts:partitioning:software)
%description installation
This package performs auto-installation relying on a control file
generated with the autoyast2 package.
%prep
%setup -q
%check
%yast_check
%build
%install
%yast_install
%yast_metainfo
# Do not *blindly* remove the suse_update_desktop_file calls here. It is
# different from the code in the yast_install macro.
for d in %{buildroot}%{_datadir}/autoinstall/modules/*.desktop ; do
%suse_update_desktop_file $d
done
%post
%{fillup_only -n autoinstall}
%files
%dir %{_sysconfdir}/autoinstall
%dir %{yast_yncludedir}/autoinstall
%dir %{_localstatedir}/lib/autoinstall/repository
%dir %{_localstatedir}/lib/autoinstall/repository/templates
%dir %{_localstatedir}/lib/autoinstall/repository/rules
%dir %{_localstatedir}/lib/autoinstall/repository/classes
%dir %{_localstatedir}/lib/autoinstall/tmp
%doc %{yast_docdir}
%{yast_desktopdir}
%{yast_metainfodir}
%{_datadir}/autoinstall/modules/*.desktop
%dir %{yast_yncludedir}
%{yast_yncludedir}/autoinstall/classes.rb
%{yast_yncludedir}/autoinstall/conftree.rb
%{yast_yncludedir}/autoinstall/dialogs.rb
%{yast_yncludedir}/autoinstall/script_dialogs.rb
%{yast_yncludedir}/autoinstall/general_dialogs.rb
%{yast_yncludedir}/autoinstall/helps.rb
%dir %{yast_schemadir}
%dir %{yast_schemadir}/autoyast
%dir %{yast_schemadir}/autoyast/rnc
%{yast_schemadir}/autoyast/rnc/*.rnc
%dir %{yast_clientdir}
%{yast_clientdir}/general_auto.rb
%{yast_clientdir}/report_auto.rb
%{yast_clientdir}/classes_auto.rb
%{yast_clientdir}/scripts_auto.rb
%{yast_clientdir}/software_auto.rb
%{yast_clientdir}/storage_auto.rb
%{yast_clientdir}/autoyast.rb
%{yast_clientdir}/ayast_setup.rb
%dir %{yast_moduledir}
%{yast_moduledir}/AutoinstClass.rb
%{yast_icondir}
# additional files
%{_fillupdir}/sysconfig.autoinstall
%files installation
%dir %{yast_scrconfdir}
%{yast_scrconfdir}/autoinstall.scr
%{yast_scrconfdir}/cfg_autoinstall.scr
# autoinstall modules
%dir %{_datadir}/autoinstall
%dir %{_datadir}/autoinstall/modules
# systemd service file
%{_unitdir}/autoyast-initscripts.service
%dir %{_datadir}/autoinstall/xslt
%{_datadir}/autoinstall/xslt/merge.xslt
# config file
%dir %{yast_moduledir}
%{yast_moduledir}/AutoinstClone.rb
%dir %{yast_yncludedir}/autoinstall
%{yast_yncludedir}/autoinstall/io.rb
%{yast_yncludedir}/autoinstall/common.rb
%{yast_yncludedir}/autoinstall/tree.rb
%{yast_moduledir}/AutoInstall.rb
%{yast_moduledir}/AutoinstScripts.rb
%{yast_moduledir}/AutoinstGeneral.rb
%{yast_moduledir}/Profile.rb
%{yast_moduledir}/AutoinstFile.rb
%{yast_moduledir}/AutoinstConfig.rb
%{yast_moduledir}/AutoinstSoftware.rb
%{yast_moduledir}/AutoinstStorage.rb
%{yast_moduledir}/AutoInstallRules.rb
%{yast_moduledir}/ProfileLocation.rb
%{yast_moduledir}/AutoinstCommon.rb
%{yast_moduledir}/AutoinstPartPlan.rb
%{yast_moduledir}/AutoinstFunctions.rb
#clients
%{yast_clientdir}/inst_autoinit.rb
%{yast_clientdir}/inst_autoconfigure.rb
%{yast_clientdir}/inst_autopost.rb
%{yast_clientdir}/files_auto.rb
%{yast_clientdir}/autoinst_scripts1_finish.rb
%{yast_clientdir}/autoinst_scripts2_finish.rb
%{yast_clientdir}/ayast_probe.rb
%{yast_clientdir}/inst_autosetup.rb
%{yast_clientdir}/inst_autosetup_upgrade.rb
%{yast_clientdir}/autoinst_files_finish.rb
%{yast_clientdir}/inst_store_upgrade_software.rb
%{yast_clientdir}/clone_system.rb
%{yast_yncludedir}/autoinstall/xml.rb
%{yast_yncludedir}/autoinstall/ask.rb
%dir %{yast_libdir}/autoinstall
%{yast_libdir}/autoinstall/*.rb
%dir %{yast_libdir}/autoinstall/dialogs
%{yast_libdir}/autoinstall/dialogs/*.rb
%{yast_libdir}/autoinstall/widgets
%{yast_libdir}/autoinstall/presenters
%dir %{yast_libdir}/autoinstall/clients
%{yast_libdir}/autoinstall/clients/*.rb
%dir %{yast_libdir}/autoinstall/entries
%{yast_libdir}/autoinstall/entries/*.rb
# scripts
%{yast_ybindir}/autoyast-initscripts.sh
%license COPYING
%dir %{_localstatedir}/adm/autoinstall/
%dir %{_localstatedir}/adm/autoinstall/scripts
%dir %{_localstatedir}/adm/autoinstall/init.d
%dir %{_localstatedir}/adm/autoinstall/logs
%dir %{_localstatedir}/adm/autoinstall/files
%dir %{_localstatedir}/adm/autoinstall/cache
%dir %{_localstatedir}/lib/autoinstall
%dir %{_localstatedir}/lib/autoinstall/autoconf
%changelog