- try with version 11.2.0.24
[packages/anaconda.git] / anaconda.spec
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
39 Summary:        Graphical system installer
40 Summary(pl.UTF-8):      Graficzny instalator systemu
41 Name:           anaconda
42 Version:        11.2.0.24
43 Release:        0.1
44 License:        GPL
45 Group:          Applications/System
46 Source0:        %{name}-%{version}.tar.bz2
47 # Source0-md5:  2e6fb1206a209af5f13181670c882819
48 Source1:        %{name}-mk-images
49 Source2:        %{name}-upd-instroot
50 Source3:        %{name}-mk-images.i386
51 Source4:        %{name}-scrubtree
52 Source5:        %{name}-installclass-pld.py
53 Source6:        %{name}-splash.png
54 # Source6-md5:  6b38a868585adfd3a96a4ad16973c1f8
55 Patch0:         %{name}-pld.patch
56 Patch1:         %{name}-BUS_XEN.patch
57 Patch2:         %{name}-vserver-proc.patch
58 Patch3:         %{name}-pkgorder.patch
59 Patch4:         %{name}-errorhandling.patch
60 Patch5:         %{name}-libdir.patch
61 Patch6:         %{name}-pld-release.patch
62 Patch7:         %{name}-timezone.patch
63 Patch8:         %{name}-kernel.patch
64 Patch9:         %{name}-optflags.patch
65 Patch10:        %{name}-network.patch
66 Patch11:        %{name}-branding.patch
67 Patch12:        %{name}-x11.patch
68 Patch13:        %{name}-installclasses.patch
69 Patch14:        %{name}-release_notes_viewer_gui.patch
70 Patch15:        %{name}-hosttree.patch
71 URL:            http://fedora.redhat.com/projects/anaconda-installer/
72 BuildRequires:  bzip2-devel
73 BuildRequires:  device-mapper-static >= 1.01.05
74 BuildRequires:  e2fsprogs-devel
75 BuildRequires:  gettext-devel >= 0.11
76 BuildRequires:  glib2-static
77 BuildRequires:  glibc-static
78 BuildRequires:  gtk+2-devel
79 BuildRequires:  kudzu-devel >= 1.2.0
80 BuildRequires:  libselinux-static >= 1.6
81 BuildRequires:  libsepol-static
82 BuildRequires:  newt-static
83 BuildRequires:  popt-static
84 BuildRequires:  libnl-static
85 BuildRequires:  libdhcp4client-devel
86 BuildRequires:  libdhcp6client-static
87 BuildRequires:  libdhcp-static
88 BuildRequires:  python-devel
89 BuildRequires:  python-rhpl
90 BuildRequires:  python-rpm
91 BuildRequires:  rpm-pythonprov
92 BuildRequires:  rpmbuild(macros) >= 1.234
93 BuildRequires:  sed >= 4.0
94 BuildRequires:  slang-static
95 BuildRequires:  zlib-static
96 Requires:       /etc/pld-release
97 Requires:       device-mapper >= 1.01.05
98 Requires:       dosfstools
99 Requires:       e2fsprogs
100 Requires:       glibc-localedb-all
101 Requires:       grubby
102 Requires:       hfsutils
103 Requires:       jfsutils
104 Requires:       kudzu >= 1.2.34.3-1.1
105 Requires:       lvm2
106 Requires:       mdadm
107 Requires:       python-booty >= 0.71-0.6
108 Requires:       python-devel-tools
109 Requires:       python-kickstart
110 Requires:       python-libxml2
111 Requires:       python-parted
112 Requires:       python-rhpl >= 0.176-1.2
113 Requires:       python-rpm >= 4.2-0.61
114 Requires:       python-snack
115 Requires:       python-urlgrabber >= 2.9.8
116 Requires:       reiserfsprogs
117 Requires:       xfsprogs
118 Requires:       yum >= 2.5.1-3
119 %ifnarch s390 s390x
120 Requires:       python-pyblock >= 0.7-1
121 %endif
122 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
123
124 %description
125 The anaconda package contains the program which can be used to install
126 system. These files are of little use on an already installed system.
127
128 %description -l pl.UTF-8
129 Pakiet anaconda zawiera program, którego można użyć do zainstalowania
130 systemu. Pliki te mają niewiele zastosowań na już zainstalowanym
131 systemie.
132
133 %package gui
134 Summary:        Anaconda GTK+2 GUI
135 Group:          Applications/System
136 Requires:       %{name} = %{version}-%{release}
137 Requires:       X11-OpenGL-core
138 Requires:       X11-Xserver
139 Requires:       X11-fonts
140 Requires:       pirut
141 Requires:       python-gnome-canvas
142 Requires:       system-config-date
143 Requires:       system-config-keyboard
144 Requires:       system-logos
145 Requires:       vnc-utils
146 %ifnarch s390 s390x ppc64
147 Requires:       python-rhpxl >= 0.18-0.9
148 %endif
149
150 %description gui
151 Anaconda GUI portion.
152
153 %package runtime
154 Summary:        Graphical system installer portions needed only for fresh installs
155 Summary(pl.UTF-8):      Elementy graficznego instalatora systemu potrzebne tylko przy nowych instalacjach
156 Group:          Applications/System
157 AutoReqProv:    false
158 Requires:       %{name} = %{version}-%{release}
159 Requires:       /usr/bin/strip
160 Requires:       X11
161 Requires:       createrepo >= 0.4.3
162 Requires:       gawk
163 Requires:       glibc >= 6:2.3.6-5.1
164 Requires:       kbd
165 Requires:       policycoreutils >= 1.30
166 Requires:       python
167 Requires:       python-libxml2
168 Requires:       python-rpm >= 4.2-0.61
169 Requires:       squashfs
170 Requires:       yum >= 2.4.0
171
172 %description runtime
173 The anaconda-runtime package contains parts of the installation system
174 which are needed for installing new systems. These files are used to
175 build media sets, but are not meant for use on already installed
176 systems.
177
178 %description runtime -l pl.UTF-8
179 Pakiet anaconda-runtime zawiera elementy instalatora potrzebne tylko
180 do instalowania nowych systemów. Pliki te służą do tworzenia zestawu
181 nośników, nie są przewidziane do używania na już zainstalowanych
182 systemach.
183
184 %package debug
185 Summary:        Sourcecode for Anaconda
186 Summary(pl.UTF-8):      Kod źródłowy Anacondy
187 Group:          Applications/System
188 AutoReqProv:    false
189 Requires:       %{name} = %{version}-%{release}
190
191 %description debug
192 Anaconda sourcecode for debugging purposes.
193
194 %description debug -l pl.UTF-8
195 Kod ź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
223 rm -f po/no.po
224 mv -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).
228 mv installclasses/fedora.py{,.orig}
229 # we want this install class ;)
230 cp %{SOURCE5} installclasses/pld.py
231
232 sed -i -e 's/$(PYTHON) scripts/python scripts/' Makefile
233
234 %build
235 # locale check
236 if [ "$(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
240 fi
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
257 rm -rf $RPM_BUILD_ROOT
258
259 %{__make} install \
260         DESTDIR=$RPM_BUILD_ROOT
261
262 install isys/isys.py[co] $RPM_BUILD_ROOT%{_libdir}/anaconda
263
264 cp %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images
265 cp %{SOURCE2} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/upd-instroot
266 cp %{SOURCE3} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images.i386
267 cp %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/scrubtree
268 cp %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/anaconda/splash.png
269
270 # for ./isys/lang.c:isysLoadKeymap()
271 %ifarch %{ix86}
272 cp -a loader2/keymaps-i386 $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz
273 %endif
274 %ifarch ppc
275 cp -a loader2/keymaps-ppc $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz
276 %endif
277 %ifarch %{x8664}
278 cp -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
284 install $RPM_BUILD_ROOT%{_libdir}/anaconda/iw/release_notes{.py,}
285
286 %{!?debug:%py_postclean %{_libdir}/anaconda}
287
288 %clean
289 rm -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.069173 seconds and 3 git commands to generate.