Accepting request 987209 from home:lnussel:build
- remove obsolete RPM-HOWTO from 1999 (removed RPM-HOWTO.tar.bz2) - move debugedit to separate package (Removed debuginfo-mono.patch, debuglink.diff, debugsubpkg.diff, finddebuginfo-absolute-links.diff, finddebuginfo.diff) - move python-rpm-packaging to separate package (Removed python-rpm-packaging.diff, python-rpm-packaging.tar.bz2 OBS-URL: https://build.opensuse.org/request/show/987209 OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=611
This commit is contained in:
69
rpm.spec
69
rpm.spec
@@ -63,9 +63,6 @@ Release: 0
|
||||
URL: https://rpm.org/
|
||||
#Git-Clone: https://github.com/rpm-software-management/rpm
|
||||
Source: http://ftp.rpm.org/releases/rpm-4.17.x/rpm-%{version}.tar.bz2
|
||||
Source1: RPM-HOWTO.tar.bz2
|
||||
Source2: https://sourceware.org/ftp/debugedit/5.0/debugedit-5.0.tar.xz
|
||||
Source3: python-rpm-packaging.tar.bz2
|
||||
Source5: rpmsort
|
||||
Source8: rpmconfigcheck
|
||||
Source9: sysconfig.services-rpm
|
||||
@@ -119,13 +116,6 @@ Patch135: ocaml-cmxs.diff
|
||||
Patch136: 0001-fix-minimize_writes.patch
|
||||
# touches a generated file
|
||||
Patch180: whatrequires-doc.diff
|
||||
Patch200: finddebuginfo.diff
|
||||
Patch201: finddebuginfo-absolute-links.diff
|
||||
Patch202: debugsubpkg.diff
|
||||
Patch203: debuglink.diff
|
||||
Patch204: debuginfo-mono.patch
|
||||
Patch205: singlefilemode.diff
|
||||
Patch300: python-rpm-packaging.diff
|
||||
Patch6464: auto-config-update-aarch64-ppc64le.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
#
|
||||
@@ -196,6 +186,8 @@ Requires: tar
|
||||
Requires: util-linux
|
||||
Requires: which
|
||||
Requires: xz
|
||||
# needed for debuginfo generation
|
||||
Requires: debugedit = 5.0
|
||||
# drop candidates
|
||||
Requires: cpio
|
||||
Requires: file
|
||||
@@ -209,17 +201,6 @@ Conflicts: rpm < 4.15.0
|
||||
If you want to build a rpm, you need this package. It provides rpmbuild
|
||||
and requires some packages that are usually required.
|
||||
|
||||
%package build-python
|
||||
Summary: RPM dependency generator for Python
|
||||
Group: Development/Languages/Python
|
||||
Requires: python3-base
|
||||
# To avoid widespread breakage by package mistakenly ignoring
|
||||
# their requirement of python-rpm-macros (bsc#1180125)
|
||||
Requires: python-rpm-macros
|
||||
|
||||
%description build-python
|
||||
Provides and requires generator for .py files and modules.
|
||||
|
||||
%package build-perl
|
||||
Summary: RPM dependency generator for Perl
|
||||
Group: Development/Languages/Perl
|
||||
@@ -230,9 +211,6 @@ Provides and requires generator for .pl files and modules.
|
||||
|
||||
%prep
|
||||
%setup -q -n rpm-%{version}
|
||||
tar -xjf %{SOURCE1}
|
||||
tar -xJf %{SOURCE2}
|
||||
tar -xjf %{SOURCE3}
|
||||
|
||||
rm -rf sqlite
|
||||
%patch -P 5 -P 12 -P 13 -P 16 -P 18
|
||||
@@ -250,16 +228,6 @@ rm -rf sqlite
|
||||
%patch -P 135 -P 136
|
||||
%patch -P 180
|
||||
|
||||
# debugedit patches
|
||||
pushd debugedit-5.0
|
||||
%patch -P 200 -P 201 -P 202 -P 203 -P 204 -P 205
|
||||
popd
|
||||
|
||||
# python-rpm-packaging patches
|
||||
pushd python-rpm-packaging
|
||||
%patch -P 300
|
||||
popd
|
||||
|
||||
%ifarch aarch64 ppc64le riscv64
|
||||
%patch6464
|
||||
%endif
|
||||
@@ -303,14 +271,6 @@ $BUILDTARGET
|
||||
rm po/de.gmo
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%if "%{NAME}" != "python-rpm"
|
||||
pushd debugedit-5.0
|
||||
./configure --bindir=/usr/lib/rpm
|
||||
touch find-debuginfo.1
|
||||
make
|
||||
popd
|
||||
%endif
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}/usr/lib
|
||||
mkdir -p %{buildroot}/usr/share/locale
|
||||
@@ -392,16 +352,6 @@ echo -n "%{_target_cpu}-suse-linux-gnueabi" > %{buildroot}/etc/rpm/platform
|
||||
echo "setting the default database backend to 'ndb'"
|
||||
sed -i -e '/_db_backend/s/sqlite/ndb/' %{buildroot}/usr/lib/rpm/macros
|
||||
|
||||
# install debugedit files
|
||||
pushd debugedit-5.0
|
||||
make install-exec DESTDIR="%{buildroot}"
|
||||
popd
|
||||
|
||||
# install python-rpm-packaging files
|
||||
cp -a python-rpm-packaging/fileattrs/*.attr %{buildroot}/usr/lib/rpm/fileattrs
|
||||
cp -a python-rpm-packaging/scripts/* %{buildroot}/usr/lib/rpm
|
||||
chmod 755 %{buildroot}/usr/lib/rpm/brp-python-bytecompile
|
||||
|
||||
%post
|
||||
%{fillup_only -an services}
|
||||
|
||||
@@ -442,7 +392,6 @@ fi
|
||||
%defattr(-,root,root)
|
||||
%license COPYING
|
||||
%doc docs/manual
|
||||
%doc RPM-HOWTO
|
||||
/etc/rpm
|
||||
%if !0%{?usrmerged}
|
||||
/bin/rpm
|
||||
@@ -498,17 +447,11 @@ fi
|
||||
/usr/lib/rpm/ocamldeps.sh
|
||||
/usr/lib/rpm/elfdeps
|
||||
/usr/lib/rpm/rpmdeps
|
||||
/usr/lib/rpm/debugedit
|
||||
/usr/lib/rpm/sepdebugcrcfix
|
||||
/usr/bin/rpmspec
|
||||
/usr/lib/rpm/brp-*
|
||||
%exclude /usr/lib/rpm/brp-python-hardlink
|
||||
%exclude /usr/lib/rpm/brp-python-bytecompile
|
||||
/usr/lib/rpm/check-*
|
||||
/usr/lib/rpm/*find*
|
||||
/usr/lib/rpm/fileattrs/
|
||||
%exclude /usr/lib/rpm/fileattrs/python.attr
|
||||
%exclude /usr/lib/rpm/fileattrs/pythondist.attr
|
||||
%exclude /usr/lib/rpm/fileattrs/perl*.attr
|
||||
/usr/lib/rpm/*.prov
|
||||
%exclude /usr/lib/rpm/perl.prov
|
||||
@@ -519,14 +462,6 @@ fi
|
||||
/usr/lib/rpm/config.sub
|
||||
%endif
|
||||
|
||||
%files build-python
|
||||
%defattr(-,root,root)
|
||||
/usr/lib/rpm/fileattrs/python.attr
|
||||
/usr/lib/rpm/fileattrs/pythondist.attr
|
||||
/usr/lib/rpm/pythondistdeps.py
|
||||
/usr/lib/rpm/brp-python-hardlink
|
||||
/usr/lib/rpm/brp-python-bytecompile
|
||||
|
||||
%files build-perl
|
||||
%defattr(-,root,root)
|
||||
/usr/lib/rpm/fileattrs/perl*.attr
|
||||
|
Reference in New Issue
Block a user