spec: replace hardcoded python3
Signed-off-by: Frédéric Pierret (fepitre) <frederic.pierret@qubes-os.org>
This commit is contained in:
parent
69e68d1168
commit
f7a3ab7f91
@ -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}/*
|
||||
|
Loading…
Reference in New Issue
Block a user