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