python-utils-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. Name: python-utils
  2. Version: 2.5.6
  3. Release: 1%{?_dist_release}
  4. Summary: Python Utils is a module with some convenient utilities
  5. License: BSD
  6. URL: https://github.com/WoLpH/python-utils
  7. Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
  8. BuildArch: noarch
  9. BuildRequires: make
  10. BuildRequires: python3-devel
  11. #BuildRequires: python3-pytest-runner
  12. #BuildRequires: python3-pytest
  13. BuildRequires: python3-setuptools
  14. BuildRequires: python3-six
  15. BuildRequires: python3-sphinx
  16. %?python_enable_dependency_generator
  17. %description
  18. Python Utils is a collection of small Python functions and classes which
  19. make common patterns shorter and easier. This module makes it easy to
  20. execute common tasks in Python scripts such as converting text to numbers
  21. and making sure a string is in unicode or bytes format.
  22. %package -n python3-utils
  23. Summary: %{summary}
  24. %{?python_provide:%python_provide python3-utils}
  25. %description -n python3-utils
  26. Python Utils is a collection of small Python functions and classes which
  27. make common patterns shorter and easier. This module makes it easy to
  28. execute common tasks in Python scripts such as converting text to numbers
  29. and making sure a string is in unicode or bytes format.
  30. %prep
  31. %autosetup -p1 -n %{name}-%{version}
  32. # Remove bundled egg-info
  33. rm -rf %{name}.egg-info
  34. # Stop linting code in %%check and measuring coverage, this is upstream's business
  35. sed -Ei '/--(cov|pep8|flakes)/d' pytest.ini
  36. %build
  37. %py3_build
  38. # generate html docs
  39. sphinx-build docs html
  40. # remove the sphinx-build leftovers
  41. rm -rf html/{.doctrees,.buildinfo,*.inv}
  42. %install
  43. %py3_install
  44. #%check
  45. #%{__python3} setup.py pytest --addopts --ignore=build
  46. %files -n python3-utils
  47. %doc README.rst html
  48. %license LICENSE
  49. %{python3_sitelib}/python_utils
  50. %{python3_sitelib}/python_utils-%{version}-py%{python3_version}.egg-info
  51. %changelog
  52. * Tue Feb 23 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.5.6-1
  53. - initial build for Vine Linux.
  54. - new upstream release.
  55. * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-3
  56. - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
  57. * Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
  58. - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
  59. * Mon Jun 01 2020 Charalampos Stratakis <cstratak@redhat.com> - 2.4.0-1
  60. - Update to 2.4.0 (#1809705)
  61. * Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-10
  62. - Rebuilt for Python 3.9
  63. * Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-9
  64. - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
  65. * Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-8
  66. - Rebuilt for Python 3.8.0rc1 (#1748018)
  67. * Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-7
  68. - Rebuilt for Python 3.8
  69. * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-6
  70. - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
  71. * Mon May 13 2019 Orion Poplawski <orion@nwra.com> - 2.3.0-5
  72. - Add patch to build docs with python 3 (bugz#1709063)
  73. - Drop unneeded BR on pytest-cache
  74. * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-4
  75. - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
  76. * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-3
  77. - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
  78. * Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-2
  79. - Rebuilt for Python 3.7
  80. * Sat May 05 2018 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-1
  81. - New version 2.3.0 (#1474328)
  82. - Use automatic dependency generator
  83. * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
  84. - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
  85. * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
  86. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
  87. * Thu Jun 15 2017 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-1
  88. - New version 2.1.0 (#1438625)
  89. * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-3
  90. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
  91. * Thu Dec 22 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-2
  92. - Rebuild for Python 3.6
  93. * Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-1
  94. - Updated, added LICENSE file
  95. * Sun Dec 04 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-1
  96. - Initial package