From 98d90cf62d0782f3b15e30139c46413a8fe2a08e Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Wed, 14 Oct 2020 19:00:37 -0700 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/python-imagesize#69e68d11689790c549943e3d1811dcd9444d70e6 --- .gitignore | 4 ++ python-imagesize.spec | 123 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 128 insertions(+) create mode 100644 python-imagesize.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..c7d795e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,4 @@ +/imagesize-0.7.1.tar.gz +/imagesize-1.0.0.tar.gz +/imagesize-1.1.0.tar.gz +/imagesize-1.2.0.tar.gz diff --git a/python-imagesize.spec b/python-imagesize.spec new file mode 100644 index 0000000..45c33ab --- /dev/null +++ b/python-imagesize.spec @@ -0,0 +1,123 @@ + +%global pypi_name imagesize +%global sum Python module for analyzing image file headers and returning image sizes + +Name: python-%{pypi_name} +Version: 1.2.0 +Release: 2%{?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 +BuildArch: noarch + +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 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}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +py.test-3 + +%files -n python3-%{pypi_name} +%doc README.rst +%license LICENSE.rst +%{python3_sitelib}/* + +%changelog +* Wed Jul 29 2020 Fedora Release Engineering - 1.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat Jun 20 2020 Avram Lubkin - 1.2.0-1 +- Updated to 1.2.0 + +* Fri May 22 2020 Miro Hrončok - 1.1.0-3 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Oct 28 2019 Avram Lubkin - 1.1.0-1 +- Updated to 1.1.0 + +* Thu Oct 03 2019 Miro Hrončok - 1.0.0-8 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Thu Aug 15 2019 Miro Hrončok - 1.0.0-7 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.0.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed Mar 20 2019 Miro Hrončok - 1.0.0-5 +- Subpackage python2-imagesize has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Feb 02 2019 Fedora Release Engineering - 1.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 1.0.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jun 14 2018 Miro Hrončok - 1.0.0-2 +- Rebuilt for Python 3.7 + +* Mon Apr 16 2018 Avram Lubkin - 1.0.0-1 +- Updated to 1.0.0 (bz#1545961) + +* Fri Feb 09 2018 Fedora Release Engineering - 0.7.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.7.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.7.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Dec 13 2016 Stratakis Charalampos - 0.7.1-4 +- Enable tests + +* Fri Dec 09 2016 Charalampos Stratakis - 0.7.1-3 +- Rebuild for Python 3.6 +- Disable python3 tests + +* Tue Jul 19 2016 Fedora Release Engineering - 0.7.1-2 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu May 26 2016 Avram Lubkin - 0.7.1-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..09eeeca --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (imagesize-1.2.0.tar.gz) = c82a7fe433064c3a60ed664bad8ce4e602c527bcf2f7c9ab9be6ed650654626d9e0907028b2b0c5a484712bc989335b2b4f66494c8d445f5043ed4c2bc519700