2008-09-18 02:45:36 +00:00
|
|
|
#
|
2011-01-11 13:17:03 +00:00
|
|
|
# spec file for package python-cssutils
|
2008-09-18 02:45:36 +00:00
|
|
|
#
|
2025-06-27 14:24:56 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2008-09-18 02:45:36 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
2011-09-05 14:55:24 +00:00
|
|
|
|
2018-12-04 13:22:10 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-09-18 02:45:36 +00:00
|
|
|
#
|
|
|
|
|
|
2011-09-05 14:55:24 +00:00
|
|
|
|
2025-07-08 08:07:44 +00:00
|
|
|
%bcond_without libalternatives
|
2023-08-20 17:31:12 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2008-09-18 02:45:36 +00:00
|
|
|
Name: python-cssutils
|
2025-06-27 14:24:56 +00:00
|
|
|
Version: 2.11.1
|
2012-03-12 20:48:02 +00:00
|
|
|
Release: 0
|
2011-09-02 09:35:26 +00:00
|
|
|
Summary: A CSS Cascading Style Sheets library for Python
|
2018-12-04 13:22:10 +00:00
|
|
|
License: LGPL-3.0-or-later
|
2011-09-02 09:35:26 +00:00
|
|
|
Group: Development/Languages/Python
|
2022-09-14 08:06:19 +00:00
|
|
|
URL: https://github.com/jaraco/cssutils
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/c/cssutils/cssutils-%{version}.tar.gz
|
|
|
|
|
Source1: %{name}.rpmlintrc
|
2023-11-25 14:09:58 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
2024-04-20 13:28:26 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2022-09-14 08:06:19 +00:00
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
2017-09-01 14:31:41 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-04-20 13:28:26 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2025-07-08 08:07:44 +00:00
|
|
|
BuildRequires: alts
|
2022-09-14 08:06:19 +00:00
|
|
|
BuildRequires: fdupes
|
2017-09-01 14:31:41 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2025-07-08 08:07:44 +00:00
|
|
|
Requires: alts
|
2025-06-27 14:26:40 +00:00
|
|
|
Requires: python-more-itertools
|
2012-03-12 20:48:02 +00:00
|
|
|
BuildArch: noarch
|
2017-09-01 14:31:41 +00:00
|
|
|
%python_subpackages
|
2008-09-18 02:45:36 +00:00
|
|
|
|
|
|
|
|
%description
|
2011-09-02 09:35:26 +00:00
|
|
|
A Python package to parse and build CSS Cascading Style Sheets. DOM only, not any rendering facilities!
|
2008-09-18 02:45:36 +00:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n cssutils-%{version}
|
2022-09-14 08:06:19 +00:00
|
|
|
|
2008-09-18 02:45:36 +00:00
|
|
|
%build
|
2024-04-20 13:28:26 +00:00
|
|
|
%pyproject_wheel
|
2008-09-18 02:45:36 +00:00
|
|
|
|
|
|
|
|
%install
|
2024-04-20 13:28:26 +00:00
|
|
|
%pyproject_install
|
2017-09-01 14:31:41 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/csscapture
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/csscombine
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/cssparse
|
2025-07-08 08:13:18 +00:00
|
|
|
%python_group_libalternatives csscapture csscombine cssparse
|
2017-09-01 14:31:41 +00:00
|
|
|
|
2022-09-14 08:06:19 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/
|
|
|
|
|
|
2025-07-08 08:07:44 +00:00
|
|
|
%pre
|
|
|
|
|
%python_libalternatives_reset_alternative csscapture
|
2008-09-18 02:45:36 +00:00
|
|
|
|
2017-09-01 14:31:41 +00:00
|
|
|
%files %{python_files}
|
2025-06-27 14:24:56 +00:00
|
|
|
%license LICENSE
|
2022-09-14 08:06:19 +00:00
|
|
|
%doc README.rst examples
|
2017-09-01 14:31:41 +00:00
|
|
|
%python_alternative %{_bindir}/csscapture
|
|
|
|
|
%python_alternative %{_bindir}/csscombine
|
|
|
|
|
%python_alternative %{_bindir}/cssparse
|
2024-04-20 13:28:26 +00:00
|
|
|
%{python_sitelib}/cssutils-%{version}.dist-info
|
2013-04-17 14:05:30 +00:00
|
|
|
%{python_sitelib}/cssutils/
|
|
|
|
|
%{python_sitelib}/encutils/
|
2008-09-18 02:45:36 +00:00
|
|
|
|
|
|
|
|
%changelog
|