]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - repodata is searched from PLD and PLD/RPMS paths, so go figure | |
3 | # - code poldek backend (python-poldek pkg exists!) | |
4 | # - kill /mnt/runtime symlink hacks (leave the host alone!) | |
5 | # - 01:20:59 ERROR : lokkit run failed: /usr/sbin/lokkit can not be run | |
6 | # - lrwxrwxrwx 1 root root 11 Aug 31 04:21 menu.lst -> ./grub.conf (DEAD LINK) | |
7 | # -rw-r--r-- 1 root root 551 Aug 31 04:21 menu.lst.rpmsave | |
8 | # - can't find font latcyrheb | |
9 | # LANG="en_US.UTF-8" | |
10 | # SYSFONT="latarcyrheb-sun16" | |
11 | # - pldize sysconfig/timezone | |
12 | # - yuminstaller downloads all packages twice | |
13 | # 1156976072.958 317 192.168.2.3 TCP_MISS/200 209182 GET http://distrib/pld/dists/ac/PLD/i686/PLD/RPMS/sed-4.1.5-2.i686.rpm - DIRECT/x.x.x.x application/x-rpm | |
14 | # 1156976073.808 701 192.168.2.3 TCP_HIT/200 209188 GET http://distrib/pld/dists/ac/PLD/i686/PLD/RPMS/sed-4.1.5-2.i686.rpm - NONE/- application/x-rpm | |
15 | # - network config files are not pld-style nor even path | |
16 | # - lvm2-initrd should be installed | |
17 | # - pldize /etc/fstab | |
18 | # - /etc/modprobe.conf for geninitrd | |
19 | # - gui installer packages selector: | |
20 | #Traceback (most recent call last): | |
21 | # File "/home/glen/tmp/anaconda-11.0.5-root-glen//usr/lib/anaconda/gui.py", line 954, in nextClicked | |
22 | # File "/home/glen/tmp/anaconda-11.0.5-root-glen//usr/lib/anaconda/gui.py", line 1313, in setScreen | |
23 | # File "/home/glen/tmp/anaconda-11.0.5-root-glen//usr/lib/anaconda/iw/package_gui.py", line 29, in getScreen | |
24 | # File "/usr/share/python2.4/site-packages/pirut/GroupSelector.py", line 410, in doRefresh | |
25 | # File "/usr/share/python2.4/site-packages/pirut/GroupSelector.py", line 407, in populateCategories | |
26 | #TypeError: iter should be a GtkTreeIter | |
27 | # - definition of anaconda pixmaps: http://www.raimokoski.com/lineox/Distro-definition-dir.txt | |
28 | # | |
29 | %if 0 | |
30 | # FC to PLD deps replace rules, extracted from cvs logs | |
31 | :%s#libxml2-python#python-libxml2# | |
32 | :%s#pyparted#python-parted# | |
33 | :%s#booty#python-booty# | |
34 | :%s#rhpl#python-rhpl# | |
35 | :%s#rhpxl#python-rhpxl# | |
36 | :%s#rpm-python#python-rpm# | |
37 | :%s#gtk2-devel#gtk+2-devel# | |
38 | :%s#pykickstart#python-kickstart# | |
39 | :%s#squashfs-tools#squashfs# | |
40 | %endif | |
41 | Summary: Graphical system installer | |
42 | Summary(pl.UTF-8): Graficzny instalator systemu | |
43 | Name: anaconda | |
44 | Version: 11.4.0.8 | |
45 | Release: 0.1 | |
46 | License: GPL | |
47 | Group: Applications/System | |
48 | Source0: %{name}-%{version}.tar.bz2 | |
49 | # Source0-md5: fc38608dae09406ba89c85ed83bd5f43 | |
50 | Source1: %{name}-mk-images | |
51 | Source2: %{name}-upd-instroot | |
52 | Source3: %{name}-mk-images.i386 | |
53 | Source4: %{name}-scrubtree | |
54 | Source5: %{name}-installclass-pld.py | |
55 | Source6: %{name}-splash.png | |
56 | # Source6-md5: 6b38a868585adfd3a96a4ad16973c1f8 | |
57 | Patch0: %{name}-pld.patch | |
58 | Patch2: %{name}-vserver-proc.patch | |
59 | Patch3: %{name}-pkgorder.patch | |
60 | Patch4: %{name}-errorhandling.patch | |
61 | Patch5: %{name}-libdir.patch | |
62 | Patch6: %{name}-pld-release.patch | |
63 | Patch7: %{name}-timezone.patch | |
64 | Patch8: %{name}-kernel.patch | |
65 | Patch9: %{name}-optflags.patch | |
66 | Patch10: %{name}-network.patch | |
67 | Patch11: %{name}-branding.patch | |
68 | Patch13: %{name}-installclasses.patch | |
69 | Patch14: %{name}-release_notes_viewer_gui.patch | |
70 | Patch15: %{name}-hosttree.patch | |
71 | Patch16: %{name}-popt.patch | |
72 | URL: http://fedoraproject.org/wiki/Anaconda | |
73 | BuildRequires: bzip2-devel | |
74 | BuildRequires: device-mapper-static >= 1.01.05 | |
75 | BuildRequires: e2fsprogs-devel | |
76 | BuildRequires: gettext-devel >= 0.11 | |
77 | BuildRequires: glib2-static | |
78 | BuildRequires: glibc-static | |
79 | BuildRequires: gtk+2-devel | |
80 | BuildRequires: isomd5sum-devel | |
81 | BuildRequires: kudzu-devel >= 1.2.68 | |
82 | BuildRequires: libdhcp-devel | |
83 | BuildRequires: libdhcp-static | |
84 | BuildRequires: libdhcp4client-static | |
85 | BuildRequires: libdhcp6client-static | |
86 | BuildRequires: libnl-static | |
87 | BuildRequires: libselinux-static >= 1.6 | |
88 | BuildRequires: libsepol-static | |
89 | BuildRequires: newt-static | |
90 | BuildRequires: popt-static | |
91 | BuildRequires: python-devel | |
92 | BuildRequires: python-rhpl | |
93 | BuildRequires: python-rpm | |
94 | BuildRequires: rpm-pythonprov | |
95 | BuildRequires: rpmbuild(macros) >= 1.234 | |
96 | BuildRequires: sed >= 4.0 | |
97 | BuildRequires: slang-static | |
98 | BuildRequires: zlib-static | |
99 | Requires: /etc/pld-release | |
100 | Requires: device-mapper >= 1.01.05 | |
101 | Requires: dosfstools | |
102 | Requires: e2fsprogs | |
103 | Requires: glibc-localedb-all | |
104 | Requires: grubby | |
105 | Requires: hfsutils | |
106 | Requires: jfsutils | |
107 | Requires: kudzu >= 1.2.34.3-1.1 | |
108 | Requires: lvm2 | |
109 | Requires: mdadm | |
110 | Requires: python-bdevid | |
111 | Requires: python-booty >= 0.71-0.6 | |
112 | Requires: python-dbus | |
113 | Requires: python-devel-tools | |
114 | Requires: python-kickstart >= 1.23 | |
115 | Requires: python-libxml2 | |
116 | Requires: python-parted | |
117 | Requires: python-rhpl >= 0.176-1.2 | |
118 | Requires: python-rpm >= 4.2-0.61 | |
119 | Requires: python-selinux | |
120 | Requires: python-snack | |
121 | Requires: python-urlgrabber >= 2.9.8 | |
122 | Requires: reiserfsprogs | |
123 | Requires: xfsprogs | |
124 | Requires: yum >= 2.5.1-3 | |
125 | %ifnarch s390 s390x | |
126 | Requires: python-pyblock >= 0.7-1 | |
127 | %endif | |
128 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
129 | ||
130 | %description | |
131 | The anaconda package contains the program which can be used to install | |
132 | system. These files are of little use on an already installed system. | |
133 | ||
134 | %description -l pl.UTF-8 | |
135 | Pakiet anaconda zawiera program, którego można użyć do zainstalowania | |
136 | systemu. Pliki te mają niewiele zastosowań na już zainstalowanym | |
137 | systemie. | |
138 | ||
139 | %package gui | |
140 | Summary: Anaconda GTK+2 GUI | |
141 | Group: Applications/System | |
142 | Requires: %{name} = %{version}-%{release} | |
143 | Requires: X11-OpenGL-core | |
144 | Requires: X11-Xserver | |
145 | Requires: X11-fonts | |
146 | Requires: pirut | |
147 | Requires: python-gnome-canvas | |
148 | Requires: system-config-date | |
149 | Requires: system-config-keyboard | |
150 | Requires: system-logos | |
151 | Requires: vnc-utils | |
152 | %ifnarch s390 s390x ppc64 | |
153 | Requires: python-rhpxl >= 0.18-0.9 | |
154 | %endif | |
155 | ||
156 | %description gui | |
157 | Anaconda GUI portion. | |
158 | ||
159 | %package runtime | |
160 | Summary: Graphical system installer portions needed only for fresh installs | |
161 | Summary(pl.UTF-8): Elementy graficznego instalatora systemu potrzebne tylko przy nowych instalacjach | |
162 | Group: Applications/System | |
163 | AutoReqProv: false | |
164 | Requires: %{name} = %{version}-%{release} | |
165 | Requires: /usr/bin/strip | |
166 | Requires: X11 | |
167 | Requires: createrepo >= 0.4.3 | |
168 | Requires: gawk | |
169 | Requires: glibc >= 6:2.3.6-5.1 | |
170 | Requires: kbd | |
171 | Requires: policycoreutils >= 1.30 | |
172 | Requires: python | |
173 | Requires: python-libxml2 | |
174 | Requires: python-rpm >= 4.2-0.61 | |
175 | Requires: squashfs | |
176 | Requires: yum >= 2.4.0 | |
177 | ||
178 | %description runtime | |
179 | The anaconda-runtime package contains parts of the installation system | |
180 | which are needed for installing new systems. These files are used to | |
181 | build media sets, but are not meant for use on already installed | |
182 | systems. | |
183 | ||
184 | %description runtime -l pl.UTF-8 | |
185 | Pakiet anaconda-runtime zawiera elementy instalatora potrzebne tylko | |
186 | do instalowania nowych systemów. Pliki te służą do tworzenia zestawu | |
187 | nośników, nie są przewidziane do używania na już zainstalowanych | |
188 | systemach. | |
189 | ||
190 | %package debug | |
191 | Summary: Sourcecode for Anaconda | |
192 | Summary(pl.UTF-8): Kod źródłowy Anacondy | |
193 | Group: Applications/System | |
194 | AutoReqProv: false | |
195 | Requires: %{name} = %{version}-%{release} | |
196 | ||
197 | %description debug | |
198 | Anaconda sourcecode for debugging purposes. | |
199 | ||
200 | %description debug -l pl.UTF-8 | |
201 | Kod źródłowy Anacondy do celów diagnostycznych. | |
202 | ||
203 | %prep | |
204 | %setup -q | |
205 | # looks obsolete | |
206 | #%patch0 -p1 | |
207 | #%patch2 -p1 | |
208 | %patch3 -p1 | |
209 | # obsolete, all parts merged | |
210 | #%patch4 -p1 | |
211 | %patch5 -p1 | |
212 | %patch6 -p1 | |
213 | %patch7 -p1 | |
214 | %patch8 -p1 | |
215 | # fixme | |
216 | #%patch9 -p1 | |
217 | # obsolete, already merged | |
218 | # %patch10 -p1 | |
219 | %patch11 -p1 | |
220 | #? | |
221 | #%patch13 -p1 | |
222 | #? | |
223 | #%patch14 -p1 | |
224 | # does it make any harm? | |
225 | #%patch15 -p1 | |
226 | %patch16 -p1 | |
227 | ||
228 | rm -f po/no.po | |
229 | mv -f po/{eu_ES,eu}.po | |
230 | ||
231 | # we don't want this being visible, neither want we to kill it (the | |
232 | # other's aren't valid anyway (outdated probably). | |
233 | mv installclasses/fedora.py{,.orig} | |
234 | # we want this install class ;) | |
235 | cp %{SOURCE5} installclasses/pld.py | |
236 | ||
237 | sed -i -e 's/$(PYTHON) scripts/python scripts/' Makefile | |
238 | ||
239 | %build | |
240 | # locale check | |
241 | if [ "$(locale -a | grep -c en_US.utf8)" = 0 ]; then | |
242 | : "en_US.utf8 locale not available. build will fail!" | |
243 | : "Install glibc-localedb-all or compile it!" | |
244 | exit 1 | |
245 | fi | |
246 | ||
247 | %{__make} depend -j1 \ | |
248 | PYTHON="%{__python}" \ | |
249 | PYTHONINCLUDE="%{py_incdir}" \ | |
250 | CC="%{__cc}" | |
251 | ||
252 | %{__make} -j1 \ | |
253 | PYTHON="%{__python}" \ | |
254 | PYTHONINCLUDE="%{py_incdir}" \ | |
255 | CC="%{__cc}" \ | |
256 | REALCC="%{__cc}" \ | |
257 | OPTFLAGS="%{rpmcflags}" | |
258 | ||
259 | ./py-compile isys/isys.py | |
260 | ||
261 | %install | |
262 | rm -rf $RPM_BUILD_ROOT | |
263 | ||
264 | %{__make} install \ | |
265 | DESTDIR=$RPM_BUILD_ROOT | |
266 | ||
267 | install isys/isys.py[co] $RPM_BUILD_ROOT%{_libdir}/anaconda | |
268 | ||
269 | cp %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images | |
270 | cp %{SOURCE2} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/upd-instroot | |
271 | cp %{SOURCE3} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images.i386 | |
272 | cp %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/scrubtree | |
273 | cp %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/anaconda/splash.png | |
274 | ||
275 | # for ./isys/lang.c:isysLoadKeymap() | |
276 | %ifarch %{ix86} | |
277 | cp -a loader2/keymaps-i386 $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz | |
278 | %endif | |
279 | %ifarch ppc | |
280 | cp -a loader2/keymaps-ppc $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz | |
281 | %endif | |
282 | %ifarch %{x8664} | |
283 | cp -a loader2/keymaps-x86_64 $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz | |
284 | %endif | |
285 | ||
286 | %find_lang %{name} | |
287 | ||
288 | # hack so py_postclean would preserve it | |
289 | #install $RPM_BUILD_ROOT%{_libdir}/anaconda/iw/release_notes{.py,} | |
290 | ||
291 | %{!?debug:%py_postclean %{_libdir}/anaconda} | |
292 | ||
293 | %clean | |
294 | rm -rf $RPM_BUILD_ROOT | |
295 | ||
296 | %files -f %{name}.lang | |
297 | %defattr(644,root,root,755) | |
298 | %doc docs/* | |
299 | %{_sysconfdir}/keymaps.gz | |
300 | /etc/security/console.apps/liveinst | |
301 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/liveinst | |
302 | %attr(755,root,root) %{_bindir}/liveinst | |
303 | %attr(755,root,root) %{_sbindir}/anaconda | |
304 | %attr(755,root,root) %{_sbindir}/gptsync | |
305 | %attr(755,root,root) %{_sbindir}/liveinst | |
306 | %attr(755,root,root) %{_sbindir}/showpart | |
307 | %dir %{_libdir}/anaconda | |
308 | %{_libdir}/anaconda/*.py[co] | |
309 | %exclude %{_libdir}/anaconda/xsetup.py[co] | |
310 | %dir %{_libdir}/anaconda/installclasses | |
311 | %{_libdir}/anaconda/installclasses/*.py[co] | |
312 | %dir %{_libdir}/anaconda/textw | |
313 | %{_libdir}/anaconda/textw/*.py[co] | |
314 | %{_libdir}/anaconda/lang-names | |
315 | %{_libdir}/anaconda/lang-table | |
316 | %attr(755,root,root) %{_libdir}/anaconda/_isys.so | |
317 | ||
318 | %files gui | |
319 | %defattr(644,root,root,755) | |
320 | %attr(755,root,root) %{_bindir}/mini-wm | |
321 | %attr(755,root,root) %{_libdir}/anaconda/xutils.so | |
322 | %{_desktopdir}/liveinst.desktop | |
323 | %{_libdir}/anaconda/xsetup.py[co] | |
324 | %dir %{_libdir}/anaconda/iw | |
325 | %{_libdir}/anaconda/iw/*.py[co] | |
326 | %{_datadir}/anaconda | |
327 | ||
328 | %if %{!?debug:0}%{?debug:1} | |
329 | %files debug | |
330 | %defattr(644,root,root,755) | |
331 | %{_libdir}/anaconda/*.py | |
332 | %{_libdir}/anaconda/installclasses/*.py | |
333 | %{_libdir}/anaconda/iw/*.py | |
334 | %{_libdir}/anaconda/textw/*.py | |
335 | %endif | |
336 | ||
337 | %files runtime | |
338 | %defattr(644,root,root,755) | |
339 | %attr(755,root,root) %{_libdir}/anaconda/*-stub | |
340 | %dir %{_libdir}/anaconda-runtime | |
341 | %dir %{_libdir}/anaconda-runtime/boot | |
342 | %attr(755,root,root) %{_libdir}/anaconda-runtime/boot/syslinux.cfg | |
343 | %{_libdir}/anaconda-runtime/boot/boot.msg | |
344 | %{_libdir}/anaconda-runtime/boot/general.msg | |
345 | %{_libdir}/anaconda-runtime/boot/options.msg | |
346 | %{_libdir}/anaconda-runtime/boot/param.msg | |
347 | %{_libdir}/anaconda-runtime/boot/rescue.msg | |
348 | %attr(755,root,root) %{_libdir}/anaconda-runtime/buildinstall | |
349 | %attr(755,root,root) %{_libdir}/anaconda-runtime/filtermoddeps | |
350 | %attr(755,root,root) %{_libdir}/anaconda-runtime/fixmtime.py | |
351 | %attr(755,root,root) %{_libdir}/anaconda-runtime/genmodinfo | |
352 | %attr(755,root,root) %{_libdir}/anaconda-runtime/getkeymaps | |
353 | %{_libdir}/anaconda-runtime/keymaps-override-* | |
354 | %attr(755,root,root) %{_libdir}/anaconda-runtime/libunicode-lite.so.1 | |
355 | %dir %{_libdir}/anaconda-runtime/loader | |
356 | %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/init | |
357 | %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/loader | |
358 | %{_libdir}/anaconda-runtime/loader/loader.tr | |
359 | %{_libdir}/anaconda-runtime/loader/unicode-linedraw-chars.txt | |
360 | %attr(755,root,root) %{_libdir}/anaconda-runtime/makestamp.py | |
361 | %attr(755,root,root) %{_libdir}/anaconda-runtime/maketreeinfo.py | |
362 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mapshdr | |
363 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images | |
364 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.alpha | |
365 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.i386 | |
366 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ia64 | |
367 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ppc | |
368 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.s390 | |
369 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.x86 | |
370 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-rescueimage.i386 | |
371 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-rescueimage.ia64 | |
372 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-rescueimage.ppc | |
373 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-rescueimage.x86_64 | |
374 | %attr(755,root,root) %{_libdir}/anaconda-runtime/moddeps | |
375 | %attr(755,root,root) %{_libdir}/anaconda-runtime/modlist | |
376 | %attr(755,root,root) %{_libdir}/anaconda-runtime/pkgorder | |
377 | %attr(755,root,root) %{_libdir}/anaconda-runtime/pyrc.py | |
378 | %attr(755,root,root) %{_libdir}/anaconda-runtime/readmap | |
379 | %attr(755,root,root) %{_libdir}/anaconda-runtime/scrubtree | |
380 | %{_libdir}/anaconda-runtime/screenfont-*.gz | |
381 | %attr(755,root,root) %{_libdir}/anaconda-runtime/splittree.py | |
382 | %attr(755,root,root) %{_libdir}/anaconda-runtime/trimmodalias | |
383 | %attr(755,root,root) %{_libdir}/anaconda-runtime/trimpciids | |
384 | %attr(755,root,root) %{_libdir}/anaconda-runtime/upd-instroot | |
385 | %attr(755,root,root) %{_libdir}/anaconda-runtime/upd-updates | |
386 | %attr(755,root,root) %{_libdir}/anaconda-runtime/yumcache |