2006-12-19 00:17:44 +01:00
|
|
|
#
|
2011-02-19 18:30:04 +01:00
|
|
|
# spec file for package rpm
|
2006-12-19 00:17:44 +01:00
|
|
|
#
|
2012-01-07 10:50:46 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:44 +01:00
|
|
|
#
|
2008-08-08 17:23:33 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:17:44 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-08-30 18:55:27 +02:00
|
|
|
|
2006-12-19 00:17:44 +01:00
|
|
|
Name: rpm
|
2012-01-28 15:20:26 +01:00
|
|
|
BuildRequires: binutils
|
|
|
|
BuildRequires: bzip2
|
2011-12-11 22:58:21 +01:00
|
|
|
BuildRequires: file-devel
|
2012-01-28 15:20:26 +01:00
|
|
|
BuildRequires: findutils
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gettext-tools
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: gzip
|
2011-12-11 22:58:21 +01:00
|
|
|
BuildRequires: libacl-devel
|
|
|
|
BuildRequires: libbz2-devel
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libelf-devel
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: libsemanage-devel
|
|
|
|
BuildRequires: libtool
|
2012-01-07 10:50:46 +01:00
|
|
|
BuildRequires: lua51-devel
|
2012-01-28 15:20:26 +01:00
|
|
|
BuildRequires: make
|
2011-12-11 22:58:21 +01:00
|
|
|
BuildRequires: ncurses-devel
|
2012-01-28 15:20:26 +01:00
|
|
|
BuildRequires: patch
|
|
|
|
BuildRequires: perl-base
|
2011-12-11 22:58:21 +01:00
|
|
|
BuildRequires: popt-devel
|
|
|
|
BuildRequires: xz-devel
|
|
|
|
BuildRequires: zlib-devel
|
2009-08-28 15:54:03 +02:00
|
|
|
#!BuildIgnore: rpmlint-Factory
|
2006-12-19 00:17:44 +01:00
|
|
|
Provides: rpminst
|
2011-10-19 18:38:28 +02:00
|
|
|
PreReq: %insserv_prereq %fillup_prereq
|
2006-12-19 00:17:44 +01:00
|
|
|
Summary: The RPM Package Manager
|
2011-12-11 22:58:21 +01:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Packages
|
2012-08-28 15:31:44 +02:00
|
|
|
Version: 4.10.0
|
2011-12-11 22:58:21 +01:00
|
|
|
Release: 0
|
2006-12-19 00:17:44 +01:00
|
|
|
Source: rpm-%{version}.tar.bz2
|
|
|
|
Source1: RPM-HOWTO.tar.bz2
|
|
|
|
Source2: RPM-Tips.html.tar.bz2
|
|
|
|
Source4: rpm-suse_macros
|
|
|
|
Source5: rpmsort
|
|
|
|
Source6: symset-table
|
|
|
|
Source8: rpmconfigcheck
|
|
|
|
Source9: sysconfig.services-rpm
|
2008-10-06 16:13:13 +02:00
|
|
|
Source10: beecrypt-4.1.2.tar.bz2
|
2011-05-16 18:07:44 +02:00
|
|
|
Source11: db-4.8.30.tar.bz2
|
2010-01-14 14:59:15 +01:00
|
|
|
Source12: baselibs.conf
|
2008-10-06 16:13:13 +02:00
|
|
|
Patch1: beecrypt-4.1.2.diff
|
|
|
|
Patch2: db.diff
|
2006-12-19 00:17:44 +01:00
|
|
|
# quilt patches start here
|
2009-08-28 15:54:03 +02:00
|
|
|
Patch10: rpm-beecrypt.diff
|
|
|
|
Patch11: debugedit.diff
|
2008-09-12 20:37:28 +02:00
|
|
|
Patch12: localetag.diff
|
|
|
|
Patch13: missingok.diff
|
|
|
|
Patch14: nameversioncompare.diff
|
2011-07-20 13:43:02 +02:00
|
|
|
Patch15: dbfsync.diff
|
|
|
|
Patch16: dbrointerruptable.diff
|
|
|
|
Patch17: extcond.diff
|
|
|
|
Patch18: refreshtestarch.diff
|
|
|
|
Patch19: rpmrctests.diff
|
|
|
|
Patch20: waitlock.diff
|
|
|
|
Patch21: suspendlock.diff
|
|
|
|
Patch22: weakdeps.diff
|
|
|
|
Patch23: autodeps.diff
|
|
|
|
Patch24: brp.diff
|
|
|
|
Patch25: brpcompress.diff
|
|
|
|
Patch26: checkfilesnoinfodir.diff
|
|
|
|
Patch27: finddebuginfo.diff
|
|
|
|
Patch28: findksyms.diff
|
|
|
|
Patch29: findlang.diff
|
|
|
|
Patch30: macrosin.diff
|
|
|
|
Patch31: modalias.diff
|
|
|
|
Patch32: platformin.diff
|
|
|
|
Patch33: rpmpopt.diff
|
|
|
|
Patch34: rpmrc.diff
|
|
|
|
Patch35: taggedfileindex.diff
|
|
|
|
Patch36: rpmqpack.diff
|
|
|
|
Patch37: convertdb1static.diff
|
|
|
|
Patch38: build.diff
|
|
|
|
Patch39: modalias-kernel_module.diff
|
|
|
|
Patch40: files.diff
|
|
|
|
Patch41: debugedit-comp-dir.diff
|
|
|
|
Patch42: perlprov.diff
|
|
|
|
Patch43: rpm-shorten-changelog.diff
|
|
|
|
Patch44: debugsource-package.diff
|
|
|
|
Patch45: whatrequires-doc.diff
|
|
|
|
Patch46: remove-brp-strips.diff
|
|
|
|
Patch47: requires-ge-macro.diff
|
|
|
|
Patch48: debugedit-canon-fix.diff
|
|
|
|
Patch49: finddebuginfo-absolute-links.diff
|
|
|
|
Patch50: firmware.diff
|
|
|
|
Patch51: specfilemacro.diff
|
|
|
|
Patch52: modalias-encode.diff
|
|
|
|
Patch53: disttag-macro.diff
|
|
|
|
Patch54: buildidprov.diff
|
|
|
|
Patch55: debugsubpkg.diff
|
|
|
|
Patch56: debuglink.diff
|
|
|
|
Patch57: debuginfo-mono.patch
|
|
|
|
Patch58: lazystatfs.diff
|
|
|
|
Patch59: repackage-nomd5.diff
|
|
|
|
Patch60: safeugid.diff
|
|
|
|
Patch61: noprereqdeprec.diff
|
|
|
|
Patch62: pythondeps.diff
|
|
|
|
Patch63: fontprovides.diff
|
|
|
|
Patch64: rpm-gst-provides.patch
|
2012-08-28 15:31:44 +02:00
|
|
|
Patch65: initscriptsprov.diff
|
|
|
|
Patch66: remove-translations.diff
|
|
|
|
Patch67: headeradddb.diff
|
|
|
|
Patch68: dbprivate.diff
|
|
|
|
Patch69: nobuildcolor.diff
|
|
|
|
Patch70: fileattrs.diff
|
|
|
|
Patch71: nomagiccheck.diff
|
|
|
|
Patch72: findsupplements.diff
|
|
|
|
Patch73: assumeexec.diff
|
|
|
|
Patch74: mono-find-requires.diff
|
|
|
|
Patch75: rpm-deptracking.patch
|
|
|
|
Patch76: python3-abi-kind.diff
|
|
|
|
Patch77: langnoc.diff
|
|
|
|
Patch78: headerchk2.diff
|
|
|
|
Patch79: helperenv.diff
|
2012-08-28 15:39:49 +02:00
|
|
|
Patch80: obsoletesdeptag.diff
|
2012-08-30 18:55:27 +02:00
|
|
|
Patch81: fdopen_strncat.diff
|
2006-12-19 00:17:44 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
#
|
2008-03-28 17:11:41 +01:00
|
|
|
# avoid bootstrapping problem
|
|
|
|
%define _binary_payload w9.bzdio
|
2006-12-19 00:17:44 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
RPM Package Manager is the main tool for managing the software packages
|
|
|
|
of the SuSE Linux distribution.
|
|
|
|
|
|
|
|
RPM can be used to install and remove software packages. With rpm, it
|
|
|
|
is easy to update packages. RPM keeps track of all these manipulations
|
|
|
|
in a central database. This way it is possible to get an overview of
|
|
|
|
all installed packages. RPM also supports database queries.
|
|
|
|
|
|
|
|
%package devel
|
2008-08-21 17:44:07 +02:00
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
2012-09-13 16:06:11 +02:00
|
|
|
Group: System/Packages
|
2006-12-19 00:17:44 +01:00
|
|
|
Requires: rpm = %{version}
|
2012-01-17 12:13:52 +01:00
|
|
|
# for people confusing the one with the other
|
|
|
|
Recommends: rpm-build = %{version}
|
2008-10-22 17:28:47 +02:00
|
|
|
Requires: popt-devel
|
2006-12-19 00:17:44 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the RPM C library and header files. These
|
|
|
|
development files will simplify the process of writing programs which
|
|
|
|
manipulate RPM packages and databases and are intended to make it
|
|
|
|
easier to create graphical package managers or any other tools that
|
|
|
|
need an intimate knowledge of RPM packages in order to function.
|
|
|
|
|
2012-01-17 12:13:52 +01:00
|
|
|
%package build
|
|
|
|
Summary: Tools and Scripts to create rpm packages
|
2012-09-13 16:06:11 +02:00
|
|
|
Group: System/Packages
|
2012-01-17 12:13:52 +01:00
|
|
|
Requires: rpm = %{version}
|
2012-03-14 11:19:44 +01:00
|
|
|
Provides: rpm:%_bindir/rpmbuild
|
|
|
|
Provides: rpmbuild
|
2012-01-17 12:13:52 +01:00
|
|
|
# SUSE's build essentials
|
|
|
|
Requires: binutils
|
2012-03-14 11:19:44 +01:00
|
|
|
Requires: bzip2
|
|
|
|
Requires: findutils
|
2012-01-17 12:13:52 +01:00
|
|
|
Requires: gcc
|
|
|
|
Requires: gettext-tools
|
|
|
|
Requires: glibc-devel
|
2012-03-14 11:19:44 +01:00
|
|
|
Requires: gzip
|
|
|
|
Requires: make
|
2012-09-13 16:06:11 +02:00
|
|
|
Requires: net-tools
|
2012-03-14 11:19:44 +01:00
|
|
|
Requires: patch
|
2012-01-17 12:13:52 +01:00
|
|
|
Requires: perl-base
|
2012-07-19 10:52:30 +02:00
|
|
|
Requires: tar
|
2012-09-13 16:06:11 +02:00
|
|
|
Requires: util-linux
|
2012-03-14 11:19:44 +01:00
|
|
|
Requires: xz
|
2006-12-19 00:17:44 +01:00
|
|
|
|
2012-01-17 12:13:52 +01:00
|
|
|
%description build
|
|
|
|
If you want to build a rpm, you need this package. It provides rpmbuild
|
|
|
|
and requires some packages that are usually required
|
2006-12-19 00:17:44 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n rpm-%{version}
|
|
|
|
rm -rf sqlite
|
|
|
|
rm -rf beecrypt
|
|
|
|
tar xjf %{SOURCE10}
|
2009-08-28 15:54:03 +02:00
|
|
|
tar xjf %{SOURCE11}
|
2011-05-16 18:07:44 +02:00
|
|
|
ln -s db-4.8.30 db
|
2006-12-19 00:17:44 +01:00
|
|
|
ln -s beecrypt-4.1.2 beecrypt
|
2011-05-16 18:07:44 +02:00
|
|
|
chmod -R u+w db/*
|
2006-12-19 00:17:44 +01:00
|
|
|
#tar xjf %{SOURCE12}
|
|
|
|
#ln -s neon-0.24.7 neon
|
|
|
|
# will get linked from db3
|
|
|
|
rm -f rpmdb/db.h
|
2008-10-06 16:13:13 +02:00
|
|
|
%patch -P 1 -P 2
|
2011-07-20 13:43:02 +02:00
|
|
|
%patch -P 10 -P 11 -P 12 -P 13 -P 14 -P 15 -P 16 -P 17 -P 18 -P 19
|
2012-08-28 15:32:00 +02:00
|
|
|
%patch -P 20 -P 21 -P 22 -P 23 -P 24 -P 25 -P 26 -P 27 -P 28 -P 29
|
|
|
|
%patch -P 30 -P 31 -P 32 -P 33 -P 34 -P 35 -P 36 -P 37 -P 38 -P 39
|
|
|
|
%patch -P 40 -P 41 -P 42 -P 43 -P 44 -P 45 -P 46 -P 47 -P 48 -P 49
|
|
|
|
%patch -P 50 -P 51 -P 52 -P 53 -P 54 -P 55 -P 56 -P 57 -P 58 -P 59
|
|
|
|
%patch -P 60 -P 61 -P 62 -P 63 -P 64 -P 65 -P 66 -P 67 -P 68 -P 69
|
|
|
|
%patch -P 70 -P 71 -P 72 -P 73 -P 74 -P 75 -P 76 -P 77 -P 78 -P 79
|
2012-08-30 18:55:27 +02:00
|
|
|
%patch -P 80 -P 81
|
2009-08-28 15:54:03 +02:00
|
|
|
#chmod 755 scripts/find-supplements{,.ksyms}
|
|
|
|
#chmod 755 scripts/find-provides.ksyms scripts/find-requires.ksyms
|
|
|
|
#chmod 755 scripts/firmware.prov
|
|
|
|
#chmod 755 scripts/debuginfo.prov
|
2006-12-19 00:17:44 +01:00
|
|
|
tar -xjvf %{SOURCE1}
|
|
|
|
tar -xjvf %{SOURCE2}
|
|
|
|
if [ -s /etc/rpm/suse_macros ]; then
|
|
|
|
cp -a /etc/rpm/suse_macros %{SOURCE4}
|
|
|
|
fi
|
|
|
|
cp -a %{SOURCE4} suse_macros
|
2011-05-16 18:07:44 +02:00
|
|
|
rm -f m4/libtool.m4
|
|
|
|
rm -f m4/lt*.m4
|
2006-12-19 00:17:44 +01:00
|
|
|
|
|
|
|
%build
|
2012-01-18 15:30:38 +01:00
|
|
|
export CFLAGS="%{optflags} -ffunction-sections"
|
2007-07-23 20:54:09 +02:00
|
|
|
export LDFLAGS="-Wl,-Bsymbolic-functions -ffunction-sections"
|
2011-09-29 22:27:03 +02:00
|
|
|
%ifarch alpha armv5tel
|
2011-09-29 20:22:32 +02:00
|
|
|
export CFLAGS="-g -O0 -fno-strict-aliasing -ffunction-sections"
|
2006-12-19 00:17:44 +01:00
|
|
|
%endif
|
2011-09-29 20:22:32 +02:00
|
|
|
|
|
|
|
%if %{_target_cpu}
|
|
|
|
%ifarch %arm
|
|
|
|
BUILDTARGET="--build=%{_target_cpu}-suse-linux-gnueabi"
|
|
|
|
%else
|
|
|
|
BUILDTARGET="--build=%{_target_cpu}-suse-linux"
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
2010-03-26 11:56:28 +01:00
|
|
|
#cp -p /usr/share/gettext/config.rpath .
|
2009-08-28 15:54:03 +02:00
|
|
|
cp autogen.sh beecrypt
|
|
|
|
pushd beecrypt
|
2011-11-21 15:59:28 +01:00
|
|
|
./autogen.sh --disable-dependency-tracking --with-pic --without-python $BUILDTARGET
|
2010-07-20 20:12:09 +02:00
|
|
|
make %{?_smp_mflags}
|
2009-08-28 15:54:03 +02:00
|
|
|
popd
|
2011-09-29 20:22:32 +02:00
|
|
|
|
2011-11-21 15:59:28 +01:00
|
|
|
./autogen.sh --disable-dependency-tracking --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
|
2010-10-07 21:47:23 +02:00
|
|
|
--libdir=%{_libdir} --sysconfdir=/etc --localstatedir=/var --with-lua \
|
2012-08-28 15:31:44 +02:00
|
|
|
--with-vendor=suse \
|
2011-09-29 20:22:32 +02:00
|
|
|
--with-selinux --with-internal-beecrypt \
|
|
|
|
--with-acl --with-cap --enable-shared %{?with_python: --enable-python} $BUILDTARGET
|
2011-09-23 11:03:13 +02:00
|
|
|
|
2006-12-19 00:17:44 +01:00
|
|
|
rm po/de.gmo
|
2011-05-17 16:07:47 +02:00
|
|
|
make %{?_smp_mflags}
|
2009-08-28 15:54:03 +02:00
|
|
|
make convertdb1
|
2006-12-19 00:17:44 +01:00
|
|
|
|
|
|
|
%install
|
2012-01-18 15:30:38 +01:00
|
|
|
mkdir -p %{buildroot}/usr/lib
|
|
|
|
mkdir -p %{buildroot}/usr/share/locale
|
|
|
|
ln -s ../share/locale %{buildroot}/usr/lib/locale
|
|
|
|
%make_install
|
|
|
|
install -m 755 convertdb1 %{buildroot}/usr/lib/rpm
|
|
|
|
install -m 644 db3/db.h %{buildroot}/usr/include/rpm
|
2007-03-23 17:13:50 +01:00
|
|
|
# remove .la file and the static variant of libpopt
|
|
|
|
# have to remove the dependency from other .la files as well
|
2012-01-18 15:30:38 +01:00
|
|
|
for f in %{buildroot}/%{_libdir}/*.la; do
|
2007-03-23 17:13:50 +01:00
|
|
|
sed -i -e "s,/%_lib/libpopt.la,-lpopt,g" $f
|
|
|
|
done
|
2012-01-18 15:30:38 +01:00
|
|
|
mkdir -p %{buildroot}/etc/init.d
|
|
|
|
install -m 755 %{SOURCE8} %{buildroot}/etc/init.d
|
|
|
|
mkdir -p %{buildroot}/usr/sbin
|
|
|
|
ln -sf ../../etc/init.d/rpmconfigcheck %{buildroot}/usr/sbin/rcrpmconfigcheck
|
|
|
|
cp -a suse_macros %{buildroot}/usr/lib/rpm
|
|
|
|
mkdir -p %{buildroot}/usr/lib/rpm/suse
|
|
|
|
ln -s ../suse_macros %{buildroot}/usr/lib/rpm/suse/macros
|
2009-08-28 15:54:03 +02:00
|
|
|
for d in BUILD RPMS SOURCES SPECS SRPMS BUILDROOT ; do
|
2012-01-18 15:30:38 +01:00
|
|
|
mkdir -p %{buildroot}/usr/src/packages/$d
|
|
|
|
chmod 755 %{buildroot}/usr/src/packages/$d
|
2009-08-28 15:54:03 +02:00
|
|
|
done
|
2012-01-18 15:30:38 +01:00
|
|
|
for d in %{buildroot}/usr/lib/rpm/platform/*-linux/macros ; do
|
2009-08-28 15:54:03 +02:00
|
|
|
dd=${d%%-linux/macros}
|
|
|
|
dd=${dd##*/}
|
2012-01-18 15:30:38 +01:00
|
|
|
mkdir %{buildroot}/usr/src/packages/RPMS/$dd
|
|
|
|
chmod 755 %{buildroot}/usr/src/packages/RPMS/$dd
|
2009-08-28 15:54:03 +02:00
|
|
|
done
|
2012-01-18 15:30:38 +01:00
|
|
|
mkdir -p %{buildroot}/var/lib/rpm
|
|
|
|
gzip -9 %{buildroot}/%{_mandir}/man[18]/*.[18]
|
2006-12-19 00:17:44 +01:00
|
|
|
export RPM_BUILD_ROOT
|
|
|
|
%ifarch s390x
|
|
|
|
[ -f scripts/brp-%_arch-linux ] && sh scripts/brp-%_arch-linux
|
|
|
|
%endif
|
|
|
|
chmod 755 doc/manual
|
2007-08-10 17:16:08 +02:00
|
|
|
rm -rf doc/manual/Makefile*
|
2012-01-18 15:30:38 +01:00
|
|
|
rm -f %{buildroot}/usr/lib/rpmpopt
|
|
|
|
rm -rf %{buildroot}%{_mandir}/{fr,ja,ko,pl,ru,sk}
|
|
|
|
rm -f %{buildroot}%{_prefix}/share/locale/de/LC_MESSAGES/rpm.mo
|
|
|
|
mkdir -p %{buildroot}/var/adm/fillup-templates
|
|
|
|
install -c -m0644 %{SOURCE9} %{buildroot}/var/adm/fillup-templates/
|
|
|
|
rm -f %{buildroot}/usr/lib/rpm/cpanflute %{buildroot}/usr/lib/rpm/cpanflute2
|
|
|
|
install -m 755 %{SOURCE5} %{buildroot}/usr/lib/rpm
|
|
|
|
install -m 755 %{SOURCE6} %{buildroot}/usr/lib/rpm
|
|
|
|
install -m 755 scripts/find-supplements{,.ksyms} %{buildroot}/usr/lib/rpm
|
|
|
|
install -m 755 scripts/firmware.prov %{buildroot}/usr/lib/rpm
|
|
|
|
install -m 755 scripts/debuginfo.prov %{buildroot}/usr/lib/rpm
|
|
|
|
rm -f %{buildroot}/usr/lib/locale %{buildroot}/usr/lib/rpmrc
|
|
|
|
mkdir -p %{buildroot}/etc/rpm
|
|
|
|
chmod 755 %{buildroot}/etc/rpm
|
2007-07-23 20:54:09 +02:00
|
|
|
# remove some nonsense or non-working scripts
|
2012-01-18 15:30:38 +01:00
|
|
|
pushd %{buildroot}/usr/lib/rpm/
|
2007-07-23 20:54:09 +02:00
|
|
|
for f in rpm2cpio.sh rpm.daily rpmdiff* rpm.log rpm.xinetd freshen.sh u_pkg.sh \
|
|
|
|
magic magic.mgc magic.mime* rpmfile *.pl javadeps brp-redhat \
|
|
|
|
brp-strip-static-archive vpkg-provides*.sh http.req sql.req tcl.req \
|
|
|
|
rpmdb_* brp-sparc64-linux brp-strip-comment-note brp-java-gcjcompile
|
|
|
|
do
|
2009-08-28 15:54:03 +02:00
|
|
|
rm -f $f
|
2007-07-23 20:54:09 +02:00
|
|
|
done
|
|
|
|
for i in /usr/share/automake-*/*; do
|
|
|
|
if test -f "$i" && test -f "${i##*/}"; then
|
|
|
|
rm -f "${i##*/}"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
gzip -9 CHANGES
|
2012-01-18 15:30:38 +01:00
|
|
|
rm -rf %{buildroot}/%{_libdir}/python%{py_ver}
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
rm -f %{buildroot}%{_libdir}/rpm-plugins/*.la
|
|
|
|
sh %{buildroot}/usr/lib/rpm/find-lang.sh %{buildroot} rpm
|
2012-06-10 14:06:11 +02:00
|
|
|
# On arm the kernel architecture is ignored. Not the best idea, but lets stay compatible with other distros
|
|
|
|
%ifarch armv7hl armv7l
|
2011-10-01 00:47:43 +02:00
|
|
|
# rpm is using the host_cpu as default for the platform, but armv7hl is not known by the kernel.
|
|
|
|
# so we need to enforce the platform here.
|
|
|
|
# We don't want to use armv7l because it would make us incompatible to Fedora and MeeGo plattforms.
|
2012-01-18 15:30:38 +01:00
|
|
|
echo -n armv7hl-suse-linux> %{buildroot}/etc/rpm/platform
|
2011-10-01 00:47:43 +02:00
|
|
|
%endif
|
2012-06-10 14:06:11 +02:00
|
|
|
%ifarch armv5el
|
|
|
|
# switch to armv5tel on armv5el
|
|
|
|
echo -n armv5tel-suse-linux> %{buildroot}/etc/rpm/platform
|
|
|
|
%endif
|
2006-12-19 00:17:44 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%{fillup_only -an services}
|
|
|
|
test -f var/lib/rpm/Packages || rpm --initdb
|
|
|
|
if test -s var/lib/rpm/packages.rpm ; then
|
|
|
|
echo "converting rpm-3 database to rpm-4 format..."
|
|
|
|
usr/lib/rpm/convertdb1 var/lib/rpm/packages.rpm
|
|
|
|
mv -f var/lib/rpm/packages.rpm var/lib/rpm/packages.rpm3
|
|
|
|
rm -f var/lib/rpm/conflictsindex.rpm var/lib/rpm/fileindex.rpm var/lib/rpm/groupindex.rpm var/lib/rpm/nameindex.rpm var/lib/rpm/providesindex.rpm var/lib/rpm/requiredby.rpm var/lib/rpm/triggerindex.rpm
|
|
|
|
fi
|
2011-05-16 18:07:44 +02:00
|
|
|
# delete no longer maintained databases
|
|
|
|
rm -f var/lib/rpm/Filemd5s var/lib/rpm/Filedigests var/lib/rpm/Requireversion var/lib/rpm/Provideversion
|
2006-12-19 00:17:44 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%{insserv_cleanup}
|
2010-11-11 11:59:29 +01:00
|
|
|
|
2011-01-14 14:07:20 +01:00
|
|
|
%files -f rpm.lang
|
2006-12-19 00:17:44 +01:00
|
|
|
%defattr(-,root,root)
|
2007-07-23 20:54:09 +02:00
|
|
|
%doc CHANGES.gz COPYING GROUPS
|
2006-12-19 00:17:44 +01:00
|
|
|
%doc doc/manual
|
2007-07-23 20:54:09 +02:00
|
|
|
%doc RPM-HOWTO RPM-Tips
|
2006-12-19 00:17:44 +01:00
|
|
|
/etc/rpm
|
|
|
|
/bin/rpm
|
|
|
|
/usr/bin/*
|
2012-01-17 12:13:52 +01:00
|
|
|
%exclude /usr/bin/rpmbuild
|
2006-12-19 00:17:44 +01:00
|
|
|
/etc/init.d/rpmconfigcheck
|
|
|
|
/usr/sbin/rcrpmconfigcheck
|
|
|
|
/usr/lib/rpm
|
2011-05-16 18:07:44 +02:00
|
|
|
%{_libdir}/rpm-plugins
|
2009-08-28 15:54:03 +02:00
|
|
|
%{_libdir}/librpm.so.*
|
|
|
|
%{_libdir}/librpmbuild.so.*
|
|
|
|
%{_libdir}/librpmio.so.*
|
2011-05-16 18:07:44 +02:00
|
|
|
%{_libdir}/librpmsign.so.*
|
2006-12-19 00:17:44 +01:00
|
|
|
%doc %{_mandir}/man[18]/*.[18]*
|
|
|
|
%dir /var/lib/rpm
|
2011-10-19 18:38:28 +02:00
|
|
|
%dir %attr(755,root,root) /usr/src/packages/BUILD
|
|
|
|
%dir %attr(755,root,root) /usr/src/packages/SPECS
|
|
|
|
%dir %attr(755,root,root) /usr/src/packages/SOURCES
|
|
|
|
%dir %attr(755,root,root) /usr/src/packages/SRPMS
|
|
|
|
%dir %attr(755,root,root) /usr/src/packages/RPMS
|
|
|
|
%dir %attr(755,root,root) /usr/src/packages/BUILDROOT
|
|
|
|
%dir %attr(755,root,root) /usr/src/packages/RPMS/*
|
2006-12-19 00:17:44 +01:00
|
|
|
/var/adm/fillup-templates/sysconfig.services-rpm
|
|
|
|
|
2012-01-17 12:13:52 +01:00
|
|
|
%files build
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/bin/rpmbuild
|
|
|
|
|
2006-12-19 00:17:44 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(644,root,root,755)
|
|
|
|
/usr/include/rpm
|
|
|
|
%{_libdir}/librpm.so
|
|
|
|
%{_libdir}/librpmbuild.so
|
|
|
|
%{_libdir}/librpmio.so
|
2011-05-16 18:07:44 +02:00
|
|
|
%{_libdir}/librpmsign.so
|
2009-08-28 15:54:03 +02:00
|
|
|
%{_libdir}/pkgconfig/rpm.pc
|
2007-11-23 01:38:16 +01:00
|
|
|
|
2007-03-15 01:49:23 +01:00
|
|
|
%changelog
|