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