15
0

Accepting request 519965 from devel:languages:python:singlespec-staging

- singlespec auto-conversion
- 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
- update to version 1.0.1:
  * Fixed Python 3.5 compatibility
- update to version 1.0:
  * EXPERIMENTAL: Variable references may have a fallback value now
    (as implemented in Firefox 29). It is available as
    CSSVariable.fallback and example are:
  * FEATURE: (issue #37) Implemented parsing of CSSCalc values.
    General syntax is checked but not if operators in calc are
    actually the right kind like DIMENSION * DIMENSION. Also Values
    using calc do not validate in cssutils but are actually valid.
  * FIXED issue #20 and #35 (Test fail CSSParser.parseUrl() error
    with Python 3.3)
  * FIXED issue #21: (almost all) deprecation warning in Py 3.3
    fixed.
  * FIXED issue #30 (Test failed)
  * FIXED issue #33 (well kinda): Added that cssutils is **not**
    threadsafe!
  * FIXED issue #34: More complext MediaQueries should be parsable
    now. A few slight changes in behavior are:
    - xml.dom.SyntaxErr raised instead of
      xml.dom.InvalidCharacterErr for an unknown media type
    - removed handheld media type special case (for old Opera).
- Require python-setuptools instead of distribute (upstreams merged)
- Update to version 0.9.10:
  * No changelog provided 
- Remove BuildRequires: python-2to3, useless since included in main 
  python devel package
- Add Requires: python3; fix build for OpenSUSE <= 12.2
- Initial python3 support
- Update to version 9.9.9:
  * No changelog provided
- Obsolete/Provide python-cssutils-doc
- Update to version 0.9.8a3:
  * No HTML docs anymore
- Spec file cleanup
- Update to version 0.9.8a1
  * BUGFIX: fixes issue #41, #42, #45, #46
- Update to 0.9.7b4
  * improves parsing of MS specific (and probably invalid!) values
- Make package own the documentation subdir.
- Mark documentation as such.
- update to 0.9.7b3
- several changes (see CHANGELOG.txt), just random picks:
  * Massive speed improvement of handling of CSSVariables of a stylesheet
  * CSSFunction value parameters may contain HASH values like ``#fff`` now
  * Changed parameters of script/utility function ``csscombine``.
- sphinx conf no longer provided
- Update to 0.9.7a4
- cleanup spec file
- api changes:
  * CSSRule values changed: NAMESPACE_RULE, COMMENT, VARIABLES_RULE
  * CSSStyleSheet.setSerializer and CSSStyleSheet.setSerializerPref DEPRECATED
- compliance to http://dev.w3.org/csswg/cssom improved.
- new features: 
   * Started CSS Variables <http://disruptive-innovations.com/zoo/cssvariables/>
   * added cssutils.css.CSSStyleSheet.variables
   * cssutils.ser.prefs.resolveVariables switchable
   * cssutils.ser.prefs.normalizedVarNames switchable
   * Added new options to cssutils.script.csscombine: cssText=None, href=None
   * Added CSSRuleList.rulesOfType(type)
- Update to 0.9.7a3 as needed for FATE#309541
- Added build requirement for python-sphinx
- Added patch for copy.py (sphinx documentation)
- Rebuild HTML documentation with sphinx
- Better separate documentation package from main package
- Initial package.

OBS-URL: https://build.opensuse.org/request/show/519965
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cssutils?expand=0&rev=44
This commit is contained in:
Jan Matejek
2017-09-01 14:31:41 +00:00
committed by Git OBS Bridge
parent d7669aefc6
commit fabc7b4ab9
2 changed files with 34 additions and 15 deletions

View File

@@ -16,25 +16,27 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-cssutils
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: https://pypi.python.org/packages/source/c/cssutils/cssutils-%{version}.tar.gz
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/