python-imagesize: openEuler init
This commit is contained in:
commit
49e0a9f60d
BIN
imagesize-1.0.0.tar.gz
Normal file
BIN
imagesize-1.0.0.tar.gz
Normal file
Binary file not shown.
52
python-imagesize.spec
Normal file
52
python-imagesize.spec
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
Name: python-imagesize
|
||||||
|
Version: 1.0.0
|
||||||
|
Release: 4
|
||||||
|
Summary: This module analyzes image headers and returns image size.
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/shibukawa/imagesize_py
|
||||||
|
Source0: https://files.pythonhosted.org/packages/source/i/imagesize/imagesize-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: python2-setuptools python2-devel python2-pytest python3-setuptools
|
||||||
|
BuildRequires: python3-devel python3-pytest
|
||||||
|
|
||||||
|
%description
|
||||||
|
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
|
||||||
|
Summary: This module analyzes image headers and returns image size.
|
||||||
|
%{?python_provide:%python_provide python3-imagesize}
|
||||||
|
|
||||||
|
%description -n python3-imagesize
|
||||||
|
This module analyzes JPEG/JPEG 2000/PNG/GIF/TIFF image headers and returns image size.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n imagesize-%{version}
|
||||||
|
rm -rf imagesize.egg-info
|
||||||
|
%build
|
||||||
|
%py2_build
|
||||||
|
%py3_build
|
||||||
|
%install
|
||||||
|
%py3_install
|
||||||
|
%py2_install
|
||||||
|
%check
|
||||||
|
py.test-2
|
||||||
|
py.test-3
|
||||||
|
|
||||||
|
%files -n python2-imagesize
|
||||||
|
%doc README.rst LICENSE.rst
|
||||||
|
%{python2_sitelib}/*
|
||||||
|
|
||||||
|
%files -n python3-imagesize
|
||||||
|
%doc README.rst LICENSE.rst
|
||||||
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Nov 25 2019 Ling Yang <lingyang2@huawei.com> - 1.0.0-4
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user