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