diff --git a/python-imagesize.spec b/python-imagesize.spec index 45c33ab..8e6c947 100644 --- a/python-imagesize.spec +++ b/python-imagesize.spec @@ -12,9 +12,9 @@ URL: https://github.com/shibukawa/imagesize_py Source0: https://files.pythonhosted.org/packages/source/i/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch -BuildRequires: python3-setuptools -BuildRequires: python3-devel -BuildRequires: python3-pytest +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-pytest %description The imagesize package parses image file headers and returns the image sizes. @@ -26,11 +26,11 @@ The imagesize package parses image file headers and returns the image sizes. This is a pure Python library. -%package -n python3-%{pypi_name} +%package -n python%{python3_pkgversion}-%{pypi_name} Summary: %{sum} -%{?python_provide:%python_provide python3-%{pypi_name}} +%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} -%description -n python3-%{pypi_name} +%description -n python%{python3_pkgversion}-%{pypi_name} The imagesize package parses image file headers and returns the image sizes. * PNG @@ -54,7 +54,7 @@ rm -rf %{pypi_name}.egg-info %check py.test-3 -%files -n python3-%{pypi_name} +%files -n python%{python3_pkgversion}-%{pypi_name} %doc README.rst %license LICENSE.rst %{python3_sitelib}/*