[clamav/el5] Handle xz archive of SOURCE0 in rpmbuild on RHEL < 6.
Jan-Frode Myklebust
janfrode at fedoraproject.org
Wed Jul 27 07:50:18 UTC 2011
commit 4bca79238f00d95246d4a21f408ed366264f1d62
Author: Jan-Frode Myklebust <janfrode at tanso.net>
Date: Wed Jul 27 09:49:41 2011 +0200
Handle xz archive of SOURCE0 in rpmbuild on RHEL < 6.
clamav.spec | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/clamav.spec b/clamav.spec
index e58d3bc..c12ad6e 100644
--- a/clamav.spec
+++ b/clamav.spec
@@ -5,7 +5,7 @@
Summary: Anti-virus software
Name: clamav
Version: 0.97.2
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPLv2
Group: Applications/System
URL: http://www.clamav.net/
@@ -109,7 +109,9 @@ documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.
%prep
-%setup -q
+# Handle that rpmbuild in RHEL < 6 doesn't handle xz archives automatically.
+%setup -q -T -c
+xz -dc %{SOURCE0} | (cd .. ; tar xvvf -)
%{__perl} -pi.orig -e 's|/lib\b|/%{_lib}|g;' libtool configure
@@ -406,6 +408,9 @@ rm -rf %{buildroot}
%changelog
+* Wed Jul 27 2011 Jan-Frode Myklebuust <janfrode at tanso.net> - 0.97.2-3
+- Handle xz archives in rpmbuilds < RHEL6.
+
* Wed Jul 27 2011 Jan-Frode Myklebuust <janfrode at tanso.net> - 0.97.2-2
- updated to 0.97.2
- Build-require xz
More information about the scm-commits
mailing list