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