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