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