python-enum34-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. %if 0%{?fedora} || 0%{?rhel} > 7
  2. # Should not build for Python 3 for Fedora releases that provide
  3. # Python 3.4 (Fedora 22 or higher?).
  4. %endif
  5. Name: python-enum34
  6. Version: 1.1.6
  7. Release: 8%{?_dist_release}
  8. Group: Development/Libraries
  9. Summary: Backport of Python 3.4 Enum
  10. License: BSD
  11. BuildArch: noarch
  12. URL: https://pypi.python.org/pypi/enum34
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. Source0: https://files.pythonhosted.org/packages/source/e/enum34/enum34-%{version}.tar.gz
  16. BuildRequires: python-devel python-setuptools
  17. BuildRequires: python-rpm-macros
  18. %{?python_provide:%python_provide python2-enum34}
  19. %global _description\
  20. Python 3.4 introduced official support for enumerations. This is a\
  21. backport of that feature to Python 3.3, 3.2, 3.1, 2.7, 2.5, 2.5, and 2.4.\
  22. \
  23. An enumeration is a set of symbolic names (members) bound to unique,\
  24. constant values. Within an enumeration, the members can be compared by\
  25. identity, and the enumeration itself can be iterated over.\
  26. \
  27. This module defines two enumeration classes that can be used to define\
  28. unique sets of names and values: Enum and IntEnum. It also defines one\
  29. decorator, unique, that ensures only unique member names are present\
  30. in an enumeration.\
  31. %description %_description
  32. %prep
  33. %setup -q -n enum34-%{version}
  34. %build
  35. %py_build
  36. %check
  37. pushd %{buildroot}/%{python_sitelib}
  38. PYTHONPATH=".:${PYTHONPATH}" %{__python} enum/test.py
  39. popd
  40. %install
  41. %py_install
  42. # remove docs from sitelib, we'll put them in doc dir instead
  43. rm -rf %{buildroot}%{python_sitelib}/enum/{LICENSE,README,doc}
  44. %files
  45. %license enum/LICENSE
  46. %doc PKG-INFO enum/README enum/doc/enum.rst
  47. %{python_sitelib}/*
  48. %changelog
  49. * Mon Nov 19 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.1.6-8
  50. - initial build for Vine Linux.
  51. * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-7
  52. - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
  53. * Fri Apr 20 2018 Orion Poplawski <orion@nwra.com> - 1.1.6-6
  54. - Minor spec cleanup
  55. - Use %%license
  56. * Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.1.6-5
  57. - Update Python 2 dependency declarations to new packaging standards
  58. (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
  59. * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-4
  60. - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
  61. * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.6-3
  62. - Python 2 binary package renamed to python2-enum34
  63. See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
  64. * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-2
  65. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
  66. * Thu Jun 15 2017 Eric Smith <brouhaha@fedoraproject.org> 1.1.6-1
  67. - New upstream version 1.1.6 (#1441428)
  68. - Update upstream tarball dir
  69. - Convert to newer build marcos
  70. - Update tests to pass in new build
  71. - These RPM spec changes were all provided by Greg Hellings.
  72. * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-7
  73. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
  74. * Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-6
  75. - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
  76. * Wed Feb 24 2016 Robert Kuska <rkuska@redhat.com> - 1.0.4-5
  77. - Remove python3 subpackage, enum34 is now provided by python3
  78. * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-4
  79. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  80. * Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-3
  81. - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
  82. * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-2
  83. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  84. * Wed Apr 08 2015 Eric Smith <brouhaha@fedoraproject.org> 1.0.4-1
  85. - Updated to latest upstream.
  86. * Mon Jul 21 2014 Matěj Cepl <mcepl@redhat.com> - 1.0-4
  87. - No, we don’t have python3 in RHEL-7 :'(
  88. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3
  89. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  90. * Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 1.0-2
  91. - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
  92. * Mon May 26 2014 Eric Smith <brouhaha@fedoraproject.org> 1.0-1
  93. - Updated to latest upstream.
  94. * Mon Mar 17 2014 Eric Smith <brouhaha@fedoraproject.org> 0.9.23-1
  95. - Updated to latest upstream.
  96. - Spec updated per review comments (#1033975).
  97. * Sun Nov 24 2013 Eric Smith <brouhaha@fedoraproject.org> 0.9.19-1
  98. - Initial version.