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