forked from yast/yast-installation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyast2-installation.spec.in
205 lines (150 loc) · 4.71 KB
/
yast2-installation.spec.in
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
@HEADER-COMMENT@
@HEADER@
Group: System/YaST
License: GPL-2.0
Summary: YaST2 - Installation Parts
Source1: YaST2-Second-Stage.service
Source2: YaST2-Firstboot.service
BuildRequires: docbook-xsl-stylesheets doxygen libxslt perl-XML-Writer sgml-skel update-desktop-files yast2-core-devel yast2-devtools yast2-testsuite
# Storage::Umount
BuildRequires: yast2-storage >= 2.23.3
# xmllint
BuildRequires: libxml2
# to convert control.rnc o control.rng
BuildRequires: trang
# PackageCallbacks::RegisterEmptyProgressCallbacks()
BuildRequires: yast2 >= 2.16.52
# Pkg::Add/RemoveUpgradeRepo()
BuildRequires: yast2-pkg-bindings >= 2.21.2
# Unified progress bar (done by visnov)
BuildRequires: yast2-packager >= 2.17.9
# AutoinstConfig::getProposalList
Requires: autoyast2-installation >= 2.17.1
# ProductControl::DisabledACItems, ::DisabledSubProposals
Requires: yast2 >= 2.18.23
# Language::GetLanguageItems and other API
# Language::Set (handles downloading the translation extensions)
Requires: yast2-country-data >= 2.16.11
# Pkg::SourceProvideDigestedFile()
Conflicts: yast2-pkg-bindings < 2.17.25
# Pkg::Add/RemoveUpgradeRepo()
Requires: yast2-pkg-bindings >= 2.21.2
# Mouse-related scripts moved to yast2-mouse
Conflicts: yast2-mouse < 2.18.0
# New API for ProductLicense
Requires: yast2-packager >= 2.19.2
# FileSystems::possible_root_fs
Requires: yast2-storage >= 2.19.12
# use in startup scripts
Requires: initviocons
# Proxy settings for 2nd stage (bnc#764951)
Requires: yast2-proxy
# Only in inst-sys
# Requires: yast2-network
# Requires: yast2-add-on
# Requires: yast2-update
# Pkg::SourceProvideSignedFile Pkg::SourceProvideDigestedFile
# pkg-bindings are not directly required
Conflicts: yast2-pkg-bindings < 2.17.25
# InstError
Conflicts: yast2 < 2.18.6
# Added new function WFM::ClientExists
Conflicts: yast2-core < 2.17.10
# ButtonBox widget
Conflicts: yast2-ycp-ui-bindings < 2.17.3
# tar-gzip some system files and untar-ungzip them after the installation (FATE #300421, #120103)
Requires: tar gzip
Requires: coreutils
%if 0%{?suse_version} >= 1210
BuildRequires: systemd-devel
%{systemd_requires}
%endif
# for the first/second stage of installation
# currently not used
# bugzilla #208307
#Requires: /usr/bin/jpegtopnm
#Requires: /usr/bin/pnmtopng
# BNC 446533, /sbin/lspci called but not installed
Requires: pciutils
Recommends: yast2-registration
Recommends: yast2-online-update
Recommends: yast2-users
Recommends: yast2-firewall
Recommends: release-notes
Recommends: curl
Recommends: yast2-update
Recommends: yast2-add-on
PreReq: %fillup_prereq
BuildArch: noarch
%package devel-doc
Group: Documentation/HTML
Requires: yast2-installation >= 2.15.34
PreReq: %fillup_prereq
Summary: YaST2 - Installation Parts
%description
System installation code as present on installation media.
%description devel-doc
System installation code as present on installation media.
@PREP@
@BUILD@
@INSTALL@
for f in `find %{buildroot}%{_datadir}/autoinstall/modules -name "*.desktop"`; do
%suse_update_desktop_file $f
done
mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}
@CLEAN@
%post
%{fillup_only -ns security checksig}
%if 0%{suse_version} > 1140
%service_add_post YaST2-Second-Stage.service YaST2-Firstboot.service
%pre
%service_add_pre YaST2-Second-Stage.service YaST2-Firstboot.service
%preun
%service_del_preun YaST2-Second-Stage.service YaST2-Firstboot.service
%postun
%service_del_postun YaST2-Second-Stage.service YaST2-Firstboot.service
%endif #suse_version
%files
%defattr(-,root,root)
%dir /usr/share/YaST2/control
/usr/share/YaST2/control/*.xml
# Fixme: move to another package (to make build of other packages faster)
/usr/share/YaST2/control/*.rng
/usr/share/YaST2/control/*.rnc
# systemd service files
%{_unitdir}/YaST2-Second-Stage.service
%{_unitdir}/YaST2-Firstboot.service
@clientdir@/*.ycp
@moduledir@/*.ycp
@moduledir@/*.ybc
@desktopdir@/*.desktop
/usr/share/autoinstall/modules/*.desktop
/usr/share/YaST2/schema/autoyast/rnc/deploy_image.rnc
%dir /usr/share/autoinstall
%dir /usr/share/autoinstall/modules
%dir @yncludedir@/installation
@yncludedir@/installation/*
# agents
@scrconfdir@/etc_passwd.scr
@scrconfdir@/cfg_boot.scr
@scrconfdir@/cfg_windowmanager.scr
@scrconfdir@/cfg_fam.scr
@scrconfdir@/etc_install_inf.scr
@scrconfdir@/etc_install_inf_alias.scr
@scrconfdir@/etc_install_inf_options.scr
@scrconfdir@/proc_modules.scr
@scrconfdir@/run_df.scr
# fillup
@fillupdir@/sysconfig.security-checksig
# programs and scripts
@ystartupdir@/startup
%dir @docdir@
@docdir@/COPYING
%readme @docdir@/README
%files devel-doc
%defattr(-,root,root)
%doc @docdir@
%exclude @docdir@/COPYING
%exclude @docdir@/README