cvsdist edd8e6
%define	with_python_subpackage	1%{nil}
cvsdist edd8e6
%define	with_python_version	2.2%{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 4f996c
Summary: The Red Hat 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 c87330
Release: 0.18
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 4f996c
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 4f996c
Summary: Development files for applications which will manipulate RPM packages.
cvsdist 1bdb86
Group: Development/Libraries
cvsdist d991ff
Requires: rpm = %{rpm_version}, popt = 1.6.4
cvsdist 1bdb86
cvsdist 1bdb86
%description devel
cvsdist 4f996c
This package contains the RPM C library and header files.  These
cvsdist 4f996c
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 a37c64
Requires: rpm = %{rpm_version}
cvsdist 1bdb86
cvsdist 1bdb86
%description build
cvsdist 4f996c
This package contains scripts and executable programs that are used to
cvsdist 4f996c
build packages using RPM.
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 4f996c
The rpm-python package contains a module which permits applications
cvsdist a37c64
written in the Python programming language to use the interface
cvsdist 4f996c
supplied by RPM (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 edd8e6
%endif
cvsdist 4f996c
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 4f996c
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 4f996c
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 4f996c
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 4f996c
improves on them by allowing more powerful argument expansion.  Popt
cvsdist 1bdb86
can parse arbitrary argv[] style arrays and automatically set
cvsdist 4f996c
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 4f996c
Install popt if you're a C programmer and you'd like to use its
cvsdist 4f996c
capabilities.
cvsdist 4f996c
cvsdist 1bdb86
%prep
cvsdist 1bdb86
%setup -q
cvsdist 1bdb86
cvsdist 1bdb86
%build
cvsdist 4370f6
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 20c1e4
# XXX workaround alpha sha1 digest miscompilation
cvsdist 20c1e4
%ifarch alpha alphaev5 alphaev56 alphapca56 alphaev6 alphaev67
cvsdist 20c1e4
make CFLAGS="-g -O0" digest.o digest.lo -C rpmio
cvsdist 20c1e4
%endif
cvsdist 20c1e4
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 921826
	Packages __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 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 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 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 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 1f56f5
cvsdist 1f56f5
# XXX remove executable bit to disable autogenerated perl requires for now.
cvsdist c87330
%rpmattr	%{__prefix}/lib/rpm/perl.req
cvsdist c87330
#%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 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 c87330
* Wed Jan 23 2002 Jeff Johnson <jbj@redhat.com>
cvsdist c87330
- flip the perl.req bit for 8.0, auto-generated perl requirements go live.
cvsdist c87330
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 5263c0
- turn on auto-generated perl reuirements (#58519, #58536, #58537).
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.