]> git.pld-linux.org Git - packages/anaconda.git/blob - anaconda.spec
- update todo
[packages/anaconda.git] / anaconda.spec
1 # TODO
2 # - kill /mnt/runtime symlink hacks (leave the host alone!)
3 # - 01:20:59 ERROR   : lokkit run failed: /usr/sbin/lokkit can not be run
4 # - lrwxrwxrwx  1 root root     11 Aug 31 04:21 menu.lst -> ./grub.conf (DEAD LINK)
5 #   -rw-r--r--  1 root root    551 Aug 31 04:21 menu.lst.rpmsave
6 # - can't find font latcyrheb
7 #  LANG="en_US.UTF-8"
8 #  SYSFONT="latarcyrheb-sun16"
9 # - sysconfig/timezone
10 # - yuminstaller downloads all packages twice
11 #  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
12 #  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
13 # - network config files are not pld-style
14 # - lvm2-initrd should be installed
15 # - /etc/fstab
16 # - /etc/modprobe.conf for geninitrd
17 # - gui installer packages selector:
18 #Traceback (most recent call last):
19 #  File "/home/glen/tmp/anaconda-11.0.5-root-glen//usr/lib/anaconda/gui.py", line 954, in nextClicked
20 #  File "/home/glen/tmp/anaconda-11.0.5-root-glen//usr/lib/anaconda/gui.py", line 1313, in setScreen
21 #  File "/home/glen/tmp/anaconda-11.0.5-root-glen//usr/lib/anaconda/iw/package_gui.py", line 29, in getScreen
22 #  File "/usr/share/python2.4/site-packages/pirut/GroupSelector.py", line 410, in doRefresh
23 #  File "/usr/share/python2.4/site-packages/pirut/GroupSelector.py", line 407, in populateCategories
24 #TypeError: iter should be a GtkTreeIter
25 #
26 %if 0
27 # FC to PLD deps replace rules, extracted from cvs logs
28 :%s#libxml2-python#python-libxml2#
29 :%s#pyparted#python-parted#
30 :%s#booty#python-booty#
31 :%s#rhpl#python-rhpl#
32 :%s#rhpxl#python-rhpxl#
33 :%s#rpm-python#python-rpm#
34 :%s#gtk2-devel#gtk+2-devel#
35 :%s#pykickstart#python-kickstart#
36 :%s#squashfs-tools#squashfs#
37 %endif
38 Summary:        Graphical system installer
39 Summary(pl):    Graficzny instalator systemu
40 Name:           anaconda
41 Version:        11.0.5
42 Release:        0.94
43 License:        GPL
44 Group:          Applications/System
45 Source0:        %{name}-%{version}.tar.bz2
46 # Source0-md5:  f814e7d0011dd44c3c3cf12b6ddb5b40
47 Source1:        %{name}-mk-images
48 Source2:        %{name}-upd-instroot
49 Source3:        %{name}-mk-images.i386
50 Source4:        %{name}-scrubtree
51 Source5:        %{name}-installclass-pld.py
52 Source6:        %{name}-splash.png
53 # Source6-md5:  6b38a868585adfd3a96a4ad16973c1f8
54 Patch0:         %{name}-pld.patch
55 Patch1:         %{name}-BUS_XEN.patch
56 Patch2:         %{name}-vserver-proc.patch
57 Patch3:         %{name}-pkgorder.patch
58 Patch4:         %{name}-errorhandling.patch
59 Patch5:         %{name}-libdir.patch
60 Patch6:         %{name}-pld-release.patch
61 Patch7:         %{name}-timezone.patch
62 Patch8:         %{name}-kernel.patch
63 Patch9:         %{name}-optflags.patch
64 Patch10:        %{name}-network.patch
65 Patch11:        %{name}-branding.patch
66 Patch12:        %{name}-x11.patch
67 Patch13:        %{name}-installclasses.patch
68 Patch14:        %{name}-release_notes_viewer_gui.patch
69 Patch15:        %{name}-hosttree.patch
70 URL:            http://fedora.redhat.com/projects/anaconda-installer/
71 BuildRequires:  bzip2-devel
72 BuildRequires:  device-mapper-static >= 1.01.05
73 BuildRequires:  e2fsprogs-devel
74 BuildRequires:  gettext-devel >= 0.11
75 BuildRequires:  glibc-static
76 BuildRequires:  gtk+2-devel
77 BuildRequires:  kudzu-devel >= 1.2.0
78 BuildRequires:  libselinux-static >= 1.6
79 BuildRequires:  libsepol-static
80 BuildRequires:  newt-static
81 BuildRequires:  popt-static
82 BuildRequires:  pump-static >= 0.8.24-1
83 BuildRequires:  python-devel
84 BuildRequires:  python-rhpl
85 BuildRequires:  python-rpm
86 BuildRequires:  rpm-pythonprov
87 BuildRequires:  rpmbuild(macros) >= 1.234
88 BuildRequires:  sed >= 4.0
89 BuildRequires:  slang-static
90 BuildRequires:  zlib-static
91 Requires:       /etc/pld-release
92 Requires:       device-mapper >= 1.01.05
93 Requires:       dosfstools
94 Requires:       e2fsprogs
95 Requires:       glibc-localedb-all
96 Requires:       grubby
97 Requires:       hfsutils
98 Requires:       jfsutils
99 Requires:       kudzu >= 1.2.34.3-1.1
100 Requires:       lvm2
101 Requires:       mdadm
102 Requires:       python-booty >= 0.71-0.6
103 Requires:       python-devel-tools
104 Requires:       python-kickstart
105 Requires:       python-libxml2
106 Requires:       python-parted
107 Requires:       python-rhpl >= 0.176-1.2
108 Requires:       python-rpm >= 4.2-0.61
109 Requires:       python-snack
110 Requires:       python-urlgrabber >= 2.9.8
111 Requires:       reiserfsprogs
112 Requires:       xfsprogs
113 Requires:       yum >= 2.5.1-3
114 %ifnarch s390 s390x
115 Requires:       python-pyblock >= 0.7-1
116 %endif
117 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
118
119 %description
120 The anaconda package contains the program which can be used to install
121 system. These files are of little use on an already installed system.
122
123 %description -l pl
124 Pakiet anaconda zawiera program, którego mo¿na u¿yæ do zainstalowania
125 systemu. Pliki te maj± niewiele zastosowañ na ju¿ zainstalowanym
126 systemie.
127
128 %package gui
129 Summary:        Anaconda GTK+2 GUI
130 Group:          Applications/System
131 Requires:       %{name} = %{version}-%{release}
132 Requires:       X11-OpenGL-core
133 Requires:       X11-Xserver
134 Requires:       X11-fonts
135 Requires:       pirut
136 Requires:       python-gnome-canvas
137 Requires:       system-config-date
138 Requires:       system-config-keyboard
139 #Requires:      system-logos
140 Requires:       vnc-utils
141 %ifnarch s390 s390x ppc64
142 Requires:       python-rhpxl >= 0.18-0.9
143 %endif
144
145 %description gui
146 Anaconda GUI portion.
147
148 %package runtime
149 Summary:        Graphical system installer portions needed only for fresh installs
150 Summary(pl):    Elementy graficznego instalatora systemu potrzebne tylko przy nowych instalacjach
151 Group:          Applications/System
152 AutoReqProv:    false
153 Requires:       %{name} = %{version}-%{release}
154 Requires:       /usr/bin/strip
155 Requires:       X11
156 Requires:       createrepo >= 0.4.3
157 Requires:       gawk
158 Requires:       glibc >= 6:2.3.6-5.1
159 Requires:       kbd
160 Requires:       policycoreutils >= 1.30
161 Requires:       python
162 Requires:       python-libxml2
163 Requires:       python-rpm >= 4.2-0.61
164 Requires:       squashfs
165 Requires:       yum >= 2.4.0
166
167 %description runtime
168 The anaconda-runtime package contains parts of the installation system
169 which are needed for installing new systems. These files are used to
170 build media sets, but are not meant for use on already installed
171 systems.
172
173 %description runtime -l pl
174 Pakiet anaconda-runtime zawiera elementy instalatora potrzebne tylko
175 do instalowania nowych systemów. Pliki te s³u¿± do tworzenia zestawu
176 no¶ników, nie s± przewidziane do u¿ywania na ju¿ zainstalowanych
177 systemach.
178
179 %package debug
180 Summary:        Sourcecode for Anaconda
181 Summary(pl):    Kod ¼ród³owy Anacondy
182 Group:          Applications/System
183 AutoReqProv:    false
184 Requires:       %{name} = %{version}-%{release}
185
186 %description debug
187 Anaconda sourcecode for debugging purposes.
188
189 %description debug -l pl
190 Kod ¼ród³owy Anacondy do celów diagnostycznych.
191
192 %prep
193 %setup -q
194 %patch0 -p1
195 %patch1 -p1
196 %patch2 -p1
197 %patch3 -p1
198 %patch4 -p1
199 %patch5 -p1
200 %patch6 -p1
201 %patch7 -p1
202 %patch8 -p1
203 %patch9 -p1
204 %patch10 -p1
205 %patch11 -p1
206 %patch12 -p1
207 %patch13 -p1
208 %patch14 -p1
209 %patch15 -p1
210
211 rm -f po/no.po
212 mv -f po/{eu_ES,eu}.po
213
214 # we don't want this being visible, neither want we to kill it (the
215 # other's aren't valid anyway (outdated probably).
216 mv installclasses/fedora.py{,.orig}
217 # we want this install class ;)
218 cp %{SOURCE5} installclasses/pld.py
219
220 sed -i -e 's/$(PYTHON) scripts/python scripts/' Makefile
221
222 %build
223 # locale check
224 if [ "$(locale -a | grep -c en_US.utf8)" = 0 ]; then
225         echo >&2 "en_US.utf8 locale not available. build will fail!"
226         echo >&2 "Install glibc-localedb-all or compile it!"
227         exit 1
228 fi
229
230 %{__make} depend -j1 \
231         CC="%{__cc}"
232
233 %{__make} -j1 \
234         CC="%{__cc}" \
235         REALCC="%{__cc}" \
236         OPTFLAGS="%{rpmcflags}"
237
238 ./py-compile isys/isys.py
239
240 %install
241 rm -rf $RPM_BUILD_ROOT
242
243 %{__make} install \
244         DESTDIR=$RPM_BUILD_ROOT
245
246 install isys/isys.py[co] $RPM_BUILD_ROOT%{_libdir}/anaconda
247
248 cp %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images
249 cp %{SOURCE2} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/upd-instroot
250 cp %{SOURCE3} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images.i386
251 cp %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/scrubtree
252 cp %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/anaconda/splash.png
253
254 # for ./isys/lang.c:isysLoadKeymap()
255 %ifarch %{ix86}
256 cp -a loader2/keymaps-i386 $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz
257 %endif
258 %ifarch ppc
259 cp -a loader2/keymaps-ppc $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz
260 %endif
261 %ifarch %{x8664}
262 cp -a loader2/keymaps-x86_64 $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz
263 %endif
264
265 %find_lang %{name}
266
267 # hack so py_postclean would preserve it
268 install $RPM_BUILD_ROOT%{_libdir}/anaconda/iw/release_notes_viewer_gui{.py,}
269
270 %{!?debug:%py_postclean %{_libdir}/anaconda}
271
272 %clean
273 rm -rf $RPM_BUILD_ROOT
274
275 %files -f %{name}.lang
276 %defattr(644,root,root,755)
277 %doc docs/*
278 %{_sysconfdir}/keymaps.gz
279 %attr(755,root,root) %{_sbindir}/anaconda
280 %dir %{_libdir}/anaconda
281 %{_libdir}/anaconda/*.py[co]
282 %exclude %{_libdir}/anaconda/xsetup.py[co]
283 %dir %{_libdir}/anaconda/installclasses
284 %{_libdir}/anaconda/installclasses/*.py[co]
285 %dir %{_libdir}/anaconda/textw
286 %{_libdir}/anaconda/textw/*.py[co]
287 %{_libdir}/anaconda/lang-names
288 %{_libdir}/anaconda/lang-table
289 %{_libdir}/anaconda/lang-table-kon
290 %attr(755,root,root) %{_libdir}/anaconda/_isys.so
291
292 %files gui
293 %defattr(644,root,root,755)
294 %attr(755,root,root) %{_bindir}/mini-wm
295 %attr(755,root,root) %{_libdir}/anaconda/iw/release_notes_viewer_gui
296 %attr(755,root,root) %{_libdir}/anaconda/xmouse.so
297 %attr(755,root,root) %{_libdir}/anaconda/xutils.so
298 %{_libdir}/anaconda/xsetup.py[co]
299 %dir %{_libdir}/anaconda/iw
300 %{_libdir}/anaconda/iw/*.py[co]
301 %{_datadir}/anaconda
302
303 %if %{!?debug:0}%{?debug:1}
304 %files debug
305 %defattr(644,root,root,755)
306 %{_libdir}/anaconda/*.py
307 %{_libdir}/anaconda/installclasses/*.py
308 %{_libdir}/anaconda/iw/*.py
309 %{_libdir}/anaconda/textw/*.py
310 %endif
311
312 %files runtime
313 %defattr(644,root,root,755)
314 %attr(755,root,root) %{_libdir}/anaconda/*-stub
315 %dir %{_libdir}/anaconda-runtime
316 %dir %{_libdir}/anaconda-runtime/boot
317 %attr(755,root,root) %{_libdir}/anaconda-runtime/boot/syslinux.cfg
318 %{_libdir}/anaconda-runtime/boot/boot.msg
319 %{_libdir}/anaconda-runtime/boot/general.msg
320 %{_libdir}/anaconda-runtime/boot/options.msg
321 %{_libdir}/anaconda-runtime/boot/param.msg
322 %{_libdir}/anaconda-runtime/boot/rescue.msg
323 %attr(755,root,root) %{_libdir}/anaconda-runtime/buildinstall
324 %attr(755,root,root) %{_libdir}/anaconda-runtime/checkisomd5
325 %attr(755,root,root) %{_libdir}/anaconda-runtime/filtermoddeps
326 %attr(755,root,root) %{_libdir}/anaconda-runtime/fixmtime.py
327 %attr(755,root,root) %{_libdir}/anaconda-runtime/getkeymaps
328 %attr(755,root,root) %{_libdir}/anaconda-runtime/implantisomd5
329 %{_libdir}/anaconda-runtime/keymaps-override-*
330 %attr(755,root,root) %{_libdir}/anaconda-runtime/libunicode-lite.so.1
331 %dir %{_libdir}/anaconda-runtime/loader
332 %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/init
333 %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/loader
334 %{_libdir}/anaconda-runtime/loader/loader.tr
335 %{_libdir}/anaconda-runtime/loader/module-info
336 %{_libdir}/anaconda-runtime/loader/unicode-linedraw-chars.txt
337 %attr(755,root,root) %{_libdir}/anaconda-runtime/makestamp.py
338 %attr(755,root,root) %{_libdir}/anaconda-runtime/mapshdr
339 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images
340 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.i386
341 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ia64
342 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ppc
343 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.s390
344 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.x86_64
345 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-rescueimage.i386
346 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-rescueimage.ppc
347 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-rescueimage.x86_64
348 %attr(755,root,root) %{_libdir}/anaconda-runtime/moddeps
349 %attr(755,root,root) %{_libdir}/anaconda-runtime/modlist
350 %attr(755,root,root) %{_libdir}/anaconda-runtime/pkgorder
351 %attr(755,root,root) %{_libdir}/anaconda-runtime/pyisomd5sum.so
352 %attr(755,root,root) %{_libdir}/anaconda-runtime/pyrc.py
353 %attr(755,root,root) %{_libdir}/anaconda-runtime/pythondeps
354 %attr(755,root,root) %{_libdir}/anaconda-runtime/readmap
355 %attr(755,root,root) %{_libdir}/anaconda-runtime/scrubtree
356 %{_libdir}/anaconda-runtime/screenfont-*.gz
357 %attr(755,root,root) %{_libdir}/anaconda-runtime/splittree.py
358 %attr(755,root,root) %{_libdir}/anaconda-runtime/trimmodalias
359 %attr(755,root,root) %{_libdir}/anaconda-runtime/trimpciids
360 %attr(755,root,root) %{_libdir}/anaconda-runtime/upd-instroot
361 %attr(755,root,root) %{_libdir}/anaconda-runtime/yumcache
This page took 0.069026 seconds and 4 git commands to generate.