Initial import (#1340619).
This commit is contained in:
parent
36f04ffeb8
commit
56a3ae5e45
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/imagesize-0.7.1.tar.gz
|
94
python-imagesize.spec
Normal file
94
python-imagesize.spec
Normal file
@ -0,0 +1,94 @@
|
||||
|
||||
%global pypi_name imagesize
|
||||
%global sum Python module for analyzing image file headers and returning image sizes
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 0.7.1
|
||||
Release: 1%{?dist}
|
||||
Summary: %{sum}
|
||||
|
||||
License: MIT
|
||||
URL: https://github.com/shibukawa/imagesize_py
|
||||
#Source0: https://files.pythonhosted.org/packages/source/i/%%{pypi_name}/%%{pypi_name}-%%{version}.tar.gz
|
||||
# PyPi source does not include test image files, pull from github until next release
|
||||
Source0: https://github.com/shibukawa/imagesize_py/archive/%{version}.tar.gz#/%{pypi_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python2-setuptools
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-pytest
|
||||
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pytest
|
||||
|
||||
%description
|
||||
The imagesize package parses image file headers and returns the image sizes.
|
||||
|
||||
* PNG
|
||||
* JPEG
|
||||
* JPEG2000
|
||||
* GIF
|
||||
|
||||
This is a pure Python library.
|
||||
|
||||
%package -n python2-%{pypi_name}
|
||||
Summary: %{sum}
|
||||
%{?python_provide:%python_provide python2-%{pypi_name}}
|
||||
|
||||
%description -n python2-%{pypi_name}
|
||||
The imagesize package parses image file headers and returns the image sizes.
|
||||
|
||||
* PNG
|
||||
* JPEG
|
||||
* JPEG2000
|
||||
* GIF
|
||||
|
||||
This is a pure Python library.
|
||||
|
||||
%package -n python3-%{pypi_name}
|
||||
Summary: %{sum}
|
||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||||
|
||||
%description -n python3-%{pypi_name}
|
||||
The imagesize package parses image file headers and returns the image sizes.
|
||||
|
||||
* PNG
|
||||
* JPEG
|
||||
* JPEG2000
|
||||
* GIF
|
||||
|
||||
This is a pure Python library.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{pypi_name}_py-%{version}
|
||||
# Remove bundled egg-info
|
||||
rm -rf %{pypi_name}.egg-info
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%py2_install
|
||||
|
||||
%check
|
||||
py.test-2
|
||||
py.test-3
|
||||
|
||||
%files -n python2-%{pypi_name}
|
||||
%doc README.rst
|
||||
%license LICENSE.rst
|
||||
%{python2_sitelib}/%{pypi_name}
|
||||
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
||||
|
||||
%files -n python3-%{pypi_name}
|
||||
%doc README.rst
|
||||
%license LICENSE.rst
|
||||
%{python3_sitelib}/%{pypi_name}
|
||||
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
||||
|
||||
%changelog
|
||||
* Thu May 26 2016 Avram Lubkin <aviso@rockhopper.net> - 0.7.1-1
|
||||
- Initial package.
|
Loading…
Reference in New Issue
Block a user