[clamav/el6] Handle xz archive SOURCE0 for rpmbuild on RHEL < 6.

Jan-Frode Myklebust janfrode at fedoraproject.org
Wed Jul 27 08:03:43 UTC 2011


commit ae959928b685373bbd37a4b9d933f26ef5d2cc46
Author: Jan-Frode Myklebust <janfrode at tanso.net>
Date:   Wed Jul 27 10:03:06 2011 +0200

    Handle xz archive SOURCE0 for rpmbuild on RHEL < 6.

 clamav.spec |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/clamav.spec b/clamav.spec
index 234273a..567babb 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
 
@@ -405,11 +407,9 @@ rm -rf %{buildroot}
 %exclude %{_libdir}/libclamav.la
 
 %changelog
-* Wed Jul 27 2011 Jan-Frode Myklebuust <janfrode at tanso.net> - 0.97.2-2
+* Wed Jul 27 2011 Jan-Frode Myklebuust <janfrode at tanso.net> - 0.97.2-3
 - include updated clamd-wrapper which get the PidFile setting from the
   service configuration file. 
-
-* Wed Jul 27 2011 Jan-Frode Myklebuust <janfrode at tanso.net> - 0.97.2-1
 - updated to 0.97.2
 - Build-require xz
 - CVE-2011-2721 Off-by-one error by scanning message hashes (#725694)


More information about the scm-commits mailing list