56a3ae5
56a3ae5
%global pypi_name imagesize
56a3ae5
%global sum  Python module for analyzing image file headers and returning image sizes
56a3ae5
56a3ae5
Name:           python-%{pypi_name}
461a0d6
Version:        1.2.0
461a0d6
Release:        1%{?dist}
56a3ae5
Summary:        %{sum}
56a3ae5
56a3ae5
License:        MIT
56a3ae5
URL:            https://github.com/shibukawa/imagesize_py
6787942
Source0:        https://files.pythonhosted.org/packages/source/i/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
56a3ae5
BuildArch:      noarch
58d42a6
56a3ae5
BuildRequires:  python3-setuptools
56a3ae5
BuildRequires:  python3-devel
4279dce
BuildRequires:  python3-pytest
56a3ae5
56a3ae5
%description
56a3ae5
The imagesize package parses image file headers and returns the image sizes.
56a3ae5
56a3ae5
* PNG
56a3ae5
* JPEG
56a3ae5
* JPEG2000
56a3ae5
* GIF
56a3ae5
56a3ae5
This is a pure Python library.
56a3ae5
56a3ae5
%package -n     python3-%{pypi_name}
56a3ae5
Summary:        %{sum}
56a3ae5
%{?python_provide:%python_provide python3-%{pypi_name}}
56a3ae5
56a3ae5
%description -n python3-%{pypi_name}
56a3ae5
The imagesize package parses image file headers and returns the image sizes.
56a3ae5
56a3ae5
* PNG
56a3ae5
* JPEG
56a3ae5
* JPEG2000
56a3ae5
* GIF
56a3ae5
56a3ae5
This is a pure Python library.
56a3ae5
56a3ae5
%prep
5ab6354
%autosetup -n %{pypi_name}-%{version}
56a3ae5
# Remove bundled egg-info
56a3ae5
rm -rf %{pypi_name}.egg-info
56a3ae5
56a3ae5
%build
56a3ae5
%py3_build
56a3ae5
56a3ae5
%install
56a3ae5
%py3_install
56a3ae5
56a3ae5
%check
4279dce
py.test-3
56a3ae5
58d42a6
%files -n python3-%{pypi_name}
56a3ae5
%doc README.rst
56a3ae5
%license LICENSE.rst
c9b30dd
%{python3_sitelib}/*
56a3ae5
56a3ae5
%changelog
461a0d6
* Sat Jun 20 2020 Avram Lubkin <aviso@rockhopper.net> - 1.2.0-1
461a0d6
- Updated to 1.2.0
461a0d6
250bb50
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-3
250bb50
- Rebuilt for Python 3.9
250bb50
b00b2b3
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
b00b2b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b00b2b3
a04fb1c
* Mon Oct 28 2019 Avram Lubkin <aviso@rockhopper.net> - 1.1.0-1
a04fb1c
- Updated to 1.1.0
a04fb1c
39a342e
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-8
39a342e
- Rebuilt for Python 3.8.0rc1 (#1748018)
39a342e
28c80f5
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-7
28c80f5
- Rebuilt for Python 3.8
28c80f5
f785d1b
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-6
f785d1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f785d1b
962ccec
* Wed Mar 20 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-5
962ccec
- Subpackage python2-imagesize has been removed
962ccec
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
962ccec
84cc71b
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
84cc71b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
84cc71b
98a8f66
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
98a8f66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
98a8f66
45e0f3f
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-2
45e0f3f
- Rebuilt for Python 3.7
45e0f3f
6787942
* Mon Apr 16 2018 Avram Lubkin <aviso@rockhopper.net> - 1.0.0-1
6787942
- Updated to 1.0.0 (bz#1545961)
6787942
899ba45
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-7
899ba45
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
899ba45
0a60e83
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-6
0a60e83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0a60e83
83c1964
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-5
83c1964
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
83c1964
4279dce
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 0.7.1-4
4279dce
- Enable tests
4279dce
4d6cfbf
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.7.1-3
4d6cfbf
- Rebuild for Python 3.6
4d6cfbf
- Disable python3 tests
4d6cfbf
01dce3a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-2
01dce3a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
01dce3a
56a3ae5
* Thu May 26 2016 Avram Lubkin <aviso@rockhopper.net> - 0.7.1-1
56a3ae5
- Initial package.