- Enable tests
- Add patch to disable online tests: * disable-online-tests.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-css-parser?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
ced69b5082
commit
2225b95ec0
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-css-parser
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 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
|
||||
@@ -17,28 +17,25 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
|
||||
Name: python-css-parser
|
||||
Version: 1.0.4
|
||||
Release: 0
|
||||
Summary: CSS related utilities (parsing, serialization, etc) for python
|
||||
License: LGPL-3.0-or-later
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/ebook-utils/css-parser
|
||||
Source: https://github.com/ebook-utils/css-parser/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: fdupes
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Provides: %{oldpython}-css-parser-doc = %{version}
|
||||
Obsoletes: %{oldpython}-css-parser-doc < %{version}
|
||||
%endif
|
||||
Name: python-css-parser
|
||||
Version: 1.0.4
|
||||
Release: 0
|
||||
Summary: CSS related utilities (parsing, serialization, etc) for python
|
||||
License: LGPL-3.0-or-later
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/ebook-utils/css-parser
|
||||
Source: https://github.com/ebook-utils/css-parser/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
Patch0: disable-online-tests.patch
|
||||
BuildRequires: %{python_module chardet}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
Requires: python-chardet
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
CSS related utilities (parsing, serialization, etc) for python
|
||||
CSS related utilities (parsing, serialization, etc) for python
|
||||
|
||||
A fork of the cssutils project based on version 1.0.2. This fork includes general bug fixes and extensions specific to editing and working with ebooks.
|
||||
|
||||
@@ -47,6 +44,7 @@ The main python source code has been modified so that it will run without furthe
|
||||
%prep
|
||||
%setup -q -n css-parser-%{version}
|
||||
sed -i "1d" src/css_parser/{parse,codec,sac,serialize,scripts/csscapture,_codec2,errorhandler,scripts/cssparse,_codec3,scripts/csscombine,tokenize2,version,encutils/__init__,__init__}.py # Fix non-executable scripts
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -56,6 +54,9 @@ sed -i "1d" src/css_parser/{parse,codec,sac,serialize,scripts/csscapture,_codec2
|
||||
# replace duplicate .pyo/.pyc with hardlinks
|
||||
%fdupes %{buildroot}/%{python_sitelib}/css_parser/
|
||||
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
|
||||
%files %{python_files}
|
||||
%license COPYING COPYING.LESSER
|
||||
%doc README.md
|
||||
|
Reference in New Issue
Block a user