diff --git a/redhat-rpm-config-9.0.3-always_delete_buildroot_at_install.patch b/redhat-rpm-config-9.0.3-always_delete_buildroot_at_install.patch new file mode 100644 index 0000000..a114c91 --- /dev/null +++ b/redhat-rpm-config-9.0.3-always_delete_buildroot_at_install.patch @@ -0,0 +1,21 @@ +diff -up redhat-rpm-config-9.0.3/macros.BAD redhat-rpm-config-9.0.3/macros +--- redhat-rpm-config-9.0.3/macros.BAD 2009-07-21 13:22:43.427201497 -0400 ++++ redhat-rpm-config-9.0.3/macros 2009-07-21 13:23:57.692440712 -0400 +@@ -73,6 +73,17 @@ + #============================================================================== + # ---- Build policy macros. + # ++# ++#--------------------------------------------------------------------- ++# Expanded at beginning of %install scriptlet. ++# ++ ++%__spec_install_pre %{___build_pre}\ ++ [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "${RPM_BUILD_ROOT}"\ ++ mkdir -p `dirname "$RPM_BUILD_ROOT"`\ ++ mkdir "$RPM_BUILD_ROOT"\ ++%{nil} ++ + #--------------------------------------------------------------------- + # Expanded at end of %install scriptlet. + # diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 9087d3c..36ad659 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -1,13 +1,14 @@ Summary: Red Hat specific rpm configuration files. Name: redhat-rpm-config Version: 9.0.3 -Release: 4%{?dist} +Release: 5%{?dist} # No version specified. License: GPL+ Group: Development/System Source: redhat-rpm-config-%{version}.tar.bz2 Patch0: redhat-rpm-config-9.0.3-fix-requires.patch Patch1: limit-smp-16-threads.patch +Patch2: redhat-rpm-config-9.0.3-always_delete_buildroot_at_install.patch BuildArch: noarch Requires: mktemp BuildRoot: %{_tmppath}/%{name}-root @@ -19,6 +20,7 @@ Red Hat specific rpm configuration files. %setup -q %patch0 -p0 %patch1 -p1 +%patch2 -p1 %install make DESTDIR=${RPM_BUILD_ROOT} install @@ -31,6 +33,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_prefix}/lib/rpm/redhat %changelog +* Tue Jul 21 2009 Tom "spot" Callaway - 9.0.3-5 +- always delete %%buildroot as first step of %%install (as long as %buildroot is not /) + * Mon Feb 16 2009 Dennis Gilmore - 9.0.3-4 - limit _smp_flags to -j16