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