replace %{py3_prefix} with just python3

This commit is contained in:
Felix Schwarz 2025-11-23 16:46:19 +01:00
commit 52e9a15fdc

View file

@ -1,10 +1,6 @@
%global srcname tinycss2
%global py3_prefix python%{python3_pkgversion}
Name: python-%{srcname}
Version: 1.5.0
Release: 1%{?dist}
@ -30,12 +26,12 @@ tinycss with a simpler API, based on the more recent CSS Syntax Level 3
specification.
%package -n %{py3_prefix}-%{srcname}
%package -n python3-%{srcname}
Summary: Low-level CSS parser for Python 3
Requires: %{py3_prefix}-webencodings >= 0.4
%{?python_provide:%python_provide %{py3_prefix}-%{srcname}}
Requires: python3-webencodings >= 0.4
%{?python_provide:%python_provide python3-%{srcname}}
%description -n %{py3_prefix}-%{srcname}
%description -n python3-%{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.
@ -66,7 +62,7 @@ rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/test.py
rm -rf %{buildroot}%{python3_sitelib}/%{srcname}/__pycache__/test.*.py?
%files -n %{py3_prefix}-%{srcname}
%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{srcname}/