- add auto-config-update-aarch64.diff:
* optionally automatically update config.guess/sub during build OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=259
This commit is contained in:
13
rpm.spec
13
rpm.spec
@@ -60,6 +60,7 @@ Source9: sysconfig.services-rpm
|
||||
Source10: beecrypt-4.1.2.tar.bz2
|
||||
Source11: db-4.8.30.tar.bz2
|
||||
Source12: baselibs.conf
|
||||
Source6464: auto-config-update-aarch64.diff
|
||||
Patch1: beecrypt-4.1.2.diff
|
||||
Patch2: db.diff
|
||||
# quilt patches start here
|
||||
@@ -136,6 +137,11 @@ Patch79: helperenv.diff
|
||||
Patch80: config-guess-sub-update.diff
|
||||
Patch81: debugedit-aarch64.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%ifarch aarch64
|
||||
%global auto_config_guess_update 1
|
||||
%else
|
||||
%global auto_config_guess_update 0
|
||||
%endif
|
||||
#
|
||||
# avoid bootstrapping problem
|
||||
%define _binary_payload w9.bzdio
|
||||
@@ -223,6 +229,9 @@ rm -f rpmdb/db.h
|
||||
%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
|
||||
%patch -P 80 -P 81
|
||||
%if %auto_config_guess_update
|
||||
patch -p0 < %{S:6464}
|
||||
%endif
|
||||
cp config.guess config.sub db/dist/
|
||||
cp config.guess config.sub beecrypt/
|
||||
#chmod 755 scripts/find-supplements{,.ksyms}
|
||||
@@ -339,6 +348,10 @@ for i in /usr/share/automake-*/*; do
|
||||
fi
|
||||
done
|
||||
popd
|
||||
%if %auto_config_guess_update
|
||||
install -m 755 config.guess %{buildroot}/usr/lib/rpm
|
||||
install -m 755 config.sub %{buildroot}/usr/lib/rpm
|
||||
%endif
|
||||
gzip -9 CHANGES
|
||||
rm -rf %{buildroot}/%{_libdir}/python%{py_ver}
|
||||
rm -f %{buildroot}%{_libdir}/*.la
|
||||
|
Reference in New Issue
Block a user