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