1 %define with_python_subpackage 1 %{nil}
2 %define with_bzip2 1 %{nil}
3 %define with_apidocs 1 %{nil}
4 %define with_internal_db 1 %{nil}
5 %define strip_binaries 1
7 # XXX legacy requires './' payload prefix to be omitted from rpm packages.
8 %define _noPayloadPrefix 1
11 %{expand:%%define __share %(if [ -d %{__prefix}/share/man ]; then echo /share ; else echo %%{nil} ; fi)}
13 Summary: The Red Hat package management system.
18 Group: System Environment/Base
19 Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/rpm-%{version}.tar.gz
21 Conflicts: patch < 2.5
23 Prereq: gawk fileutils textutils mktemp
27 %if !%{with_internal_db}
28 BuildRequires: db3-devel
30 # XXX glibc-2.1.92 has incompatible locale changes that affect statically
31 # XXX linked binaries like /bin/rpm.
33 Requires: glibc >= 2.1.92
34 # XXX needed to avoid libdb.so.2 satisfied by compat/libc5 provides.
39 # XXX Red Hat 5.2 has not bzip2 or python
41 BuildRequires: bzip2 >= 0.9.0c-2
43 %if %{with_python_subpackage}
44 BuildRequires: python-devel >= 1.5.2
47 BuildRoot: %{_tmppath}/%{name}-root
50 The RPM Package Manager (RPM) is a powerful command line driven
51 package management system capable of installing, uninstalling,
52 verifying, querying, and updating software packages. Each software
53 package consists of an archive of files along with information about
54 the package like its version, a description, etc.
57 Summary: Development files for applications which will manipulate RPM packages.
58 Group: Development/Libraries
59 Requires: rpm = %{version}, popt
62 This package contains the RPM C library and header files. These
63 development files will simplify the process of writing programs which
64 manipulate RPM packages and databases. These files are intended to
65 simplify the process of creating graphical package managers or any
66 other tools that need an intimate knowledge of RPM packages in order
69 This package should be installed if you want to develop programs that
70 will manipulate RPM packages and databases.
73 Summary: Scripts and executable programs used to build packages.
74 Group: Development/Tools
75 Requires: rpm = %{version}
78 This package contains scripts and executable programs that are used to
79 build packages using RPM.
81 %if %{with_python_subpackage}
83 Summary: Python bindings for apps which will manipulate RPM packages.
84 Group: Development/Libraries
85 BuildRequires: popt >= 1.5
86 Requires: rpm = %{version}
88 Requires: python >= 1.5.2
91 The rpm-python package contains a module which permits applications
92 written in the Python programming language to use the interface
93 supplied by RPM (RPM Package Manager) libraries.
95 This package should be installed if you want to develop Python
96 programs that will manipulate RPM packages and databases.
100 Summary: A C library for parsing command line parameters.
101 Group: Development/Libraries
105 Popt is a C library for parsing command line parameters. Popt was
106 heavily influenced by the getopt() and getopt_long() functions, but it
107 improves on them by allowing more powerful argument expansion. Popt
108 can parse arbitrary argv[] style arrays and automatically set
109 variables based on command line arguments. Popt allows command line
110 arguments to be aliased via configuration files and includes utility
111 functions for parsing arbitrary strings into argv[] arrays using
114 Install popt if you're a C programmer and you'd like to use its
122 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix} --sysconfdir=/etc --localstatedir=/var --infodir='${prefix}%{__share}/info' --mandir='${prefix}%{__share}/man'
124 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix}
130 rm -rf $RPM_BUILD_ROOT
132 make DESTDIR="$RPM_BUILD_ROOT" install
134 mkdir -p $RPM_BUILD_ROOT/etc/rpm
135 cat << E_O_F > $RPM_BUILD_ROOT/etc/rpm/macros.db1
140 gzip -9n apidocs/man/man*/* || :
143 %if %{strip_binaries}
146 strip .%{__prefix}/bin/rpm2cpio
151 rm -rf $RPM_BUILD_ROOT
154 if [ -f /var/lib/rpm/Packages -a -f /var/lib/rpm/packages.rpm ]; then
157 # /var/lib/rpm/packages.rpm db1 format installed package headers
158 # /var/lib/rpm/Packages db3 format installed package headers
159 #Please remove (or at least rename) one of those files, and re-install.
169 if [ -f /var/lib/rpm/packages.rpm ]; then
171 elif [ -f /var/lib/rpm/Packages ]; then
172 # undo db1 configuration
173 rm -f /etc/rpm/macros.db1
175 # initialize db3 database
176 rm -f /etc/rpm/macros.db1
181 %postun -p /sbin/ldconfig
183 %post devel -p /sbin/ldconfig
184 %postun devel -p /sbin/ldconfig
186 %post -n popt -p /sbin/ldconfig
187 %postun -n popt -p /sbin/ldconfig
190 %if %{with_python_subpackage}
191 %post python -p /sbin/ldconfig
192 %postun python -p /sbin/ldconfig
196 %defattr(-,root,root)
197 %doc RPM-PGP-KEY RPM-GPG-KEY CHANGES GROUPS doc/manual/[a-z]*
200 %config(missingok) /etc/rpm/macros.db1
201 %{__prefix}/bin/rpm2cpio
202 %{__prefix}/bin/gendiff
203 %{__prefix}/bin/rpmdb
204 %{__prefix}/bin/rpm[eiukqv]
205 %{__prefix}/bin/rpmsign
206 %{__prefix}/bin/rpmquery
207 %{__prefix}/bin/rpmverify
208 %{__prefix}/lib/librpm.so.*
209 %{__prefix}/lib/librpmio.so.*
210 %{__prefix}/lib/librpmbuild.so.*
212 %{__prefix}/lib/rpm/config.guess
213 %{__prefix}/lib/rpm/config.sub
214 %{__prefix}/lib/rpm/convertrpmrc.sh
215 %{__prefix}/lib/rpm/macros
216 %{__prefix}/lib/rpm/mkinstalldirs
217 %{__prefix}/lib/rpm/rpmdb
218 %{__prefix}/lib/rpm/rpm[eiukqv]
219 %{__prefix}/lib/rpm/rpmpopt*
220 %{__prefix}/lib/rpm/rpmrc
222 %ifarch i386 i486 i586 i686
223 %{__prefix}/lib/rpm/i[3456]86*
226 %{__prefix}/lib/rpm/alpha*
228 %ifarch sparc sparc64
229 %{__prefix}/lib/rpm/sparc*
232 %{__prefix}/lib/rpm/ia64*
235 %{__prefix}/lib/rpm/ppc*
237 %ifarch armv3l armv4l
238 %{__prefix}/lib/rpm/armv[34][lb]*
241 %lang(cs) %{__prefix}/*/locale/cs/LC_MESSAGES/rpm.mo
242 %lang(da) %{__prefix}/*/locale/da/LC_MESSAGES/rpm.mo
243 %lang(de) %{__prefix}/*/locale/de/LC_MESSAGES/rpm.mo
244 %lang(fi) %{__prefix}/*/locale/fi/LC_MESSAGES/rpm.mo
245 %lang(fr) %{__prefix}/*/locale/fr/LC_MESSAGES/rpm.mo
246 %lang(is) %{__prefix}/*/locale/is/LC_MESSAGES/rpm.mo
247 %lang(ja) %{__prefix}/*/locale/ja/LC_MESSAGES/rpm.mo
248 %lang(no) %{__prefix}/*/locale/no/LC_MESSAGES/rpm.mo
249 %lang(pl) %{__prefix}/*/locale/pl/LC_MESSAGES/rpm.mo
250 %lang(pt) %{__prefix}/*/locale/pt/LC_MESSAGES/rpm.mo
251 %lang(pt_BR) %{__prefix}/*/locale/pt_BR/LC_MESSAGES/rpm.mo
252 %lang(ro) %{__prefix}/*/locale/ro/LC_MESSAGES/rpm.mo
253 %lang(ru) %{__prefix}/*/locale/ru/LC_MESSAGES/rpm.mo
254 %lang(sk) %{__prefix}/*/locale/sk/LC_MESSAGES/rpm.mo
255 %lang(sl) %{__prefix}/*/locale/sl/LC_MESSAGES/rpm.mo
256 %lang(sr) %{__prefix}/*/locale/sr/LC_MESSAGES/rpm.mo
257 %lang(sv) %{__prefix}/*/locale/sv/LC_MESSAGES/rpm.mo
258 %lang(tr) %{__prefix}/*/locale/tr/LC_MESSAGES/rpm.mo
260 %{__prefix}%{__share}/man/man[18]/*.[18]*
261 %lang(pl) %{__prefix}%{__share}/man/pl/man[18]/*.[18]*
262 %lang(ru) %{__prefix}%{__share}/man/ru/man[18]/*.[18]*
263 %lang(sk) %{__prefix}%{__share}/man/sk/man[18]/*.[18]*
266 %defattr(-,root,root)
267 %dir %{__prefix}/src/redhat
268 %dir %{__prefix}/src/redhat/BUILD
269 %dir %{__prefix}/src/redhat/SPECS
270 %dir %{__prefix}/src/redhat/SOURCES
271 %dir %{__prefix}/src/redhat/SRPMS
272 %dir %{__prefix}/src/redhat/RPMS
273 %{__prefix}/src/redhat/RPMS/*
274 %{__prefix}/bin/rpmbuild
275 %{__prefix}/lib/rpm/brp-*
276 %{__prefix}/lib/rpm/check-prereqs
277 %{__prefix}/lib/rpm/cpanflute
278 %{__prefix}/lib/rpm/find-lang.sh
279 %{__prefix}/lib/rpm/find-prov.pl
280 %{__prefix}/lib/rpm/find-provides
281 %{__prefix}/lib/rpm/find-provides.perl
282 %{__prefix}/lib/rpm/find-req.pl
283 %{__prefix}/lib/rpm/find-requires
284 %{__prefix}/lib/rpm/find-requires.perl
285 %{__prefix}/lib/rpm/get_magic.pl
286 %{__prefix}/lib/rpm/getpo.sh
287 %{__prefix}/lib/rpm/http.req
288 %{__prefix}/lib/rpm/javadeps
289 %{__prefix}/lib/rpm/magic.prov
290 %{__prefix}/lib/rpm/magic.req
291 %{__prefix}/lib/rpm/perl.prov
292 %{__prefix}/lib/rpm/perl.req
293 %{__prefix}/lib/rpm/rpm[bt]
294 %{__prefix}/lib/rpm/rpmdiff
295 %{__prefix}/lib/rpm/rpmdiff.cgi
296 %{__prefix}/lib/rpm/u_pkg.sh
297 %{__prefix}/lib/rpm/vpkg-provides.sh
298 %{__prefix}/lib/rpm/vpkg-provides2.sh
300 %if %{with_python_subpackage}
302 %defattr(-,root,root)
303 %{__prefix}/lib/python1.5/site-packages/rpmmodule.so
307 %defattr(-,root,root)
311 %{__prefix}/include/rpm
312 %{__prefix}/lib/librpm.a
313 %{__prefix}/lib/librpm.la
314 %{__prefix}/lib/librpm.so
315 %{__prefix}/lib/librpmio.a
316 %{__prefix}/lib/librpmio.la
317 %{__prefix}/lib/librpmio.so
318 %{__prefix}/lib/librpmbuild.a
319 %{__prefix}/lib/librpmbuild.la
320 %{__prefix}/lib/librpmbuild.so
323 %defattr(-,root,root)
324 %{__prefix}/lib/libpopt.so.*
325 %{__prefix}%{__share}/man/man3/popt.3*
326 %lang(cs) %{__prefix}/*/locale/cs/LC_MESSAGES/popt.mo
327 %lang(da) %{__prefix}/*/locale/da/LC_MESSAGES/popt.mo
328 %lang(gl) %{__prefix}/*/locale/gl/LC_MESSAGES/popt.mo
329 %lang(hu) %{__prefix}/*/locale/hu/LC_MESSAGES/popt.mo
330 %lang(is) %{__prefix}/*/locale/is/LC_MESSAGES/popt.mo
331 %lang(no) %{__prefix}/*/locale/no/LC_MESSAGES/popt.mo
332 %lang(pt) %{__prefix}/*/locale/pt/LC_MESSAGES/popt.mo
333 %lang(ro) %{__prefix}/*/locale/ro/LC_MESSAGES/popt.mo
334 %lang(ru) %{__prefix}/*/locale/ru/LC_MESSAGES/popt.mo
335 %lang(sk) %{__prefix}/*/locale/sk/LC_MESSAGES/popt.mo
336 %lang(sl) %{__prefix}/*/locale/sl/LC_MESSAGES/popt.mo
337 %lang(sv) %{__prefix}/*/locale/sv/LC_MESSAGES/popt.mo
338 %lang(tr) %{__prefix}/*/locale/tr/LC_MESSAGES/popt.mo
339 %lang(uk) %{__prefix}/*/locale/uk/LC_MESSAGES/popt.mo
340 %lang(wa) %{__prefix}/*/locale/wa/LC_MESSAGES/popt.mo
341 %lang(zh_CN) %{__prefix}/*/locale/zh_CN.GB2312/LC_MESSAGES/popt.mo
343 # XXX These may end up in popt-devel but it hardly seems worth the effort now.
344 %{__prefix}/lib/libpopt.a
345 %{__prefix}/lib/libpopt.la
346 %{__prefix}/lib/libpopt.so
347 %{__prefix}/include/popt.h
350 * Mon Feb 19 2001 Jeff Johnson <jbj@redhat.com>
351 - start rpm-4.0.3 with --repackage.