]> git.pld-linux.org Git - packages/anaconda.git/blob - anaconda.spec
- cleaned up unneccessary BR (urpmdiff showed package contents is same)
[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.75
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:  bzip2-devel
50 BuildRequires:  device-mapper-devel >= 1.01.05
51 BuildRequires:  device-mapper-static
52 BuildRequires:  e2fsprogs-devel
53 BuildRequires:  gettext-devel >= 0.11
54 BuildRequires:  glibc-static
55 BuildRequires:  gtk+2-devel
56 BuildRequires:  kudzu-devel >= 1.2.0
57 BuildRequires:  libselinux-devel >= 1.6
58 BuildRequires:  libselinux-static
59 BuildRequires:  libsepol-devel
60 BuildRequires:  libsepol-static
61 BuildRequires:  newt-devel
62 BuildRequires:  newt-static
63 BuildRequires:  popt-devel
64 BuildRequires:  popt-static
65 BuildRequires:  pump-devel
66 BuildRequires:  pump-static >= 0.8.24-1
67 BuildRequires:  python-devel
68 BuildRequires:  python-rhpl
69 BuildRequires:  python-rpm
70 BuildRequires:  rpm-pythonprov
71 BuildRequires:  rpmbuild(macros) >= 1.234
72 BuildRequires:  sed >= 4.0
73 BuildRequires:  slang-static
74 BuildRequires:  zlib-devel
75 BuildRequires:  zlib-static
76 Requires:       /etc/pld-release
77 Requires:       X11-OpenGL-core
78 Requires:       X11-Xserver
79 Requires:       X11-fonts
80 Requires:       device-mapper >= 1.01.05
81 Requires:       dosfstools
82 Requires:       e2fsprogs
83 Requires:       glibc-localedb-all
84 Requires:       grubby
85 Requires:       hfsutils
86 Requires:       jfsutils
87 Requires:       kudzu > 1.2.0
88 Requires:       lvm2
89 Requires:       mdadm
90 Requires:       pirut
91 Requires:       python-booty >= 0.71-0.6
92 Requires:       python-devel-tools
93 Requires:       python-gnome-canvas
94 Requires:       python-kickstart
95 Requires:       python-libxml2
96 Requires:       python-parted
97 Requires:       python-rhpl >= 0.176-1.1
98 Requires:       python-rhpxl >= 0.18-0.6
99 Requires:       python-rpm >= 4.2-0.61
100 Requires:       python-snack
101 Requires:       python-urlgrabber >= 2.9.8
102 Requires:       reiserfsprogs
103 Requires:       system-config-keyboard
104 #Requires:      system-logos
105 Requires:       vnc-utils
106 Requires:       xfsprogs
107 Requires:       yum >= 2.5.1-3
108 %ifnarch s390 s390x
109 Requires:       python-pyblock >= 0.7-1
110 %endif
111 %ifnarch s390 s390x ppc64
112 Requires:       python-rhpxl
113 %endif
114 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
115
116 %description
117 The anaconda package contains the program which can be used to install
118 system. These files are of little use on an already installed system.
119
120 %description -l pl
121 Pakiet anaconda zawiera program, którego mo¿na u¿yæ do zainstalowania
122 systemu. Pliki te maj± niewiele zastosowañ na ju¿ zainstalowanym
123 systemie.
124
125 %package runtime
126 Summary:        Graphical system installer portions needed only for fresh installs
127 Summary(pl):    Elementy graficznego instalatora systemu potrzebne tylko przy nowych instalacjach
128 Group:          Applications/System
129 AutoReqProv:    false
130 Requires:       %{name} = %{version}-%{release}
131 Requires:       /usr/bin/strip
132 Requires:       X11
133 Requires:       createrepo >= 0.4.3
134 Requires:       gawk
135 Requires:       glibc >= 6:2.3.6-5.1
136 Requires:       kbd
137 Requires:       policycoreutils >= 1.30
138 Requires:       python
139 Requires:       python-libxml2
140 Requires:       python-rpm >= 4.2-0.61
141 Requires:       squashfs
142 Requires:       yum >= 2.4.0
143
144 %description runtime
145 The anaconda-runtime package contains parts of the installation system
146 which are needed for installing new systems. These files are used to
147 build media sets, but are not meant for use on already installed
148 systems.
149
150 %description runtime -l pl
151 Pakiet anaconda-runtime zawiera elementy instalatora potrzebne tylko
152 do instalowania nowych systemów. Pliki te s³u¿± do tworzenia zestawu
153 no¶ników, nie s± przewidziane do u¿ywania na ju¿ zainstalowanych
154 systemach.
155
156 %package debug
157 Summary:        Sourcecode for Anaconda
158 Summary(pl):    Kod ¼ród³owy Anacondy
159 Group:          Applications/System
160 AutoReqProv:    false
161 Requires:       %{name} = %{version}-%{release}
162
163 %description debug
164 Anaconda sourcecode for debugging purposes.
165
166 %description debug -l pl
167 Kod ¼ród³owy Anacondy do celów diagnostycznych.
168
169 %prep
170 %setup -q
171 %patch0 -p1
172 %patch1 -p1
173 %patch2 -p1
174 %patch3 -p1
175 %patch4 -p1
176 %patch5 -p1
177 %patch6 -p1
178 %patch7 -p1
179 %patch8 -p1
180 %patch9 -p1
181 %patch10 -p1
182 %patch11 -p1
183 %patch12 -p1
184 %patch13 -p1
185 %patch14 -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 -j1 \
207         CC="%{__cc}"
208
209 %{__make} -j1 \
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 cp %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/anaconda/splash.png
229
230 %find_lang %{name}
231
232 # hack so py_postclean would preserve it
233 install $RPM_BUILD_ROOT%{_libdir}/anaconda/iw/release_notes_viewer_gui{.py,}
234
235 %{!?debug:%py_postclean %{_libdir}/anaconda}
236
237 %clean
238 rm -rf $RPM_BUILD_ROOT
239
240 %files -f %{name}.lang
241 %defattr(644,root,root,755)
242 %doc docs/*
243 %attr(755,root,root) %{_bindir}/mini-wm
244 %attr(755,root,root) %{_sbindir}/anaconda
245 %{_datadir}/anaconda
246 %dir %{_libdir}/anaconda
247 %{_libdir}/anaconda/*.py[co]
248 %dir %{_libdir}/anaconda/installclasses
249 %{_libdir}/anaconda/installclasses/*.py[co]
250 %dir %{_libdir}/anaconda/iw
251 %{_libdir}/anaconda/iw/*.py[co]
252 %attr(755,root,root) %{_libdir}/anaconda/iw/release_notes_viewer_gui
253 %dir %{_libdir}/anaconda/textw
254 %{_libdir}/anaconda/textw/*.py[co]
255 %{_libdir}/anaconda/lang-names
256 %{_libdir}/anaconda/lang-table
257 %{_libdir}/anaconda/lang-table-kon
258 %attr(755,root,root) %{_libdir}/anaconda/*-stub
259 %attr(755,root,root) %{_libdir}/anaconda/*.so
260
261 %if %{!?debug:0}%{?debug:1}
262 %files debug
263 %defattr(644,root,root,755)
264 %{_libdir}/anaconda/*.py
265 %{_libdir}/anaconda/installclasses/*.py
266 %{_libdir}/anaconda/iw/*.py
267 %{_libdir}/anaconda/textw/*.py
268 %endif
269
270 %files runtime
271 %defattr(644,root,root,755)
272 %dir %{_libdir}/anaconda-runtime
273 %dir %attr(755,root,root) %{_libdir}/anaconda-runtime/boot
274 %attr(755,root,root) %{_libdir}/anaconda-runtime/boot/syslinux.cfg
275 %{_libdir}/anaconda-runtime/boot/boot.msg
276 %{_libdir}/anaconda-runtime/boot/general.msg
277 %{_libdir}/anaconda-runtime/boot/options.msg
278 %{_libdir}/anaconda-runtime/boot/param.msg
279 %{_libdir}/anaconda-runtime/boot/rescue.msg
280 %attr(755,root,root) %{_libdir}/anaconda-runtime/buildinstall
281 %attr(755,root,root) %{_libdir}/anaconda-runtime/checkisomd5
282 %attr(755,root,root) %{_libdir}/anaconda-runtime/filtermoddeps
283 %attr(755,root,root) %{_libdir}/anaconda-runtime/fixmtime.py
284 %attr(755,root,root) %{_libdir}/anaconda-runtime/getkeymaps
285 %attr(755,root,root) %{_libdir}/anaconda-runtime/implantisomd5
286 %{_libdir}/anaconda-runtime/keymaps-override-*
287 %attr(755,root,root) %{_libdir}/anaconda-runtime/libunicode-lite.so.1
288 %dir %attr(755,root,root) %{_libdir}/anaconda-runtime/loader
289 %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/init
290 %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/loader
291 %{_libdir}/anaconda-runtime/loader/loader.tr
292 %{_libdir}/anaconda-runtime/loader/module-info
293 %{_libdir}/anaconda-runtime/loader/unicode-linedraw-chars.txt
294 %attr(755,root,root) %{_libdir}/anaconda-runtime/makestamp.py
295 %attr(755,root,root) %{_libdir}/anaconda-runtime/mapshdr
296 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images
297 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.i386
298 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ia64
299 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ppc
300 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.s390
301 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.x86_64
302 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-rescueimage.i386
303 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-rescueimage.ppc
304 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-rescueimage.x86_64
305 %attr(755,root,root) %{_libdir}/anaconda-runtime/moddeps
306 %attr(755,root,root) %{_libdir}/anaconda-runtime/modlist
307 %attr(755,root,root) %{_libdir}/anaconda-runtime/pkgorder
308 %attr(755,root,root) %{_libdir}/anaconda-runtime/pyisomd5sum.so
309 %attr(755,root,root) %{_libdir}/anaconda-runtime/pyrc.py
310 %attr(755,root,root) %{_libdir}/anaconda-runtime/pythondeps
311 %attr(755,root,root) %{_libdir}/anaconda-runtime/readmap
312 %attr(755,root,root) %{_libdir}/anaconda-runtime/scrubtree
313 %{_libdir}/anaconda-runtime/screenfont-*.gz
314 %attr(755,root,root) %{_libdir}/anaconda-runtime/splittree.py
315 %attr(755,root,root) %{_libdir}/anaconda-runtime/trimmodalias
316 %attr(755,root,root) %{_libdir}/anaconda-runtime/trimpciids
317 %attr(755,root,root) %{_libdir}/anaconda-runtime/upd-instroot
318 %attr(755,root,root) %{_libdir}/anaconda-runtime/yumcache
This page took 0.06169 seconds and 4 git commands to generate.