delete python2

This commit is contained in:
s17723959267 2020-10-29 11:08:14 +08:00
parent d476c066ac
commit 89fd80b14a

View File

@ -1,24 +1,17 @@
Name: python-imagesize Name: python-imagesize
Version: 1.2.0 Version: 1.2.0
Release: 1 Release: 2
Summary: This module analyzes image headers and returns image size. Summary: This module analyzes image headers and returns image size.
License: MIT License: MIT
URL: https://github.com/shibukawa/imagesize_py URL: https://github.com/shibukawa/imagesize_py
Source0: https://files.pythonhosted.org/packages/source/i/imagesize/imagesize-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/i/imagesize/imagesize-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python2-setuptools python2-devel python2-pytest python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-devel python3-pytest BuildRequires: python3-devel python3-pytest
%description %description
This module analyzes JPEG/JPEG 2000/PNG/GIF/TIFF image headers and returns image size. This module analyzes JPEG/JPEG 2000/PNG/GIF/TIFF image headers and returns image size.
%package -n python2-imagesize
Summary: This module analyzes image headers and returns image size.
%{?python_provide:%python_provide python2-imagesize}
%description -n python2-imagesize
This module analyzes JPEG/JPEG 2000/PNG/GIF/TIFF image headers and returns image size.
%package -n python3-imagesize %package -n python3-imagesize
Summary: This module analyzes image headers and returns image size. Summary: This module analyzes image headers and returns image size.
%{?python_provide:%python_provide python3-imagesize} %{?python_provide:%python_provide python3-imagesize}
@ -30,24 +23,20 @@ This module analyzes JPEG/JPEG 2000/PNG/GIF/TIFF image headers and returns image
%autosetup -n imagesize-%{version} %autosetup -n imagesize-%{version}
rm -rf imagesize.egg-info rm -rf imagesize.egg-info
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py3_install %py3_install
%py2_install
%check %check
py.test-2
py.test-3 py.test-3
%files -n python2-imagesize
%doc README.rst LICENSE.rst
%{python2_sitelib}/*
%files -n python3-imagesize %files -n python3-imagesize
%doc README.rst LICENSE.rst %doc README.rst LICENSE.rst
%{python3_sitelib}/* %{python3_sitelib}/*
%changelog %changelog
* Thu Oct 29 2020 tianwei <tianwei@huawei.com> - 1.2.0-2
- delete python2 require
* Thu Jul 23 2020 dingyue <dingyue5@huawei.com> - 1.2.0-1 * Thu Jul 23 2020 dingyue <dingyue5@huawei.com> - 1.2.0-1
- Package update - Package update
* Mon Nov 25 2019 Ling Yang <lingyang2@huawei.com> - 1.0.0-4 * Mon Nov 25 2019 Ling Yang <lingyang2@huawei.com> - 1.0.0-4