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