[speedtest-cli/el6] macro fix

Matías Kreder delete at fedoraproject.org
Fri Oct 17 02:27:37 UTC 2014


commit 2cb31fd842da6f6f8ec239997a591285dcf010c2
Author: Matias Kreder <mkreder at gmail.com>
Date:   Thu Oct 16 23:27:30 2014 -0300

    macro fix

 speedtest-cli.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/speedtest-cli.spec b/speedtest-cli.spec
index 6c0c599..cb53c33 100644
--- a/speedtest-cli.spec
+++ b/speedtest-cli.spec
@@ -1,6 +1,12 @@
+%if 0%{?rhel} && 0%{?rhel} <= 6
+%{!?__python2: %global __python2 /usr/bin/python2}
+%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
 Name: speedtest-cli
 Version: 0.3.1
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: Command line interface for testing internet bandwidth
 
 License: ASL 2.0 
@@ -41,6 +47,9 @@ rm -f $RPM_BUILD_ROOT%{_bindir}/speedtest
 %doc CONTRIBUTING.md  LICENSE  README.rst 
 
 %changelog
+* Thu Oct 16 2014 Matias Kreder <delete at fedoraproject.org> 0.3.1-2
+- added macro for RHEL6
+
 * Wed Oct 15 2014 Matias Kreder <delete at fedoraproject.org> 0.3.1-1
 - Updated to 0.3.1, added python-setuptools as a dependency
 


More information about the scm-commits mailing list