teknoraver / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone

Blame rpm.spec

cvsdist 9eb5b2
%define	with_python_subpackage	1
cvsdist 9eb5b2
%define	with_bzip2		1
cvsdist 9eb5b2
%define	with_apidocs		1
cvsdist 9eb5b2
%define strip_binaries		1
cvsdist 9eb5b2
cvsdist 1bdb86
# XXX legacy requires './' payload prefix to be omitted from rpm packages.
cvsdist 1bdb86
%define	_noPayloadPrefix	1
cvsdist 1bdb86
cvsdist 1bdb86
%define	__prefix	/usr
cvsdist 1bdb86
%{expand:%%define __share %(if [ -d %{__prefix}/share/man ]; then echo /share ; else echo %%{nil} ; fi)}
cvsdist 1bdb86
cvsdist 1bdb86
Summary: The Red Hat package management system.
cvsdist 1bdb86
Name: rpm
cvsdist 9eb5b2
%define version 4.0.2
cvsdist 1bdb86
Version: %{version}
cvsdist 9e99bf
Release: 8
cvsdist 1bdb86
Group: System Environment/Base
cvsdist 96054a
Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/rpm-%{version}.tar.gz
cvsdist 9e99bf
Patch0: rpm-4.0.2-kernel-whiteout.patch
cvsdist 1bdb86
Copyright: GPL
cvsdist 1bdb86
Conflicts: patch < 2.5
cvsdist 1bdb86
%ifos linux
cvsdist 9eb5b2
Prereq: gawk fileutils textutils mktemp
cvsdist 9eb5b2
Requires: popt
cvsdist 9eb5b2
%endif
cvsdist 9eb5b2
cvsdist 9eb5b2
BuildRequires: db3-devel
cvsdist 9eb5b2
cvsdist 1bdb86
# XXX glibc-2.1.92 has incompatible locale changes that affect statically
cvsdist 1bdb86
# XXX linked binaries like /bin/rpm.
cvsdist 1bdb86
%ifnarch ia64
cvsdist 1bdb86
Requires: glibc >= 2.1.92
cvsdist 1bdb86
# XXX needed to avoid libdb.so.2 satisfied by compat/libc5 provides.
cvsdist 1bdb86
Requires: db1 = 1.85
cvsdist 1bdb86
%endif
cvsdist 9eb5b2
cvsdist 9eb5b2
# XXX Red Hat 5.2 has not bzip2 or python
cvsdist 9eb5b2
%if %{with_bzip2}
cvsdist 1bdb86
BuildRequires: bzip2 >= 0.9.0c-2
cvsdist 9eb5b2
%endif
cvsdist 9eb5b2
%if %{with_python_subpackage}
cvsdist 1bdb86
BuildRequires: python-devel >= 1.5.2
cvsdist 1bdb86
%endif
cvsdist 9eb5b2
cvsdist 1bdb86
BuildRoot: %{_tmppath}/%{name}-root
cvsdist 1bdb86
cvsdist 1bdb86
%description
cvsdist 1bdb86
The RPM Package Manager (RPM) is a powerful command line driven
cvsdist 1bdb86
package management system capable of installing, uninstalling,
cvsdist 1bdb86
verifying, querying, and updating software packages.  Each software
cvsdist 1bdb86
package consists of an archive of files along with information about
cvsdist 1bdb86
the package like its version, a description, etc.
cvsdist 1bdb86
cvsdist 1bdb86
%package devel
cvsdist 1bdb86
Summary: Development files for applications which will manipulate RPM packages.
cvsdist 1bdb86
Group: Development/Libraries
cvsdist 1bdb86
Requires: rpm = %{version}, popt
cvsdist 1bdb86
cvsdist 1bdb86
%description devel
cvsdist 1bdb86
This package contains the RPM C library and header files.  These
cvsdist 1bdb86
development files will simplify the process of writing programs which
cvsdist 1bdb86
manipulate RPM packages and databases. These files are intended to
cvsdist 1bdb86
simplify the process of creating graphical package managers or any
cvsdist 1bdb86
other tools that need an intimate knowledge of RPM packages in order
cvsdist 1bdb86
to function.
cvsdist 1bdb86
cvsdist 1bdb86
This package should be installed if you want to develop programs that
cvsdist 1bdb86
will manipulate RPM packages and databases.
cvsdist 1bdb86
cvsdist 1bdb86
%package build
cvsdist 1bdb86
Summary: Scripts and executable programs used to build packages.
cvsdist 1bdb86
Group: Development/Tools
cvsdist 1bdb86
Requires: rpm = %{version}
cvsdist 1bdb86
cvsdist 1bdb86
%description build
cvsdist 1bdb86
This package contains scripts and executable programs that are used to
cvsdist 1bdb86
build packages using RPM.
cvsdist 1bdb86
cvsdist 9eb5b2
%if %{with_python_subpackage}
cvsdist 1bdb86
%package python
cvsdist 1bdb86
Summary: Python bindings for apps which will manipulate RPM packages.
cvsdist 1bdb86
Group: Development/Libraries
cvsdist 1bdb86
BuildRequires: popt >= 1.5
cvsdist 9eb5b2
Requires: rpm = %{version}
cvsdist 1bdb86
Requires: popt >= 1.5
cvsdist 1bdb86
Requires: python >= 1.5.2
cvsdist 1bdb86
cvsdist 1bdb86
%description python
cvsdist 1bdb86
The rpm-python package contains a module which permits applications
cvsdist 1bdb86
written in the Python programming language to use the interface
cvsdist 1bdb86
supplied by RPM (RPM Package Manager) libraries.
cvsdist 1bdb86
cvsdist 1bdb86
This package should be installed if you want to develop Python
cvsdist 1bdb86
programs that will manipulate RPM packages and databases.
cvsdist 1bdb86
%endif
cvsdist 1bdb86
cvsdist 1bdb86
%package -n popt
cvsdist 1bdb86
Summary: A C library for parsing command line parameters.
cvsdist 1bdb86
Group: Development/Libraries
cvsdist 9eb5b2
Version: 1.6.2
cvsdist 1bdb86
cvsdist 1bdb86
%description -n popt
cvsdist 1bdb86
Popt is a C library for parsing command line parameters.  Popt was
cvsdist 1bdb86
heavily influenced by the getopt() and getopt_long() functions, but it
cvsdist 1bdb86
improves on them by allowing more powerful argument expansion.  Popt
cvsdist 1bdb86
can parse arbitrary argv[] style arrays and automatically set
cvsdist 1bdb86
variables based on command line arguments.  Popt allows command line
cvsdist 1bdb86
arguments to be aliased via configuration files and includes utility
cvsdist 1bdb86
functions for parsing arbitrary strings into argv[] arrays using
cvsdist 1bdb86
shell-like rules.
cvsdist 1bdb86
cvsdist 1bdb86
Install popt if you're a C programmer and you'd like to use its
cvsdist 1bdb86
capabilities.
cvsdist 1bdb86
cvsdist 1bdb86
%prep
cvsdist 1bdb86
%setup -q
cvsdist 9e99bf
%patch0 -p1 -b .kernel-whiteout
cvsdist 1bdb86
cvsdist 1bdb86
%build
cvsdist 1bdb86
%ifos linux
cvsdist 1bdb86
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix} --sysconfdir=/etc --localstatedir=/var --infodir='${prefix}%{__share}/info' --mandir='${prefix}%{__share}/man'
cvsdist 1bdb86
%else
cvsdist 1bdb86
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix}
cvsdist 1bdb86
%endif
cvsdist 1bdb86
cvsdist 1bdb86
make
cvsdist 1bdb86
cvsdist 1bdb86
%install
cvsdist 1bdb86
rm -rf $RPM_BUILD_ROOT
cvsdist 1bdb86
cvsdist 1bdb86
make DESTDIR="$RPM_BUILD_ROOT" install
cvsdist 9eb5b2
cvsdist 1bdb86
mkdir -p $RPM_BUILD_ROOT/etc/rpm
cvsdist 9eb5b2
cat << E_O_F > $RPM_BUILD_ROOT/etc/rpm/macros.db1
cvsdist 9eb5b2
%%_dbapi		1
cvsdist 9eb5b2
E_O_F
cvsdist 1bdb86
cvsdist 9eb5b2
%if %{with_apidocs}
cvsdist 9eb5b2
gzip -9n apidocs/man/man*/* || :
cvsdist 9eb5b2
%endif
cvsdist 9eb5b2
cvsdist 9eb5b2
%if %{strip_binaries}
cvsdist 1bdb86
{ cd $RPM_BUILD_ROOT
cvsdist 1bdb86
  strip ./bin/rpm
cvsdist 1bdb86
  strip .%{__prefix}/bin/rpm2cpio
cvsdist 1bdb86
}
cvsdist 9eb5b2
%endif
cvsdist 1bdb86
cvsdist 1bdb86
%clean
cvsdist 1bdb86
rm -rf $RPM_BUILD_ROOT
cvsdist 1bdb86
cvsdist 9eb5b2
%pre
cvsdist 9eb5b2
if [ -f /var/lib/rpm/Packages -a -f /var/lib/rpm/packages.rpm ]; then
cvsdist 9eb5b2
#    echo "
cvsdist 9eb5b2
#You have both
cvsdist 9eb5b2
#	/var/lib/rpm/packages.rpm	db1 format installed package headers
cvsdist 9eb5b2
#	/var/lib/rpm/Packages		db3 format installed package headers
cvsdist 9eb5b2
#Please remove (or at least rename) one of those files, and re-install.
cvsdist 9eb5b2
#"
cvsdist 9eb5b2
    exit 1
cvsdist 9eb5b2
fi
cvsdist 9eb5b2
exit 0
cvsdist 9eb5b2
cvsdist 1bdb86
%post
cvsdist 1bdb86
%ifos linux
cvsdist 9eb5b2
/sbin/ldconfig
cvsdist 1bdb86
%endif
cvsdist 9eb5b2
if [ -f /var/lib/rpm/packages.rpm ]; then
cvsdist 9eb5b2
    : # do nothing
cvsdist 9eb5b2
elif [ -f /var/lib/rpm/Packages ]; then
cvsdist 9eb5b2
    # undo db1 configuration
cvsdist 9eb5b2
    rm -f /etc/rpm/macros.db1
cvsdist 9eb5b2
else
cvsdist 9eb5b2
    # initialize db3 database
cvsdist 9eb5b2
    rm -f /etc/rpm/macros.db1
cvsdist 9eb5b2
    /bin/rpm --initdb
cvsdist 9eb5b2
fi
cvsdist 1bdb86
cvsdist 9eb5b2
%ifos linux
cvsdist 1bdb86
%postun -p /sbin/ldconfig
cvsdist 1bdb86
cvsdist 1bdb86
%post devel -p /sbin/ldconfig
cvsdist 1bdb86
%postun devel -p /sbin/ldconfig
cvsdist 1bdb86
cvsdist 1bdb86
%post -n popt -p /sbin/ldconfig
cvsdist 1bdb86
%postun -n popt -p /sbin/ldconfig
cvsdist 1bdb86
%endif
cvsdist 1bdb86
cvsdist 9eb5b2
%if %{with_python_subpackage}
cvsdist 1bdb86
%post python -p /sbin/ldconfig
cvsdist 1bdb86
%postun python -p /sbin/ldconfig
cvsdist 1bdb86
%endif
cvsdist 1bdb86
cvsdist 1bdb86
%files
cvsdist 1bdb86
%defattr(-,root,root)
cvsdist 1bdb86
%doc RPM-PGP-KEY RPM-GPG-KEY CHANGES GROUPS doc/manual/[a-z]*
cvsdist 1bdb86
/bin/rpm
cvsdist 9eb5b2
%dir			/etc/rpm
cvsdist 9eb5b2
%config(missingok)	/etc/rpm/macros.db1
cvsdist 1bdb86
%{__prefix}/bin/rpm2cpio
cvsdist 1bdb86
%{__prefix}/bin/gendiff
cvsdist 1bdb86
%{__prefix}/bin/rpmdb
cvsdist 1bdb86
%{__prefix}/bin/rpm[eiukqv]
cvsdist 1bdb86
%{__prefix}/bin/rpmsign
cvsdist 1bdb86
%{__prefix}/bin/rpmquery
cvsdist 1bdb86
%{__prefix}/bin/rpmverify
cvsdist 1bdb86
%{__prefix}/lib/librpm.so.*
cvsdist 1bdb86
%{__prefix}/lib/librpmio.so.*
cvsdist 1bdb86
%{__prefix}/lib/librpmbuild.so.*
cvsdist 1bdb86
cvsdist 1bdb86
%{__prefix}/lib/rpm/config.guess
cvsdist 1bdb86
%{__prefix}/lib/rpm/config.sub
cvsdist 1bdb86
%{__prefix}/lib/rpm/convertrpmrc.sh
cvsdist 1bdb86
%{__prefix}/lib/rpm/macros
cvsdist 1bdb86
%{__prefix}/lib/rpm/mkinstalldirs
cvsdist 1bdb86
%{__prefix}/lib/rpm/rpmdb
cvsdist 1bdb86
%{__prefix}/lib/rpm/rpm[eiukqv]
cvsdist 1bdb86
%{__prefix}/lib/rpm/rpmpopt*
cvsdist 1bdb86
%{__prefix}/lib/rpm/rpmrc
cvsdist 1bdb86
cvsdist 1bdb86
%ifarch i386 i486 i586 i686
cvsdist 1bdb86
%{__prefix}/lib/rpm/i[3456]86*
cvsdist 1bdb86
%endif
cvsdist 1bdb86
%ifarch alpha
cvsdist 1bdb86
%{__prefix}/lib/rpm/alpha*
cvsdist 1bdb86
%endif
cvsdist 1bdb86
%ifarch sparc sparc64
cvsdist 1bdb86
%{__prefix}/lib/rpm/sparc*
cvsdist 1bdb86
%endif
cvsdist 1bdb86
%ifarch ia64
cvsdist 1bdb86
%{__prefix}/lib/rpm/ia64*
cvsdist 1bdb86
%endif
cvsdist 1bdb86
%ifarch powerpc ppc
cvsdist 1bdb86
%{__prefix}/lib/rpm/ppc*
cvsdist 1bdb86
%endif
cvsdist 9eb5b2
%ifarch armv3l armv4l
cvsdist 9eb5b2
%{__prefix}/lib/rpm/armv[34][lb]*
cvsdist 9eb5b2
%endif
cvsdist 9eb5b2
cvsdist 9eb5b2
%lang(cs)	%{__prefix}/*/locale/cs/LC_MESSAGES/rpm.mo
cvsdist 9eb5b2
%lang(da)	%{__prefix}/*/locale/da/LC_MESSAGES/rpm.mo
cvsdist 9eb5b2
%lang(de)	%{__prefix}/*/locale/de/LC_MESSAGES/rpm.mo
cvsdist 9eb5b2
%lang(fi)	%{__prefix}/*/locale/fi/LC_MESSAGES/rpm.mo
cvsdist 9eb5b2
%lang(fr)	%{__prefix}/*/locale/fr/LC_MESSAGES/rpm.mo
cvsdist 9eb5b2
%lang(is)	%{__prefix}/*/locale/is/LC_MESSAGES/rpm.mo
cvsdist 9eb5b2
%lang(ja)	%{__prefix}/*/locale/ja/LC_MESSAGES/rpm.mo
cvsdist 9eb5b2
%lang(no)	%{__prefix}/*/locale/no/LC_MESSAGES/rpm.mo
cvsdist 9eb5b2
%lang(pl)	%{__prefix}/*/locale/pl/LC_MESSAGES/rpm.mo
cvsdist 9eb5b2
%lang(pt)	%{__prefix}/*/locale/pt/LC_MESSAGES/rpm.mo
cvsdist 9eb5b2
%lang(pt_BR)	%{__prefix}/*/locale/pt_BR/LC_MESSAGES/rpm.mo
cvsdist 9eb5b2
%lang(ro)	%{__prefix}/*/locale/ro/LC_MESSAGES/rpm.mo
cvsdist 9eb5b2
%lang(ru)	%{__prefix}/*/locale/ru/LC_MESSAGES/rpm.mo
cvsdist 9eb5b2
%lang(sk)	%{__prefix}/*/locale/sk/LC_MESSAGES/rpm.mo
cvsdist 9eb5b2
%lang(sl)	%{__prefix}/*/locale/sl/LC_MESSAGES/rpm.mo
cvsdist 9eb5b2
%lang(sr)	%{__prefix}/*/locale/sr/LC_MESSAGES/rpm.mo
cvsdist 9eb5b2
%lang(sv)	%{__prefix}/*/locale/sv/LC_MESSAGES/rpm.mo
cvsdist 9eb5b2
%lang(tr)	%{__prefix}/*/locale/tr/LC_MESSAGES/rpm.mo
cvsdist 9eb5b2
cvsdist 9eb5b2
%{__prefix}%{__share}/man/man[18]/*.[18]*
cvsdist 9eb5b2
%lang(pl)	%{__prefix}%{__share}/man/pl/man[18]/*.[18]*
cvsdist 9eb5b2
%lang(ru)	%{__prefix}%{__share}/man/ru/man[18]/*.[18]*
cvsdist 9eb5b2
%lang(sk)	%{__prefix}%{__share}/man/sk/man[18]/*.[18]*
cvsdist 1bdb86
cvsdist 9eb5b2
%files build
cvsdist 9eb5b2
%defattr(-,root,root)
cvsdist 1bdb86
%dir %{__prefix}/src/redhat
cvsdist 1bdb86
%dir %{__prefix}/src/redhat/BUILD
cvsdist 1bdb86
%dir %{__prefix}/src/redhat/SPECS
cvsdist 1bdb86
%dir %{__prefix}/src/redhat/SOURCES
cvsdist 1bdb86
%dir %{__prefix}/src/redhat/SRPMS
cvsdist 1bdb86
%dir %{__prefix}/src/redhat/RPMS
cvsdist 1bdb86
%{__prefix}/src/redhat/RPMS/*
cvsdist 1bdb86
%{__prefix}/bin/rpmbuild
cvsdist 1bdb86
%{__prefix}/lib/rpm/brp-*
cvsdist 1bdb86
%{__prefix}/lib/rpm/check-prereqs
cvsdist 1bdb86
%{__prefix}/lib/rpm/cpanflute
cvsdist 1bdb86
%{__prefix}/lib/rpm/find-lang.sh
cvsdist 1bdb86
%{__prefix}/lib/rpm/find-prov.pl
cvsdist 1bdb86
%{__prefix}/lib/rpm/find-provides
cvsdist 1bdb86
%{__prefix}/lib/rpm/find-provides.perl
cvsdist 1bdb86
%{__prefix}/lib/rpm/find-req.pl
cvsdist 1bdb86
%{__prefix}/lib/rpm/find-requires
cvsdist 1bdb86
%{__prefix}/lib/rpm/find-requires.perl
cvsdist 1bdb86
%{__prefix}/lib/rpm/get_magic.pl
cvsdist 1bdb86
%{__prefix}/lib/rpm/getpo.sh
cvsdist 1bdb86
%{__prefix}/lib/rpm/http.req
cvsdist 9eb5b2
%{__prefix}/lib/rpm/javadeps
cvsdist 1bdb86
%{__prefix}/lib/rpm/magic.prov
cvsdist 1bdb86
%{__prefix}/lib/rpm/magic.req
cvsdist 1bdb86
%{__prefix}/lib/rpm/perl.prov
cvsdist 1bdb86
%{__prefix}/lib/rpm/perl.req
cvsdist 1bdb86
%{__prefix}/lib/rpm/rpm[bt]
cvsdist 1bdb86
%{__prefix}/lib/rpm/rpmdiff
cvsdist 1bdb86
%{__prefix}/lib/rpm/rpmdiff.cgi
cvsdist 1bdb86
%{__prefix}/lib/rpm/u_pkg.sh
cvsdist 1bdb86
%{__prefix}/lib/rpm/vpkg-provides.sh
cvsdist 1bdb86
%{__prefix}/lib/rpm/vpkg-provides2.sh
cvsdist 1bdb86
cvsdist 9eb5b2
%if %{with_python_subpackage}
cvsdist 1bdb86
%files python
cvsdist 1bdb86
%defattr(-,root,root)
cvsdist 1bdb86
%{__prefix}/lib/python1.5/site-packages/rpmmodule.so
cvsdist 1bdb86
%endif
cvsdist 1bdb86
cvsdist 1bdb86
%files devel
cvsdist 1bdb86
%defattr(-,root,root)
cvsdist 9eb5b2
%if %{with_apidocs}
cvsdist 9eb5b2
%doc apidocs
cvsdist 9eb5b2
%endif
cvsdist 1bdb86
%{__prefix}/include/rpm
cvsdist 1bdb86
%{__prefix}/lib/librpm.a
cvsdist 1bdb86
%{__prefix}/lib/librpm.la
cvsdist 1bdb86
%{__prefix}/lib/librpm.so
cvsdist 1bdb86
%{__prefix}/lib/librpmio.a
cvsdist 1bdb86
%{__prefix}/lib/librpmio.la
cvsdist 1bdb86
%{__prefix}/lib/librpmio.so
cvsdist 1bdb86
%{__prefix}/lib/librpmbuild.a
cvsdist 1bdb86
%{__prefix}/lib/librpmbuild.la
cvsdist 1bdb86
%{__prefix}/lib/librpmbuild.so
cvsdist 1bdb86
cvsdist 1bdb86
%files -n popt
cvsdist 1bdb86
%defattr(-,root,root)
cvsdist 1bdb86
%{__prefix}/lib/libpopt.so.*
cvsdist 1bdb86
%{__prefix}%{__share}/man/man3/popt.3*
cvsdist 9eb5b2
%lang(cs)	%{__prefix}/*/locale/cs/LC_MESSAGES/popt.mo
cvsdist 9eb5b2
%lang(da)	%{__prefix}/*/locale/da/LC_MESSAGES/popt.mo
cvsdist 9eb5b2
%lang(gl)	%{__prefix}/*/locale/gl/LC_MESSAGES/popt.mo
cvsdist 9eb5b2
%lang(hu)	%{__prefix}/*/locale/hu/LC_MESSAGES/popt.mo
cvsdist 9eb5b2
%lang(is)	%{__prefix}/*/locale/is/LC_MESSAGES/popt.mo
cvsdist 9eb5b2
%lang(no)	%{__prefix}/*/locale/no/LC_MESSAGES/popt.mo
cvsdist 9eb5b2
%lang(pt)	%{__prefix}/*/locale/pt/LC_MESSAGES/popt.mo
cvsdist 9eb5b2
%lang(ro)	%{__prefix}/*/locale/ro/LC_MESSAGES/popt.mo
cvsdist 9eb5b2
%lang(ru)	%{__prefix}/*/locale/ru/LC_MESSAGES/popt.mo
cvsdist 9eb5b2
%lang(sk)	%{__prefix}/*/locale/sk/LC_MESSAGES/popt.mo
cvsdist 9eb5b2
%lang(sl)	%{__prefix}/*/locale/sl/LC_MESSAGES/popt.mo
cvsdist 9eb5b2
%lang(sv)	%{__prefix}/*/locale/sv/LC_MESSAGES/popt.mo
cvsdist 9eb5b2
%lang(tr)	%{__prefix}/*/locale/tr/LC_MESSAGES/popt.mo
cvsdist 9eb5b2
%lang(uk)	%{__prefix}/*/locale/uk/LC_MESSAGES/popt.mo
cvsdist 9eb5b2
%lang(wa)	%{__prefix}/*/locale/wa/LC_MESSAGES/popt.mo
cvsdist 9eb5b2
%lang(zh_CN)	%{__prefix}/*/locale/zh_CN.GB2312/LC_MESSAGES/popt.mo
cvsdist 1bdb86
cvsdist 1bdb86
# XXX These may end up in popt-devel but it hardly seems worth the effort now.
cvsdist 1bdb86
%{__prefix}/lib/libpopt.a
cvsdist 1bdb86
%{__prefix}/lib/libpopt.la
cvsdist 1bdb86
%{__prefix}/lib/libpopt.so
cvsdist 1bdb86
%{__prefix}/include/popt.h
cvsdist 1bdb86
cvsdist 1bdb86
%changelog
cvsdist 9e99bf
* Sun Apr  8 2001 Matt Wilson <msw@redhat.com>
cvsdist 9e99bf
- remove the kernel->initscripts whiteout, we actually need this as a
cvsdist 9e99bf
  kernel Prereq now.
cvsdist 9e99bf
cvsdist 9eb5b2
* Tue Mar 13 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- map i686-like (i.e. w/o CMOV) platforms to better alternatives.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Mon Mar 12 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: adjust for libio breakage in Red Hat 5.x with glibc-2.0.7-29.4.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Wed Mar  7 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- remove mozilla dependency white out, no longer needed.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Fri Feb 23 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- (sparc) disable MD5 sum checks during install.
cvsdist 9eb5b2
- (db1) plug largish memory leak in simulated interface for falloc.c.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Thu Feb 22 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- portability changes from Joe Orton <jorton@redhat.com> et al.
cvsdist 9eb5b2
- (alpha): rip out ALPHA_LOSSAGE now that gcc-2.96-76 has fix (#28509).
cvsdist 9eb5b2
- (popt): use sprintf rather than snprintf for portability.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Mon Feb 19 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- rpm-4.0.2 release candidate.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Wed Feb 14 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: permit packages to differ by 0 or 32 bytes (#26373).
cvsdist 9eb5b2
- fix: permit HEADER_IMMUTABLE tag queries.
cvsdist 9eb5b2
- split db configuration into separate file.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Tue Feb 13 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: remove fixed size buffer on output path (#26987,#26332).
cvsdist 9eb5b2
- resurrect rpmErrorCode in the API for Perl-RPM.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Sat Feb 10 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: diddle exit code for attempted installs of non-packages (#26850).
cvsdist 9eb5b2
- python binding diddles to reduce installer memory footprint by
cvsdist 9eb5b2
  delayed loading of file info.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Fri Feb  9 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: make a copy of retrieved header before loading.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Sun Jan 21 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: check waitpid return code.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Fri Jan 19 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- ewt's cpio.c hack.
cvsdist 9eb5b2
- ewt's cpio.c hack reverted.
cvsdist 9eb5b2
- rebuild with i18n from rpm-4_0 branch.
cvsdist 9eb5b2
- rpmlint conformance.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Thu Jan 18 2001 Matt Wilson <msw@redhat.com>
cvsdist 9eb5b2
- fix: exit 0 at the end of %pre
cvsdist 96054a
cvsdist 9eb5b2
* Thu Jan 18 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: insure that %lang scopes over hard links correctly.
cvsdist 9eb5b2
- fix: rpmCleanPath was nibbling at .. in macrofiles incorrectly.
cvsdist 96054a
cvsdist 9eb5b2
* Wed Jan 17 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- 1st crack at Mandrake specific per-platform macros.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Tue Jan 16 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- tsort prefers presentation order.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Mon Jan 15 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: extra newline in many error messages (#23947).
cvsdist 9eb5b2
- fix: rpm -Va with db1 needs per-iterator, not per-index, offset.
cvsdist 9eb5b2
- add install/remove transaction id tags.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Sat Jan 13 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix the hack.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Fri Jan 12 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- hack: permit installer to determine package ordering using 1000003 tag.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Thu Jan 11 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: don't hang on build error.
cvsdist 9eb5b2
- fix: remove "error: " prefix from signature verification message.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Wed Jan 10 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- successors from tsort are processed in presentation order.
cvsdist 9eb5b2
- fix: find-requires.perl needed update (#23450).
cvsdist 9eb5b2
cvsdist 9eb5b2
* Tue Jan  9 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: digests on input FD_t dinna work.
cvsdist 9eb5b2
- fix: remove rebuilddb debugging leakage.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Mon Jan  8 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- tsorted packages processed in successor count order.
cvsdist 9eb5b2
- fix: resurrect --excludepath (#19666).
cvsdist 9eb5b2
cvsdist 9eb5b2
* Fri Jan  5 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: 3 packages from Red Hat 5.2 had bogus %verifyscript tag.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Wed Jan  3 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: avoid locale issues with strcasecmp/strncasecmp (#23199).
cvsdist 9eb5b2
- remove almost all explicit uses of stderr in rpmlib using rpmError().
cvsdist 9eb5b2
- fix: pass scriptlet args, as in %post -p "/sbin/ldconfig -n /lib".
cvsdist 9eb5b2
	(Rodrigo Barbosa)
cvsdist 9eb5b2
cvsdist 9eb5b2
* Tue Jan  2 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix apidocs.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Mon Jan  1 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- use popt autohelp for rpm helper binaries.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Sun Dec 31 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- (popt): fix float/double handling (#19701).
cvsdist 9eb5b2
- (popt): non-linux needs <float.h> (#22732).
cvsdist 9eb5b2
- (popt): add POPT_ARGFLAG_OPTIONAL for long options with optional arg.
cvsdist 9eb5b2
- (popt): diddle auto-help to include type of arg expected.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Sat Dec 30 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- (non-linux): move stubs.c to rpmio (#21132).
cvsdist 9eb5b2
- (python): bind initdb (#20988).
cvsdist 9eb5b2
cvsdist 9eb5b2
* Fri Dec 29 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: hack around alpha mis-compilation signature problems.
cvsdist 9eb5b2
- rpmmodule.c(handleDbResult): return empty list when nothing matches.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Thu Dec 28 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: avoid FAT and other brain-dead file systems that have not inodes.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Wed Dec 27 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- use malloc'ed buffer for large queries.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Tue Dec 26 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- send query/verify output through rpmlog().
cvsdist 9eb5b2
- resurrect rpmErrorSetCallback() and rpmErrorString().
cvsdist 9eb5b2
cvsdist 9eb5b2
* Thu Dec 21 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- immutable headers, once installed by rpm3, need to lose immutablity.
cvsdist 9eb5b2
- fix: removed headers from db need a headerCopy().
cvsdist 9eb5b2
cvsdist 9eb5b2
* Wed Dec 20 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- whiteout mozilla loop for 7.1.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Tue Dec 19 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- gendiff: generate ChangeLog patches more intelligently (#22356).
cvsdist 9eb5b2
- identify install scriptlet failures with the name of the scriptlet.
cvsdist 9eb5b2
- handle install chroot's identically throughout the install process.
cvsdist 9eb5b2
- add rpmlib(HeaderLoadSortsTags) for tracking header regions "just in case".
cvsdist 9eb5b2
- create _tmppath on the fly if not present.
cvsdist 9eb5b2
- remove /etc/rpm/macros.db1 configuration file if db3 rebuilt.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Wed Dec 13 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- bump popt version.
cvsdist 9eb5b2
- fix: (transaction.c) assume file state normal if tag is missing.
cvsdist 9eb5b2
- fix: failed signature read headerFree segfault.
cvsdist 9eb5b2
- fix: revert ALPHA_LOSSAGE, breaks 6.2/i386.
cvsdist 9eb5b2
- fix: segfault on build path, ignore deleted drips.
cvsdist 9eb5b2
- fix: synthesized callbacks for removed packages have not a pkgkey.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Tue Dec 12 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- bail on header regions.
cvsdist 9eb5b2
- change dependency loop message to RPMMESS_WARNING to use stderr, not stdout.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Sun Dec 10 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- handle added dirtoken tags (mostly) correctly with header regions.
cvsdist 9eb5b2
- add FHS doc/man/info dirs, diddle autoconf goo.
cvsdist 9eb5b2
- fix: headerUnload handles headers w/o regions correctly on rebuilddb.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Thu Dec  7 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- add rpmtransGetKeys() to retrieve transaction keys in tsort'ed order.
cvsdist 9eb5b2
- python bindings for rpmtransGetKeys().
cvsdist 9eb5b2
- fix: include alignment in count when swabbing header region.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Wed Dec  6 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- improved find-{requires,provides} for aix4/hpux/irix6/osf.
cvsdist 9eb5b2
		Tim Mooney<mooney@dogbert.cc.ndsu.NoDak.edu>
cvsdist 9eb5b2
- portability: remove use of GNU make subst in lib/Makefile (Joe Orton).
cvsdist 9eb5b2
- python: bind package removal (#21274).
cvsdist 9eb5b2
- autoconfigure building python bindings.
cvsdist 9eb5b2
- autoconfigure generating rpm API doco rpm-devel package.
cvsdist 9eb5b2
- fix: don't fdFree in rpmVerifyScript, rpmtransFree does already.
cvsdist 9eb5b2
- unify rpmError and rpmMessge interfaces through rpmlog.
cvsdist 9eb5b2
- collect and display rpm build error messages at end of build.
cvsdist 9eb5b2
- use package version 3 if --nodirtokens is specified.
cvsdist 9eb5b2
- add package names to problem sets early, don't save removed header.
cvsdist 9eb5b2
- make sure that replaced tags in region are counted in headerSizeof().
cvsdist 9eb5b2
- support for dmalloc debugging.
cvsdist 9eb5b2
- filter region tags in headerNextIterator, exit throut headerReload.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Thu Nov 30 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- add missing headerFree for legacy signature header.
cvsdist 9eb5b2
- fix: removed packages leaked DIRINDEXES tag data.
cvsdist 9eb5b2
- reload tags added during install when loading header from rpmdb.
cvsdist 9eb5b2
- avoid brp-compress hang with both compressed/uncompressed man pages.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Tue Nov 21 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- add brp-strip-shared script <rodrigob@conectiva.com.br>.
cvsdist 9eb5b2
- better item/task progress bars <rodrigob@conectiva.com.br>.
cvsdist 9eb5b2
- load headers as single contiguous region.
cvsdist 9eb5b2
- add region marker as RPM_BIN_TYPE in packages and database.
cvsdist 9eb5b2
- fix: don't headerCopy() relocateable packages if not relocating.
cvsdist 9eb5b2
- merge signatures into header after reading from package.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Mon Nov 20 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- add doxygen and lclint annotations most everywhere.
cvsdist 9eb5b2
- consistent return for all signature verification.
cvsdist 9eb5b2
- use enums for almost all rpmlib #define's.
cvsdist 9eb5b2
- API: change rpmProblem typedef to pass by reference, not value.
cvsdist 9eb5b2
- don't trim leading ./ in rpmCleanPath() (#14961).
cvsdist 9eb5b2
- detect (still need to test) rdonly linux file systems.
cvsdist 9eb5b2
- check available inodes as well as blocks on mounted file systems.
cvsdist 9eb5b2
- pass rpmTransactionSet, not elements, to installBinaryPackage et al.
cvsdist 9eb5b2
- add cscope/ctags (Rodrigo Barbosa<rodrigob@conectiva.com.br>).
cvsdist 9eb5b2
- remove getMacroBody() from rpmio API.
cvsdist 9eb5b2
- add support for unzip <rodrigob@conectiva.com.br>
cvsdist 9eb5b2
cvsdist 9eb5b2
* Thu Nov 16 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- don't verify src rpm MD5 sums (yet).
cvsdist 9eb5b2
- md5 sums are little endian (no swap) so big endian needs the swap.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Wed Nov 15 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: segfault on exit of "rpm -qp --qf '%{#fsnames}' pkg" (#20595).
cvsdist 9eb5b2
- hpux w/o -D_OPEN_SOURCE has not h_errno.
cvsdist 9eb5b2
- verify MD5 sums of payload files when unpacking archive.
cvsdist 9eb5b2
- hide libio lossage in prototype, not API.
cvsdist 9eb5b2
- add support for SHA1 as well as MD5 message digests.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Mon Nov 13 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: work around for (mis-compilation?!) segfaults on signature paths.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Sun Nov 12 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: duplicate headerFree() on instalBinaryPackage() error return.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Sat Nov 11 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: runTriggers was not adding countCorrection.
cvsdist 9eb5b2
- add rpmGetRpmlibProvides() to retrieve rpmlib(...) provides
cvsdist 9eb5b2
	"Pawel A. Gajda" <mis@k2.net.pl>.
cvsdist 9eb5b2
- syntax to specify source of Requires: (PreReq: now legacy).
cvsdist 9eb5b2
- rip out rpm{get,put}text, use getpo.sh and specspo instead.
cvsdist 9eb5b2
- fine-grained Requires, remove install PreReq's from Requires db.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Wed Oct 11 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: rpm2cpio error check wrong on non-libio platforms.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Fri Sep 29 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: more (possible) xstrdup side effects.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Wed Sep 27 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- bump popt version to 1.6.1.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Tue Sep 26 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- fix: avoid calling getpass twice as side effect of xstrdup macro (#17672).
cvsdist 9eb5b2
- order packages using tsort, clipping PreReq:'s in dependency loops.
cvsdist 9eb5b2
- handle possible db3 dependency on -lpthread more gracefully.
cvsdist 9eb5b2
cvsdist 9eb5b2
* Thu Sep 14 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 9eb5b2
- start rpm-4.0.1.