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