]> git.pld-linux.org Git - packages/anaconda.git/blob - anaconda.spec
- anaconda-help not required upstream
[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:       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 %patch5 -p1
144
145 rm -f po/no.po
146 mv -f po/{eu_ES,eu}.po
147
148 sed -i -e 's/$(PYTHON) scripts/python scripts/' Makefile
149
150 %build
151 # locale check
152 if [ "$(locale -a | grep -c en_US.utf8)" = 0 ]; then
153         echo >&2 "en_US.utf8 locale not available. build will fail!"
154         echo >&2 "Install glibc-localedb-all or compile it!"
155         exit 1
156 fi
157
158 %{__make} depend
159 %{__make} \
160         RPM_OPT_FLAGS="%{rpmcflags}"
161
162 %install
163 rm -rf $RPM_BUILD_ROOT
164
165 %{__make} install \
166         DESTDIR=$RPM_BUILD_ROOT
167
168 cp %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images
169 cp %{SOURCE2} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/upd-instroot
170 cp %{SOURCE3} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images.i386
171 cp %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/scrubtree
172
173 %find_lang %{name}
174 %py_postclean %{_libdir}/anaconda
175
176 %clean
177 rm -rf $RPM_BUILD_ROOT
178
179 %files -f %{name}.lang
180 %defattr(644,root,root,755)
181 %doc docs/command-line.txt
182 %doc docs/install-methods.txt
183 %doc docs/kickstart-docs.txt
184 %doc docs/mediacheck.txt
185 %doc docs/anaconda-release-notes.txt
186 %attr(755,root,root) %{_bindir}/mini-wm
187 %attr(755,root,root) %{_sbindir}/anaconda
188 %{_datadir}/anaconda
189 %{_libdir}/anaconda
190
191 %files runtime
192 %defattr(644,root,root,755)
193 %dir %{_libdir}/anaconda-runtime
194 %dir %attr(755,root,root) %{_libdir}/anaconda-runtime/boot
195 %attr(755,root,root) %{_libdir}/anaconda-runtime/boot/syslinux.cfg
196 %{_libdir}/anaconda-runtime/boot/boot.msg
197 %{_libdir}/anaconda-runtime/boot/general.msg
198 %{_libdir}/anaconda-runtime/boot/options.msg
199 %{_libdir}/anaconda-runtime/boot/param.msg
200 %{_libdir}/anaconda-runtime/boot/rescue.msg
201 %attr(755,root,root) %{_libdir}/anaconda-runtime/buildinstall
202 %attr(755,root,root) %{_libdir}/anaconda-runtime/checkisomd5
203 %attr(755,root,root) %{_libdir}/anaconda-runtime/filtermoddeps
204 %attr(755,root,root) %{_libdir}/anaconda-runtime/fixmtime.py
205 %attr(755,root,root) %{_libdir}/anaconda-runtime/getkeymaps
206 %attr(755,root,root) %{_libdir}/anaconda-runtime/implantisomd5
207 %{_libdir}/anaconda-runtime/keymaps-override-*
208 %attr(755,root,root) %{_libdir}/anaconda-runtime/libunicode-lite.so.1
209 %dir %attr(755,root,root) %{_libdir}/anaconda-runtime/loader
210 %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/init
211 %attr(755,root,root) %{_libdir}/anaconda-runtime/loader/loader
212 %{_libdir}/anaconda-runtime/loader/loader.tr
213 %{_libdir}/anaconda-runtime/loader/module-info
214 %{_libdir}/anaconda-runtime/loader/unicode-linedraw-chars.txt
215 %attr(755,root,root) %{_libdir}/anaconda-runtime/makestamp.py
216 %attr(755,root,root) %{_libdir}/anaconda-runtime/mapshdr
217 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images
218 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.i386
219 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ia64
220 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.ppc
221 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.s390
222 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-images.x86_64
223 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-rescueimage.i386
224 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-rescueimage.ppc
225 %attr(755,root,root) %{_libdir}/anaconda-runtime/mk-rescueimage.x86_64
226 %attr(755,root,root) %{_libdir}/anaconda-runtime/moddeps
227 %attr(755,root,root) %{_libdir}/anaconda-runtime/modlist
228 %attr(755,root,root) %{_libdir}/anaconda-runtime/pkgorder
229 %attr(755,root,root) %{_libdir}/anaconda-runtime/pyisomd5sum.so
230 %attr(755,root,root) %{_libdir}/anaconda-runtime/pyrc.py
231 %attr(755,root,root) %{_libdir}/anaconda-runtime/pythondeps
232 %attr(755,root,root) %{_libdir}/anaconda-runtime/readmap
233 %attr(755,root,root) %{_libdir}/anaconda-runtime/scrubtree
234 %{_libdir}/anaconda-runtime/screenfont-*.gz
235 %attr(755,root,root) %{_libdir}/anaconda-runtime/splittree.py
236 %attr(755,root,root) %{_libdir}/anaconda-runtime/trimmodalias
237 %attr(755,root,root) %{_libdir}/anaconda-runtime/trimpciids
238 %attr(755,root,root) %{_libdir}/anaconda-runtime/upd-instroot
239 %attr(755,root,root) %{_libdir}/anaconda-runtime/yumcache
This page took 0.073565 seconds and 4 git commands to generate.