diff --git a/SPECS/pycairo.spec b/SPECS/pycairo.spec index 2c89074..46ad357 100644 --- a/SPECS/pycairo.spec +++ b/SPECS/pycairo.spec @@ -11,27 +11,27 @@ Source0: https://github.com/pygobject/pycairo/releases/download/v%{version}/pyca BuildRequires: cairo-devel BuildRequires: pkgconfig -BuildRequires: python3-devel +BuildRequires: python%{python3_pkgversion}-devel %if %{with tests} -BuildRequires: python3-pytest +BuildRequires: python%{python3_pkgversion}-pytest %endif %description Python bindings for the cairo library. -%package -n python3-cairo +%package -n python%{python3_pkgversion}-cairo Summary: Python 3 bindings for the cairo library -%{?python_provide:%python_provide python3-cairo} +%{?python_provide:%python_provide python%{python3_pkgversion}-cairo} -%description -n python3-cairo +%description -n python%{python3_pkgversion}-cairo Python 3 bindings for the cairo library. -%package -n python3-cairo-devel +%package -n python%{python3_pkgversion}-cairo-devel Summary: Libraries and headers for py3cairo -Requires: python3-cairo%{?_isa} = %{version}-%{release} -Requires: python3-devel +Requires: python%{python3_pkgversion}-cairo%{?_isa} = %{version}-%{release} +Requires: python%{python3_pkgversion}-devel -%description -n python3-cairo-devel +%description -n python%{python3_pkgversion}-cairo-devel This package contains files required to build wrappers for cairo add-on libraries so that they interoperate with py3cairo. @@ -49,12 +49,12 @@ libraries so that they interoperate with py3cairo. %{__python3} setup.py test %endif -%files -n python3-cairo +%files -n python%{python3_pkgversion}-cairo %license COPYING* %{python3_sitearch}/cairo/ %{python3_sitearch}/pycairo*.egg-info -%files -n python3-cairo-devel +%files -n python%{python3_pkgversion}-cairo-devel %dir %{_includedir}/pycairo %{_includedir}/pycairo/py3cairo.h %{_libdir}/pkgconfig/py3cairo.pc