[python-cssselect] Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
Bohuslav Kabrda
bkabrda at fedoraproject.org
Thu May 15 13:40:46 UTC 2014
commit 87a27b05886e11f096aa56dc51b88c7c9905b2e4
Author: Slavek Kabrda <bkabrda at redhat.com>
Date: Thu May 15 15:40:35 2014 +0200
Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
- Bootstrap test running (circular dependency with python-lxml)
python-cssselect.spec | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/python-cssselect.spec b/python-cssselect.spec
index 1b1395b..49b70f0 100644
--- a/python-cssselect.spec
+++ b/python-cssselect.spec
@@ -7,9 +7,11 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
%endif
+%global with_tests 0
+
Name: python-cssselect
Version: 0.9.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Group: Development/Libraries
Summary: Parses CSS3 Selectors and translates them to XPath 1.0
@@ -19,9 +21,15 @@ Source0: http://pypi.python.org/packages/source/c/cssselect/cssselect-%{v
BuildArch: noarch
-BuildRequires: python2-devel python-setuptools python-lxml
+BuildRequires: python2-devel python-setuptools
+%if 0%{?with_tests}
+BuildRequires: python-lxml
+%endif # if with_tests
%if 0%{?with_python3}
-BuildRequires: python3-devel python3-setuptools python3-lxml
+BuildRequires: python3-devel python3-setuptools
+%if 0%{?with_tests}
+BuildRequires: python3-lxml
+%endif # if with_tests
%endif # if with_python3
%description
@@ -61,12 +69,14 @@ popd
%endif # with_python3
%check
+%if 0%{?with_tests}
PYTHONPATH=$(pwd) %{__python2} cssselect/tests.py
%if 0%{?with_python3}
pushd %{py3dir}
PYTHONPATH=${py3dir} %{__python3} cssselect/tests.py
popd
%endif # with_python3
+%endif # with_tests
%install
%if 0%{?with_python3}
@@ -90,6 +100,10 @@ chmod 755 $RPM_BUILD_ROOT/%{python_sitelib}/cssselect/tests.py
%endif # with_python3
%changelog
+* Wed May 14 2014 Bohuslav Kabrda <bkabrda at redhat.com> - 0.9.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
+- Bootstrap test running (circular dependency with python-lxml)
+
* Fri Jan 17 2014 Eduardo Echeverria <echevemaster at gmail.com> 0.9.1-1
- Update to latest upstream.
- although this package have py3 support, the resultant python3 package
More information about the scm-commits
mailing list