python-imagesize-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. %global pypi_name imagesize
  2. %global sum Python module for analyzing image file headers and returning image sizes
  3. Summary: %{sum}
  4. Name: python-%{pypi_name}
  5. Version: 1.2.0
  6. Release: 1%{?_dist_release}
  7. Group: programming
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: MIT
  11. URL: https://github.com/shibukawa/imagesize_py
  12. Source0: https://files.pythonhosted.org/packages/source/i/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
  13. BuildArch: noarch
  14. BuildRequires: python-rpm-macros
  15. BuildRequires: python-setuptools
  16. BuildRequires: python-devel
  17. BuildRequires: python2-rpm-macros
  18. BuildRequires: python3-setuptools
  19. BuildRequires: python3-devel
  20. BuildRequires: python3-rpm-macros
  21. %{?python_provide:%python_provide python2-%{pypi_name}}
  22. %description
  23. The imagesize package parses image file headers and returns the image sizes.
  24. * PNG
  25. * JPEG
  26. * JPEG2000
  27. * GIF
  28. This is a pure Python library.
  29. %package -n python3-%{pypi_name}
  30. Summary: %{sum}
  31. Group: programming
  32. %{?python_provide:%python_provide python3-%{pypi_name}}
  33. %description -n python3-%{pypi_name}
  34. The imagesize package parses image file headers and returns the image sizes.
  35. * PNG
  36. * JPEG
  37. * JPEG2000
  38. * GIF
  39. This is a pure Python library.
  40. %prep
  41. %autosetup -n %{pypi_name}-%{version}
  42. # Remove bundled egg-info
  43. rm -rf %{pypi_name}.egg-info
  44. %build
  45. %py2_build
  46. %py3_build
  47. %install
  48. %py3_install
  49. %py2_install
  50. %check
  51. #py.test-2
  52. #py.test-3
  53. %files
  54. %doc README.rst
  55. %license LICENSE.rst
  56. %{python2_sitelib}/*
  57. %files -n python3-%{pypi_name}
  58. %doc README.rst
  59. %license LICENSE.rst
  60. %{python3_sitelib}/*
  61. %changelog
  62. * Sun Aug 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.2.0-1
  63. - new upstream release.
  64. * Wed Nov 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.1.0-1
  65. - initial build for Vine Linux.
  66. - new upstream release.
  67. * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
  68. - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
  69. * Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-2
  70. - Rebuilt for Python 3.7
  71. * Mon Apr 16 2018 Avram Lubkin <aviso@rockhopper.net> - 1.0.0-1
  72. - Updated to 1.0.0 (bz#1545961)
  73. * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-7
  74. - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
  75. * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-6
  76. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
  77. * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-5
  78. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
  79. * Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 0.7.1-4
  80. - Enable tests
  81. * Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.7.1-3
  82. - Rebuild for Python 3.6
  83. - Disable python3 tests
  84. * Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-2
  85. - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
  86. * Thu May 26 2016 Avram Lubkin <aviso@rockhopper.net> - 0.7.1-1
  87. - Initial package.