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