%if 0%{?fedora} || 0%{?rhel} > 7 # Should not build for Python 3 for Fedora releases that provide # Python 3.4 (Fedora 22 or higher?). %endif Name: python-enum34 Version: 1.1.6 Release: 8%{?_dist_release} Group: Development/Libraries Summary: Backport of Python 3.4 Enum License: BSD BuildArch: noarch URL: https://pypi.python.org/pypi/enum34 Vendor: Project Vine Distribution: Vine Linux Source0: https://files.pythonhosted.org/packages/source/e/enum34/enum34-%{version}.tar.gz BuildRequires: python-devel python-setuptools BuildRequires: python-rpm-macros %{?python_provide:%python_provide python2-enum34} %global _description\ Python 3.4 introduced official support for enumerations. This is a\ backport of that feature to Python 3.3, 3.2, 3.1, 2.7, 2.5, 2.5, and 2.4.\ \ An enumeration is a set of symbolic names (members) bound to unique,\ constant values. Within an enumeration, the members can be compared by\ identity, and the enumeration itself can be iterated over.\ \ This module defines two enumeration classes that can be used to define\ unique sets of names and values: Enum and IntEnum. It also defines one\ decorator, unique, that ensures only unique member names are present\ in an enumeration.\ %description %_description %prep %setup -q -n enum34-%{version} %build %py_build %check pushd %{buildroot}/%{python_sitelib} PYTHONPATH=".:${PYTHONPATH}" %{__python} enum/test.py popd %install %py_install # remove docs from sitelib, we'll put them in doc dir instead rm -rf %{buildroot}%{python_sitelib}/enum/{LICENSE,README,doc} %files %license enum/LICENSE %doc PKG-INFO enum/README enum/doc/enum.rst %{python_sitelib}/* %changelog * Mon Nov 19 2018 Tomohiro "Tomo-p" KATO - 1.1.6-8 - initial build for Vine Linux. * Sat Jul 14 2018 Fedora Release Engineering - 1.1.6-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Apr 20 2018 Orion Poplawski - 1.1.6-6 - Minor spec cleanup - Use %%license * Mon Feb 12 2018 Iryna Shcherbina - 1.1.6-5 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 1.1.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 1.1.6-3 - Python 2 binary package renamed to python2-enum34 See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Jul 27 2017 Fedora Release Engineering - 1.1.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Jun 15 2017 Eric Smith 1.1.6-1 - New upstream version 1.1.6 (#1441428) - Update upstream tarball dir - Convert to newer build marcos - Update tests to pass in new build - These RPM spec changes were all provided by Greg Hellings. * Sat Feb 11 2017 Fedora Release Engineering - 1.0.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jul 19 2016 Fedora Release Engineering - 1.0.4-6 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Wed Feb 24 2016 Robert Kuska - 1.0.4-5 - Remove python3 subpackage, enum34 is now provided by python3 * Thu Feb 04 2016 Fedora Release Engineering - 1.0.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 1.0.4-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 1.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Apr 08 2015 Eric Smith 1.0.4-1 - Updated to latest upstream. * Mon Jul 21 2014 Matěj Cepl - 1.0-4 - No, we don’t have python3 in RHEL-7 :'( * Sat Jun 07 2014 Fedora Release Engineering - 1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 28 2014 Kalev Lember - 1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Mon May 26 2014 Eric Smith 1.0-1 - Updated to latest upstream. * Mon Mar 17 2014 Eric Smith 0.9.23-1 - Updated to latest upstream. - Spec updated per review comments (#1033975). * Sun Nov 24 2013 Eric Smith 0.9.19-1 - Initial version.