]> 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:       tzdata
130 Requires:       util-linux-ng
131 Requires:       xfsprogs
132 Requires:       yum >= 2.5.1-3
133 %ifnarch s390 s390x
134 Requires:       python-pyblock >= 0.7-1
135 %endif
136 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
137
138 %description
139 The anaconda package contains the program which can be used to install
140 system. These files are of little use on an already installed system.
141
142 %description -l pl.UTF-8
143 Pakiet anaconda zawiera program, którego można użyć do zainstalowania
144 systemu. Pliki te mają niewiele zastosowań na już zainstalowanym
145 systemie.
146
147 %package gui
148 Summary:        Anaconda GTK+2 GUI
149 Group:          Applications/System
150 Requires:       %{name} = %{version}-%{release}
151 Requires:       X11-OpenGL-core
152 Requires:       X11-Xserver
153 Requires:       X11-fonts
154 Requires:       pirut
155 Requires:       python-gnome-canvas
156 Requires:       python-pygtk-glade
157 Requires:       system-config-date
158 Requires:       system-config-keyboard
159 Requires:       system-logos
160 Requires:       vnc-server
161 Requires:       vnc-utils
162 %ifnarch s390 s390x ppc64
163 Requires:       python-rhpxl >= 0.25
164 %endif
165
166 %description gui
167 Anaconda GUI portion.
168
169 %package runtime
170 Summary:        Graphical system installer portions needed only for fresh installs
171 Summary(pl.UTF-8):      Elementy graficznego instalatora systemu potrzebne tylko przy nowych instalacjach
172 Group:          Applications/System
173 AutoReqProv:    false
174 Requires:       %{name} = %{version}-%{release}
175 Requires:       /usr/bin/strip
176 Requires:       X11
177 Requires:       createrepo >= 0.4.3
178 Requires:       gawk
179 Requires:       glibc >= 6:2.3.6-5.1
180 Requires:       kbd
181 Requires:       policycoreutils >= 1.30
182 Requires:       python
183 Requires:       python-libxml2
184 Requires:       python-rpm >= 4.2-0.61
185 Requires:       squashfs
186 Requires:       yum >= 2.4.0
187
188 %description runtime
189 The anaconda-runtime package contains parts of the installation system
190 which are needed for installing new systems. These files are used to
191 build media sets, but are not meant for use on already installed
192 systems.
193
194 %description runtime -l pl.UTF-8
195 Pakiet anaconda-runtime zawiera elementy instalatora potrzebne tylko
196 do instalowania nowych systemów. Pliki te służą do tworzenia zestawu
197 nośników, nie są przewidziane do używania na już zainstalowanych
198 systemach.
199
200 %package debug
201 Summary:        Sourcecode for Anaconda
202 Summary(pl.UTF-8):      Kod źródłowy Anacondy
203 Group:          Applications/System
204 AutoReqProv:    false
205 Requires:       %{name} = %{version}-%{release}
206
207 %description debug
208 Anaconda sourcecode for debugging purposes.
209
210 %description debug -l pl.UTF-8
211 Kod źródłowy Anacondy do celów diagnostycznych.
212
213 %prep
214 %setup -q
215 # looks obsolete
216 #%patch0 -p1
217 %patch1 -p1
218 #%patch2 -p1
219 #%patch3 -p1
220 # obsolete, all parts merged
221 #%patch4 -p1
222 %patch5 -p1
223 %patch6 -p1
224 %patch7 -p1
225 #%patch8 -p1
226 # fixme
227 #%patch9 -p1
228 # obsolete, already merged
229 # %patch10 -p1
230 %patch11 -p1
231 #?
232 #%patch13 -p1
233 #?
234 #%patch14 -p1
235 # does it make any harm?
236 #%patch15 -p1
237 #%patch16 -p1
238
239 rm -f po/no.po
240 mv -f po/{eu_ES,eu}.po
241
242 # we don't want this being visible, neither want we to kill it (the
243 # other's aren't valid anyway (outdated probably).
244 mv installclasses/fedora.py{,.orig}
245 # we want this install class ;)
246 cp %{SOURCE5} installclasses/pld.py
247
248 sed -i -e 's/$(PYTHON) scripts/python scripts/' Makefile
249
250 %build
251 # locale check
252 if [ "$(locale -a | grep -c en_US.utf8)" = 0 ]; then
253         : "en_US.utf8 locale not available. build will fail!"
254         : "Install glibc-localedb-all or compile it!"
255         exit 1
256 fi
257
258 %{__make} depend -j1 \
259         PYTHON="%{__python}" \
260         PYTHONINCLUDE="%{py_incdir}" \
261         CC="%{__cc}"
262
263 %{__make} -j1 \
264         PYTHON="%{__python}" \
265         PYTHONINCLUDE="%{py_incdir}" \
266         CC="%{__cc}" \
267         REALCC="%{__cc}" \
268         OPTFLAGS="%{rpmcflags}"
269
270 ./py-compile isys/isys.py
271
272 %install
273 rm -rf $RPM_BUILD_ROOT
274
275 %{__make} install \
276         DESTDIR=$RPM_BUILD_ROOT
277
278 install isys/isys.py[co] $RPM_BUILD_ROOT%{_libdir}/anaconda
279
280 cp %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images
281 cp %{SOURCE2} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/upd-instroot
282 cp %{SOURCE3} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images.i386
283 cp %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/scrubtree
284 cp %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/anaconda/splash.png
285
286 # for ./isys/lang.c:isysLoadKeymap()
287 %ifarch %{ix86}
288 cp -a loader2/keymaps-i386 $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz
289 %endif
290 %ifarch ppc
291 cp -a loader2/keymaps-ppc $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz
292 %endif
293 %ifarch %{x8664}
294 cp -a loader2/keymaps-x86_64 $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz
295 %endif
296
297 %find_lang %{name}
298
299 # hack so py_postclean would preserve it
300 #install $RPM_BUILD_ROOT%{_libdir}/anaconda/iw/release_notes{.py,}
301
302 %{!?debug:%py_postclean %{_libdir}/anaconda}
303
304 cp %{SOURCE5} $RPM_BUILD_ROOT/%{_libdir}/anaconda/installclasses/pld.py
305
306 %clean
307 rm -rf $RPM_BUILD_ROOT
308
309 %files -f %{name}.lang
310 %defattr(644,root,root,755)
311 %doc docs/*
312 %{_sysconfdir}/keymaps.gz
313 /etc/security/console.apps/liveinst
314 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/liveinst
315 %attr(755,root,root) %{_bindir}/liveinst
316 %attr(755,root,root) %{_sbindir}/anaconda
317 %attr(755,root,root) %{_sbindir}/gptsync
318 %attr(755,root,root) %{_sbindir}/liveinst
319 %attr(755,root,root) %{_sbindir}/showpart
320 %dir %{_libdir}/anaconda
321 %{_libdir}/anaconda/*.py[co]
322 %dir %{_libdir}/anaconda/installclasses
323 %{_libdir}/anaconda/installclasses/*.py[co]
324 %{_libdir}/anaconda/installclasses/*.py
325 %dir %{_libdir}/anaconda/textw
326 %{_libdir}/anaconda/textw/*.py[co]
327 %{_libdir}/anaconda/lang-names
328 %{_libdir}/anaconda/lang-table
329 %attr(755,root,root) %{_libdir}/anaconda/_isys.so
330
331 %files gui
332 %defattr(644,root,root,755)
333 %attr(755,root,root) %{_bindir}/mini-wm
334 %attr(755,root,root) %{_libdir}/anaconda/xutils.so
335 %{_desktopdir}/liveinst.desktop
336 %dir %{_libdir}/anaconda/iw
337 %{_libdir}/anaconda/iw/*.py[co]
338 %{_datadir}/anaconda
339
340 %if %{!?debug:0}%{?debug:1}
341 %files debug
342 %defattr(644,root,root,755)
343 %{_libdir}/anaconda/*.py
344 %{_libdir}/anaconda/installclasses/*.py
345 %{_libdir}/anaconda/iw/*.py
346 %{_libdir}/anaconda/textw/*.py
347 %endif
348
349 %files runtime
350 %defattr(644,root,root,755)
351 %attr(755,root,root) %{_libdir}/anaconda/*-stub
352 %dir %{_libdir}/anaconda-runtime
353 %dir %{_libdir}/anaconda-runtime/boot
354 %{_libdir}/anaconda-runtime/boot/boot.msg
355 %{_libdir}/anaconda-runtime/boot/general.msg
356 %{_libdir}/anaconda-runtime/boot/grub.conf
357 %{_libdir}/anaconda-runtime/boot/options.msg
358 %{_libdir}/anaconda-runtime/boot/param.msg
359 %{_libdir}/anaconda-runtime/boot/rescue.msg
360 %{_libdir}/anaconda-runtime/boot/syslinux.cfg
361 %attr(755,root,root) %{_libdir}/anaconda-runtime/buildinstall
362 %attr(755,root,root) %{_libdir}/anaconda-runtime/buildinstall.functions
363 %attr(755,root,root) %{_libdir}/anaconda-runtime/genmodinfo
364 %attr(755,root,root) %{_libdir}/anaconda-runtime/getkeymaps
365 %{_libdir}/anaconda-runtime/keymaps-override-*
366 %dir %{_libdir}/anaconda-runtime/loader
367 %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/init
368 %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/loader
369 %{_libdir}/anaconda-runtime/loader/loader.tr
370 %{_libdir}/anaconda-runtime/loader/unicode-linedraw-chars.txt
371 %attr(755,root,root) %{_libdir}/anaconda-runtime/makestamp.py
372 %attr(755,root,root) %{_libdir}/anaconda-runtime/maketreeinfo.py
373 %attr(755,root,root) %{_libdir}/anaconda-runtime/mapshdr
374 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images
375 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.alpha
376 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.i386
377 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ia64
378 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.efi
379 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ppc
380 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.s390
381 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.x86
382 %attr(755,root,root) %{_libdir}/anaconda-runtime/modlist
383 %attr(755,root,root) %{_libdir}/anaconda-runtime/pyrc.py
384 %attr(755,root,root) %{_libdir}/anaconda-runtime/readmap
385 %attr(755,root,root) %{_libdir}/anaconda-runtime/scrubtree
386 %{_libdir}/anaconda-runtime/screenfont-*.gz
387 %attr(755,root,root) %{_libdir}/anaconda-runtime/trimpciids
388 %attr(755,root,root) %{_libdir}/anaconda-runtime/upd-instroot
389 %attr(755,root,root) %{_libdir}/anaconda-runtime/upd-updates
This page took 0.069201 seconds and 3 git commands to generate.