python-utils-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. Name: python-utils
  2. Version: 3.4.5
  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. %pip3_build_wheel
  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. %pip3_install_wheel
  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-*-info
  51. %changelog
  52. * Sat Nov 05 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.4.5-1
  53. - new upstream release.
  54. * Tue Feb 23 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.5.6-1
  55. - initial build for Vine Linux.
  56. - new upstream release.
  57. * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-3
  58. - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
  59. * Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
  60. - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
  61. * Mon Jun 01 2020 Charalampos Stratakis <cstratak@redhat.com> - 2.4.0-1
  62. - Update to 2.4.0 (#1809705)
  63. * Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-10
  64. - Rebuilt for Python 3.9
  65. * Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-9
  66. - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
  67. * Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-8
  68. - Rebuilt for Python 3.8.0rc1 (#1748018)
  69. * Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-7
  70. - Rebuilt for Python 3.8
  71. * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-6
  72. - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
  73. * Mon May 13 2019 Orion Poplawski <orion@nwra.com> - 2.3.0-5
  74. - Add patch to build docs with python 3 (bugz#1709063)
  75. - Drop unneeded BR on pytest-cache
  76. * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-4
  77. - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
  78. * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-3
  79. - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
  80. * Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-2
  81. - Rebuilt for Python 3.7
  82. * Sat May 05 2018 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-1
  83. - New version 2.3.0 (#1474328)
  84. - Use automatic dependency generator
  85. * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
  86. - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
  87. * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
  88. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
  89. * Thu Jun 15 2017 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-1
  90. - New version 2.1.0 (#1438625)
  91. * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-3
  92. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
  93. * Thu Dec 22 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-2
  94. - Rebuild for Python 3.6
  95. * Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-1
  96. - Updated, added LICENSE file
  97. * Sun Dec 04 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-1
  98. - Initial package