python-imagesize-vl.spec 2.9 KB

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