Minor spec fixes
Make with/without bdb build option actually work. An expression would be nicer but people want to be able to build rpm with older versions of itself... Clean up unpackaged /var/tmp from the buildroot, rpm >= 4.17 will fail on it.
This commit is contained in:
parent
b439c18a65
commit
05e837eb31
11
rpm.spec
11
rpm.spec
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
%global rpmver 4.16.1.2
|
%global rpmver 4.16.1.2
|
||||||
#global snapver rc1
|
#global snapver rc1
|
||||||
%global rel 4
|
%global rel 5
|
||||||
%global sover 9
|
%global sover 9
|
||||||
|
|
||||||
%global srcver %{rpmver}%{?snapver:-%{snapver}}
|
%global srcver %{rpmver}%{?snapver:-%{snapver}}
|
||||||
@ -48,7 +48,7 @@
|
|||||||
Summary: The RPM package management system
|
Summary: The RPM package management system
|
||||||
Name: rpm
|
Name: rpm
|
||||||
Version: %{rpmver}
|
Version: %{rpmver}
|
||||||
Release: %{?snapver:0.%{snapver}.}%{rel}%{?dist}.1
|
Release: %{?snapver:0.%{snapver}.}%{rel}%{?dist}
|
||||||
Url: http://www.rpm.org/
|
Url: http://www.rpm.org/
|
||||||
Source0: http://ftp.rpm.org/releases/%{srcdir}/rpm-%{srcver}.tar.bz2
|
Source0: http://ftp.rpm.org/releases/%{srcdir}/rpm-%{srcver}.tar.bz2
|
||||||
%if %{with bdb} && %{with int_bdb}
|
%if %{with bdb} && %{with int_bdb}
|
||||||
@ -344,7 +344,7 @@ done;
|
|||||||
--build=%{_target_platform} \
|
--build=%{_target_platform} \
|
||||||
--host=%{_target_platform} \
|
--host=%{_target_platform} \
|
||||||
--with-vendor=redhat \
|
--with-vendor=redhat \
|
||||||
%{?with_bdb: --enable-bdb} \
|
--enable-bdb=%{?with_bdb:yes}%{!?with_bdb:no} \
|
||||||
%{!?with_int_bdb: --with-external-db} \
|
%{!?with_int_bdb: --with-external-db} \
|
||||||
%{!?with_plugins: --disable-plugins} \
|
%{!?with_plugins: --disable-plugins} \
|
||||||
--with-lua \
|
--with-lua \
|
||||||
@ -406,6 +406,7 @@ find $RPM_BUILD_ROOT -name "*.la"|xargs rm -f
|
|||||||
# These live in perl-generators and python-rpm-generators now
|
# These live in perl-generators and python-rpm-generators now
|
||||||
rm -f $RPM_BUILD_ROOT/%{rpmhome}/{perldeps.pl,perl.*,pythond*}
|
rm -f $RPM_BUILD_ROOT/%{rpmhome}/{perldeps.pl,perl.*,pythond*}
|
||||||
rm -f $RPM_BUILD_ROOT/%{_fileattrsdir}/{perl*,python*}
|
rm -f $RPM_BUILD_ROOT/%{_fileattrsdir}/{perl*,python*}
|
||||||
|
rm -rf $RPM_BUILD_ROOT/var/tmp
|
||||||
|
|
||||||
%if %{with check}
|
%if %{with check}
|
||||||
%check
|
%check
|
||||||
@ -574,6 +575,10 @@ fi
|
|||||||
%doc doc/librpm/html/*
|
%doc doc/librpm/html/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Feb 03 2021 Panu Matilainen <pmatilai@redhat.com> - 4.16.1.2-5
|
||||||
|
- Make with/without bdb build option actually work
|
||||||
|
- Clean up unpackaged /var/tmp from the build root
|
||||||
|
|
||||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.16.1.2-4.1
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.16.1.2-4.1
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user