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