]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - code poldek backend (python-poldek pkg exists!) | |
3 | # | |
4 | %define rel 200809160017 | |
5 | Summary: Graphical system installer | |
6 | Summary(pl.UTF-8): Graficzny instalator systemu | |
7 | Name: anaconda | |
8 | Version: 11.4.1.%{rel} | |
9 | Release: 1 | |
10 | License: GPL | |
11 | Group: Applications/System | |
12 | # http://team.pld-linux.org/~patrys/anaconda.git - origin/pld-branch | |
13 | Source0: %{name}-%{rel}.tar.bz2 | |
14 | # Source0-md5: 86408067e5df37edf1e26e1eef73dd56 | |
15 | URL: http://fedoraproject.org/wiki/Anaconda | |
16 | BuildRequires: NetworkManager-devel | |
17 | BuildRequires: audit-libs-devel | |
18 | # will kill it in the future | |
19 | BuildRequires: curl | |
20 | BuildRequires: device-mapper-devel >= 1.01.05 | |
21 | BuildRequires: e2fsprogs-devel | |
22 | BuildRequires: gettext-devel >= 0.11 | |
23 | BuildRequires: glib2-devel | |
24 | BuildRequires: gtk+2-devel | |
25 | BuildRequires: isomd5sum-devel | |
26 | BuildRequires: libdhcp-devel | |
27 | BuildRequires: libdhcp4client-devel | |
28 | BuildRequires: libdhcp6client-devel | |
29 | BuildRequires: libnl-devel | |
30 | BuildRequires: libselinux-devel >= 1.6 | |
31 | BuildRequires: libsepol-devel | |
32 | BuildRequires: newt-devel | |
33 | BuildRequires: popt-devel | |
34 | BuildRequires: python-devel | |
35 | BuildRequires: python-kickstart >= 1.42 | |
36 | BuildRequires: python-rhpl | |
37 | BuildRequires: python-rpm | |
38 | BuildRequires: rpm-pythonprov | |
39 | BuildRequires: rpmbuild(macros) >= 1.234 | |
40 | BuildRequires: sed >= 4.0 | |
41 | BuildRequires: slang-devel | |
42 | BuildRequires: zlib-devel | |
43 | Requires: /etc/pld-release | |
44 | Requires: NetworkManager | |
45 | Requires: bdevid | |
46 | Requires: device-mapper >= 1.01.05 | |
47 | Requires: dosfstools | |
48 | Requires: e2fsprogs | |
49 | Requires: grubby | |
50 | Requires: hal | |
51 | Requires: hfsutils | |
52 | Requires: jfsutils | |
53 | Requires: lvm2 | |
54 | Requires: mdadm | |
55 | Requires: pci-database | |
56 | Requires: python-bdevid >= 6.0.24 | |
57 | Requires: python-booty >= 0.93-4 | |
58 | Requires: python-cracklib | |
59 | Requires: python-dbus | |
60 | Requires: python-devel-tools | |
61 | Requires: python-iniparse | |
62 | Requires: python-kickstart >= 1.42 | |
63 | Requires: python-libuser | |
64 | Requires: python-libxml2 | |
65 | Requires: python-parted >= 1.8.9 | |
66 | Requires: python-rhpl >= 0.216 | |
67 | Requires: python-rpm >= 4.2-0.61 | |
68 | Requires: python-selinux | |
69 | Requires: python-snack | |
70 | Requires: python-urlgrabber >= 2.9.8 | |
71 | Requires: reiserfsprogs | |
72 | Requires: system-config-date >= 1.9.17 | |
73 | Requires: tzdata | |
74 | Requires: util-linux | |
75 | Requires: xfsprogs | |
76 | Requires: yum >= 3.2.19 | |
77 | %ifnarch s390 s390x | |
78 | Requires: python-pyblock >= 0.7-1 | |
79 | %endif | |
80 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
81 | ||
82 | %description | |
83 | The anaconda package contains the program which can be used to install | |
84 | system. These files are of little use on an already installed system. | |
85 | ||
86 | %description -l pl.UTF-8 | |
87 | Pakiet anaconda zawiera program, którego można użyć do zainstalowania | |
88 | systemu. Pliki te mają niewiele zastosowań na już zainstalowanym | |
89 | systemie. | |
90 | ||
91 | %package gui | |
92 | Summary: Anaconda GTK+2 GUI | |
93 | Group: Applications/System | |
94 | Requires: %{name} = %{version}-%{release} | |
95 | Requires: X11-OpenGL-core | |
96 | Requires: X11-Xserver | |
97 | Requires: X11-fonts | |
98 | Requires: python-gnome-canvas | |
99 | Requires: python-pygtk-glade | |
100 | Requires: system-config-date | |
101 | Requires: system-config-keyboard | |
102 | ||
103 | %description gui | |
104 | Anaconda GUI portion. | |
105 | ||
106 | %package runtime | |
107 | Summary: Graphical system installer portions needed only for fresh installs | |
108 | Summary(pl.UTF-8): Elementy graficznego instalatora systemu potrzebne tylko przy nowych instalacjach | |
109 | Group: Applications/System | |
110 | AutoReqProv: false | |
111 | Requires: %{name} = %{version}-%{release} | |
112 | Requires: /usr/bin/strip | |
113 | Requires: X11 | |
114 | Requires: createrepo >= 0.4.3 | |
115 | Requires: gawk | |
116 | Requires: glibc >= 6:2.3.6-5.1 | |
117 | Requires: kbd | |
118 | Requires: policycoreutils >= 1.30 | |
119 | Requires: python | |
120 | Requires: python-libxml2 | |
121 | Requires: python-rpm >= 4.2-0.61 | |
122 | Requires: squashfs | |
123 | Requires: yum >= 3.2.19 | |
124 | ||
125 | %description runtime | |
126 | The anaconda-runtime package contains parts of the installation system | |
127 | which are needed for installing new systems. These files are used to | |
128 | build media sets, but are not meant for use on already installed | |
129 | systems. | |
130 | ||
131 | %description runtime -l pl.UTF-8 | |
132 | Pakiet anaconda-runtime zawiera elementy instalatora potrzebne tylko | |
133 | do instalowania nowych systemów. Pliki te służą do tworzenia zestawu | |
134 | nośników, nie są przewidziane do używania na już zainstalowanych | |
135 | systemach. | |
136 | ||
137 | %package debug | |
138 | Summary: Sourcecode for Anaconda | |
139 | Summary(pl.UTF-8): Kod źródłowy Anacondy | |
140 | Group: Applications/System | |
141 | AutoReqProv: false | |
142 | Requires: %{name} = %{version}-%{release} | |
143 | ||
144 | %description debug | |
145 | Anaconda sourcecode for debugging purposes. | |
146 | ||
147 | %description debug -l pl.UTF-8 | |
148 | Kod źródłowy Anacondy do celów diagnostycznych. | |
149 | ||
150 | %prep | |
151 | %setup -q -n %{name}-%{rel} | |
152 | ||
153 | %build | |
154 | %{__make} depend -j1 \ | |
155 | PYTHON="%{__python}" \ | |
156 | PYTHONINCLUDE="%{py_incdir}" \ | |
157 | CC="%{__cc}" | |
158 | ||
159 | %{__make} -j1 \ | |
160 | PYTHON="%{__python}" \ | |
161 | PYTHONINCLUDE="%{py_incdir}" \ | |
162 | CC="%{__cc}" \ | |
163 | REALCC="%{__cc}" \ | |
164 | OPTFLAGS="%{rpmcflags}" | |
165 | ||
166 | ./py-compile isys/isys.py | |
167 | ||
168 | %install | |
169 | rm -rf $RPM_BUILD_ROOT | |
170 | ||
171 | %{__make} install \ | |
172 | DESTDIR=$RPM_BUILD_ROOT | |
173 | ||
174 | install isys/isys.py[co] $RPM_BUILD_ROOT%{_libdir}/anaconda | |
175 | ||
176 | # for ./isys/lang.c:isysLoadKeymap() | |
177 | %ifarch %{ix86} | |
178 | cp -a loader/keymaps-i386 $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz | |
179 | %endif | |
180 | %ifarch ppc | |
181 | cp -a loader/keymaps-ppc $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz | |
182 | %endif | |
183 | %ifarch %{x8664} | |
184 | cp -a loader/keymaps-x86_64 $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz | |
185 | %endif | |
186 | ||
187 | %find_lang %{name} | |
188 | ||
189 | %{!?debug:%py_postclean %{_libdir}/anaconda} | |
190 | ||
191 | %clean | |
192 | rm -rf $RPM_BUILD_ROOT | |
193 | ||
194 | %files -f %{name}.lang | |
195 | %defattr(644,root,root,755) | |
196 | %doc docs/* | |
197 | %{_sysconfdir}/keymaps.gz | |
198 | /etc/security/console.apps/liveinst | |
199 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/liveinst | |
200 | %attr(755,root,root) %{_sbindir}/anaconda | |
201 | %attr(755,root,root) %{_sbindir}/liveinst | |
202 | %ifnarch ppc | |
203 | %attr(755,root,root) %{_sbindir}/gptsync | |
204 | %attr(755,root,root) %{_sbindir}/showpart | |
205 | %endif | |
206 | %dir %{_libdir}/anaconda | |
207 | %{_libdir}/anaconda/*.py[co] | |
208 | %dir %{_libdir}/anaconda/installclasses | |
209 | %{_libdir}/anaconda/installclasses/*.py[co] | |
210 | %dir %{_libdir}/anaconda/textw | |
211 | %{_libdir}/anaconda/textw/*.py[co] | |
212 | %{_libdir}/anaconda/lang-names | |
213 | %{_libdir}/anaconda/lang-table | |
214 | %attr(755,root,root) %{_libdir}/anaconda/_isys.so | |
215 | ||
216 | %files gui | |
217 | %defattr(644,root,root,755) | |
218 | %attr(755,root,root) %{_bindir}/mini-wm | |
219 | %attr(755,root,root) %{_libdir}/anaconda/xutils.so | |
220 | %{_desktopdir}/liveinst.desktop | |
221 | %dir %{_libdir}/anaconda/iw | |
222 | %{_libdir}/anaconda/iw/*.py[co] | |
223 | %{_datadir}/anaconda | |
224 | ||
225 | %if %{!?debug:0}%{?debug:1} | |
226 | %files debug | |
227 | %defattr(644,root,root,755) | |
228 | %{_libdir}/anaconda/*.py | |
229 | %{_libdir}/anaconda/installclasses/*.py | |
230 | %{_libdir}/anaconda/iw/*.py | |
231 | %{_libdir}/anaconda/textw/*.py | |
232 | %endif | |
233 | ||
234 | %files runtime | |
235 | %defattr(644,root,root,755) | |
236 | %attr(755,root,root) %{_libdir}/anaconda/*-stub | |
237 | %dir %{_libdir}/anaconda-runtime | |
238 | %dir %{_libdir}/anaconda-runtime/boot | |
239 | %ifnarch ppc | |
240 | %{_libdir}/anaconda-runtime/boot/boot.msg | |
241 | %{_libdir}/anaconda-runtime/boot/general.msg | |
242 | %{_libdir}/anaconda-runtime/boot/grub.conf | |
243 | %{_libdir}/anaconda-runtime/boot/options.msg | |
244 | %{_libdir}/anaconda-runtime/boot/param.msg | |
245 | %{_libdir}/anaconda-runtime/boot/rescue.msg | |
246 | %{_libdir}/anaconda-runtime/boot/syslinux.cfg | |
247 | %else | |
248 | %{_libdir}/anaconda-runtime/boot/bootinfo.txt | |
249 | %{_libdir}/anaconda-runtime/boot/magic | |
250 | %{_libdir}/anaconda-runtime/boot/mapping | |
251 | %{_libdir}/anaconda-runtime/boot/ofboot.b | |
252 | %{_libdir}/anaconda-runtime/boot/yaboot.conf.3264 | |
253 | %{_libdir}/anaconda-runtime/boot/yaboot.conf.in | |
254 | %endif | |
255 | %attr(755,root,root) %{_libdir}/anaconda-runtime/buildinstall | |
256 | %attr(755,root,root) %{_libdir}/anaconda-runtime/buildinstall.functions | |
257 | %attr(755,root,root) %{_libdir}/anaconda-runtime/genmodinfo | |
258 | %attr(755,root,root) %{_libdir}/anaconda-runtime/getkeymaps | |
259 | %{_libdir}/anaconda-runtime/keymaps-override-* | |
260 | %dir %{_libdir}/anaconda-runtime/loader | |
261 | %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/init | |
262 | %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/loader | |
263 | %{_libdir}/anaconda-runtime/loader/loader.tr | |
264 | %{_libdir}/anaconda-runtime/loader/unicode-linedraw-chars.txt | |
265 | %attr(755,root,root) %{_libdir}/anaconda-runtime/makestamp.py | |
266 | %attr(755,root,root) %{_libdir}/anaconda-runtime/maketreeinfo.py | |
267 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mapshdr | |
268 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images | |
269 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.alpha | |
270 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ia64 | |
271 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.efi | |
272 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ppc | |
273 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.s390 | |
274 | %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.x86 | |
275 | %attr(755,root,root) %{_libdir}/anaconda-runtime/modlist | |
276 | %attr(755,root,root) %{_libdir}/anaconda-runtime/pyrc.py | |
277 | %attr(755,root,root) %{_libdir}/anaconda-runtime/readmap | |
278 | %attr(755,root,root) %{_libdir}/anaconda-runtime/scrubtree | |
279 | %{_libdir}/anaconda-runtime/screenfont-*.gz | |
280 | %attr(755,root,root) %{_libdir}/anaconda-runtime/trimpciids | |
281 | %attr(755,root,root) %{_libdir}/anaconda-runtime/upd-instroot | |
282 | %attr(755,root,root) %{_libdir}/anaconda-runtime/upd-updates |