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}/