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