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