]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - code poldek backend (python-poldek pkg exists!) | |
3 | # | |
4 | %define rel 200808310006 | |
5 | Summary: Graphical system installer | |
6 | Summary(pl.UTF-8): Graficzny instalator systemu | |
7 | Name: anaconda | |
8 | Version: 11.4.1.%{rel} | |
9 | Release: 1 | |
10 | License: GPL | |
11 | Group: Applications/System | |
12 | # http://team.pld-linux.org/~patrys/anaconda.git - origin/pld-branch | |
13 | Source0: %{name}-%{rel}.tar.bz2 | |
14 | # Source0-md5: 1065a32273a71403decb27b02bb72fd1 | |
15 | URL: http://fedoraproject.org/wiki/Anaconda | |
16 | BuildRequires: audit-libs-devel | |
17 | # will kill it in the future | |
18 | BuildRequires: curl | |
19 | BuildRequires: device-mapper-devel >= 1.01.05 | |
20 | BuildRequires: e2fsprogs-devel | |
21 | BuildRequires: gettext-devel >= 0.11 | |
22 | BuildRequires: glib2-devel | |
23 | BuildRequires: gtk+2-devel | |
24 | BuildRequires: isomd5sum-devel | |
25 | BuildRequires: libdhcp-devel | |
26 | BuildRequires: libdhcp4client-devel | |
27 | BuildRequires: libdhcp6client-devel | |
28 | BuildRequires: libnl-devel | |
29 | BuildRequires: libselinux-devel >= 1.6 | |
30 | BuildRequires: libsepol-devel | |
31 | BuildRequires: newt-devel | |
32 | BuildRequires: popt-devel | |
33 | BuildRequires: python-devel | |
34 | BuildRequires: python-kickstart >= 1.42 | |
35 | BuildRequires: python-rhpl | |
36 | BuildRequires: python-rpm | |
37 | BuildRequires: rpm-pythonprov | |
38 | BuildRequires: rpmbuild(macros) >= 1.234 | |
39 | BuildRequires: sed >= 4.0 | |
40 | BuildRequires: slang-devel | |
41 | BuildRequires: zlib-devel | |
42 | Requires: /etc/pld-release | |
43 | Requires: bdevid | |
44 | Requires: device-mapper >= 1.01.05 | |
45 | Requires: dosfstools | |
46 | Requires: e2fsprogs | |
47 | Requires: grubby | |
48 | Requires: hal | |
49 | Requires: hfsutils | |
50 | Requires: jfsutils | |
51 | Requires: lvm2 | |
52 | Requires: mdadm | |
53 | Requires: pci-database | |
54 | Requires: python-bdevid >= 6.0.24 | |
55 | Requires: python-booty >= 0.93-2 | |
56 | Requires: python-cracklib | |
57 | Requires: python-dbus | |
58 | Requires: python-devel-tools | |
59 | Requires: python-iniparse | |
60 | Requires: python-kickstart >= 1.42 | |
61 | Requires: python-libuser | |
62 | Requires: python-libxml2 | |
63 | Requires: python-parted >= 1.8.9 | |
64 | Requires: python-rhpl >= 0.216 | |
65 | Requires: python-rpm >= 4.2-0.61 | |
66 | Requires: python-selinux | |
67 | Requires: python-snack | |
68 | Requires: python-urlgrabber >= 2.9.8 | |
69 | Requires: reiserfsprogs | |
70 | Requires: system-config-date >= 1.9.17 | |
71 | Requires: tzdata | |
72 | Requires: util-linux | |
73 | Requires: xfsprogs | |
74 | Requires: yum >= 2.5.1-3 | |
75 | %ifnarch s390 s390x | |
76 | Requires: python-pyblock >= 0.7-1 | |
77 | %endif | |
78 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
79 | ||
80 | %description | |
81 | The anaconda package contains the program which can be used to install | |
82 | system. These files are of little use on an already installed system. | |
83 | ||
84 | %description -l pl.UTF-8 | |
85 | Pakiet anaconda zawiera program, którego można użyć do zainstalowania | |
86 | systemu. Pliki te mają niewiele zastosowań na już zainstalowanym | |
87 | systemie. | |
88 | ||
89 | %package gui | |
90 | Summary: Anaconda GTK+2 GUI | |
91 | Group: Applications/System | |
92 | Requires: %{name} = %{version}-%{release} | |
93 | Requires: X11-OpenGL-core | |
94 | Requires: X11-Xserver | |
95 | Requires: X11-fonts | |
96 | Requires: python-gnome-canvas | |
97 | Requires: python-pygtk-glade | |
98 | Requires: system-config-date | |
99 | Requires: system-config-keyboard | |
100 | ||
101 | %description gui | |
102 | Anaconda GUI portion. | |
103 | ||
104 | %package runtime | |
105 | Summary: Graphical system installer portions needed only for fresh installs | |
106 | Summary(pl.UTF-8): Elementy graficznego instalatora systemu potrzebne tylko przy nowych instalacjach | |
107 | Group: Applications/System | |
108 | AutoReqProv: false | |
109 | Requires: %{name} = %{version}-%{release} | |
110 | Requires: /usr/bin/strip | |
111 | Requires: X11 | |
112 | Requires: createrepo >= 0.4.3 | |
113 | Requires: gawk | |
114 | Requires: glibc >= 6:2.3.6-5.1 | |
115 | Requires: kbd | |
116 | Requires: policycoreutils >= 1.30 | |
117 | Requires: python | |
118 | Requires: python-libxml2 | |
119 | Requires: python-rpm >= 4.2-0.61 | |
120 | Requires: squashfs | |
121 | Requires: yum >= 2.4.0 | |
122 | ||
123 | %description runtime | |
124 | The anaconda-runtime package contains parts of the installation system | |
125 | which are needed for installing new systems. These files are used to | |
126 | build media sets, but are not meant for use on already installed | |
127 | systems. | |
128 | ||
129 | %description runtime -l pl.UTF-8 | |
130 | Pakiet anaconda-runtime zawiera elementy instalatora potrzebne tylko | |
131 | do instalowania nowych systemów. Pliki te służą do tworzenia zestawu | |
132 | nośników, nie są przewidziane do używania na już zainstalowanych | |
133 | systemach. | |
134 | ||
135 | %package debug | |
136 | Summary: Sourcecode for Anaconda | |
137 | Summary(pl.UTF-8): Kod źródłowy Anacondy | |
138 | Group: Applications/System | |
139 | AutoReqProv: false | |
140 | Requires: %{name} = %{version}-%{release} | |
141 | ||
142 | %description debug | |
143 | Anaconda sourcecode for debugging purposes. | |
144 | ||
145 | %description debug -l pl.UTF-8 | |
146 | Kod źródłowy Anacondy do celów diagnostycznych. | |
147 | ||
148 | %prep | |
149 | %setup -q -n %{name}-%{rel} | |
150 | ||
151 | %build | |
152 | %{__make} depend -j1 \ | |
153 | PYTHON="%{__python}" \ | |
154 | PYTHONINCLUDE="%{py_incdir}" \ | |
155 | CC="%{__cc}" | |
156 | ||
157 | %{__make} -j1 \ | |
158 | PYTHON="%{__python}" \ | |
159 | PYTHONINCLUDE="%{py_incdir}" \ | |
160 | CC="%{__cc}" \ | |
161 | REALCC="%{__cc}" \ | |
162 | OPTFLAGS="%{rpmcflags}" | |
163 | ||
164 | ./py-compile isys/isys.py | |
165 | ||
166 | %install | |
167 | rm -rf $RPM_BUILD_ROOT | |
168 | ||
169 | %{__make} install \ | |
170 | DESTDIR=$RPM_BUILD_ROOT | |
171 | ||
172 | install isys/isys.py[co] $RPM_BUILD_ROOT%{_libdir}/anaconda | |
173 | ||
174 | # for ./isys/lang.c:isysLoadKeymap() | |
175 | %ifarch %{ix86} | |
176 | cp -a loader2/keymaps-i386 $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz | |
177 | %endif | |
178 | %ifarch ppc | |
179 | cp -a loader2/keymaps-ppc $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz | |
180 | %endif | |
181 | %ifarch %{x8664} | |
182 | cp -a loader2/keymaps-x86_64 $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz | |
183 | %endif | |
184 | ||
185 | %find_lang %{name} | |
186 | ||
187 | %{!?debug:%py_postclean %{_libdir}/anaconda} | |
188 | ||
189 | %clean | |
190 | rm -rf $RPM_BUILD_ROOT | |
191 | ||
192 | %files -f %{name}.lang | |
193 | %defattr(644,root,root,755) | |
194 | %doc docs/* | |
195 | %{_sysconfdir}/keymaps.gz | |
196 | /etc/security/console.apps/liveinst | |
197 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/liveinst | |
198 | %attr(755,root,root) %{_sbindir}/anaconda | |
199 | %attr(755,root,root) %{_sbindir}/liveinst | |
200 | %ifnarch ppc | |
201 | %attr(755,root,root) %{_sbindir}/gptsync | |
202 | %attr(755,root,root) %{_sbindir}/showpart | |
203 | %endif | |
204 | %dir %{_libdir}/anaconda | |
205 | %{_libdir}/anaconda/*.py[co] | |
206 | %dir %{_libdir}/anaconda/installclasses | |
207 | %{_libdir}/anaconda/installclasses/*.py[co] | |
208 | %dir %{_libdir}/anaconda/textw | |
209 | %{_libdir}/anaconda/textw/*.py[co] | |
210 | %{_libdir}/anaconda/lang-names | |
211 | %{_libdir}/anaconda/lang-table | |
212 | %attr(755,root,root) %{_libdir}/anaconda/_isys.so | |
213 | ||
214 | %files gui | |
215 | %defattr(644,root,root,755) | |
216 | %attr(755,root,root) %{_bindir}/mini-wm | |
217 | %attr(755,root,root) %{_libdir}/anaconda/xutils.so | |
218 | %{_desktopdir}/liveinst.desktop | |
219 | %dir %{_libdir}/anaconda/iw | |
220 | %{_libdir}/anaconda/iw/*.py[co] | |
221 | %{_datadir}/anaconda | |
222 | ||
223 | %if %{!?debug:0}%{?debug:1} | |
224 | %files debug | |
225 | %defattr(644,root,root,755) | |
226 | %{_libdir}/anaconda/*.py | |
227 | %{_libdir}/anaconda/installclasses/*.py | |
228 | %{_libdir}/anaconda/iw/*.py | |
229 | %{_libdir}/anaconda/textw/*.py | |
230 | %endif | |
231 | ||
232 | %files runtime | |
233 | %defattr(644,root,root,755) | |
234 | %attr(755,root,root) %{_libdir}/anaconda/*-stub | |
235 | %dir %{_libdir}/anaconda-runtime | |
236 | %dir %{_libdir}/anaconda-runtime/boot | |
237 | %ifnarch ppc | |
238 | %{_libdir}/anaconda-runtime/boot/boot.msg | |
239 | %{_libdir}/anaconda-runtime/boot/general.msg | |
240 | %{_libdir}/anaconda-runtime/boot/grub.conf | |
241 | %{_libdir}/anaconda-runtime/boot/options.msg | |
242 | %{_libdir}/anaconda-runtime/boot/param.msg | |
243 | %{_libdir}/anaconda-runtime/boot/rescue.msg | |
244 | %{_libdir}/anaconda-runtime/boot/syslinux.cfg | |
245 | %else | |
246 | %{_libdir}/anaconda-runtime/boot/bootinfo.txt | |
247 | %{_libdir}/anaconda-runtime/boot/magic | |
248 | %{_libdir}/anaconda-runtime/boot/mapping | |
249 | %{_libdir}/anaconda-runtime/boot/ofboot.b | |
250 | %{_libdir}/anaconda-runtime/boot/yaboot.conf.3264 | |
251 | %{_libdir}/anaconda-runtime/boot/yaboot.conf.in | |
252 | %endif | |
253 | %attr(755,root,root) %{_libdir}/anaconda-runtime/buildinstall | |
254 | %attr(755,root,root) %{_libdir}/anaconda-runtime/buildinstall.functions | |
255 | %attr(755,root,root) %{_libdir}/anaconda-runtime/genmodinfo | |
256 | %attr(755,root,root) %{_libdir}/anaconda-runtime/getkeymaps | |
257 | %{_libdir}/anaconda-runtime/keymaps-override-* | |
258 | %dir %{_libdir}/anaconda-runtime/loader | |
259 | %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/init | |
260 | %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/loader | |
261 | %{_libdir}/anaconda-runtime/loader/loader.tr | |
262 | %{_libdir}/anaconda-runtime/loader/unicode-linedraw-chars.txt | |
263 | %attr(755,root,root) %{_libdir}/anaconda-runtime/makestamp.py | |
264 | %attr(755,root,root) %{_libdir}/anaconda-runtime/maketreeinfo.py | |
265 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mapshdr | |
266 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images | |
267 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.alpha | |
268 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ia64 | |
269 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.efi | |
270 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ppc | |
271 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.s390 | |
272 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.x86 | |
273 | %attr(755,root,root) %{_libdir}/anaconda-runtime/modlist | |
274 | %attr(755,root,root) %{_libdir}/anaconda-runtime/pyrc.py | |
275 | %attr(755,root,root) %{_libdir}/anaconda-runtime/readmap | |
276 | %attr(755,root,root) %{_libdir}/anaconda-runtime/scrubtree | |
277 | %{_libdir}/anaconda-runtime/screenfont-*.gz | |
278 | %attr(755,root,root) %{_libdir}/anaconda-runtime/trimpciids | |
279 | %attr(755,root,root) %{_libdir}/anaconda-runtime/upd-instroot | |
280 | %attr(755,root,root) %{_libdir}/anaconda-runtime/upd-updates |