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