]> git.pld-linux.org Git - packages/anaconda.git/blob - anaconda.spec
- updated booty
[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 AutoReqProv:    false
171 Group:          Applications/System
172 Requires:       %{name} = %{version}-%{release}
173
174 %description debug
175
176 %prep
177 %setup -q
178 %patch0 -p1
179 %patch1 -p1
180 %patch2 -p1
181 %patch3 -p1
182 %patch4 -p1
183 %patch5 -p1
184 %patch6 -p1
185 %patch7 -p1
186 %patch8 -p1
187 %patch9 -p1
188 %patch10 -p1
189 %patch11 -p1
190 %patch12 -p1
191 %patch13 -p1
192
193 rm -f po/no.po
194 mv -f po/{eu_ES,eu}.po
195
196 # we don't want this being visible, neither want we to kill it (the
197 # other's aren't valid anyway (outdated probably).
198 mv installclasses/fedora.py{,.orig}
199 # we want this install class ;)
200 cp %{SOURCE5} installclasses/pld.py
201
202 sed -i -e 's/$(PYTHON) scripts/python scripts/' Makefile
203
204 %build
205 # locale check
206 if [ "$(locale -a | grep -c en_US.utf8)" = 0 ]; then
207         echo >&2 "en_US.utf8 locale not available. build will fail!"
208         echo >&2 "Install glibc-localedb-all or compile it!"
209         exit 1
210 fi
211
212 %{__make} depend \
213         CC="%{__cc}"
214
215 %{__make} \
216         CC="%{__cc}" \
217         REALCC="%{__cc}" \
218         OPTFLAGS="%{rpmcflags}"
219
220 ./py-compile isys/isys.py
221
222 %install
223 rm -rf $RPM_BUILD_ROOT
224
225 %{__make} install \
226         DESTDIR=$RPM_BUILD_ROOT
227
228 install isys/isys.py[co] $RPM_BUILD_ROOT%{_libdir}/anaconda
229
230 cp %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images
231 cp %{SOURCE2} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/upd-instroot
232 cp %{SOURCE3} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images.i386
233 cp %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/scrubtree
234 cp %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/anaconda/splash.png
235
236 %find_lang %{name}
237 %{!?debug:%py_postclean %{_libdir}/anaconda}
238
239 %clean
240 rm -rf $RPM_BUILD_ROOT
241
242 %files -f %{name}.lang
243 %defattr(644,root,root,755)
244 %doc docs/*
245 %attr(755,root,root) %{_bindir}/mini-wm
246 %attr(755,root,root) %{_sbindir}/anaconda
247 %{_datadir}/anaconda
248 %dir %{_libdir}/anaconda
249 %{_libdir}/anaconda/*.py[co]
250 %dir %{_libdir}/anaconda/installclasses
251 %{_libdir}/anaconda/installclasses/*.py[co]
252 %dir %{_libdir}/anaconda/iw
253 %{_libdir}/anaconda/iw/*.py[co]
254 %dir %{_libdir}/anaconda/textw
255 %{_libdir}/anaconda/textw/*.py[co]
256 %{_libdir}/anaconda/lang-names
257 %{_libdir}/anaconda/lang-table
258 %{_libdir}/anaconda/lang-table-kon
259 %attr(755,root,root) %{_libdir}/anaconda/*-stub
260 %attr(755,root,root) %{_libdir}/anaconda/*.so
261
262 %if %{!?debug:0}%{?debug:1}
263 %files debug
264 %defattr(644,root,root,755)
265 %{_libdir}/anaconda/*.py
266 %{_libdir}/anaconda/installclasses/*.py
267 %{_libdir}/anaconda/iw/*.py
268 %{_libdir}/anaconda/textw/*.py
269 %endif
270
271 %files runtime
272 %defattr(644,root,root,755)
273 %dir %{_libdir}/anaconda-runtime
274 %dir %attr(755,root,root) %{_libdir}/anaconda-runtime/boot
275 %attr(755,root,root) %{_libdir}/anaconda-runtime/boot/syslinux.cfg
276 %{_libdir}/anaconda-runtime/boot/boot.msg
277 %{_libdir}/anaconda-runtime/boot/general.msg
278 %{_libdir}/anaconda-runtime/boot/options.msg
279 %{_libdir}/anaconda-runtime/boot/param.msg
280 %{_libdir}/anaconda-runtime/boot/rescue.msg
281 %attr(755,root,root) %{_libdir}/anaconda-runtime/buildinstall
282 %attr(755,root,root) %{_libdir}/anaconda-runtime/checkisomd5
283 %attr(755,root,root) %{_libdir}/anaconda-runtime/filtermoddeps
284 %attr(755,root,root) %{_libdir}/anaconda-runtime/fixmtime.py
285 %attr(755,root,root) %{_libdir}/anaconda-runtime/getkeymaps
286 %attr(755,root,root) %{_libdir}/anaconda-runtime/implantisomd5
287 %{_libdir}/anaconda-runtime/keymaps-override-*
288 %attr(755,root,root) %{_libdir}/anaconda-runtime/libunicode-lite.so.1
289 %dir %attr(755,root,root) %{_libdir}/anaconda-runtime/loader
290 %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/init
291 %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/loader
292 %{_libdir}/anaconda-runtime/loader/loader.tr
293 %{_libdir}/anaconda-runtime/loader/module-info
294 %{_libdir}/anaconda-runtime/loader/unicode-linedraw-chars.txt
295 %attr(755,root,root) %{_libdir}/anaconda-runtime/makestamp.py
296 %attr(755,root,root) %{_libdir}/anaconda-runtime/mapshdr
297 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images
298 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.i386
299 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ia64
300 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ppc
301 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.s390
302 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.x86_64
303 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-rescueimage.i386
304 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-rescueimage.ppc
305 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-rescueimage.x86_64
306 %attr(755,root,root) %{_libdir}/anaconda-runtime/moddeps
307 %attr(755,root,root) %{_libdir}/anaconda-runtime/modlist
308 %attr(755,root,root) %{_libdir}/anaconda-runtime/pkgorder
309 %attr(755,root,root) %{_libdir}/anaconda-runtime/pyisomd5sum.so
310 %attr(755,root,root) %{_libdir}/anaconda-runtime/pyrc.py
311 %attr(755,root,root) %{_libdir}/anaconda-runtime/pythondeps
312 %attr(755,root,root) %{_libdir}/anaconda-runtime/readmap
313 %attr(755,root,root) %{_libdir}/anaconda-runtime/scrubtree
314 %{_libdir}/anaconda-runtime/screenfont-*.gz
315 %attr(755,root,root) %{_libdir}/anaconda-runtime/splittree.py
316 %attr(755,root,root) %{_libdir}/anaconda-runtime/trimmodalias
317 %attr(755,root,root) %{_libdir}/anaconda-runtime/trimpciids
318 %attr(755,root,root) %{_libdir}/anaconda-runtime/upd-instroot
319 %attr(755,root,root) %{_libdir}/anaconda-runtime/yumcache
This page took 0.112062 seconds and 4 git commands to generate.