1 %define with_python_subpackage 1
4 %define strip_binaries 1
6 # XXX legacy requires './' payload prefix to be omitted from rpm packages.
7 %define _noPayloadPrefix 1
10 %{expand:%%define __share %(if [ -d %{__prefix}/share/man ]; then echo /share ; else echo %%{nil} ; fi)}
12 Summary: The Red Hat package management system.
17 Group: System Environment/Base
18 Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/rpm-%{version}.tar.gz
20 Conflicts: patch < 2.5
22 Prereq: gawk fileutils textutils mktemp
26 BuildRequires: db3-devel
28 # XXX glibc-2.1.92 has incompatible locale changes that affect statically
29 # XXX linked binaries like /bin/rpm.
31 Requires: glibc >= 2.1.92
32 # XXX needed to avoid libdb.so.2 satisfied by compat/libc5 provides.
36 # XXX Red Hat 5.2 has not bzip2 or python
38 BuildRequires: bzip2 >= 0.9.0c-2
40 %if %{with_python_subpackage}
41 BuildRequires: python-devel >= 1.5.2
44 BuildRoot: %{_tmppath}/%{name}-root
47 The RPM Package Manager (RPM) is a powerful command line driven
48 package management system capable of installing, uninstalling,
49 verifying, querying, and updating software packages. Each software
50 package consists of an archive of files along with information about
51 the package like its version, a description, etc.
54 Summary: Development files for applications which will manipulate RPM packages.
55 Group: Development/Libraries
56 Requires: rpm = %{version}, popt
59 This package contains the RPM C library and header files. These
60 development files will simplify the process of writing programs which
61 manipulate RPM packages and databases. These files are intended to
62 simplify the process of creating graphical package managers or any
63 other tools that need an intimate knowledge of RPM packages in order
66 This package should be installed if you want to develop programs that
67 will manipulate RPM packages and databases.
70 Summary: Scripts and executable programs used to build packages.
71 Group: Development/Tools
72 Requires: rpm = %{version}
75 This package contains scripts and executable programs that are used to
76 build packages using RPM.
78 %if %{with_python_subpackage}
80 Summary: Python bindings for apps which will manipulate RPM packages.
81 Group: Development/Libraries
82 BuildRequires: popt >= 1.5
84 Requires: python >= 1.5.2
87 The rpm-python package contains a module which permits applications
88 written in the Python programming language to use the interface
89 supplied by RPM (RPM Package Manager) libraries.
91 This package should be installed if you want to develop Python
92 programs that will manipulate RPM packages and databases.
96 Summary: A C library for parsing command line parameters.
97 Group: Development/Libraries
101 Popt is a C library for parsing command line parameters. Popt was
102 heavily influenced by the getopt() and getopt_long() functions, but it
103 improves on them by allowing more powerful argument expansion. Popt
104 can parse arbitrary argv[] style arrays and automatically set
105 variables based on command line arguments. Popt allows command line
106 arguments to be aliased via configuration files and includes utility
107 functions for parsing arbitrary strings into argv[] arrays using
110 Install popt if you're a C programmer and you'd like to use its
118 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix} --sysconfdir=/etc --localstatedir=/var --infodir='${prefix}%{__share}/info' --mandir='${prefix}%{__share}/man'
120 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix}
126 rm -rf $RPM_BUILD_ROOT
128 make DESTDIR="$RPM_BUILD_ROOT" install
130 mkdir -p $RPM_BUILD_ROOT/etc/rpm
131 cat << E_O_F > $RPM_BUILD_ROOT/etc/rpm/macros.db1
135 %if %{strip_binaries}
138 strip .%{__prefix}/bin/rpm2cpio
143 gzip -9n apidocs/man/man*/* || :
147 rm -rf $RPM_BUILD_ROOT
150 if [ -f /var/lib/rpm/Packages -a -f /var/lib/rpm/packages.rpm ]; then
153 # /var/lib/rpm/packages.rpm db1 format installed package headers
154 # /var/lib/rpm/Packages db3 format installed package headers
155 #Please remove (or at least rename) one of those files, and re-install.
164 if [ -f /var/lib/rpm/packages.rpm ]; then
166 elif [ -f /var/lib/rpm/Packages ]; then
167 # undo db1 configuration
168 rm -f /etc/rpm/macros.db1
170 # initialize db3 database
171 rm -f /etc/rpm/macros.db1
176 %postun -p /sbin/ldconfig
178 %post devel -p /sbin/ldconfig
179 %postun devel -p /sbin/ldconfig
181 %post -n popt -p /sbin/ldconfig
182 %postun -n popt -p /sbin/ldconfig
185 %if %{with_python_subpackage}
186 %post python -p /sbin/ldconfig
187 %postun python -p /sbin/ldconfig
191 %defattr(-,root,root)
192 %doc RPM-PGP-KEY RPM-GPG-KEY CHANGES GROUPS doc/manual/[a-z]*
195 %config(missingok) /etc/rpm/macros.db1
196 %{__prefix}/bin/rpm2cpio
197 %{__prefix}/bin/gendiff
198 %{__prefix}/bin/rpmdb
199 %{__prefix}/bin/rpm[eiukqv]
200 %{__prefix}/bin/rpmsign
201 %{__prefix}/bin/rpmquery
202 %{__prefix}/bin/rpmverify
203 %{__prefix}/lib/librpm.so.*
204 %{__prefix}/lib/librpmio.so.*
205 %{__prefix}/lib/librpmbuild.so.*
207 %{__prefix}/lib/rpm/config.guess
208 %{__prefix}/lib/rpm/config.sub
209 %{__prefix}/lib/rpm/convertrpmrc.sh
210 %{__prefix}/lib/rpm/macros
211 %{__prefix}/lib/rpm/mkinstalldirs
212 %{__prefix}/lib/rpm/rpmdb
213 %{__prefix}/lib/rpm/rpm[eiukqv]
214 %{__prefix}/lib/rpm/rpmpopt*
215 %{__prefix}/lib/rpm/rpmrc
217 %ifarch i386 i486 i586 i686
218 %{__prefix}/lib/rpm/i[3456]86*
221 %{__prefix}/lib/rpm/alpha*
223 %ifarch sparc sparc64
224 %{__prefix}/lib/rpm/sparc*
227 %{__prefix}/lib/rpm/ia64*
230 %{__prefix}/lib/rpm/ppc*
232 %ifarch armv3l armv4l
233 %{__prefix}/lib/rpm/armv[34][lb]*
236 %{__prefix}/*/locale/*/LC_MESSAGES/rpm.mo
237 %{__prefix}%{__share}/man/man[18]/*.[18]*
238 %lang(pl) %{__prefix}%{__share}/man/pl/man[18]/*.[18]*
239 %lang(ru) %{__prefix}%{__share}/man/ru/man[18]/*.[18]*
240 %lang(sk) %{__prefix}%{__share}/man/sk/man[18]/*.[18]*
243 %defattr(-,root,root)
244 %dir %{__prefix}/src/redhat
245 %dir %{__prefix}/src/redhat/BUILD
246 %dir %{__prefix}/src/redhat/SPECS
247 %dir %{__prefix}/src/redhat/SOURCES
248 %dir %{__prefix}/src/redhat/SRPMS
249 %dir %{__prefix}/src/redhat/RPMS
250 %{__prefix}/src/redhat/RPMS/*
251 %{__prefix}/bin/rpmbuild
252 %{__prefix}/lib/rpm/brp-*
253 %{__prefix}/lib/rpm/check-prereqs
254 %{__prefix}/lib/rpm/cpanflute
255 %{__prefix}/lib/rpm/find-lang.sh
256 %{__prefix}/lib/rpm/find-prov.pl
257 %{__prefix}/lib/rpm/find-provides
258 %{__prefix}/lib/rpm/find-provides.perl
259 %{__prefix}/lib/rpm/find-req.pl
260 %{__prefix}/lib/rpm/find-requires
261 %{__prefix}/lib/rpm/find-requires.perl
262 %{__prefix}/lib/rpm/get_magic.pl
263 %{__prefix}/lib/rpm/getpo.sh
264 %{__prefix}/lib/rpm/http.req
265 %{__prefix}/lib/rpm/javadeps
266 %{__prefix}/lib/rpm/magic.prov
267 %{__prefix}/lib/rpm/magic.req
268 %{__prefix}/lib/rpm/perl.prov
269 %{__prefix}/lib/rpm/perl.req
270 %{__prefix}/lib/rpm/rpm[bt]
271 %{__prefix}/lib/rpm/rpmdiff
272 %{__prefix}/lib/rpm/rpmdiff.cgi
273 %{__prefix}/lib/rpm/u_pkg.sh
274 %{__prefix}/lib/rpm/vpkg-provides.sh
275 %{__prefix}/lib/rpm/vpkg-provides2.sh
277 %if %{with_python_subpackage}
279 %defattr(-,root,root)
280 %{__prefix}/lib/python1.5/site-packages/rpmmodule.so
284 %defattr(-,root,root)
288 %{__prefix}/include/rpm
289 %{__prefix}/lib/librpm.a
290 %{__prefix}/lib/librpm.la
291 %{__prefix}/lib/librpm.so
292 %{__prefix}/lib/librpmio.a
293 %{__prefix}/lib/librpmio.la
294 %{__prefix}/lib/librpmio.so
295 %{__prefix}/lib/librpmbuild.a
296 %{__prefix}/lib/librpmbuild.la
297 %{__prefix}/lib/librpmbuild.so
300 %defattr(-,root,root)
301 %{__prefix}/lib/libpopt.so.*
302 %{__prefix}/*/locale/*/LC_MESSAGES/popt.mo
303 %{__prefix}%{__share}/man/man3/popt.3*
305 # XXX These may end up in popt-devel but it hardly seems worth the effort now.
306 %{__prefix}/lib/libpopt.a
307 %{__prefix}/lib/libpopt.la
308 %{__prefix}/lib/libpopt.so
309 %{__prefix}/include/popt.h
312 * Thu Dec 21 2000 Jeff Johnson <jbj@redhat.com>
313 - immutable headers, once installed by rpm3, need to lose immutablity.
315 * Wed Dec 20 2000 Jeff Johnson <jbj@redhat.com>
316 - whiteout mozilla loop for 7.1.
318 * Tue Dec 19 2000 Jeff Johnson <jbj@redhat.com>
319 - gendiff: generate ChangeLog patches more intelligently (#22356).
320 - identify install scriptlet failures with the name of the scriptlet.
321 - handle install chroot's identically throughout the install process.
322 - add rpmlib(HeaderLoadSortsTags) for tracking header regions "just in case".
323 - create _tmppath on the fly if not present.
324 - remove /etc/rpm/macros.db1 configuration file if db3 rebuilt.
326 * Wed Dec 13 2000 Jeff Johnson <jbj@redhat.com>
328 - fix: (transaction.c) assume file state normal if tag is missing.
329 - fix: failed signature read headerFree segfault.
330 - fix: revert ALPHA_LOSSAGE, breaks 6.2/i386.
331 - fix: segfault on build path, ignore deleted drips.
332 - fix: synthesized callbacks for removed packages have not a pkgkey.
334 * Tue Dec 12 2000 Jeff Johnson <jbj@redhat.com>
335 - bail on header regions.
336 - change dependency loop message to RPMMESS_WARNING to use stderr, not stdout.
338 * Sun Dec 10 2000 Jeff Johnson <jbj@redhat.com>
339 - handle added dirtoken tags (mostly) correctly with header regions.
340 - add FHS doc/man/info dirs, diddle autoconf goo.
341 - fix: headerUnload handles headers w/o regions correctly on rebuilddb.
343 * Thu Dec 7 2000 Jeff Johnson <jbj@redhat.com>
344 - add rpmtransGetKeys() to retrieve transaction keys in tsort'ed order.
345 - python bindings for rpmtransGetKeys().
346 - fix: include alignment in count when swabbing header region.
348 * Wed Dec 6 2000 Jeff Johnson <jbj@redhat.com>
349 - improved find-{requires,provides} for aix4/hpux/irix6/osf.
350 Tim Mooney<mooney@dogbert.cc.ndsu.NoDak.edu>
351 - portability: remove use of GNU make subst in lib/Makefile (Joe Orton).
352 - python: bind package removal (#21274).
353 - autoconfigure building python bindings.
354 - autoconfigure generating rpm API doco rpm-devel package.
355 - fix: don't fdFree in rpmVerifyScript, rpmtransFree does already.
356 - unify rpmError and rpmMessge interfaces through rpmlog.
357 - collect and display rpm build error messages at end of build.
358 - use package version 3 if --nodirtokens is specified.
359 - add package names to problem sets early, don't save removed header.
360 - make sure that replaced tags in region are counted in headerSizeof().
361 - support for dmalloc debugging.
362 - filter region tags in headerNextIterator, exit throut headerReload.
364 * Thu Nov 30 2000 Jeff Johnson <jbj@redhat.com>
365 - add missing headerFree for legacy signature header.
366 - fix: removed packages leaked DIRINDEXES tag data.
367 - reload tags added during install when loading header from rpmdb.
368 - avoid brp-compress hang with both compressed/uncompressed man pages.
370 * Tue Nov 21 2000 Jeff Johnson <jbj@redhat.com>
371 - add brp-strip-shared script <rodrigob@conectiva.com.br>.
372 - better item/task progress bars <rodrigob@conectiva.com.br>.
373 - load headers as single contiguous region.
374 - add region marker as RPM_BIN_TYPE in packages and database.
375 - fix: don't headerCopy() relocateable packages if not relocating.
376 - merge signatures into header after reading from package.
378 * Mon Nov 20 2000 Jeff Johnson <jbj@redhat.com>
379 - add doxygen and lclint annotations most everywhere.
380 - consistent return for all signature verification.
381 - use enums for almost all rpmlib #define's.
382 - API: change rpmProblem typedef to pass by reference, not value.
383 - don't trim leading ./ in rpmCleanPath() (#14961).
384 - detect (still need to test) rdonly linux file systems.
385 - check available inodes as well as blocks on mounted file systems.
386 - pass rpmTransactionSet, not elements, to installBinaryPackage et al.
387 - add cscope/ctags (Rodrigo Barbosa<rodrigob@conectiva.com.br>).
388 - remove getMacroBody() from rpmio API.
389 - add support for unzip <rodrigob@conectiva.com.br>
391 * Thu Nov 16 2000 Jeff Johnson <jbj@redhat.com>
392 - don't verify src rpm MD5 sums (yet).
393 - md5 sums are little endian (no swap) so big endian needs the swap.
395 * Wed Nov 15 2000 Jeff Johnson <jbj@redhat.com>
396 - fix: segfault on exit of "rpm -qp --qf '%{#fsnames}' pkg" (#20595).
397 - hpux w/o -D_OPEN_SOURCE has not h_errno.
398 - verify MD5 sums of payload files when unpacking archive.
399 - hide libio lossage in prototype, not API.
400 - add support for SHA1 as well as MD5 message digests.
402 * Mon Nov 13 2000 Jeff Johnson <jbj@redhat.com>
403 - fix: work around for (mis-compilation?!) segfaults on signature paths.
405 * Sun Nov 12 2000 Jeff Johnson <jbj@redhat.com>
406 - fix: duplicate headerFree() on instalBinaryPackage() error return.
408 * Sat Nov 11 2000 Jeff Johnson <jbj@redhat.com>
409 - fix: runTriggers was not adding countCorrection.
410 - add rpmGetRpmlibProvides() to retrieve rpmlib(...) provides
411 "Pawel A. Gajda" <mis@k2.net.pl>.
412 - syntax to specify source of Requires: (PreReq: now legacy).
413 - rip out rpm{get,put}text, use getpo.sh and specspo instead.
414 - fine-grained Requires, remove install PreReq's from Requires db.
416 * Wed Oct 11 2000 Jeff Johnson <jbj@redhat.com>
417 - fix: rpm2cpio error check wrong on non-libio platforms.
419 * Fri Sep 29 2000 Jeff Johnson <jbj@redhat.com>
420 - fix: more (possible) xstrdup side effects.
422 * Wed Sep 27 2000 Jeff Johnson <jbj@redhat.com>
423 - bump popt version to 1.6.1.
425 * Tue Sep 26 2000 Jeff Johnson <jbj@redhat.com>
426 - fix: avoid calling getpass twice as side effect of xstrdup macro (#17672).
427 - order packages using tsort, clipping PreReq:'s in dependency loops.
428 - handle possible db3 dependency on -lpthread more gracefully.
430 * Thu Sep 14 2000 Jeff Johnson <jbj@redhat.com>