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