123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- %global pypi_name imagesize
- %global sum Python module for analyzing image file headers and returning image sizes
- Summary: %{sum}
- Name: python-%{pypi_name}
- Version: 1.4.1
- Release: 1%{?_dist_release}
- Group: programming
- Vendor: Project Vine
- Distribution: Vine Linux
- License: MIT
- 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: python-rpm-macros
- BuildRequires: python-setuptools
- BuildRequires: python-devel
- BuildRequires: python2-rpm-macros
- BuildRequires: python3-setuptools
- BuildRequires: python3-devel
- BuildRequires: python3-rpm-macros
- %{?python_provide:%python_provide python2-%{pypi_name}}
- %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 python3-%{pypi_name}
- Summary: %{sum}
- Group: programming
- %{?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}-%{version}
- # Remove bundled egg-info
- rm -rf %{pypi_name}.egg-info
- %build
- %py2_build
- %pip3_build_wheel
- %install
- %py2_install
- %pip3_install_wheel
- %check
- #py.test-2
- #py.test-3
- %files
- %doc README.rst
- %license LICENSE.rst
- %{python2_sitelib}/*
- %files -n python3-%{pypi_name}
- %doc README.rst
- %license LICENSE.rst
- %{python3_sitelib}/*
- %changelog
- * Tue Nov 01 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.4.1-1
- - new upstream release.
- * Sun Aug 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.2.0-1
- - new upstream release.
- * Wed Nov 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.1.0-1
- - initial build for Vine Linux.
- - new upstream release.
- * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
- * Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-2
- - Rebuilt for Python 3.7
- * Mon Apr 16 2018 Avram Lubkin <aviso@rockhopper.net> - 1.0.0-1
- - Updated to 1.0.0 (bz#1545961)
- * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-7
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
- * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-6
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
- * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-5
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
- * Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 0.7.1-4
- - Enable tests
- * Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.7.1-3
- - Rebuild for Python 3.6
- - Disable python3 tests
- * Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-2
- - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
- * Thu May 26 2016 Avram Lubkin <aviso@rockhopper.net> - 0.7.1-1
- - Initial package.
|