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