98e69ca136c8357fea628c97f1d2205ecde82b58
[packages/anaconda.git] / anaconda.spec
1 # TODO
2 # - code poldek backend (python-poldek pkg exists!)
3 #
4 %define         rel     200811102255
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:  7fce1561f643be8bef2ebd9e3a513117
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:  dbus-devel
21 BuildRequires:  device-mapper-devel >= 1.01.05
22 BuildRequires:  e2fsprogs-devel
23 BuildRequires:  gettext-devel >= 0.11
24 BuildRequires:  glib2-devel
25 BuildRequires:  gtk+2-devel
26 BuildRequires:  isomd5sum-devel
27 BuildRequires:  libdhcp-devel
28 BuildRequires:  libdhcp4client-devel
29 BuildRequires:  libdhcp6client-devel
30 BuildRequires:  libnl-devel
31 BuildRequires:  libselinux-devel >= 1.6
32 BuildRequires:  libsepol-devel
33 BuildRequires:  newt-devel
34 BuildRequires:  popt-devel
35 BuildRequires:  python-devel
36 BuildRequires:  python-kickstart >= 1.44
37 BuildRequires:  python-rhpl
38 BuildRequires:  python-rpm
39 BuildRequires:  rpm-pythonprov
40 BuildRequires:  rpmbuild(macros) >= 1.234
41 BuildRequires:  sed >= 4.0
42 BuildRequires:  slang-devel
43 BuildRequires:  zlib-devel
44 Requires:       /etc/pld-release
45 Requires:       NetworkManager
46 Requires:       bdevid
47 Requires:       cryptsetup-luks
48 Requires:       device-mapper >= 1.01.05
49 Requires:       dosfstools
50 Requires:       e2fsprogs
51 Requires:       grubby
52 Requires:       hal
53 Requires:       hfsutils
54 Requires:       jfsutils
55 Requires:       lvm2
56 Requires:       mdadm
57 Requires:       pci-database
58 Requires:       python-bdevid >= 6.0.24
59 Requires:       python-booty >= 0.93-4
60 Requires:       python-cracklib
61 Requires:       python-dbus
62 Requires:       python-devel-tools
63 Requires:       python-iniparse
64 Requires:       python-kickstart >= 1.44
65 Requires:       python-libuser
66 Requires:       python-libxml2
67 Requires:       python-parted >= 1.8.9
68 Requires:       python-pyblock >= 0.32
69 Requires:       python-rhpl >= 0.216
70 Requires:       python-rpm >= 4.2-0.61
71 Requires:       python-selinux
72 Requires:       python-snack
73 Requires:       python-urlgrabber >= 2.9.8
74 Requires:       reiserfsprogs
75 Requires:       system-config-date >= 1.9.17
76 Requires:       tzdata
77 Requires:       util-linux
78 Requires:       xfsprogs
79 Requires:       yum >= 3.2.19
80 %ifnarch s390 s390x
81 Requires:       python-pyblock >= 0.7-1
82 %endif
83 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
84
85 %description
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
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
92 systemie.
93
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
101 Requires:       python-gnome-canvas
102 Requires:       python-pygtk-glade
103 Requires:       system-config-date
104 Requires:       system-config-keyboard
105
106 %description gui
107 Anaconda GUI portion.
108
109 %package runtime
110 Summary:        Graphical system installer portions needed only for fresh installs
111 Summary(pl.UTF-8):      Elementy graficznego instalatora systemu potrzebne tylko przy nowych instalacjach
112 Group:          Applications/System
113 AutoReqProv:    false
114 Requires:       %{name} = %{version}-%{release}
115 Requires:       /usr/bin/strip
116 Requires:       X11
117 Requires:       createrepo >= 0.4.3
118 Requires:       gawk
119 Requires:       glibc >= 6:2.3.6-5.1
120 Requires:       kbd
121 Requires:       policycoreutils >= 1.30
122 Requires:       python
123 Requires:       python-libxml2
124 Requires:       python-rpm >= 4.2-0.61
125 Requires:       squashfs
126 Requires:       yum >= 3.2.19
127
128 %description runtime
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.
133
134 %description runtime -l pl.UTF-8
135 Pakiet anaconda-runtime zawiera elementy instalatora potrzebne tylko
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
138 systemach.
139
140 %package debug
141 Summary:        Sourcecode for Anaconda
142 Summary(pl.UTF-8):      Kod źródłowy Anacondy
143 Group:          Applications/System
144 AutoReqProv:    false
145 Requires:       %{name} = %{version}-%{release}
146
147 %description debug
148 Anaconda sourcecode for debugging purposes.
149
150 %description debug -l pl.UTF-8
151 Kod źródłowy Anacondy do celów diagnostycznych.
152
153 %prep
154 %setup -q -n %{name}-%{rel}
155
156 %build
157 %{__make} depend -j1 \
158         PYTHON="%{__python}" \
159         PYTHONINCLUDE="%{py_incdir}" \
160         CC="%{__cc}"
161
162 %{__make} -j1 \
163         PYTHON="%{__python}" \
164         PYTHONINCLUDE="%{py_incdir}" \
165         CC="%{__cc}" \
166         REALCC="%{__cc}" \
167         OPTFLAGS="%{rpmcflags}"
168
169 ./py-compile isys/isys.py
170
171 %install
172 rm -rf $RPM_BUILD_ROOT
173
174 %{__make} install \
175         DESTDIR=$RPM_BUILD_ROOT
176
177 install isys/isys.py[co] $RPM_BUILD_ROOT%{_libdir}/anaconda
178
179 # for ./isys/lang.c:isysLoadKeymap()
180 %ifarch %{ix86}
181 cp -a loader/keymaps-i386 $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz
182 %endif
183 %ifarch ppc
184 cp -a loader/keymaps-ppc $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz
185 %endif
186 %ifarch %{x8664}
187 cp -a loader/keymaps-x86_64 $RPM_BUILD_ROOT%{_sysconfdir}/keymaps.gz
188 %endif
189
190 %find_lang %{name}
191
192 %{!?debug:%py_postclean %{_libdir}/anaconda}
193
194 %clean
195 rm -rf $RPM_BUILD_ROOT
196
197 %files -f %{name}.lang
198 %defattr(644,root,root,755)
199 %doc docs/*
200 %{_sysconfdir}/keymaps.gz
201 /etc/security/console.apps/liveinst
202 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/liveinst
203 %attr(755,root,root) %{_sbindir}/anaconda
204 %attr(755,root,root) %{_sbindir}/liveinst
205 %ifnarch ppc
206 %attr(755,root,root) %{_sbindir}/gptsync
207 %attr(755,root,root) %{_sbindir}/showpart
208 %endif
209 %dir %{_libdir}/anaconda
210 %{_libdir}/anaconda/*.py[co]
211 %dir %{_libdir}/anaconda/installclasses
212 %{_libdir}/anaconda/installclasses/*.py[co]
213 %dir %{_libdir}/anaconda/textw
214 %{_libdir}/anaconda/textw/*.py[co]
215 %{_libdir}/anaconda/lang-names
216 %{_libdir}/anaconda/lang-table
217 %attr(755,root,root) %{_libdir}/anaconda/_isys.so
218
219 %files gui
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_bindir}/mini-wm
222 %attr(755,root,root) %{_libdir}/anaconda/xutils.so
223 %{_desktopdir}/liveinst.desktop
224 %dir %{_libdir}/anaconda/iw
225 %{_libdir}/anaconda/iw/*.py[co]
226 %{_datadir}/anaconda
227
228 %if %{!?debug:0}%{?debug:1}
229 %files debug
230 %defattr(644,root,root,755)
231 %{_libdir}/anaconda/*.py
232 %{_libdir}/anaconda/installclasses/*.py
233 %{_libdir}/anaconda/iw/*.py
234 %{_libdir}/anaconda/textw/*.py
235 %endif
236
237 %files runtime
238 %defattr(644,root,root,755)
239 %attr(755,root,root) %{_libdir}/anaconda/*-stub
240 %dir %{_libdir}/anaconda-runtime
241 %dir %{_libdir}/anaconda-runtime/boot
242 %ifnarch ppc
243 %{_libdir}/anaconda-runtime/boot/boot.msg
244 %{_libdir}/anaconda-runtime/boot/general.msg
245 %{_libdir}/anaconda-runtime/boot/grub.conf
246 %{_libdir}/anaconda-runtime/boot/options.msg
247 %{_libdir}/anaconda-runtime/boot/param.msg
248 %{_libdir}/anaconda-runtime/boot/rescue.msg
249 %{_libdir}/anaconda-runtime/boot/syslinux.cfg
250 %else
251 %{_libdir}/anaconda-runtime/boot/bootinfo.txt
252 %{_libdir}/anaconda-runtime/boot/magic
253 %{_libdir}/anaconda-runtime/boot/mapping
254 %{_libdir}/anaconda-runtime/boot/ofboot.b
255 %{_libdir}/anaconda-runtime/boot/yaboot.conf.3264
256 %{_libdir}/anaconda-runtime/boot/yaboot.conf.in
257 %endif
258 %attr(755,root,root) %{_libdir}/anaconda-runtime/buildinstall
259 %attr(755,root,root) %{_libdir}/anaconda-runtime/buildinstall.functions
260 %attr(755,root,root) %{_libdir}/anaconda-runtime/genmodinfo
261 %attr(755,root,root) %{_libdir}/anaconda-runtime/getkeymaps
262 %{_libdir}/anaconda-runtime/keymaps-override-*
263 %dir %{_libdir}/anaconda-runtime/loader
264 %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/init
265 %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/loader
266 %{_libdir}/anaconda-runtime/loader/loader.tr
267 %{_libdir}/anaconda-runtime/loader/unicode-linedraw-chars.txt
268 %attr(755,root,root) %{_libdir}/anaconda-runtime/makestamp.py
269 %attr(755,root,root) %{_libdir}/anaconda-runtime/maketreeinfo.py
270 %attr(755,root,root) %{_libdir}/anaconda-runtime/mapshdr
271 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images
272 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.alpha
273 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ia64
274 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.efi
275 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ppc
276 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.s390
277 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.x86
278 %attr(755,root,root) %{_libdir}/anaconda-runtime/modlist
279 %attr(755,root,root) %{_libdir}/anaconda-runtime/pyrc.py
280 %attr(755,root,root) %{_libdir}/anaconda-runtime/readmap
281 %attr(755,root,root) %{_libdir}/anaconda-runtime/scrubtree
282 %{_libdir}/anaconda-runtime/screenfont-*.gz
283 %attr(755,root,root) %{_libdir}/anaconda-runtime/trimpciids
284 %attr(755,root,root) %{_libdir}/anaconda-runtime/upd-instroot
285 %attr(755,root,root) %{_libdir}/anaconda-runtime/upd-updates
This page took 0.091949 seconds and 2 git commands to generate.