rpm/rpm.spec

985 lines
37 KiB
RPMSpec

#% define program_suffix 5
%define with_perl_subpackage 1
%define with_python_subpackage 1
%define with_apidocs 1
%define with_selinux 0
# Bootstrap build (no first stage deps)
# rpm -ba --define='bootstrap 1' rpm.spec
%if "%{bootstrap}" == "1"
%define with_perl_subpackage 0
%define with_python_subpackage 1
%define with_apidocs 0
%define with_selinux 0
%endif
%define packager_groupid 65028
%define packager_userid 65028
%define majversion %(echo %version | cut -d. -f 1-2)
%define __prefix %{?_prefix}%{!?_prefix:/usr}
%{?!_lib: %define _lib lib}
%define __bindir %{__prefix}/bin
%define __includedir %{__prefix}/include
%define __libdir %{__prefix}/%{_lib}
%define __mandir %{__prefix}/share/man
%{expand:%%define gnu_libpthread %(getconf GNU_LIBPTHREAD_VERSION | cut -d" " -f1)}
%if "%{gnu_libpthread}" != "NPTL"
%{error:%(echo -e "NPTL support required!\n")}
%endif
Name: rpm
Version: 5.2.1
Release: 25mamba
Summary: The RPM package management system
Group: System/Management
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://rpm5.org
Source0: http://rpm5.org/files/rpm/rpm-%{majversion}/rpm-%{version}.tar.gz
Source1: rpm-cpu-os-macros-openmamba.tar.gz
##Source1: rpm-4.0.4-cross-config.cache
Source2: rpm-macros_openmamba
Source3: rpm-5.2-update.upd
##Patch0: %{name}-4.0.4-configure.patch
Patch0: rpm-5.2.1-vendor_openmamba.patch
Patch1: rpm-4.4.8-rpmtopdir.patch
Patch2: rpm-5.1.6-macrodirs.patch
Patch7: rpm-4.4.4-bashort.patch
# let rpm undestand alpha, beta, and rc version numbers
Patch9: rpm-4.4.4-rpmvercmp.patch
Patch10: rpm-4.4.5-installplatform.patch
Patch14: rpm-5.2.1-brp_infodir.patch
Patch15: rpm-4.4.8-brp_generic.patch
Patch16: rpm-4.4.9-rpmrc.patch
Patch17: rpm-4.4.7-makeoldinstall.patch
Patch20: rpm-5.2.1-brp_strip_builddirs.patch
Patch21: rpm-4.4.4-kernel26-autoreq.patch
Patch24: rpm-4.4.4-target_platform.patch
Patch25: rpm-4.4.8-disable_libtool_helper.patch
Patch26: rpm-5.2.1-rpmlock_path.patch
#???#Patch27: %{name}-4.4.4-configure_db3.patch
Patch28: rpm-4.4.4-configsub_ppc.patch
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=151609
Patch29: rpm-5.2.1-fileconflicts.patch
# use temporary table for Depends DB (mandrake patch)
Patch30: rpm-4.4.4-depsdb.patch
Patch31: rpm-4.4.5-disable_repackaging.patch
Patch32: rpm-4.4.5-nobuildrootpath_exitcode.patch
Patch33: rpm-4.4.5-py_requires_macro.patch
Patch35: rpm-4.4.8-disable_keyserver.patch
Patch36: rpm-5.1.6-source_set_packager_owner.patch
Patch38: rpm-5.2.1-brp_strip_shared.patch
Patch39: rpm-4.4.6-no-dirnames-dep.patch
Patch40: rpm-4.4.8-keep_default_rpmrc.patch
Patch41: rpm-5.2.1-db_legacy_config.patch
Patch42: rpm-4.4.9-rpmevr.patch
Patch43: rpm-5.2.1-buildrequires_external.patch
Patch44: rpm-4.4.7-neon-0.28.patch
Patch45: rpm-5.2.1-disable_scriptlet_requires.patch
Patch46: rpm-4.4.9-brp_strip_static_archive.patch
Patch47: rpm-4.4.9-fix_glibc_autoreq.patch
Patch48: rpm-5.2.1-macros_cross_vars.patch
Patch49: rpm-5.2.1-spec_preprocessed_output.patch
Patch50: rpm-5.2.1-fix_db_upgrade_from_449.patch
Patch51: rpm-5.2.1-openmamba_optional_dirname_and_symlink_deps.patch
Patch52: rpm-5.2.1-openmamba_no_deps_on_building_srpms.patch
Patch53: rpm-5.2.1-openmamba_no_owner_group_on_srpm_install.patch
Patch54: rpm-5.2.1-openmamba_no_deps_on_installing_srpms.patch
Patch55: rpm-5.2.1-set_openall_before_chroot.patch
Patch56: rpm-5.2.1-configure_fix_gnueabi_support.patch
Patch57: rpm-5.2.1-disable_rpmmi_usermem.patch
Patch58: rpm-5.2.1-mono-avoid-empty-requires.patch
Patch59: rpm-5.2.1-pkgUnpackagedSubdirs_fix_slowness.patch
Patch60: rpm-5.2.1-silent-loop-detection_and_more_rescans.patch
Patch61: rpm-5.2.1-debugedit-cvs-update.patch
Patch62: rpm-5.2.1-python-2.7.patch
Patch63: rpm-5.2.1-sourcepackage-rpm4.patch
Patch64: rpm-5.2.1-build-from-tarball.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libbeecrypt-devel
BuildRequires: libbzip2-devel
%ifnarch arm
BuildRequires: libcpuinfo-devel
%endif
BuildRequires: libe2fs-devel
BuildRequires: libelf-devel
BuildRequires: libexpat-devel
BuildRequires: libkeyutils-devel
%if "%{bootstrap}" != "1"
BuildRequires: libkrb5-devel
%endif
BuildRequires: libneon-devel
BuildRequires: libopenssl-devel
BuildRequires: libpopt-devel
BuildRequires: libpython-devel
BuildRequires: libstdc++6-devel
BuildRequires: libz-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: libsyck-devel
%if "%{bootstrap}" != "1"
BuildRequires: libproxy-devel
%endif
BuildRequires: libpython27-devel
BuildRequires: gcc-c++
BuildRequires: binutils
BuildRequires: bison >= 2.1
BuildRequires: bzip2
BuildRequires: coreutils
BuildRequires: cpio
BuildRequires: file
BuildRequires: gawk
BuildRequires: gnupg
BuildRequires: grep
BuildRequires: gzip
BuildRequires: libtool
BuildRequires: make
BuildRequires: openssh-client
BuildRequires: patch >= 2.2
BuildRequires: perl >= 5.8.0
BuildRequires: sed
BuildRequires: unzip
BuildRequires: tar
BuildRequires: elfutils-devel
BuildRequires: libreadline-devel
BuildRequires: gettext-devel
BuildRequires: bash
BuildRequires: cpio
BuildRequires: ldconfig
BuildRequires: libsqlite-devel
BuildRequires: perl-Archive-Tar
BuildRequires: perl-devel
BuildRequires: pwdutils
BuildRequires: libmagic-devel
BuildRequires: libelf-devel
%if %{with_apidocs}
BuildRequires: doxygen >= 1.4.5
%endif
BuildRequires: libopenssl-devel >= 1.0.1c-2mamba
Requires(post):/sbin/ldconfig
Requires(pre): /usr/sbin/groupadd
Requires(pre): /usr/sbin/useradd
#Requires(post):openmamba-release
Requires(post):gnupg
##Requires: libdb3 >= 3.1.17
Requires: perl >= 5.8.0
Requires: perl-Archive-Tar >= 1.05
Requires: /bin/cpio
Requires: patch
Requires: elfutils
# This is to upgrade from rpm 4.4.5; don't upgrade the version (4.4.6-1)
Provides: rpmlib(FileDigestParameterized) = 4.4.6-1
Provides: rpmlib(CompressedFileNames) = 3.0.4
Provides: rpmlib(PayloadFilesHavePrefix) = 4.0
Provides: rpmlib(VersionedDependencies) = 3.0.3
Provides: rpmlib(PartialHardlinkSets) = 4.0.4
Provides: rpm5
Obsoletes: rpm5
Provides: rpm5-build
Obsoletes: rpm5-build
Provides: rpm%{?program_suffix}-build
Obsoletes: rpm%{?program_suffix}-build
BuildRoot: %{_tmppath}/%{name}-%{version}-root
# FIXME (?):
# checking for ne_send_request_chunk in -lneon... no
%description
RPM is a powerful command line driven package management system capable of installing, uninstalling, verifying, querying, and updating software packages.
Each software package consists of an archive of files along with information about the package like its version, a description, etc.
%package devel
Summary: The RPM package management system
Group: Development/Libraries
Requires: elfutils
Requires: %{name} = %{version}-%{release}
Provides: rpm5-devel
Obsoletes: rpm5-devel
%description devel
RPM is a powerful command line driven package management system capable of installing, uninstalling, verifying, querying, and updating software packages.
Each software package consists of an archive of files along with information about the package like its version, a description, etc.
%if %{with_perl_subpackage}
%package -n perl-RPM%{?program_suffix}
Summary: Native bindings to the RPM API for Perl
Group: Development/Libraries/Perl
Requires: perl >= 5.8.0
Requires: %{name} = %{version}-%{release}
Requires: libpopt
Provides: rpm-perl
Obsoletes: rpm-perl
Provides: perl-RPM5
Obsoletes: perl-RPM5
%description -n perl-RPM%{?program_suffix}
The Perl-RPM module is an attempt to provide Perl-level access to the complete application programming interface that is a part of the Red Hat Package Manager (RPM). Rather than have scripts rely on executing RPM commands and parse the resulting output, this module aims to give Perl programmers the ability to do anything that would otherwise have been done in C or C++.
The interface is being designed and laid out as a collection of classes, at least some of which are also available as tied-hash implementations.
At this time, the interface only provides access to the database of installed packages, and header data retrieval for RPM and SRPM files is not yet installed. Error management and the export of most defined constants, through RPM::Error and RPM::Constants, respectively, are also available.
%endif
%if %{with_python_subpackage}
%package -n python-rpm%{?program_suffix}
Summary: Python bindings for apps which will manipulate RPM packages
Group: Development/Libraries/Python
Requires: %{name}-build = %{version}-%{release}
Requires: libpopt
Requires: python27
Requires: zlib >= 1.1.4
Requires: libbzip2 >= 1.0.2
Provides: rpm-python
Obsoletes: rpm-python
Provides: python-rpm5
Obsoletes: python-rpm5
%description -n python-rpm%{?program_suffix}
The rpm-python package contains a module which permits applications written in the Python programming language to use the interface supplied by RPM (RPM Package Manager) libraries.
This package should be installed if you want to develop Python programs that will manipulate RPM packages and databases.
%endif
%debug_package
%prep
%setup -q -n rpm-%{version}
# -D -T
#:<< _EOF
%patch0 -p1 -b .configure_openmamba
%patch2 -p1 -b .macrodirs
#% patch7 -p1 -b .bashort # applied upstream
#% patch9 -p1 -b .rpmvercmp
#% patch10 -p1 -b .installplatform # maybe applied upstream
%patch14 -p1 -b .brp_infodir
#% patch15 -p1 -b .brp_generic # check brp-infodir and brp-strip-static-archive in /usr/lib/rpm/brp-openmamba
#% patch16 -p1 -b .rpmrc # non appliable, check compile optflags in rpmrc
%patch17 -p1 -b .makeoldinstall
%patch20 -p1 -b .brp_strip_builddirs
%patch21 -p1 -b .kernel26_autoreq
#% patch24 -p1 -b .target_platform.patch # check _target_platform:%{_target_cpu}-%{_vendor}-%{_target_os}%{?_gnu}
#% patch25 -p1 -b .disable_libtool_helper # disabled for now, check libtool deps with build
%patch26 -p1 -b .rpmlock_path
#FIMXE: % patch27 -p1 -b .configure_db3
%patch28 -p1 -b .configsub_ppc
%patch29 -p1 -b .fileconflicts
#% patch30 -p0 -b .depsdb
%patch31 -p1 -b .disable_repackaging
%patch32 -p1 -b .nobuildrootpath_exitcode
%patch33 -p1 -b .py_requires_macro
%patch35 -p1 -b .disable_keyserver
%patch36 -p1 -b .source_set_packager_owner
%patch38 -p1 -b .brp_strip_shared
#% patch39 -p1 -b .no-dirnames-dep # seems disabiled upstream by default (enabled for Mandriva and Ark)
#% patch40 -p1 -b .keep_default_rpmrc # does not apply anymore; check for rpmrc use in different situations
%patch41 -p1 -b .db_legacy_config
#% patch42 -p0 -b .rpmevr # seems applied, but not sure
%patch43 -p1 -b .buildrequires_external
#% patch44 -p0 -b .neon-0.28 # compile patch
%patch45 -p1 -b .disable_scriptlet_requires
%patch46 -p1 -b .brp_strip_static_archive
%patch47 -p1 -b .fix_glibc_autoreq
%patch48 -p1 -b .macros_cross_vars
%patch49 -p1 -b .spec_preprocessed_output
#% patch50 -p1 -b .fix_db_upgrade_from_449
%patch51 -p1 -b .openmamba_optional_dirname_and_symlink_deps
#% patch52 -p1 -b .openmamba_no_deps_on_building_srpms
%patch53 -p1 -b .openmamba_no_owner_group_on_srpm_install
%patch55 -p1 -b .set_openall_before_chroot
%patch56 -p1 -b .configure_fix_gnueabi
%patch57 -p1 -b .disable_rpmmi_usermem.patch
%patch58 -p1 -b .mono-avoid-empty-requires.patch
%patch59 -p1 -b .pkgUnpackagedSubdirs_fix_slowness.patch
%patch60 -p1 -b .silent-loop-detection_and_more_rescans.patch
%patch61 -p1 -b .debugedit_cvs_update
%patch62 -p1
%patch63 -p1
%patch64 -p1
mkdir platform-macros
cd platform-macros
tar xf %{SOURCE1}
cd ..
autoconf
#_EOF
%build
#:<< _EOF
unset LD_ASSUME_KERNEL || :
%if %{with_perl_subpackage}
WITH_PERL="--with-perl=vendor"
%else
WITH_PERL="--without-perl"
%endif
%if %{with_python_subpackage}
WITH_PYTHON="--with-python=2.7 ac_cv_path___PYTHON=python2.7"
%else
WITH_PYTHON="--without-python"
%endif
%if "%{_host}" != "%{_build}"
sed -i 's|"-lbeecrypt"|"-lbeecrypt -lgomp"|' configure
cat > config.cache << _EOF
ac_cv_va_copy=C99
_EOF
%endif
CC=%{_target_platform}-gcc \
./configure \
%{?program_suffix:--program-suffix=%{program_suffix}} \
--prefix=%{__prefix} \
--libdir=%{__libdir} \
--mandir=%{__prefix}/share/man \
--infodir=%{__prefix}/share/info \
--localstatedir=/var \
--sysconfdir=/etc \
--with-path-sources=%{__prefix}/src/RPM \
--with-path-lib=%{_prefix}/lib/rpm%{?program_suffix} \
--with-path-cfg=%{_sysconfdir}/rpm%{?program_suffix} \
--with-pic \
--disable-rpath \
--enable-nls \
$WITH_PYTHON \
$WITH_PERL \
--with-lua \
--with-sqlite3 \
--with-libelf \
--with-file \
--with-bzip2 \
--with-vendor=openmamba \
%if %{with_apidocs}
--with-apidocs \
%endif
%if %{with_selinux}
--with-selinux \
%endif
--enable-posixmutexes \
--without-javaglue \
--with-glob \
%ifnarch arm
--with-cpuinfo \
%endif
--with-syck=external \
--build=%{_build} \
--host=%{_target_platform} \
%if "%{_host}" != "%{_build}"
--config-cache
# LIBS="-lgomp" \
%endif
## --cache-file=config.cache
# --with-pcre=%{_prefix} \
## internal zlib hs been modified to make *.rpm packages rsync friendly
## see https://svn.uhulinux.hu/packages/dev/zlib/patches/02-rsync.patch
#% make -j1 -C zlib
%if "%{_host}" == "%{_build}"
%make
%else
%make \
includedir=%{_prefix}/%{_host}/include \
INCLUDES="-I%{_prefix}/%{_host}/include/python%{python27_version}/" \
pkgpyexecdir="%{python27_sitearch}/rpm"
# LDFLAGS="-L%{_prefix}/%{_host}/lib" \
%endif
#_EOF
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
unset LD_ASSUME_KERNEL || :
make install DESTDIR=%{buildroot} %{?program_suffix:DOMAIN=%{name}} \
%if "%{_host}" != "%{_build}"
pkgpyexecdir="%{python27_sitearch}/rpm"
%endif
#mv %{buildroot}%{__libdir}/rpm/brp-redhat \
# %{buildroot}%{__libdir}/rpm/brp-%{distribution}
install -d %{buildroot}/etc/rpm
#cat << EOF > %{buildroot}/etc/rpm/macros.cdb
#%%__dbi_cdb %%{nil}
#%%__dbi_other %%{?_tmppath:tmpdir=%%{_tmppath}} usedbenv create \
# joinenv mpool mp_mmapsize=8Mb mp_size=512kb verify
#EOF
for dbi in \
Basenames Conflictname Dirnames Filemd5s Group Installtid Name Packages \
Providename Provideversion Requirename Requireversion Sha1header Sigmd5 \
Triggername Pubkeys \
__db.001 __db.002 __db.003 __db.004
do
touch %{buildroot}/var/lib/rpm/$dbi
done
#> apimanpages
#%if %{with_apidocs}
# dinamically build the list of the rpm API manpages
#( cd apidocs/man/
# find man? -type f \
# -printf "%{__mandir}/%h/%f.gz\n" >> ../../apimanpages \
# -exec install -D {} %{buildroot}%{__mandir}/{} \; )
#%endif
# get rid of unpackaged files
#rm -f %{buildroot}%{__bindir}/rpm{e,i,u}
rm -f %{buildroot}%{_prefix}/lib/rpm{popt,rc}
rm -f %{buildroot}%{_prefix}/lib/rpm/{rpm.daily,rpm.log,rpm.xinetd}
rm -f %{buildroot}%{_prefix}/lib/rpm/{\
Specfile.pm,config.site,cpanflute,cpanflute2,\
rpmdiff,rpmdiff.cgi,sql.prov,sql.req,tcl.req}
%if %{with_perl_subpackage}
find %{buildroot}%{_prefix}/lib/perl5 -type f \
-a \( -name perllocal.pod -o -name .packlist \
-o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
find %{buildroot}%{_prefix}/lib/perl5 -type d -depth \
-exec rmdir {} 2>/dev/null ';'
%endif
# Install find-requires and find-provides scripts
# these are only used when _use_internal_dependency_generator is set to 0 (default is 2)
install -m0755 find-requires %{buildroot}%{_prefix}/lib/rpm/find-requires
install -m0755 find-provides %{buildroot}%{_prefix}/lib/rpm/find-provides
# install platform configuration file
mkdir -p %{buildroot}%{_sysconfdir}/rpm%{?program_suffix}
echo "%{_host}" > %{buildroot}%{_sysconfdir}/rpm%{?program_suffix}/platform
# install rpm macros
install -D -m 644 %{S:2} %{buildroot}%{_sysconfdir}/rpm%{?program_suffix}/macros.openmamba
#%if "%{_host_cpu}" == "x86_64"
#sed -i "s|\(%%_lib[[:space:]]*\).*|\1lib64|" %{buildroot}%{_sysconfdir}/rpm%{?program_suffix}/macros.openmamba
#%endif
# install postplug update.d file for db rebuild
mkdir -p %{buildroot}%{_sysconfdir}/postplug/updates.d
install -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/postplug/updates.d/rpm-5.2.upd
# rpm4 devel compatibility
ln -s rpm4compat.h %{buildroot}%{_includedir}/rpm/rpmlib.h
%{buildroot}%{_prefix}/lib/rpm%{?program_suffix}/find-lang.sh%{?program_suffix} %{buildroot} %{name}
# install per-plaftorm macro files
case %{_host_cpu} in
*86|athlon|pentium3|pentium4) PLATFORM_MACROS="athlon-linux i386-linux i486-linux i586-linux i686-linux pentium3-linux pentium4-linux" ;;
arm) PLATFORM_MACROS="arm-linux" ;;
ppc) PLATFORM_MACROS="ppc-linux" ;;
x86_64) PLATFORM_MACROS="x86_64-linux" ;;
*) echo "Error: unsupported host cpu %{_host_cpu}"; exit 1 ;;
esac
PLATFORM_MACROS="$PLATFORM_MACROS noarch-linux"
for p in $PLATFORM_MACROS; do
cp -a platform-macros/$p %{buildroot}%{_prefix}/lib/rpm/
done
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
# nuke __db.00? when updating to this rpm
%triggerun -- rpm < %{version}
rm -f /var/lib/rpm/__db.00?
%pre
/usr/sbin/groupadd packager -g %{packager_groupid} 2>/dev/null || :
/usr/sbin/useradd packager -u %{packager_userid} -g packager -d /dev/null -s /bin/false 2>/dev/null || :
exit 0
%post
if [ ! -f /var/lib/rpm/Packages ]; then
/bin/rpm --initdb
fi
#if [ $1 -ge 1 ]; then
## Import Mambasoft gpg key if needed
# gpg --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Mambasoft 2>/dev/null || true
# rpm -q gpg-pubkey-87468781-4bb78410 >/dev/null 2>&1 || \
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Mambasoft
#fi
:
%post devel -p /sbin/ldconfig
%postun devel -p /sbin/ldconfig
%define rpmdbattr %attr(0644, root, root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace)
%files -f %{name}.lang
%defattr(-,root,root)
%{_sysconfdir}/postplug/updates.d/rpm-5.2.upd
%{_sysconfdir}/rpm%{?program_suffix}/macros.*
%{_sysconfdir}/rpm%{?program_suffix}/platform
%{__bindir}/rpm%{?program_suffix}
%{__bindir}/gendiff%{?program_suffix}
%{__bindir}/rpm2cpio%{?program_suffix}
%{__bindir}/rpmbuild%{?program_suffix}
%{__bindir}/rpmconstant%{?program_suffix}
%{__libdir}/librpm-%{majversion}.so
%{__libdir}/librpmbuild-%{majversion}.so
%{__libdir}/librpmconstant-%{majversion}.so
%{__libdir}/librpmdb-%{majversion}.so
%{__libdir}/librpmio-%{majversion}.so
%{__libdir}/librpmmisc-%{majversion}.so
%{_prefix}/lib/rpm%{?program_suffix}/*
%{__mandir}/man1/rpmgrep%{?program_suffix}.*
%{__mandir}/man8/rpmcache%{?program_suffix}.*
%lang(ja) %{__mandir}/ja/man8/rpmcache%{?program_suffix}.*
%lang(pl) %{__mandir}/pl/man8/rpmcache%{?program_suffix}.*
%{__mandir}/man8/rpmdeps%{?program_suffix}.*
%lang(pl) %{__mandir}/pl/man8/rpmdeps%{?program_suffix}.*
#%{__libdir}/rpmpopt
#%{__libdir}/rpmrc
%{__mandir}/man1/gendiff%{?program_suffix}.*
%lang(pl) %{__mandir}/pl/man1/gendiff%{?program_suffix}.*
%{__mandir}/man8/rpm%{?program_suffix}.*
%{__mandir}/man8/rpmconstant%{?program_suffix}.*
%{__mandir}/man8/rpmmtree%{?program_suffix}.*
%lang(fr) %{__mandir}/fr/man8/rpm%{?program_suffix}.*
%lang(ja) %{__mandir}/ja/man8/rpm%{?program_suffix}.*
%lang(ko) %{__mandir}/ko/man8/rpm%{?program_suffix}.*
%lang(pl) %{__mandir}/pl/man8/rpm%{?program_suffix}.*
%lang(ru) %{__mandir}/ru/man8/rpm%{?program_suffix}.*
%lang(sk) %{__mandir}/sk/man8/rpm%{?program_suffix}.*
%{__mandir}/man8/rpm2cpio%{?program_suffix}.*
%lang(ja) %{__mandir}/ja/man8/rpm2cpio%{?program_suffix}.*
%lang(jo) %{__mandir}/ko/man8/rpm2cpio%{?program_suffix}.*
%lang(pl) %{__mandir}/pl/man8/rpm2cpio%{?program_suffix}.*
%lang(ru) %{__mandir}/ru/man8/rpm2cpio%{?program_suffix}.*
%dir /usr/src/RPM
%attr(775,root,packager) %dir /usr/src/RPM/BUILD
%attr(775,root,packager) %dir /usr/src/RPM/SOURCES
%attr(775,root,packager) %dir /usr/src/RPM/SRPMS
%attr(775,root,packager) %dir /usr/src/RPM/RPMS
%attr(775,root,packager) %dir /usr/src/RPM/SPECS
%attr(775,root,packager) /usr/src/RPM/RPMS/*
%dir /var/lib/rpm
%rpmdbattr /var/lib/rpm/Basenames
%rpmdbattr /var/lib/rpm/Conflictname
%rpmdbattr /var/lib/rpm/Dirnames
%rpmdbattr /var/lib/rpm/Filemd5s
%rpmdbattr /var/lib/rpm/Group
%rpmdbattr /var/lib/rpm/Installtid
%rpmdbattr /var/lib/rpm/Name
%rpmdbattr /var/lib/rpm/Packages
%rpmdbattr /var/lib/rpm/Providename
%rpmdbattr /var/lib/rpm/Provideversion
%rpmdbattr /var/lib/rpm/Pubkeys
%rpmdbattr /var/lib/rpm/Requirename
%rpmdbattr /var/lib/rpm/Requireversion
%rpmdbattr /var/lib/rpm/Sha1header
%rpmdbattr /var/lib/rpm/Sigmd5
%rpmdbattr /var/lib/rpm/Triggername
%rpmdbattr /var/lib/rpm/__db.0*
%{__mandir}/man8/rpmbuild%{?program_suffix}.*
%lang(ja) %{__mandir}/ja/man8/rpmbuild%{?program_suffix}.*
%lang(pl) %{__mandir}/pl/man8/rpmbuild%{?program_suffix}.*
%doc CHANGES COPYING.LIB CREDITS README NEWS
%doc doc/manual/[a-m,n-z]*
%files devel
%defattr(-,root,root)
%dir %{__includedir}/rpm/
%{__includedir}/rpm/*
%{__libdir}/librpm.*
%{__libdir}/librpmbuild.*
%{__libdir}/librpmdb.*
%{__libdir}/librpmio.*
%{__libdir}/librpmconstant.*
%{__libdir}/librpmmisc.*
%{__libdir}/pkgconfig/rpm.pc
%lang(ja) %{__mandir}/ja/man8/rpmgraph%{?program_suffix}.*
%lang(pl) %{__mandir}/pl/man8/rpmgraph%{?program_suffix}.*
#%if %{with_apidocs}
#%doc apidocs/html/*
#%endif
%if %{with_perl_subpackage}
%files -n perl-RPM%{?program_suffix}
%defattr(-,root,root)
%dir %{perl_vendorarch}/RPM
%{perl_vendorarch}/RPM.pm
%{perl_vendorarch}/RPM/*
%{perl_vendorarch}/auto/*
%{__mandir}/man3/RPM*
%endif
%if %{with_python_subpackage}
%files -n python-rpm%{?program_suffix}
%defattr(-,root,root)
%dir %{python27_sitearch}/rpm
%{python27_sitearch}/rpm/*
%endif
%changelog
* Thu Apr 24 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-25mamba
- added a small patch to fix build from tarball (rpm -t[a|b|s])
* Mon Apr 07 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-24mamba
- rebuilt with libcpuinfo and libsyck support to enable archscore used by smart
(but eventually archscore is not enabled in smart)
* Fri Nov 15 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-23mamba
- hot fix for previous patch
* Wed Nov 13 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-22mamba
- patch to add RPMTAG_SOURCEPACKAGE for rpm4 backward sources compatibility
* Wed Mar 06 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-21mamba
- python-rpm: rebuild with python 2.7
* Thu Nov 15 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-20mamba
- perl 5.16 mass rebuild
* Mon Aug 20 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-19mamba
- rebuilt with --with-bzip2 to provide rpmlib(PayloadIsBzip2) for RedHat/Suse compatibility (google-earth rpm)
* Thu Jul 05 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-18mamba
- arm: rebuild with libopenssl-1.0.1c-2mamba to fix __gnu_ldivmod_helper missing symbol error
* Sat Apr 28 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-17mamba
- added requirement for elfutils
* Fri Apr 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-16mamba
- apply patch to update debugedit to current cvs to fix error 'Unknown debugging section .debug_pubtypes'
* Tue Jul 26 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-15mamba
- rebuilt against libproxy 0.46
* Tue Mar 08 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-14mamba
- added silent-loop-detection_and_more_rescans patch to make loop silent and raise rescans from 10 to 20 to fix makedist installations
* Thu Mar 03 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-13mamba
- added pkgUnpackagedSubdirs_fix_slowness patch as an attempt to reduce slowness when checking for unpackaged directories
* Fri Feb 11 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-12mamba
- cpu-os-macros: fix definitions for arm
- added requirement for patch
- removed gpg key installation to avoid db corruption and post requirement for openmamba-release
* Mon Feb 07 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-11mamba
- install per-platform macros files from cpu-os-macros file in CVS
* Tue Jan 11 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-10mamba
- fixed empty requires in mono package(s) by adding patch mono-avoid-empty-requires
* Sun Jan 09 2011 Davide Madrisan <davide.madrisan@gmail.com> 5.2.1-9mamba
- install the perl modules in the vendor directory tree
* Tue Dec 28 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-8mamba
- updated macros_cross_vars patch to fix %{_build*} definitions when cross-compiling rpm
- remove rpm-build package, to remove dependency loop (rpm executable needs librpmbuild)
- added disable_rpmmi_usermem patch for compatibility with 4.4.9 db
- added postplug update.d script for db rebuild on reboot
- obsolete rpm5
* Sat Aug 07 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-7mamba
- move code for key installation from openmamba-release; added Requires(post) for openmamba-release and gnupg
- macros.openmamba: added configure and build policy macros
* Thu Aug 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-6mamba
- PreReq: entries replaced with Requires(pre) and Requires(post)
- added patch set_openall_before_chroot
* Tue Aug 03 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-5mamba
- fix rpm -q --specfile --specedit duplicated output lines when BuildArch is set in the specfile
* Mon Aug 02 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-4mamba
- install find-requires and find-provides scripts
- create /etc/rpm/platform file with %{_host}
- macros.openmamba: added %define _check_symlink_deps 0
- added --with-libelf to build with libelf support (fixes rpmdeps)
* Thu Jul 29 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-3mamba
- added no-owner-group-on-srpm-install patches
* Tue Jul 27 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-2mamba
- rebuild with internal libpcre
- added patch to disable dirname deps and added '%define _check_dirname_deps 0' in /etc/rpm/macros.openmamba
* Mon Jul 26 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-1mamba
- update to 5.2.1
* Fri Jul 02 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-15mamba
- added spec_preprocessed_output patch
* Thu Mar 25 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-14mamba
- build with external libpopt
* Wed Mar 24 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-13mamba
- added patch to fix glibc automatic requirement with private section (arm)
- added patch to make cross platform host and build macros more flexible
* Thu Nov 19 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-12mamba
- brp-strip-static-archive: add exit 0 patch to this script as well
* Wed Nov 18 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-11mamba
- brp-strip-shared: add exit 0 to avoid build failure and stripping when installed libraries do not have write permissions
* Thu Oct 15 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-10mamba
- rpm-build: added requirement for elfutils needed by find-debuginfo.sh script
* Wed Jul 08 2009 Davide Madrisan <davide.madrisan@gmail.com> 4.4.9-9mamba
- rebuilt --with-python="%%python_version"
* Thu May 07 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-8mamba
- added a patch that disabled detection of executable requires
* Sat Jan 24 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-7mamba
- added patch against neon 0.28
* Thu Nov 13 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-6mamba
- marcos: set march=i686 and proper mtune for athlon, pentium4 and pentium3 build archs
- rpm-perl renamed to perl-RPM
- rpm-python renamed to python-rpm
* Sun Nov 02 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-5mamba
- rebuilt with python 2.6
* Wed Jan 23 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-4mamba
- provide rpmlib(CompressedFileNames) and rpmlib(PayloadFilesHavePrefix)
* Wed Jan 23 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-3mamba
- added patch that defines evrFlags
* Thu Jan 17 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-2mamba
- added legacy db configuration patch to support existing databases
* Wed Jan 16 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-1mamba
- update to 4.4.9
* Wed Jan 16 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.8-1mamba
- update to 4.4.8
- removed cve_006_5466 patch. code fixed upstream
- removed fix_MD5_digest patch applied upstream
* Tue Dec 25 2007 Aleph0 <aleph0@openmamba.org> 4.4.7-5mamba
- add macros.openmamba macros
- own %{_sysconfdir}/rpm
- removed macros for kde3 (moved to kdelibs-devel)
* Tue Dec 18 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.7-4mamba
- macrodirs patch: fixed sysconfdir definition in macros file
* Sun Dec 16 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.7-3mamba
- added patch to remove rpmlib(FileDigestParameterized) requirement for
MD5 digests
* Fri Dec 14 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.7-2mamba
- added no-dirnames-dep patch from Mandriva
- added keep_default_rpmrc patch
* Fri Dec 14 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.7-2mamba
- update to 4.4.7
- changes url and source pointers to rpm5.org
* Thu Dec 13 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.6-1mamba
- update to 4.4.6
* Thu Mar 24 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.5-11qilnx
- configure for the openmamba platform
- popt and popt-devel renamed to libpopt and libpopt-devel
* Thu Mar 15 2007 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.5-10qilnx
- security update against cve-2006-5466
- strip debug symbols from shared libraries ('brp-strip' script)
* Fri Mar 02 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.5-9qilnx
- added cpio requirement
- create packager user on install/upgrade
- added patch to set packager as owner and group in source files
* Thu Feb 08 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.5-8qilnx
- disable keyserver macros
* Tue Feb 06 2007 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.5-7qilnx
- updated the %%configure_kde macro
* Wed Jan 31 2007 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.5-6qilnx
- added the %%configure_kde macro
* Tue Oct 24 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.5-5qilnx
- fixed rpm macro %%py_requires
* Thu Apr 13 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.5-4qilnx
- patched nobuildrootpath script to exit with error code 0 even if no
files has been modified
* Wed Apr 05 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.5-3qilnx
- do not repackage erased packages by default
* Thu Mar 23 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.5-2qilnx
- rebuilt with lua support
* Wed Feb 22 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.5-1qilnx
- update to version 4.4.5 by autospec
* Wed Jan 18 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.4-7qilnx
- devel package: added apidoc pages in html format
* Wed Jan 18 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.4-6qilnx
- remove temporary db files when upgrading from a different version
- own files in /var/lib/rpm
- use temporary table for Depends DB
* Tue Jan 17 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.4-5qilnx
- added compatibility for ppc architecture
- disabled "libtoool requires extractor" (libtooldeps.sh) for compatibility
with the previous version
- rpmlock_path set
* Fri Jan 13 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.4-3qilnx
- fixed %%install_info macro
* Tue Jan 03 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.4-1qilnx
- update to version 4.4.4
- osbolete macros %%configure33 and %%make33 removed
* Mon Nov 21 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-39qilnx
- fixed package groups
- enabled python package building again
* Wed Nov 16 2005 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 4.0.4-38qilnx
- added boostrap build support
- conditional python bindings building
- removed java requirement
- added doxygen requirement
* Mon Sep 12 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-37qilnx
- cross platform build support
- use external db3 libraries
- patched for gcc4
* Wed Aug 17 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-36qilnx
- python bindings moved to site-python dir
* Tue Aug 16 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-35qilnx
- added patch for platform naming (add -gnu)
* Mon Aug 08 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-34qilnx
- p22 applied again
* Fri Jul 29 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-33qilnx
- brp-strip-static-archiv: do not exit with error when strip is not found
- new qilinux macro %%makeinstall_perl (p23)
* Fri Jul 15 2005 Silvan Calarco <silvan.calrco@qilinux.it> 4.0.4-32qilnx
- rebuilt with host i586-qilinux-linux
* Thu Jun 09 2005 Silvan Calarco <silvan.calrco@qilinux.it> 4.0.4-31qilnx
- correctly handle %config directive (got RedHat patched rpm 4.0.4 sources)
* Wed Apr 06 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-30qilnx
- fixed warnings printed by the new tool `head' when executed with the now
obsolete option `-1'
* Wed Mar 30 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-29qilnx
- changed PreReq from /usr/sbin/groupadd to pwdutils
* Wed Mar 30 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-28qilnx
- fixed packager group creation
* Fri Mar 04 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-27qilnx
- removed requirement for shadow
* Thu Mar 03 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-26qilnx
- patch: terminate the building process if unpackaged symlynks are detected
* Mon Feb 07 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-25qilnx
- script fix for Kernel 2.6: ignore requirement for virtual lib linux-gate.so.*
* Tue Jan 25 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-24qilnx
- fixed `%%arch' in platform macros
* Tue Jan 25 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-23qilnx
- new script `/usr/lib/rpm/brp-strip-builddirs'
* Fri Jan 21 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-22qilnx
- added platform macros `%%configure33' and `%%make33' for software that
requires gcc33
* Sat Jan 08 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-21qilnx
- fixed warnings generated by `configure' when a configure script created
by a recent autoconf tool is executed
- patched `rpmrc' to avoid gcc 3.4.x warnings (`-mtune' versus `-mcpu')
- fixed `%%_mandir', `%%_infodir', and `%%_localstatedir' variables
- added `strip_static_archive' script
- fixed `installplatform' script and added code to support QiLinux macros
- removed platform symlinks
- platform macros file: modified `%%makeinstall', added `%%makeoldinstall'
and two macros to install and remove info files
- added some macros in the global macro file (`%%make', python macros)
- added missing post and postpun scripts
- added API documentation (doxygen HTML and manpages) in the devel package
- updated `find_lang' patch
- removed zlib, libbzip2 from the `requires' list in the specfile preamble
- popt locales moved to popt package
- backported code from rpm 3.4.2 to permit the usage of the useful rpm
variable `unpackaged_files_terminate_build' (enabled in macro files)
* Mon Nov 15 2004 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-20qilnx
- fixed brp-compress (generated symlinks to compressed manpages were broken)
* Mon Aug 02 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-19qilnx
- added require for shadow
* Mon Feb 02 2004 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-18qilnx
- add `requires python' in rpm-python
* Thu Jan 08 2004 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-17qilnx
- rebuilt with perl 5.8.2
* Wed Jan 07 2004 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-16qilnx
- minor specfile changes
- added native bindings to the RPM API for Perl (currently broken :(
- added some missing requirements
- fixed broken `perl(Specfile)' requirement
* Wed Dec 24 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-15qilnx
- rebuilt with python plugins
* Thu Sep 05 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-14qilnx
- rebuilt with dinamically linked system libraries
- added libbzip2-devel requirement
* Thu Jul 24 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-13qilnx
- added *.so in devel packages
* Wed May 14 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-12qilnx
- added check-files patch
* Tue Apr 27 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-11qilnx
- added hardcoded configure dirs
* Tue Apr 27 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-10qilnx
- created platform symlinks
* Tue Apr 24 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-9qilnx
- fixed a infodir script problem
* Tue Apr 24 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-8qilnx
- moved group packager creation from %%post to %%pre
- added forgotten SPEC dir
* Tue Apr 24 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-7qilnx
- added creation of group packager and RPM directory permissions
* Tue Apr 24 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-5qilnx
- remade QiLinux customization
* Tue Apr 18 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-3qilnx
- added QiLinux customization
* Tue Apr 17 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-2qilnx
- made separate packages for popt
* Tue Apr 15 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-1qilnx
- first build for 4.0.4