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