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