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