15
0

Accepting request 520195 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/520195
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cssutils?expand=0&rev=30
This commit is contained in:
2017-09-05 13:15:45 +00:00
committed by Git OBS Bridge
4 changed files with 57 additions and 20 deletions

3
cssutils-1.0.2.tar.gz Normal file
View File

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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4504762f5d8800b98fa713749c00acfef8419826568f9363c490e45146a891af
size 434178

View File

@@ -1,3 +1,26 @@
-------------------------------------------------------------------
Thu Aug 24 13:35:14 UTC 2017 - jmatejek@suse.com
- singlespec auto-conversion
-------------------------------------------------------------------
Tue May 2 22:15:14 UTC 2017 - thorsten.behrens@cib.de
- update to version 1.0.2:
* Fixed issue #61: Nesting of `@media` rules
* Fixed issue #51 and #56: Slow font-family regex
* Fixed issue #68: failing tests on Python 3
* Fixed issue #69: our DOM implementation now delegates unsupported
methods
* Fixed issue #72: importing now faster since regexes are no longer
pre-cached on import time
-------------------------------------------------------------------
Tue May 2 22:04:16 UTC 2017 - thorsten.behrens@cib.de
- update to version 1.0.1:
* Fixed Python 3.5 compatibility
-------------------------------------------------------------------
Sat May 2 16:47:10 UTC 2015 - benoit.monin@gmx.fr
@@ -122,3 +145,4 @@ Mon Apr 28 17:50:55 CEST 2008 - pth@suse.de
- Initial package.

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-cssutils
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,25 +16,27 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-cssutils
Version: 1.0
Version: 1.0.2
Release: 0
Url: http://cthedot.de/cssutils/
Summary: A CSS Cascading Style Sheets library for Python
License: LGPL-3.0+
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/c/cssutils/cssutils-%{version}.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: unzip
Provides: python-css-utils-doc = %{version}
Obsoletes: python-css-utils-doc < %{version}
%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()")}
%else
Url: http://cthedot.de/cssutils/
Source: https://files.pythonhosted.org/packages/source/c/cssutils/cssutils-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildArch: noarch
%ifpython2
Provides: %{oldpython}-css-utils-doc = %{version}
Obsoletes: %{oldpython}-css-utils-doc < %{version}
%endif
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
A Python package to parse and build CSS Cascading Style Sheets. DOM only, not any rendering facilities!
@@ -45,15 +47,26 @@ sed -i "1d" src/cssutils/{parse,codec,sac,serialize,scripts/csscapture,_codec2,e
sed -i "s/\r//" src/cssutils/{sac,scripts/csscombine,tokenize2}.py COPYING COPYING.LESSER examples/{website,minify,imports,cssencodings,style,testutil,codec}.py # Fix EOL encodings
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_clone -a %{buildroot}%{_bindir}/csscapture
%python_clone -a %{buildroot}%{_bindir}/csscombine
%python_clone -a %{buildroot}%{_bindir}/cssparse
%files
%post
%{python_install_alternative csscapture csscombine cssparse}
%postun
%python_uninstall_alternative csscapture
%files %{python_files}
%defattr(-,root,root,-)
%doc COPYING COPYING.LESSER README.txt examples
%{_bindir}/css*
%python_alternative %{_bindir}/csscapture
%python_alternative %{_bindir}/csscombine
%python_alternative %{_bindir}/cssparse
%{python_sitelib}/cssutils-%{version}-py*.egg-info/
%{python_sitelib}/cssutils/
%{python_sitelib}/encutils/