From 0cae5131e041f76603936d9902e498fbbf5f9122 Mon Sep 17 00:00:00 2001 From: Robert Kuska Date: Wed, 30 Jul 2014 10:06:24 +0200 Subject: [PATCH] Change spec for a el6 and epel7 --- python-whoosh.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/python-whoosh.spec b/python-whoosh.spec index 2dcb439..1f17e51 100644 --- a/python-whoosh.spec +++ b/python-whoosh.spec @@ -1,3 +1,9 @@ +%if 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 + %if 0%{?fedora} > 12 %global with_python3 1 %endif @@ -6,7 +12,7 @@ Name: python-whoosh Version: 2.5.7 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Fast, pure-Python full text indexing, search, and spell checking library License: BSD @@ -68,7 +74,7 @@ popd %check %{__python2} setup.py test -%if 0%{with_python3} +%if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py test popd @@ -96,6 +102,9 @@ popd %endif %changelog +* Wed Jul 30 2014 Robert Kuska - 2.7.5-4 +- Change spec for el6 and epel7 + * Sun Jun 08 2014 Fedora Release Engineering - 2.5.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild