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:
Sascha Peilicke 2013-01-14 08:39:44 +00:00 committed by Git OBS Bridge
commit b47cf6039c
7 changed files with 147 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
cssselect-0.7.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:74f411a349fcfb676b68336fcae8799ba9fbb0a0446562f544dee019fb0e2ae7
size 30480

5
python-cssselect.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Tue Jan 8 20:42:17 UTC 2013 - iacobcatalin@gmail.com
- Initial package 0.7.1

57
python-cssselect.spec Normal file
View 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

View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Tue Jan 8 20:42:17 UTC 2013 - iacobcatalin@gmail.com
- Initial package 0.7.1

53
python3-cssselect.spec Normal file
View File

@ -0,0 +1,53 @@
#
# spec file for package python3-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: python3-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: python3-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: python(abi) = %{py3_ver}
%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}" python3 setup.py build
sed -i '/#!\/usr\/bin\/env python/d' cssselect/tests.py
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%{python3_sitelib}/*
%changelog