cvsdist edd8e6
%define	with_python_subpackage	1%{nil}
cvsdist b1db19
%define	with_python_version	1.5%{nil}
cvsdist edd8e6
%define with_perl_subpackage	1
cvsdist edd8e6
%define	with_bzip2		1%{nil}
cvsdist edd8e6
%define	with_apidocs		1%{nil}
cvsdist edd8e6
%define with_internal_db	1%{nil}
cvsdist 9eb5b2
%define strip_binaries		1
cvsdist 9eb5b2
cvsdist 921826
# XXX enable at your own risk, CDB access to rpmdb isn't cooked yet.
cvsdist 921826
%define	enable_cdb		create cdb
cvsdist 921826
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 a37c64
%{expand: %%define __share %(if [ -d %{__prefix}/share/man ]; then echo /share ; else echo %%{nil} ; fi)}
cvsdist 1bdb86
cvsdist b1db19
Summary: The RPM package management system.
cvsdist 1bdb86
Name: rpm
cvsdist d991ff
%define version 4.0.4
cvsdist 1bdb86
Version: %{version}
cvsdist a37c64
%{expand: %%define rpm_version %{version}}
cvsdist ea1b27
Release: 7x.16
cvsdist 1bdb86
Group: System Environment/Base
cvsdist a37c64
Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/rpm-%{rpm_version}.tar.gz
cvsdist 1bdb86
Copyright: GPL
cvsdist 1bdb86
Conflicts: patch < 2.5
cvsdist 1bdb86
%ifos linux
cvsdist 4370f6
Prereq: gawk fileutils textutils mktemp shadow-utils
cvsdist 9eb5b2
%endif
cvsdist d991ff
Requires: popt = 1.6.4
cvsdist 9eb5b2
cvsdist 4370f6
%if !%{with_internal_db}
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 4370f6
%endif
cvsdist 1bdb86
%endif
cvsdist 9eb5b2
cvsdist b60fd6
BuildRequires: zlib-devel
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 7474a3
BuildRequires: python-devel >= %{with_python_version}
cvsdist 1bdb86
%endif
cvsdist b60fd6
%if %{with_perl_subpackage}
cvsdist b60fd6
BuildRequires: perl >= 0:5.00503
cvsdist b60fd6
%endif
cvsdist 9eb5b2
cvsdist 1bdb86
BuildRoot: %{_tmppath}/%{name}-root
cvsdist 1bdb86
cvsdist 1bdb86
%description
cvsdist 73bf5c
The RPM Package Manager (RPM) is a powerful command line driven
cvsdist 1bdb86
package management system capable of installing, uninstalling,
cvsdist b1db19
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 b1db19
Summary: Development files for manipulating RPM packages.
cvsdist 1bdb86
Group: Development/Libraries
cvsdist d991ff
Requires: rpm = %{rpm_version}, popt = 1.6.4
cvsdist 1bdb86
cvsdist 1bdb86
%description devel
cvsdist b1db19
This package contains the RPM C library and header files. These
cvsdist b1db19
development files will simplify the process of writing programs that
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 a37c64
Requires: rpm = %{rpm_version}
cvsdist aaa25a
Provides: perl(Specfile)
cvsdist 1bdb86
cvsdist 1bdb86
%description build
cvsdist b1db19
The rpm-build package contains the scripts and executable programs
cvsdist b1db19
that are used to build packages using the RPM Package Manager.
cvsdist 1bdb86
cvsdist a37c64
%if %{with_python_subpackage}
cvsdist a37c64
%package python
cvsdist a37c64
Summary: Python bindings for apps which will manipulate RPM packages.
cvsdist a37c64
Group: Development/Libraries
cvsdist a37c64
Requires: rpm = %{rpm_version}
cvsdist 7474a3
Requires: python >= %{with_python_version}
cvsdist d991ff
Requires: popt = 1.6.4
cvsdist a37c64
cvsdist a37c64
%description python
cvsdist b1db19
The rpm-python package contains a module that permits applications
cvsdist a37c64
written in the Python programming language to use the interface
cvsdist b1db19
supplied by the RPM Package Manager libraries.
cvsdist a37c64
cvsdist a37c64
This package should be installed if you want to develop Python
cvsdist a37c64
programs that will manipulate RPM packages and databases.
cvsdist 4f996c
cvsdist b1db19
%endif
cvsdist b60fd6
%if %{with_perl_subpackage}
cvsdist b60fd6
%package perl
cvsdist b60fd6
Summary: Native bindings to the RPM API for Perl.
cvsdist b60fd6
Group: Development/Languages
cvsdist b60fd6
URL: http://www.cpan.org
cvsdist 73bf5c
Provides: perl(RPM::Database) = %{rpm_version}
cvsdist 73bf5c
Provides: perl(RPM::Header) = %{rpm_version}
cvsdist a37c64
Requires: rpm = %{rpm_version}
cvsdist b60fd6
Requires: perl >= 0:5.00503
cvsdist d991ff
Requires: popt = 1.6.4
cvsdist b60fd6
Obsoletes: perl-Perl-RPM
cvsdist b60fd6
cvsdist b60fd6
%description perl
cvsdist b60fd6
The Perl-RPM module is an attempt to provide Perl-level access to the
cvsdist b60fd6
complete application programming interface that is a part of the Red
cvsdist b60fd6
Hat Package Manager (RPM). Rather than have scripts rely on executing
cvsdist b60fd6
RPM commands and parse the resulting output, this module aims to give
cvsdist b60fd6
Perl programmers the ability to do anything that would otherwise have
cvsdist b60fd6
been done in C or C++.
cvsdist b60fd6
cvsdist b60fd6
The interface is being designed and laid out as a collection of
cvsdist b60fd6
classes, at least some of which are also available as tied-hash
cvsdist b60fd6
implementations.
cvsdist b60fd6
cvsdist b60fd6
At this time, the interface only provides access to the database of
cvsdist b60fd6
installed packages, and header data retrieval for RPM and SRPM files
cvsdist b1db19
is not yet installed. Error management and the export of most defined
cvsdist b60fd6
constants, through RPM::Error and RPM::Constants, respectively, are
cvsdist b60fd6
also available.
cvsdist b60fd6
cvsdist b60fd6
%endif
cvsdist 1bdb86
%package -n popt
cvsdist 1bdb86
Summary: A C library for parsing command line parameters.
cvsdist 1bdb86
Group: Development/Libraries
cvsdist d991ff
Version: 1.6.4
cvsdist 1bdb86
cvsdist 1bdb86
%description -n popt
cvsdist b1db19
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 b1db19
improves on them by allowing more powerful argument expansion. Popt
cvsdist 1bdb86
can parse arbitrary argv[] style arrays and automatically set
cvsdist b1db19
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
%prep
cvsdist 1bdb86
%setup -q
cvsdist 1bdb86
cvsdist 1bdb86
%build
cvsdist 4370f6
cvsdist 1bdb86
%ifos linux
cvsdist 058e9b
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix} --sysconfdir=/etc --localstatedir=/var --infodir='${prefix}%{__share}/info' --mandir='${prefix}%{__share}/man' --with-python=%{with_python_version} --without-javaglue
cvsdist 1bdb86
%else
cvsdist 1bdb86
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix}
cvsdist 1bdb86
%endif
cvsdist 1bdb86
cvsdist 87eb98
# XXX workaround ia64 gcc-3.1-0.18 miscompilation
cvsdist 87eb98
%ifarch ia64
cvsdist 87eb98
make CFLAGS="-g -O0 -DIA64_SUCKS_ROCKS" files.o files.lo -C build
cvsdist 87eb98
%endif
cvsdist 87eb98
cvsdist 591588
make
cvsdist 1bdb86
cvsdist b60fd6
%if %{with_perl_subpackage}
cvsdist b60fd6
{ cd Perl-RPM
cvsdist b60fd6
  CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
cvsdist b60fd6
  export SUBDIR="%{_builddir}/%{buildsubdir}"
cvsdist edd8e6
  make INC="-I. -I$SUBDIR/lib -I$SUBDIR/rpmdb -I$SUBDIR/rpmio -I$SUBDIR/popt" \
cvsdist edd8e6
    LDDLFLAGS="-shared -L$SUBDIR/lib/.libs -L$SUBDIR/rpmdb/.libs -L$SUBDIR/rpmio/.libs -L$SUBDIR/popt/.libs" %{?_smp_mflags}
cvsdist b60fd6
}
cvsdist b60fd6
%endif
cvsdist b60fd6
cvsdist 1bdb86
%install
cvsdist 1bdb86
rm -rf $RPM_BUILD_ROOT
cvsdist 1bdb86
cvsdist 1bdb86
make DESTDIR="$RPM_BUILD_ROOT" install
cvsdist 9eb5b2
cvsdist 4370f6
%ifos linux
cvsdist 4370f6
cvsdist 4370f6
# Save list of packages through cron
cvsdist 4370f6
mkdir -p ${RPM_BUILD_ROOT}/etc/cron.daily
cvsdist 4370f6
install -m 755 scripts/rpm.daily ${RPM_BUILD_ROOT}/etc/cron.daily/rpm
cvsdist 4370f6
cvsdist 4370f6
mkdir -p ${RPM_BUILD_ROOT}/etc/logrotate.d
cvsdist 4ac4c0
install -m 644 scripts/rpm.log ${RPM_BUILD_ROOT}/etc/logrotate.d/rpm
cvsdist 4370f6
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 921826
cat << E_O_F > $RPM_BUILD_ROOT/etc/rpm/macros.cdb
cvsdist 921826
%{?enable_cdb:#%%__dbi_cdb	%{enable_cdb}}
cvsdist 921826
E_O_F
cvsdist 1bdb86
cvsdist 4370f6
mkdir -p $RPM_BUILD_ROOT/var/lib/rpm
cvsdist 4370f6
for dbi in \
cvsdist 4370f6
	Basenames Conflictname Dirnames Group Installtid Name Providename \
cvsdist 4370f6
	Provideversion Removetid Requirename Requireversion Triggername \
cvsdist e6bcc6
	Sigmd5 Sha1header Filemd5s Packages \
cvsdist e6bcc6
	__db.001 __db.002 __db.003 __db.004 __db.005 __db.006 __db.007 \
cvsdist 921826
	__db.008 __db.009
cvsdist 4370f6
do
cvsdist 4370f6
    touch $RPM_BUILD_ROOT/var/lib/rpm/$dbi
cvsdist 4370f6
done
cvsdist 4370f6
cvsdist 4370f6
%endif
cvsdist 4370f6
cvsdist 9eb5b2
%if %{with_apidocs}
cvsdist 9eb5b2
gzip -9n apidocs/man/man*/* || :
cvsdist 9eb5b2
%endif
cvsdist 9eb5b2
cvsdist b60fd6
%if %{with_perl_subpackage}
cvsdist b60fd6
{ cd Perl-RPM
cvsdist b60fd6
  eval `perl '-V:installsitearch'`
cvsdist b60fd6
  eval `perl '-V:installarchlib'`
cvsdist b60fd6
  mkdir -p $RPM_BUILD_ROOT/$installarchlib
cvsdist edd8e6
  make PREFIX=${RPM_BUILD_ROOT}%{__prefix} \
cvsdist edd8e6
    INSTALLMAN1DIR=${RPM_BUILD_ROOT}%{__prefix}%{__share}/man/man1 \
cvsdist edd8e6
    INSTALLMAN3DIR=${RPM_BUILD_ROOT}%{__prefix}%{__share}/man/man3 \
cvsdist edd8e6
	install
cvsdist b60fd6
  rm -f $RPM_BUILD_ROOT/$installarchlib/perllocal.pod
cvsdist b60fd6
  rm -f $RPM_BUILD_ROOT/$installsitearch/auto/RPM/.packlist
cvsdist b60fd6
  cd ..
cvsdist b60fd6
}
cvsdist b60fd6
%endif
cvsdist b60fd6
cvsdist 9eb5b2
%if %{strip_binaries}
cvsdist 1bdb86
{ cd $RPM_BUILD_ROOT
cvsdist 73bf5c
  %{__strip} ./bin/rpm
cvsdist 73bf5c
  %{__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 4370f6
%ifos linux
cvsdist 9eb5b2
if [ -f /var/lib/rpm/Packages -a -f /var/lib/rpm/packages.rpm ]; then
cvsdist 4370f6
    echo "
cvsdist 4370f6
You have both
cvsdist 4370f6
	/var/lib/rpm/packages.rpm	db1 format installed package headers
cvsdist 4370f6
	/var/lib/rpm/Packages		db3 format installed package headers
cvsdist 4370f6
Please remove (or at least rename) one of those files, and re-install.
cvsdist 4370f6
"
cvsdist 9eb5b2
    exit 1
cvsdist 9eb5b2
fi
cvsdist 4370f6
/usr/sbin/groupadd -g 37 rpm				> /dev/null 2>&1
cvsdist 3d91ba
/usr/sbin/useradd  -r -d /var/lib/rpm -u 37 -g 37 rpm	> /dev/null 2>&1
cvsdist 4370f6
%endif
cvsdist 9eb5b2
exit 0
cvsdist 9eb5b2
cvsdist 1bdb86
%post
cvsdist 1bdb86
%ifos linux
cvsdist 9eb5b2
/sbin/ldconfig
cvsdist 9eb5b2
if [ -f /var/lib/rpm/packages.rpm ]; then
cvsdist 4370f6
    /bin/chown rpm.rpm /var/lib/rpm/*.rpm
cvsdist 9eb5b2
elif [ -f /var/lib/rpm/Packages ]; then
cvsdist 9eb5b2
    # undo db1 configuration
cvsdist 9eb5b2
    rm -f /etc/rpm/macros.db1
cvsdist 4370f6
    /bin/chown rpm.rpm /var/lib/rpm/[A-Z]*
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 4370f6
%endif
cvsdist 4370f6
exit 0
cvsdist 1bdb86
cvsdist 9eb5b2
%ifos linux
cvsdist 4370f6
%postun
cvsdist 4370f6
/sbin/ldconfig
cvsdist 75a4b0
if [ $1 = 0 ]; then
cvsdist 4370f6
    /usr/sbin/userdel rpm
cvsdist 4370f6
    /usr/sbin/groupdel rpm
cvsdist 4370f6
fi
cvsdist 4370f6
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 4370f6
%define	rpmattr		%attr(0755, rpm, rpm)
cvsdist 4370f6
cvsdist 1bdb86
%files
cvsdist 1bdb86
%defattr(-,root,root)
cvsdist 1bdb86
%doc RPM-PGP-KEY RPM-GPG-KEY CHANGES GROUPS doc/manual/[a-z]*
cvsdist 4370f6
%attr(0755, rpm, rpm)	/bin/rpm
cvsdist 4370f6
cvsdist 4370f6
%ifos linux
cvsdist 4370f6
%config(noreplace,missingok)	/etc/cron.daily/rpm
cvsdist 4370f6
%config(noreplace,missingok)	/etc/logrotate.d/rpm
cvsdist 4370f6
%dir				/etc/rpm
cvsdist 921826
%config(noreplace,missingok)	/etc/rpm/macros.*
cvsdist 4370f6
%attr(0755, rpm, rpm)	%dir /var/lib/rpm
cvsdist 4370f6
cvsdist 4370f6
%define	rpmdbattr %attr(0644, rpm, rpm) %verify(not md5 size mtime) %ghost %config(missingok,noreplace)
cvsdist 4370f6
%rpmdbattr	/var/lib/rpm/Basenames
cvsdist 4370f6
%rpmdbattr	/var/lib/rpm/Conflictname
cvsdist 921826
%rpmdbattr	/var/lib/rpm/__db.0*
cvsdist 4370f6
%rpmdbattr	/var/lib/rpm/Dirnames
cvsdist e6bcc6
%rpmdbattr	/var/lib/rpm/Filemd5s
cvsdist 4370f6
%rpmdbattr	/var/lib/rpm/Group
cvsdist 4370f6
%rpmdbattr	/var/lib/rpm/Installtid
cvsdist 4370f6
%rpmdbattr	/var/lib/rpm/Name
cvsdist 4370f6
%rpmdbattr	/var/lib/rpm/Packages
cvsdist 4370f6
%rpmdbattr	/var/lib/rpm/Providename
cvsdist 4370f6
%rpmdbattr	/var/lib/rpm/Provideversion
cvsdist 4370f6
%rpmdbattr	/var/lib/rpm/Removetid
cvsdist 4370f6
%rpmdbattr	/var/lib/rpm/Requirename
cvsdist 4370f6
%rpmdbattr	/var/lib/rpm/Requireversion
cvsdist e6bcc6
%rpmdbattr	/var/lib/rpm/Sigmd5
cvsdist e6bcc6
%rpmdbattr	/var/lib/rpm/Sha1header
cvsdist 4370f6
%rpmdbattr	/var/lib/rpm/Triggername
cvsdist 4370f6
cvsdist 4370f6
%endif
cvsdist 4370f6
cvsdist 4370f6
%rpmattr	%{__prefix}/bin/rpm2cpio
cvsdist 4370f6
%rpmattr	%{__prefix}/bin/gendiff
cvsdist 4370f6
%rpmattr	%{__prefix}/bin/rpmdb
cvsdist 4370f6
#%rpmattr	%{__prefix}/bin/rpm[eiu]
cvsdist 4370f6
%rpmattr	%{__prefix}/bin/rpmsign
cvsdist 4370f6
%rpmattr	%{__prefix}/bin/rpmquery
cvsdist 4370f6
%rpmattr	%{__prefix}/bin/rpmverify
cvsdist 4370f6
cvsdist d991ff
%{__prefix}/lib/librpm-4.0.4.so
cvsdist d991ff
%{__prefix}/lib/librpmdb-4.0.4.so
cvsdist d991ff
%{__prefix}/lib/librpmio-4.0.4.so
cvsdist d991ff
%{__prefix}/lib/librpmbuild-4.0.4.so
cvsdist 1bdb86
cvsdist 591588
%attr(0755, rpm, rpm)	%dir %{__prefix}/lib/rpm
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/config.guess
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/config.sub
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/convertrpmrc.sh
cvsdist 4370f6
%attr(0644, rpm, rpm)	%{__prefix}/lib/rpm/macros
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/mkinstalldirs
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/rpm.*
cvsdist 0bfa40
%rpmattr	%{__prefix}/lib/rpm/rpm2cpio.sh
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/rpm[deiukqv]
cvsdist 4370f6
%attr(0644, rpm, rpm)	%{__prefix}/lib/rpm/rpmpopt*
cvsdist 4370f6
%attr(0644, rpm, rpm)	%{__prefix}/lib/rpm/rpmrc
cvsdist 4370f6
cvsdist 4370f6
%ifarch i386 i486 i586 i686 athlon
cvsdist 4370f6
%attr(-, rpm, rpm)		%{__prefix}/lib/rpm/i[3456]86*
cvsdist 698b80
%attr(-, rpm, rpm)		%{__prefix}/lib/rpm/athlon*
cvsdist 1bdb86
%endif
cvsdist 73bf5c
%ifarch alpha alphaev5 alphaev56 alphapca56 alphaev6 alphaev67
cvsdist 4370f6
%attr(-, rpm, rpm)		%{__prefix}/lib/rpm/alpha*
cvsdist 1bdb86
%endif
cvsdist 73bf5c
%ifarch sparc sparcv9 sparc64
cvsdist 4370f6
%attr(-, rpm, rpm)		%{__prefix}/lib/rpm/sparc*
cvsdist 1bdb86
%endif
cvsdist 1bdb86
%ifarch ia64
cvsdist 4370f6
%attr(-, rpm, rpm)		%{__prefix}/lib/rpm/ia64*
cvsdist 1bdb86
%endif
cvsdist 73bf5c
%ifarch powerpc ppc ppciseries ppcpseries ppcmac
cvsdist 4370f6
%attr(-, rpm, rpm)		%{__prefix}/lib/rpm/ppc*
cvsdist 4370f6
%endif
cvsdist 4370f6
%ifarch s390 s390x
cvsdist 4370f6
%attr(-, rpm, rpm)		%{__prefix}/lib/rpm/s390*
cvsdist 1bdb86
%endif
cvsdist 9eb5b2
%ifarch armv3l armv4l
cvsdist 4370f6
%attr(-, rpm, rpm)		%{__prefix}/lib/rpm/armv[34][lb]*
cvsdist 9eb5b2
%endif
cvsdist 73bf5c
%ifarch mips mipsel mipseb
cvsdist 73bf5c
%attr(-, rpm, rpm)		%{__prefix}/lib/rpm/mips*
cvsdist 73bf5c
%endif
cvsdist 4370f6
%attr(-, rpm, rpm)		%{__prefix}/lib/rpm/noarch*
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 d991ff
%lang(ko)	%{__prefix}/*/locale/ko/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 4370f6
%{__prefix}%{__share}/man/man1/gendiff.1*
cvsdist 4370f6
%{__prefix}%{__share}/man/man8/rpm.8*
cvsdist 4370f6
%{__prefix}%{__share}/man/man8/rpm2cpio.8*
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 4370f6
%rpmattr	%{__prefix}/bin/rpmbuild
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/brp-*
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/check-prereqs
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/config.site
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/cpanflute
cvsdist aaa25a
%rpmattr	%{__prefix}/lib/rpm/cpanflute2
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/cross-build
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/find-lang.sh
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/find-prov.pl
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/find-provides
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/find-provides.perl
cvsdist 1f56f5
%rpmattr	%{__prefix}/lib/rpm/find-req.pl
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/find-requires
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/find-requires.perl
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/get_magic.pl
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/getpo.sh
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/http.req
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/javadeps
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/magic.prov
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/magic.req
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/perl.prov
cvsdist aaa25a
%rpmattr	%{__prefix}/lib/rpm/Specfile.pm
cvsdist 1f56f5
cvsdist 1f56f5
# XXX remove executable bit to disable autogenerated perl requires for now.
cvsdist b1db19
#%rpmattr	%{__prefix}/lib/rpm/perl.req
cvsdist b1db19
%attr(0644, rpm, rpm) %{__prefix}/lib/rpm/perl.req
cvsdist 1f56f5
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/rpm[bt]
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/rpmdiff
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/rpmdiff.cgi
cvsdist 0bfa40
%rpmattr	%{__prefix}/lib/rpm/trpm
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/u_pkg.sh
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/vpkg-provides.sh
cvsdist 4370f6
%rpmattr	%{__prefix}/lib/rpm/vpkg-provides2.sh
cvsdist 4370f6
cvsdist 4370f6
%{__prefix}%{__share}/man/man8/rpmbuild.8*
cvsdist 1bdb86
cvsdist 9eb5b2
%if %{with_python_subpackage}
cvsdist 1bdb86
%files python
cvsdist 1bdb86
%defattr(-,root,root)
cvsdist 7474a3
%{__prefix}/lib/python%{with_python_version}/site-packages/rpmmodule.so
cvsdist edd8e6
#%{__prefix}/lib/python%{with_python_version}/site-packages/poptmodule.so
cvsdist 1bdb86
%endif
cvsdist 1bdb86
cvsdist b60fd6
%if %{with_perl_subpackage}
cvsdist b60fd6
%files perl
cvsdist b60fd6
%defattr(-,root,root)
cvsdist b60fd6
%rpmattr	%{__prefix}/bin/rpmprune
cvsdist b60fd6
%{perl_sitearch}/auto/*
cvsdist e0a59a
%{perl_sitearch}/RPM
cvsdist e0a59a
%{perl_sitearch}/RPM.pm
cvsdist b60fd6
%{__prefix}%{__share}/man/man1/rpmprune.1*
cvsdist b60fd6
%{__prefix}%{__share}/man/man3/RPM*
cvsdist b60fd6
%endif
cvsdist b60fd6
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 4370f6
%{__prefix}/lib/librpmdb.a
cvsdist 4370f6
%{__prefix}/lib/librpmdb.la
cvsdist 4370f6
%{__prefix}/lib/librpmdb.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 d991ff
%lang(ko)	%{__prefix}/*/locale/ko/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 ea1b27
* Thu Apr 11 2002 Tim Powers <timp@redhat.com>
cvsdist ea1b27
- rebuilt in new environment
cvsdist ea1b27
cvsdist ea1b27
* Thu Apr 11 2002 Jeff Johnson <jbj@redhat.com>
cvsdist ea1b27
- fix: generate config file md5 as ascii, not binary (#62542).
cvsdist 54df37
cvsdist 54df37
* Fri Apr  5 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 54df37
- non-glibc: on upgrade, mergesort is much faster than quicksort.
cvsdist 54df37
cvsdist 89f6d0
* Thu Apr  4 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 89f6d0
- speedup large queries by ~50%.
cvsdist 89f6d0
- revert to presentation ordering Yet Again (#62158).
cvsdist 72731d
cvsdist 058e9b
* Wed Mar 27 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 058e9b
- fix: look for "/path" in Providename as well as Basenames (#59665).
cvsdist 058e9b
- fix: avoid /dev/log installation more carefully (#62012).
cvsdist 058e9b
- fix: don't compile beecrypt java bindings (#61992).
cvsdist 058e9b
- solaris: save main() envp in global environ for use with gpg.
cvsdist 058e9b
- don't add empty md5 strings to Filemd5's index.
cvsdist 058e9b
- create Filemd5 index with binary, not ascii, keys.
cvsdist 058e9b
cvsdist 5e1a03
* Fri Mar 22 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 5e1a03
- fix: make sure that .rpmsave files are created (#57078).
cvsdist 5e1a03
cvsdist 0f2613
* Mon Mar 18 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 0f2613
- fix: one-step-too-far when searching added package provides (#61388).
cvsdist 0f2613
- fix: avoid libio misconfiguration with bleeding edge glibc.
cvsdist 0f2613
- fix: add quotes around [:blank:] in linux find-provides.
cvsdist 0f2613
- make --addsign and --resign behave exactly the same.
cvsdist 0f2613
- *really* dump signature header immutable region.
cvsdist 0f2613
- fix: don't overflow result buffer if gpg/pgp gives copious output.
cvsdist 0f2613
cvsdist 0f2613
* Fri Mar 15 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 0f2613
- re-enable FD_CLOEXEC, the problem is in zlib through mmap.
cvsdist 0f2613
- add toy python callbacks for payload unpacking failure(s).
cvsdist 0f2613
cvsdist 44f30b
* Wed Feb 13 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 44f30b
- don't do close-on-exec, 2 powertools packages cannot be read when doing.
cvsdist 44f30b
- reapply Berkeley DB patch #4491.
cvsdist 44f30b
cvsdist aaa25a
* Thu Feb  7 2002 Jeff Johnson <jbj@redhat.com>
cvsdist aaa25a
- rpm-4.0.4 release candidate.
cvsdist aaa25a
- add cpanflute2, another perl.req fiddle.
cvsdist aaa25a
- another cpanflute2 patch.
cvsdist aaa25a
cvsdist e6bcc6
* Mon Feb  4 2002 Jeff Johnson <jbj@redhat.com>
cvsdist e6bcc6
- generate index for pkgid (aka Sigmd5) tag, query/verify by pkgid.
cvsdist e6bcc6
- generate index for hdrid (aka Sha1header) tag, query/verify by hdrid.
cvsdist e6bcc6
- generate index for fileid (aka Filemd5s) tag, query/verify by fileid.
cvsdist e6bcc6
- query/verify by install transaction id.
cvsdist e6bcc6
cvsdist 0bfa40
* Sun Feb  3 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 0bfa40
- transaction rollbacks are functional.
cvsdist 0bfa40
cvsdist 6eca54
* Sat Feb  2 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 6eca54
- fix: drop header region when writing repackaged legacy header.
cvsdist 3a1413
- bail on %files macro.
cvsdist 6eca54
cvsdist 6eca54
* Fri Feb  1 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 6eca54
- macro for %%files, always include %%defattr(), redhat config only.
cvsdist 6eca54
cvsdist e515a0
* Thu Jan 31 2002 Jeff Johnson <jbj@redhat.com>
cvsdist e515a0
- permit args to be hidden within %%__find_{requires,provides}.
cvsdist e515a0
- a couple more perl.{prov,req} fiddles.
cvsdist e515a0
cvsdist 99b18a
* Wed Jan 30 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 99b18a
- legacy: configurable whiteout for known Red Hat dependency loops.
cvsdist 99b18a
- perl.req: don't mis-generate dependencies like perl(::path/to/foo.pl).
cvsdist 99b18a
- use chainsaw algorithm for dependency tree decimation when ordering.
cvsdist 99b18a
cvsdist 0c373d
* Tue Jan 29 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 0c373d
- transaction rollback code in rpmRollback().
cvsdist fbbb76
- Red Hat 6.2 portability cruft.
cvsdist 0c373d
cvsdist 0c373d
* Sun Jan 27 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 0c373d
- fix: fancy hash fiddles if not a tty.
cvsdist 0c373d
- fix: handle /.../ correctly in rpmCleanPath().
cvsdist 0c373d
cvsdist c7fbde
* Sat Jan 26 2002 Jeff Johnson <jbj@redhat.com>
cvsdist c7fbde
- fix: %exclude functional (again).
cvsdist c7fbde
- trap SIGILL for ppc64 inline asm voodoo fix from cross-dressed ppc32.
cvsdist c7fbde
- rpm-perl: force numeric comparison on rpm version (#58882).
cvsdist c7fbde
cvsdist c87330
* Tue Jan 22 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 10a335
- fix: query format qualifiers needed header.c merge.
cvsdist 10a335
- ppc64 arch added (#58634,#58636).
cvsdist fbd257
- turn on auto-generated perl requirements (#58519, #58536, #58537).
cvsdist fbd257
- add internal (customized) version of zlib.
cvsdist 10a335
cvsdist 520d60
* Mon Jan 21 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 87eb98
- sync rpmdb and build with rpm-4.1, lots of splint annotations.
cvsdist 87eb98
- add :armor and :base64 query format qualifiers for binary signatures.
cvsdist 520d60
cvsdist 520d60
* Sat Jan 19 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 520d60
- use beecrypt routines to calculate digests in rpm.
cvsdist 520d60
- dump legacy support for broken md5 signatures.
cvsdist 87eb98
- sync popt and rpmio with rpm-4.1, rpmio has OpenPGP API.
cvsdist 520d60
cvsdist 4f996c
* Thu Jan 17 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 4f996c
- missing key(s) on keyring when verifying a signature is now an error.
cvsdist 4f996c
- remove dependency whiteout.
cvsdist 4f996c
- calculate rpm-4.1 ordering/orientation metrics in rpmdepOrder().
cvsdist 4f996c
cvsdist edd8e6
* Fri Jan 11 2002 Jeff Johnson <jbj@redhat.com>
cvsdist edd8e6
- permit subset installs for %lang colored hardlink file sets.
cvsdist edd8e6
cvsdist edd8e6
* Thu Jan 10 2002 Jeff Johnson <jbj@redhat.com>
cvsdist edd8e6
- fix: signing multiple times dinna work, discard immutable region.
cvsdist edd8e6
- remove poptmodule.so for separate packaging.
cvsdist edd8e6
cvsdist edd8e6
* Wed Jan  9 2002 Jeff Johnson <jbj@redhat.com>
cvsdist edd8e6
- permit gpg/pgp/pgp5 execs to be reconfigured.
cvsdist edd8e6
cvsdist edd8e6
* Tue Jan  8 2002 Jeff Johnson <jbj@redhat.com>
cvsdist edd8e6
- use db-4.0.14 final internally.
cvsdist edd8e6
- make rpm-perl package self-hosting (#57748).
cvsdist edd8e6
cvsdist f1d605
* Mon Jan  7 2002 Jeff Johnson <jbj@redhat.com>
cvsdist f1d605
- Depends should use CDB if configured.
cvsdist 7474a3
- autodetect python 1.5/2.2.
cvsdist f1d605
cvsdist 5f5808
* Sun Jan  6 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 5f5808
- handle lazy db open's in chroot with absolute path, not prefix strip.
cvsdist 5f5808
cvsdist 5f5808
* Sat Jan  5 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 5f5808
- sparc: make dbenv per-rpmdb, not per-dbi.
cvsdist 5f5808
cvsdist 4ac4c0
* Thu Dec 20 2001 Jeff Johnson <jbj@redhat.com>
cvsdist 4ac4c0
- tru64 compiler message cleanup.
cvsdist 4ac4c0
- add buildarch lines for hppa (#57728).
cvsdist 4ac4c0
cvsdist f92dc6
* Wed Dec 19 2001 Jeff Johnson <jbj@redhat.com>
cvsdist f92dc6
- look for PY_VERSION 2.2c1.
cvsdist f92dc6
- fix: typo in find-requires.
cvsdist f92dc6
cvsdist f92dc6
* Sun Dec  9 2001 Jeff Johnson <jbj@redhat.com>
cvsdist f92dc6
- solaris: translate i86pc to i386 (#57182).
cvsdist 4ac4c0
- fix: %%GNUconfigure breaks with single quotes (#57264).
cvsdist f92dc6
cvsdist d991ff
* Mon Dec  3 2001 Jeff Johnson <jbj@redhat.com>
cvsdist d991ff
- rpm-4.0.4 started.
cvsdist d991ff
- turn off rpm-perl until it's self-hosting.
cvsdist d991ff
- jigger up rpm-python with python-2.2b2 for now.
cvsdist d991ff
- remove libtoolize from %%configure for now (#57039).
cvsdist dbb0db
- teach find-requires to autogenerate GCC_3.0 dependencies.