From cd595bf6748f2a96ff62acfd68e0cef352939c85 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 14 May 2025 19:36:45 +0000 Subject: [PATCH] import UBI python-imagesize-1.4.1-9.el10 --- .gitignore | 2 +- .python-imagesize.metadata | 1 - SPECS/python-imagesize.spec | 134 --------------------------- python-imagesize.spec | 180 ++++++++++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 182 insertions(+), 136 deletions(-) delete mode 100644 .python-imagesize.metadata delete mode 100644 SPECS/python-imagesize.spec create mode 100644 python-imagesize.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index a6feb25..2eede3e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/imagesize-1.0.0.tar.gz +imagesize-1.4.1.tar.gz diff --git a/.python-imagesize.metadata b/.python-imagesize.metadata deleted file mode 100644 index 6a64082..0000000 --- a/.python-imagesize.metadata +++ /dev/null @@ -1 +0,0 @@ -fb4b40f8e920bc3fb6c6cbda32708e6ce0ddd0ce SOURCES/imagesize-1.0.0.tar.gz diff --git a/SPECS/python-imagesize.spec b/SPECS/python-imagesize.spec deleted file mode 100644 index 67bd820..0000000 --- a/SPECS/python-imagesize.spec +++ /dev/null @@ -1,134 +0,0 @@ - -%global pypi_name imagesize -%global sum Python module for analyzing image file headers and returning image sizes - -%if 0%{?rhel} > 7 -# Disable python2 build by default -%bcond_with python2 -%else -%bcond_without python2 -%endif - -Name: python-%{pypi_name} -Version: 1.0.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 - -%if %{with python2} -BuildRequires: python2-setuptools -BuildRequires: python2-devel -BuildRequires: python2-pytest -%endif # with python2 - -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. - -%if %{with python2} -%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. -%endif # with python2 - -%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 -%if %{with python2} -%py2_build -%endif # with python2 -%py3_build - -%install -%py3_install -%if %{with python2} -%py2_install -%endif # with python2 - -%check -%if %{with python2} -py.test-2 -%endif # with python2 -py.test-3 - -%if %{with python2} -%files -n python2-%{pypi_name} -%doc README.rst -%license LICENSE.rst -%{python2_sitelib}/* -%endif # with python2 - -%files -n python3-%{pypi_name} -%doc README.rst -%license LICENSE.rst -%{python3_sitelib}/* - -%changelog -* Thu Jun 14 2018 Charalampos Stratakis - 1.0.0-2 -- Conditionalize the python2 subpackage - -* 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/python-imagesize.spec b/python-imagesize.spec new file mode 100644 index 0000000..4154481 --- /dev/null +++ b/python-imagesize.spec @@ -0,0 +1,180 @@ +%bcond_without tests + +%global pypi_name imagesize +%global sum Python module for analyzing image file headers and returning image sizes + +Name: python-%{pypi_name} +Version: 1.4.1 +Release: 9%{?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: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-devel +%if %{with tests} +BuildRequires: python%{python3_pkgversion}-pytest +%endif + +%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 python%{python3_pkgversion}-%{pypi_name} +Summary: %{sum} +%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} + +%description -n python%{python3_pkgversion}-%{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 + +%if %{with tests} +%check +# test_get_filelike requires internet connection, hence we disable it +py.test-3 -k 'not test_get_filelike' +%endif + +%files -n python%{python3_pkgversion}-%{pypi_name} +%doc README.rst +%license LICENSE.rst +%{python3_sitelib}/* + +%changelog +* Tue Oct 29 2024 Troy Dawson - 1.4.1-9 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Mon Jun 24 2024 Troy Dawson - 1.4.1-8 +- Bump release for June 2024 mass rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 1.4.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 1.4.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Tue Aug 22 2023 Karolina Surma - 1.4.1-5 +- License verified according to the SPDX specification + https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_2 + +* Fri Jul 21 2023 Fedora Release Engineering - 1.4.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 1.4.1-3 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Oct 04 2022 Karolina Surma - 1.4.1-3 +- Update to the newest upstream version 1.4.1 + +* Fri Jul 22 2022 Fedora Release Engineering - 1.2.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 1.2.0-8 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.2.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.2.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jun 02 2021 Python Maint - 1.2.0-5 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Jan 18 2021 Avram Lubkin - 1.2.0-3 +- Use Python macros +- Add test conditional + +* 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..147ba77 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (imagesize-1.4.1.tar.gz) = f191d7fe34a01ab21b0f4f6519df8ab2a53c1ca54956f4d825d9cec5bd5f4c569491bdc26cb36fcaad2c453c35e51f69379f091362e206453aaefbda4802daa4