forked from pool/python-cssselect
Accepting request 148308 from home:cataliniacob
I'd like to submit a new package python-cssselect, which was previously part of lxml but became a stand alone package starting with lxml 3.0. I want to get this into Factory as soon as possible in order to make it available for 12.3 (it's already pretty late given the feature freeze and upcoming beta) since Calibre's basic functionality is not working without this (see bnc#788151 which was fixed with a workaround for 12.2 but Calibre is broken again for 12.3 where the workaround is gone). The package is building fine in my home project and installing it makes Calibre work again. Thanks! OBS-URL: https://build.opensuse.org/request/show/148308 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cssselect?expand=0&rev=1
This commit is contained in:
57
python-cssselect.spec
Normal file
57
python-cssselect.spec
Normal file
@@ -0,0 +1,57 @@
|
||||
#
|
||||
# spec file for package python-cssselect
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
|
||||
|
||||
Name: python-cssselect
|
||||
Version: 0.7.1
|
||||
Release: 0
|
||||
License: BSD-3-Clause
|
||||
Summary: CSS3 selectors for Python
|
||||
Url: http://packages.python.org/cssselect/
|
||||
Group: Development/Languages/Python
|
||||
Source: http://pypi.python.org/packages/source/c/cssselect/cssselect-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?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(1)")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%description
|
||||
cssselect parses CSS3 Selectors and translates them to XPath 1.0
|
||||
expressions. Such expressions can be used in lxml or another XPath engine to
|
||||
find the matching elements in an XML or HTML document.
|
||||
|
||||
This module used to live inside of lxml as lxml.cssselect before it was
|
||||
extracted as a stand-alone project.
|
||||
|
||||
%prep
|
||||
%setup -q -n cssselect-%{version}
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" python setup.py build
|
||||
sed -i '/#!\/usr\/bin\/env python/d' cssselect/tests.py
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user