diff --git a/python-tinycss2.spec b/python-tinycss2.spec index 86e7708..cd7a22c 100644 --- a/python-tinycss2.spec +++ b/python-tinycss2.spec @@ -1,14 +1,18 @@ %global srcname tinycss2 + +%global py3_prefix python%{python3_pkgversion} + + Name: python-%{srcname} -Version: 1.5.1 -Release: 1%{?dist} +Version: 1.2.1 +Release: 5%{?dist} Summary: Low-level CSS parser for Python -License: BSD-3-Clause -URL: https://www.courtbouillon.org/tinycss2/ -Source0: %{pypi_source tinycss2} +License: BSD +URL: https://pypi.python.org/pypi/%{srcname}/ +Source0: %pypi_source BuildArch: noarch BuildRequires: python3-devel @@ -24,11 +28,12 @@ tinycss with a simpler API, based on the more recent CSS Syntax Level 3 specification. -%package -n python3-%{srcname} +%package -n %{py3_prefix}-%{srcname} Summary: Low-level CSS parser for Python 3 -%{?python_provide:%python_provide python3-%{srcname}} +Requires: %{py3_prefix}-webencodings >= 0.4 +%{?python_provide:%python_provide %{py3_prefix}-%{srcname}} -%description -n python3-%{srcname} +%description -n %{py3_prefix}-%{srcname} tinycss2 is a modern, low-level CSS parser for Python. tinycss2 is a rewrite of tinycss with a simpler API, based on the more recent CSS Syntax Level 3 specification. @@ -58,7 +63,7 @@ rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/test.py rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/__pycache__/test.*.py? -%files -n python3-%{srcname} +%files -n %{py3_prefix}-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/%{srcname}/ @@ -66,51 +71,6 @@ rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/__pycache__/test.*.py? %changelog -* Sun Nov 23 2025 Felix Schwarz - 1.5.1-1 -- update to 1.5.1 - -* Wed Nov 19 2025 Felix Schwarz - 1.5.0-1 -- update to 1.5.0 - -* Fri Sep 19 2025 Python Maint - 1.4.0-6 -- Rebuilt for Python 3.14.0rc3 bytecode - -* Fri Aug 15 2025 Python Maint - 1.4.0-5 -- Rebuilt for Python 3.14.0rc2 bytecode - -* Fri Jul 25 2025 Fedora Release Engineering - 1.4.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Tue Jun 03 2025 Python Maint - 1.4.0-3 -- Rebuilt for Python 3.14 - -* Sat Jan 18 2025 Fedora Release Engineering - 1.4.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Sat Oct 26 2024 Felix Schwarz - 1.4.0-1 -- update to 1.4.0 - -* Sat Oct 26 2024 Felix Schwarz - 1.3.0-5 -- SPDX conversion - -* Wed Sep 04 2024 Miroslav Suchý - 1.3.0-4 -- convert license to SPDX - -* Fri Jul 19 2024 Fedora Release Engineering - 1.3.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Fri Jun 07 2024 Python Maint - 1.3.0-2 -- Rebuilt for Python 3.13 - -* Tue Apr 23 2024 Felix Schwarz - 1.3.0-1 -- update to 1.3.0 - -* Fri Jan 26 2024 Fedora Release Engineering - 1.2.1-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Mon Jan 22 2024 Fedora Release Engineering - 1.2.1-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - * Fri Jul 21 2023 Fedora Release Engineering - 1.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild diff --git a/sources b/sources index 236d2ad..fc1e043 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tinycss2-1.5.1.tar.gz) = 1c2e1818c27c90f78b1e0af9b4c3c2a0944999691dcea678d0f5ed8a141d6ebd272b8b6763c1eac9d824db0d539e1e238f1e5e6abd2c02d97bb86002da637a10 +SHA512 (tinycss2-1.2.1.tar.gz) = 633198637f1d7cb802d1a7336a01447fc6b902cda1ade6c526e403fc2a5319277e1457c68a06780f7a6254d4c0dbf42df5d32969536ea697887a2de3e98a5f1a