[python-tornado] Fix other sitelib macros as the package is not noarch anymore
Thomas Spura
tomspur at fedoraproject.org
Fri May 23 08:07:57 UTC 2014
commit b53d76139f4be56e6cab2a75e94e0bfe9df97a7d
Author: Thomas Spura <thomas.spura at gmail.com>
Date: Fri May 23 10:00:13 2014 +0200
Fix other sitelib macros as the package is not noarch anymore
python-tornado.spec | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/python-tornado.spec b/python-tornado.spec
index dfc409c..21ff451 100644
--- a/python-tornado.spec
+++ b/python-tornado.spec
@@ -1,7 +1,7 @@
%if 0%{?fedora} > 12
%global with_python3 1
%else
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
%endif
%global pkgname tornado
@@ -99,12 +99,12 @@ rm -rf %{buildroot}
%if 0%{?with_python3}
pushd %{py3dir}
- PATH=$PATH:%{buildroot}%{python3_sitelib}/%{pkgname}
+ PATH=$PATH:%{buildroot}%{python3_sitearch}/%{pkgname}
python3 setup.py install --root=%{buildroot}
popd
%endif # with_python3
-PATH=$PATH:%{buildroot}%{python_sitelib}/%{pkgname}
+PATH=$PATH:%{buildroot}%{python_sitearch}/%{pkgname}
python setup.py install --root=%{buildroot}
@@ -115,11 +115,11 @@ rm -rf %{buildroot}
%if "%{dist}" != ".el6"
%if 0%{?with_python3}
pushd %{py3dir}
- PYTHONPATH=%{python3_sitelib} \
+ PYTHONPATH=%{python3_sitearch} \
python3 -m tornado.test.runtests --verbose || :
popd
%endif # with_python3
- PYTHONPATH=%{python_sitelib} \
+ PYTHONPATH=%{python_sitearch} \
python -m tornado.test.runtests --verbose
%endif
More information about the scm-commits
mailing list