diff --git a/mock-0.4-unpackaged-files-fix.patch b/mock-0.4-unpackaged-files-fix.patch new file mode 100644 index 0000000..de3d0b4 --- /dev/null +++ b/mock-0.4-unpackaged-files-fix.patch @@ -0,0 +1,11 @@ +--- mock-0.4/mock.py.rpmbuild-fix 2006-01-18 17:05:43.000000000 -0500 ++++ mock-0.4/mock.py 2006-01-18 17:06:14.000000000 -0500 +@@ -311,7 +311,7 @@ + srpmfn = os.path.basename(srpm_in) + # run with --nodeps b/c of the check above we know we have our build + # deps satisfied. +- cmd = "%s -c 'rpmbuild --rebuild --target %s --nodeps %s' %s" % ( ++ cmd = "cd /;%s -c 'rpmbuild --rebuild --target %s --nodeps %s' %s" % ( + self.config['runuser'], self.target_arch, srpm_in, + self.config['chrootuser']) + diff --git a/mock.spec b/mock.spec index e0a6107..eceece0 100644 --- a/mock.spec +++ b/mock.spec @@ -1,7 +1,7 @@ Summary: Builds packages inside chroots Name: mock Version: 0.4 -Release: 2%{?dist} +Release: 3%{?dist} License: GPL Group: Development/Tools Source: http://fedoraproject.org/projects/mock/releases/%{name}-%{version}.tar.gz @@ -10,6 +10,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: python, yum >= 2.2.1 Requires(pre): shadow-utils BuildRequires: libselinux-devel +Patch0: mock-0.4-unpackaged-files-fix.patch %description Mock takes a srpm and builds it in a chroot @@ -17,6 +18,8 @@ Mock takes a srpm and builds it in a chroot %prep %setup -q +%patch0 -p1 -b .unpackaged-files-fix + %build make @@ -65,6 +68,9 @@ fi %changelog +* Wed Jan 18 2006 Dan Williams - 0.4-3 +- Add unpackaged files fix from RH#163576 (Adrian Reber) + * Tue Aug 16 2005 Matthias Saou 0.4-2 - Fix ?fedora check when not defined (would fail to parse).