]> git.pld-linux.org Git - packages/anaconda.git/blob - anaconda.spec
- omit -devel requirement where -static used
[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.78
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 URL:            http://fedora.redhat.com/projects/anaconda-installer/
48 BuildRequires:  bzip2-devel
49 BuildRequires:  device-mapper-static >= 1.01.05
50 BuildRequires:  e2fsprogs-devel
51 BuildRequires:  gettext-devel >= 0.11
52 BuildRequires:  glibc-static
53 BuildRequires:  gtk+2-devel
54 BuildRequires:  kudzu-devel >= 1.2.0
55 BuildRequires:  libselinux-static >= 1.6
56 BuildRequires:  libsepol-static
57 BuildRequires:  newt-static
58 BuildRequires:  popt-static
59 BuildRequires:  pump-static >= 0.8.24-1
60 BuildRequires:  python-devel
61 BuildRequires:  python-rhpl
62 BuildRequires:  python-rpm
63 BuildRequires:  rpm-pythonprov
64 BuildRequires:  rpmbuild(macros) >= 1.234
65 BuildRequires:  sed >= 4.0
66 BuildRequires:  slang-static
67 BuildRequires:  zlib-static
68 Requires:       /etc/pld-release
69 Requires:       device-mapper >= 1.01.05
70 Requires:       dosfstools
71 Requires:       e2fsprogs
72 Requires:       glibc-localedb-all
73 Requires:       grubby
74 Requires:       hfsutils
75 Requires:       jfsutils
76 Requires:       kudzu > 1.2.0
77 Requires:       lvm2
78 Requires:       mdadm
79 Requires:       python-booty >= 0.71-0.6
80 Requires:       python-devel-tools
81 Requires:       python-kickstart
82 Requires:       python-libxml2
83 Requires:       python-parted
84 Requires:       python-rhpl >= 0.176-1.1
85 Requires:       python-rpm >= 4.2-0.61
86 Requires:       python-snack
87 Requires:       python-urlgrabber >= 2.9.8
88 Requires:       reiserfsprogs
89 Requires:       xfsprogs
90 Requires:       yum >= 2.5.1-3
91 %ifnarch s390 s390x
92 Requires:       python-pyblock >= 0.7-1
93 %endif
94 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
95
96 %description
97 The anaconda package contains the program which can be used to install
98 system. These files are of little use on an already installed system.
99
100 %description -l pl
101 Pakiet anaconda zawiera program, którego mo¿na u¿yæ do zainstalowania
102 systemu. Pliki te maj± niewiele zastosowañ na ju¿ zainstalowanym
103 systemie.
104
105 %package gui
106 Summary:        Anaconda GTK+2 GUI
107 Group:          Applications/System
108 Requires:       %{name} = %{version}-%{release}
109 Requires:       X11-OpenGL-core
110 Requires:       X11-Xserver
111 Requires:       X11-fonts
112 Requires:       pirut
113 Requires:       python-gnome-canvas
114 Requires:       system-config-keyboard
115 #Requires:      system-logos
116 Requires:       vnc-utils
117 %ifnarch s390 s390x ppc64
118 Requires:       python-rhpxl >= 0.18-0.6
119 %endif
120
121 %description gui
122 Anaconda GUI portion.
123
124 %package runtime
125 Summary:        Graphical system installer portions needed only for fresh installs
126 Summary(pl):    Elementy graficznego instalatora systemu potrzebne tylko przy nowych instalacjach
127 Group:          Applications/System
128 AutoReqProv:    false
129 Requires:       %{name} = %{version}-%{release}
130 Requires:       /usr/bin/strip
131 Requires:       X11
132 Requires:       createrepo >= 0.4.3
133 Requires:       gawk
134 Requires:       glibc >= 6:2.3.6-5.1
135 Requires:       kbd
136 Requires:       policycoreutils >= 1.30
137 Requires:       python
138 Requires:       python-libxml2
139 Requires:       python-rpm >= 4.2-0.61
140 Requires:       squashfs
141 Requires:       yum >= 2.4.0
142
143 %description runtime
144 The anaconda-runtime package contains parts of the installation system
145 which are needed for installing new systems. These files are used to
146 build media sets, but are not meant for use on already installed
147 systems.
148
149 %description runtime -l pl
150 Pakiet anaconda-runtime zawiera elementy instalatora potrzebne tylko
151 do instalowania nowych systemów. Pliki te s³u¿± do tworzenia zestawu
152 no¶ników, nie s± przewidziane do u¿ywania na ju¿ zainstalowanych
153 systemach.
154
155 %package debug
156 Summary:        Sourcecode for Anaconda
157 Summary(pl):    Kod ¼ród³owy Anacondy
158 Group:          Applications/System
159 AutoReqProv:    false
160 Requires:       %{name} = %{version}-%{release}
161
162 %description debug
163 Anaconda sourcecode for debugging purposes.
164
165 %description debug -l pl
166 Kod ¼ród³owy Anacondy do celów diagnostycznych.
167
168 %prep
169 %setup -q
170 %patch0 -p1
171 %patch1 -p1
172 %patch2 -p1
173 %patch3 -p1
174 %patch4 -p1
175 %patch5 -p1
176 %patch6 -p1
177 %patch7 -p1
178 %patch8 -p1
179 %patch9 -p1
180 %patch10 -p1
181 %patch11 -p1
182 %patch12 -p1
183 %patch13 -p1
184 %patch14 -p1
185
186 rm -f po/no.po
187 mv -f po/{eu_ES,eu}.po
188
189 # we don't want this being visible, neither want we to kill it (the
190 # other's aren't valid anyway (outdated probably).
191 mv installclasses/fedora.py{,.orig}
192 # we want this install class ;)
193 cp %{SOURCE5} installclasses/pld.py
194
195 sed -i -e 's/$(PYTHON) scripts/python scripts/' Makefile
196
197 %build
198 # locale check
199 if [ "$(locale -a | grep -c en_US.utf8)" = 0 ]; then
200         echo >&2 "en_US.utf8 locale not available. build will fail!"
201         echo >&2 "Install glibc-localedb-all or compile it!"
202         exit 1
203 fi
204
205 %{__make} depend -j1 \
206         CC="%{__cc}"
207
208 %{__make} -j1 \
209         CC="%{__cc}" \
210         REALCC="%{__cc}" \
211         OPTFLAGS="%{rpmcflags}"
212
213 ./py-compile isys/isys.py
214
215 %install
216 rm -rf $RPM_BUILD_ROOT
217
218 %{__make} install \
219         DESTDIR=$RPM_BUILD_ROOT
220
221 install isys/isys.py[co] $RPM_BUILD_ROOT%{_libdir}/anaconda
222
223 cp %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images
224 cp %{SOURCE2} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/upd-instroot
225 cp %{SOURCE3} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images.i386
226 cp %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/scrubtree
227 cp %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/anaconda/splash.png
228
229 %find_lang %{name}
230
231 # hack so py_postclean would preserve it
232 install $RPM_BUILD_ROOT%{_libdir}/anaconda/iw/release_notes_viewer_gui{.py,}
233
234 %{!?debug:%py_postclean %{_libdir}/anaconda}
235
236 %clean
237 rm -rf $RPM_BUILD_ROOT
238
239 %files -f %{name}.lang
240 %defattr(644,root,root,755)
241 %doc docs/*
242 %attr(755,root,root) %{_sbindir}/anaconda
243 %dir %{_libdir}/anaconda
244 %{_libdir}/anaconda/*.py[co]
245 %exclude %{_libdir}/anaconda/xsetup.py[co]
246 %dir %{_libdir}/anaconda/installclasses
247 %{_libdir}/anaconda/installclasses/*.py[co]
248 %dir %{_libdir}/anaconda/textw
249 %{_libdir}/anaconda/textw/*.py[co]
250 %{_libdir}/anaconda/lang-names
251 %{_libdir}/anaconda/lang-table
252 %{_libdir}/anaconda/lang-table-kon
253 %attr(755,root,root) %{_libdir}/anaconda/_isys.so
254
255 %files gui
256 %defattr(644,root,root,755)
257 %attr(755,root,root) %{_bindir}/mini-wm
258 %attr(755,root,root) %{_libdir}/anaconda/iw/release_notes_viewer_gui
259 %attr(755,root,root) %{_libdir}/anaconda/xmouse.so
260 %attr(755,root,root) %{_libdir}/anaconda/xutils.so
261 %{_libdir}/anaconda/xsetup.py[co]
262 %dir %{_libdir}/anaconda/iw
263 %{_libdir}/anaconda/iw/*.py[co]
264 %{_datadir}/anaconda
265
266 %if %{!?debug:0}%{?debug:1}
267 %files debug
268 %defattr(644,root,root,755)
269 %{_libdir}/anaconda/*.py
270 %{_libdir}/anaconda/installclasses/*.py
271 %{_libdir}/anaconda/iw/*.py
272 %{_libdir}/anaconda/textw/*.py
273 %endif
274
275 %files runtime
276 %defattr(644,root,root,755)
277 %attr(755,root,root) %{_libdir}/anaconda/*-stub
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.055274 seconds and 3 git commands to generate.