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