[python-lxml/f19] python3-cssselect is F20 and newer

Jeffrey C. Ollie jcollie at fedoraproject.org
Mon Mar 24 15:48:18 UTC 2014


commit b6e58a15d2bbe287d918be68d2d65b95b44b835b
Author: Jeffrey C. Ollie <jeff at ocjtech.us>
Date:   Mon Mar 24 10:48:17 2014 -0500

    python3-cssselect is F20 and newer

 python-lxml.spec |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/python-lxml.spec b/python-lxml.spec
index b2d7214..a7b1045 100644
--- a/python-lxml.spec
+++ b/python-lxml.spec
@@ -2,11 +2,15 @@
 %global with_python3 1
 %endif
 
+%if %{?fedora} >= 20
+%global with_python3_cssselect
+%endif
+
 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 
 Name:           python-lxml
 Version:        3.3.3
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        ElementTree-like Python bindings for libxml2 and libxslt
 
 Group:          Development/Libraries
@@ -29,11 +33,12 @@ Requires:       python-cssselect
 %if 0%{?with_python3}
 BuildRequires:  python3-devel
 BuildRequires:  python3-setuptools
+%if 0%{?with_python3_cssselect}
 BuildRequires:  python3-cssselect
 
 Requires:       python3-cssselect
 %endif
-
+%endif
 
 %description
 lxml provides a Python binding to the libxslt and libxml2 libraries.
@@ -153,6 +158,9 @@ rm -rf %{buildroot}
 %endif
 
 %changelog
+* Mon Mar 24 2014 Jeffrey Ollie <jeff at ocjtech.us> - 3.3.3-3
+- python3-cssselect is not available on F19
+
 * Mon Mar 24 2014 Jeffrey Ollie <jeff at ocjtech.us> - 3.3.3-2
 - BZ#1075070  add requires and buildrequires for cssselect
 


More information about the scm-commits mailing list