Hello community, here is the log from the commit of package python-cssutils for openSUSE:Factory checked in at 2017-09-05 15:15:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-cssutils (Old) and /work/SRC/openSUSE:Factory/.python-cssutils.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cssutils" Tue Sep 5 15:15:45 2017 rev:30 rq:520195 version:1.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-cssutils/python-cssutils.changes 2015-05-05 00:55:55.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-cssutils.new/python-cssutils.changes 2017-09-05 15:15:49.464141352 +0200 @@ -1,0 +2,23 @@ +Thu Aug 24 13:35:14 UTC 2017 - [email protected] + +- singlespec auto-conversion + +------------------------------------------------------------------- +Tue May 2 22:15:14 UTC 2017 - [email protected] + +- 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 - [email protected] + +- update to version 1.0.1: + * Fixed Python 3.5 compatibility + +------------------------------------------------------------------- @@ -123,0 +147 @@ + Old: ---- cssutils-1.0.zip New: ---- cssutils-1.0.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-cssutils.spec ++++++ --- /var/tmp/diff_new_pack.YdZN0G/_old 2017-09-05 15:15:50.727963705 +0200 +++ /var/tmp/diff_new_pack.YdZN0G/_new 2017-09-05 15:15:50.727963705 +0200 @@ -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 "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 + +%post +%{python_install_alternative csscapture csscombine cssparse} + +%postun +%python_uninstall_alternative csscapture -%files +%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/
