From 52e9a15fdc78b414aeb953939a64d2a06113343f Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Sun, 23 Nov 2025 16:46:19 +0100 Subject: [PATCH] replace `%{py3_prefix}` with just `python3` --- python-tinycss2.spec | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/python-tinycss2.spec b/python-tinycss2.spec index adb51e2..0dee2fe 100644 --- a/python-tinycss2.spec +++ b/python-tinycss2.spec @@ -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}/