]> git.pld-linux.org Git - packages/anaconda.git/blob - anaconda.spec
- separate -gui
[packages/anaconda.git] / anaconda.spec
1 # TODO
2 # - kill /mnt/runtime symlink hacks (leave the host alone!)
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.78
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:  6b38a868585adfd3a96a4ad16973c1f8
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 Patch14:        %{name}-release_notes_viewer_gui.patch
47 URL:            http://fedora.redhat.com/projects/anaconda-installer/
48 BuildRequires:  bzip2-devel
49 BuildRequires:  device-mapper-devel >= 1.01.05
50 BuildRequires:  device-mapper-static
51 BuildRequires:  e2fsprogs-devel
52 BuildRequires:  gettext-devel >= 0.11
53 BuildRequires:  glibc-static
54 BuildRequires:  gtk+2-devel
55 BuildRequires:  kudzu-devel >= 1.2.0
56 BuildRequires:  libselinux-devel >= 1.6
57 BuildRequires:  libselinux-static
58 BuildRequires:  libsepol-devel
59 BuildRequires:  libsepol-static
60 BuildRequires:  newt-devel
61 BuildRequires:  newt-static
62 BuildRequires:  popt-devel
63 BuildRequires:  popt-static
64 BuildRequires:  pump-devel
65 BuildRequires:  pump-static >= 0.8.24-1
66 BuildRequires:  python-devel
67 BuildRequires:  python-rhpl
68 BuildRequires:  python-rpm
69 BuildRequires:  rpm-pythonprov
70 BuildRequires:  rpmbuild(macros) >= 1.234
71 BuildRequires:  sed >= 4.0
72 BuildRequires:  slang-static
73 BuildRequires:  zlib-devel
74 BuildRequires:  zlib-static
75 Requires:       /etc/pld-release
76 Requires:       device-mapper >= 1.01.05
77 Requires:       dosfstools
78 Requires:       e2fsprogs
79 Requires:       glibc-localedb-all
80 Requires:       grubby
81 Requires:       hfsutils
82 Requires:       jfsutils
83 Requires:       kudzu > 1.2.0
84 Requires:       lvm2
85 Requires:       mdadm
86 Requires:       python-booty >= 0.71-0.6
87 Requires:       python-devel-tools
88 Requires:       python-kickstart
89 Requires:       python-libxml2
90 Requires:       python-parted
91 Requires:       python-rhpl >= 0.176-1.1
92 Requires:       python-rpm >= 4.2-0.61
93 Requires:       python-snack
94 Requires:       python-urlgrabber >= 2.9.8
95 Requires:       reiserfsprogs
96 Requires:       xfsprogs
97 Requires:       yum >= 2.5.1-3
98 %ifnarch s390 s390x
99 Requires:       python-pyblock >= 0.7-1
100 %endif
101 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
102
103 %description
104 The anaconda package contains the program which can be used to install
105 system. These files are of little use on an already installed system.
106
107 %description -l pl
108 Pakiet anaconda zawiera program, którego mo¿na u¿yæ do zainstalowania
109 systemu. Pliki te maj± niewiele zastosowañ na ju¿ zainstalowanym
110 systemie.
111
112 %package gui
113 Summary:        Anaconda GTK+2 GUI
114 Group:          Applications/System
115 Requires:       %{name} = %{version}-%{release}
116 Requires:       X11-OpenGL-core
117 Requires:       X11-Xserver
118 Requires:       X11-fonts
119 Requires:       pirut
120 Requires:       python-gnome-canvas
121 Requires:       system-config-keyboard
122 #Requires:      system-logos
123 Requires:       vnc-utils
124 %ifnarch s390 s390x ppc64
125 Requires:       python-rhpxl >= 0.18-0.6
126 %endif
127
128 %description gui
129 Anaconda GUI portion.
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 Summary(pl):    Kod ¼ród³owy Anacondy
165 Group:          Applications/System
166 AutoReqProv:    false
167 Requires:       %{name} = %{version}-%{release}
168
169 %description debug
170 Anaconda sourcecode for debugging purposes.
171
172 %description debug -l pl
173 Kod ¼ród³owy Anacondy do celów diagnostycznych.
174
175 %prep
176 %setup -q
177 %patch0 -p1
178 %patch1 -p1
179 %patch2 -p1
180 %patch3 -p1
181 %patch4 -p1
182 %patch5 -p1
183 %patch6 -p1
184 %patch7 -p1
185 %patch8 -p1
186 %patch9 -p1
187 %patch10 -p1
188 %patch11 -p1
189 %patch12 -p1
190 %patch13 -p1
191 %patch14 -p1
192
193 rm -f po/no.po
194 mv -f po/{eu_ES,eu}.po
195
196 # we don't want this being visible, neither want we to kill it (the
197 # other's aren't valid anyway (outdated probably).
198 mv installclasses/fedora.py{,.orig}
199 # we want this install class ;)
200 cp %{SOURCE5} installclasses/pld.py
201
202 sed -i -e 's/$(PYTHON) scripts/python scripts/' Makefile
203
204 %build
205 # locale check
206 if [ "$(locale -a | grep -c en_US.utf8)" = 0 ]; then
207         echo >&2 "en_US.utf8 locale not available. build will fail!"
208         echo >&2 "Install glibc-localedb-all or compile it!"
209         exit 1
210 fi
211
212 %{__make} depend -j1 \
213         CC="%{__cc}"
214
215 %{__make} -j1 \
216         CC="%{__cc}" \
217         REALCC="%{__cc}" \
218         OPTFLAGS="%{rpmcflags}"
219
220 ./py-compile isys/isys.py
221
222 %install
223 rm -rf $RPM_BUILD_ROOT
224
225 %{__make} install \
226         DESTDIR=$RPM_BUILD_ROOT
227
228 install isys/isys.py[co] $RPM_BUILD_ROOT%{_libdir}/anaconda
229
230 cp %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images
231 cp %{SOURCE2} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/upd-instroot
232 cp %{SOURCE3} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images.i386
233 cp %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/scrubtree
234 cp %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/anaconda/splash.png
235
236 %find_lang %{name}
237
238 # hack so py_postclean would preserve it
239 install $RPM_BUILD_ROOT%{_libdir}/anaconda/iw/release_notes_viewer_gui{.py,}
240
241 %{!?debug:%py_postclean %{_libdir}/anaconda}
242
243 %clean
244 rm -rf $RPM_BUILD_ROOT
245
246 %files -f %{name}.lang
247 %defattr(644,root,root,755)
248 %doc docs/*
249 %attr(755,root,root) %{_sbindir}/anaconda
250 %dir %{_libdir}/anaconda
251 %{_libdir}/anaconda/*.py[co]
252 %exclude %{_libdir}/anaconda/xsetup.py[co]
253 %dir %{_libdir}/anaconda/installclasses
254 %{_libdir}/anaconda/installclasses/*.py[co]
255 %dir %{_libdir}/anaconda/textw
256 %{_libdir}/anaconda/textw/*.py[co]
257 %{_libdir}/anaconda/lang-names
258 %{_libdir}/anaconda/lang-table
259 %{_libdir}/anaconda/lang-table-kon
260 %attr(755,root,root) %{_libdir}/anaconda/_isys.so
261
262 %files gui
263 %defattr(644,root,root,755)
264 %attr(755,root,root) %{_bindir}/mini-wm
265 %attr(755,root,root) %{_libdir}/anaconda/iw/release_notes_viewer_gui
266 %attr(755,root,root) %{_libdir}/anaconda/xmouse.so
267 %attr(755,root,root) %{_libdir}/anaconda/xutils.so
268 %{_libdir}/anaconda/xsetup.py[co]
269 %dir %{_libdir}/anaconda/iw
270 %{_libdir}/anaconda/iw/*.py[co]
271 %{_datadir}/anaconda
272
273 %if %{!?debug:0}%{?debug:1}
274 %files debug
275 %defattr(644,root,root,755)
276 %{_libdir}/anaconda/*.py
277 %{_libdir}/anaconda/installclasses/*.py
278 %{_libdir}/anaconda/iw/*.py
279 %{_libdir}/anaconda/textw/*.py
280 %endif
281
282 %files runtime
283 %defattr(644,root,root,755)
284 %attr(755,root,root) %{_libdir}/anaconda/*-stub
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.088489 seconds and 4 git commands to generate.