]> git.pld-linux.org Git - packages/anaconda.git/blob - anaconda.spec
- require pump which is not built without -fPIC
[packages/anaconda.git] / anaconda.spec
1 %if 0
2 # FC to PLD deps replace rules, extracted from cvs logs
3 :%s#libxml2-python#python-libxml2#
4 :%s#pyparted#python-parted#
5 :%s#booty#python-booty#
6 :%s#rhpl#python-rhpl#
7 :%s#rhpxl#python-rhpxl#
8 :%s#rpm-python#python-rpm#
9 :%s#gtk2-devel#gtk+2-devel#
10 :%s#pykickstart#python-kickstart#
11 :%s#squashfs-tools#squashfs#
12 %endif
13 Summary:        Graphical system installer
14 Summary(pl):    Graficzny instalator systemu
15 Name:           anaconda
16 Version:        11.0.5
17 Release:        0.15
18 License:        GPL
19 Group:          Applications/System
20 Source0:        %{name}-%{version}.tar.bz2
21 # Source0-md5:  f814e7d0011dd44c3c3cf12b6ddb5b40
22 Source1:        %{name}-mk-images
23 Source2:        %{name}-upd-instroot
24 Source3:        %{name}-mk-images.i386
25 Source4:        %{name}-scrubtree
26 Patch0:         %{name}-pld.patch
27 Patch1:         %{name}-BUS_XEN.patch
28 Patch2:         %{name}-vserver-proc.patch
29 Patch3:         %{name}-pkgorder.patch
30 Patch4:         %{name}-errorhandling.patch
31 URL:            http://fedora.redhat.com/projects/anaconda-installer/
32 BuildRequires:  X11-devel
33 BuildRequires:  beecrypt-devel
34 BuildRequires:  bzip2-devel
35 BuildRequires:  device-mapper-devel >= 1.01.05
36 BuildRequires:  device-mapper-static >= 1.01.05
37 BuildRequires:  e2fsprogs-devel
38 BuildRequires:  elfutils-devel
39 BuildRequires:  gettext-devel >= 0.11
40 BuildRequires:  glibc-localedb-all
41 BuildRequires:  glibc-static
42 BuildRequires:  gtk+2-devel
43 BuildRequires:  intltool >= 0.31.2-3
44 BuildRequires:  kudzu-devel >= 1.2.0
45 BuildRequires:  libselinux-devel >= 1.6
46 BuildRequires:  libselinux-static
47 BuildRequires:  libsepol-devel
48 BuildRequires:  libsepol-static
49 BuildRequires:  newt-devel
50 BuildRequires:  newt-static
51 BuildRequires:  pango-devel
52 BuildRequires:  pciutils-devel
53 BuildRequires:  pirut
54 BuildRequires:  popt-static
55 BuildRequires:  pump-devel >= 0.8.24-1
56 BuildRequires:  pump-static >= 0.8.24-1
57 BuildRequires:  python-booty
58 BuildRequires:  python-devel
59 BuildRequires:  python-kickstart
60 BuildRequires:  python-libxml2
61 BuildRequires:  python-rhpl
62 BuildRequires:  python-rpm >= 4.2-0.61
63 BuildRequires:  python-urlgrabber
64 BuildRequires:  rpm-devel
65 BuildRequires:  rpm-pythonprov
66 BuildRequires:  rpmbuild(macros) >= 1.234
67 BuildRequires:  sed >= 4.0
68 BuildRequires:  slang-static
69 BuildRequires:  yum
70 BuildRequires:  zlib-devel
71 BuildRequires:  zlib-static
72 Requires:       anaconda-help
73 Requires:       device-mapper >= 1.01.05
74 Requires:       kudzu > 1.2.0
75 Requires:       parted >= 1.6.3-7
76 Requires:       pirut
77 Requires:       python-booty
78 Requires:       python-kickstart
79 Requires:       python-libxml2
80 Requires:       python-parted
81 Requires:       python-rhpl >= 0.170
82 Requires:       python-rhpxl >= 0.18
83 Requires:       python-rpm >= 4.2-0.61
84 Requires:       python-snack
85 Requires:       python-urlgrabber
86 #Requires:      system-logos
87 Requires:       yum >= 2.5.1-3
88 %ifnarch s390 s390x
89 Requires:       python-pyblock >= 0.7-1
90 %endif
91 %ifnarch s390 s390x ppc64
92 Requires:       python-rhpxl
93 %endif
94 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
95
96 %description
97 The anaconda package contains the program which can be used to install
98 system. These files are of little use on an already installed system.
99
100 %description -l pl
101 Pakiet anaconda zawiera program, którego mo¿na u¿yæ do zainstalowania
102 systemu. Pliki te maj± niewiele zastosowañ na ju¿ zainstalowanym
103 systemie.
104
105 %package runtime
106 Summary:        Graphical system installer portions needed only for fresh installs
107 Summary(pl):    Elementy graficznego instalatora systemu potrzebne tylko przy nowych instalacjach
108 Group:          Applications/System
109 AutoReqProv:    false
110 Requires:       %{name} = %{version}-%{release}
111 Requires:       /usr/bin/strip
112 Requires:       X11
113 Requires:       createrepo >= 0.4.3
114 Requires:       gawk
115 Requires:       glibc >= 6:2.3.6-5.1
116 Requires:       kbd
117 Requires:       policycoreutils >= 1.30
118 Requires:       python
119 Requires:       python-libxml2
120 Requires:       python-rpm >= 4.2-0.61
121 Requires:       squashfs
122 Requires:       yum >= 2.4.0
123
124 %description runtime
125 The anaconda-runtime package contains parts of the installation system
126 which are needed for installing new systems. These files are used to
127 build media sets, but are not meant for use on already installed
128 systems.
129
130 %description runtime -l pl
131 Pakiet anaconda-runtime zawiera elementy instalatora potrzebne tylko
132 do instalowania nowych systemów. Pliki te s³u¿± do tworzenia zestawu
133 no¶ników, nie s± przewidziane do u¿ywania na ju¿ zainstalowanych
134 systemach.
135
136 %prep
137 %setup -q
138 %patch0 -p1
139 %patch1 -p1
140 %patch2 -p1
141 %patch3 -p1
142 %patch4 -p1
143
144 rm -f po/no.po
145 mv -f po/{eu_ES,eu}.po
146
147 sed -i -e 's/$(PYTHON) scripts/python scripts/' Makefile
148
149 %build
150 # locale check
151 if [ "$(locale -a | grep -c en_US.utf8)" = 0 ]; then
152         echo >&2 "en_US.utf8 locale not available. build will fail!"
153         echo >&2 "Install glibc-localedb-all or compile it!"
154         exit 1
155 fi
156
157 %{__make} depend
158 %{__make} \
159         RPM_OPT_FLAGS="%{rpmcflags}"
160
161 %install
162 rm -rf $RPM_BUILD_ROOT
163
164 %{__make} install \
165         DESTDIR=$RPM_BUILD_ROOT
166
167 cp %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images
168 cp %{SOURCE2} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/upd-instroot
169 cp %{SOURCE3} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images.i386
170 cp %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/scrubtree
171
172 %find_lang %{name}
173 %py_postclean %{_libdir}/anaconda
174
175 %clean
176 rm -rf $RPM_BUILD_ROOT
177
178 %files -f %{name}.lang
179 %defattr(644,root,root,755)
180 %doc docs/command-line.txt
181 %doc docs/install-methods.txt
182 %doc docs/kickstart-docs.txt
183 %doc docs/mediacheck.txt
184 %doc docs/anaconda-release-notes.txt
185 %attr(755,root,root) %{_bindir}/mini-wm
186 %attr(755,root,root) %{_sbindir}/anaconda
187 %{_datadir}/anaconda
188 %{_libdir}/anaconda
189
190 %files runtime
191 %defattr(644,root,root,755)
192 %dir %{_libdir}/anaconda-runtime
193 %dir %attr(755,root,root) %{_libdir}/anaconda-runtime/boot
194 %attr(755,root,root) %{_libdir}/anaconda-runtime/boot/syslinux.cfg
195 %{_libdir}/anaconda-runtime/boot/boot.msg
196 %{_libdir}/anaconda-runtime/boot/general.msg
197 %{_libdir}/anaconda-runtime/boot/options.msg
198 %{_libdir}/anaconda-runtime/boot/param.msg
199 %{_libdir}/anaconda-runtime/boot/rescue.msg
200 %attr(755,root,root) %{_libdir}/anaconda-runtime/buildinstall
201 %attr(755,root,root) %{_libdir}/anaconda-runtime/checkisomd5
202 %attr(755,root,root) %{_libdir}/anaconda-runtime/filtermoddeps
203 %attr(755,root,root) %{_libdir}/anaconda-runtime/fixmtime.py
204 %attr(755,root,root) %{_libdir}/anaconda-runtime/getkeymaps
205 %attr(755,root,root) %{_libdir}/anaconda-runtime/implantisomd5
206 %{_libdir}/anaconda-runtime/keymaps-override-i386
207 %attr(755,root,root) %{_libdir}/anaconda-runtime/libunicode-lite.so.1
208 %dir %attr(755,root,root) %{_libdir}/anaconda-runtime/loader
209 %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/init
210 %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/loader
211 %{_libdir}/anaconda-runtime/loader/loader.tr
212 %{_libdir}/anaconda-runtime/loader/module-info
213 %{_libdir}/anaconda-runtime/loader/unicode-linedraw-chars.txt
214 %attr(755,root,root) %{_libdir}/anaconda-runtime/makestamp.py
215 %attr(755,root,root) %{_libdir}/anaconda-runtime/mapshdr
216 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images
217 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.i386
218 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ia64
219 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ppc
220 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.s390
221 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.x86_64
222 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-rescueimage.i386
223 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-rescueimage.ppc
224 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-rescueimage.x86_64
225 %attr(755,root,root) %{_libdir}/anaconda-runtime/moddeps
226 %attr(755,root,root) %{_libdir}/anaconda-runtime/modlist
227 %attr(755,root,root) %{_libdir}/anaconda-runtime/pkgorder
228 %attr(755,root,root) %{_libdir}/anaconda-runtime/pyisomd5sum.so
229 %attr(755,root,root) %{_libdir}/anaconda-runtime/pyrc.py
230 %attr(755,root,root) %{_libdir}/anaconda-runtime/pythondeps
231 %attr(755,root,root) %{_libdir}/anaconda-runtime/readmap
232 %attr(755,root,root) %{_libdir}/anaconda-runtime/scrubtree
233 %{_libdir}/anaconda-runtime/screenfont-i386.gz
234 %attr(755,root,root) %{_libdir}/anaconda-runtime/splittree.py
235 %attr(755,root,root) %{_libdir}/anaconda-runtime/trimmodalias
236 %attr(755,root,root) %{_libdir}/anaconda-runtime/trimpciids
237 %attr(755,root,root) %{_libdir}/anaconda-runtime/upd-instroot
238 %attr(755,root,root) %{_libdir}/anaconda-runtime/yumcache
This page took 0.058033 seconds and 4 git commands to generate.