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