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