commit 05d6bbd92747144f6094b7881cc031c84967a1f5 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:14:55 2019 -0400 Package init diff --git a/enum34-1.1.6.tar.gz b/enum34-1.1.6.tar.gz new file mode 100644 index 0000000..ab548ac Binary files /dev/null and b/enum34-1.1.6.tar.gz differ diff --git a/python-enum34.spec b/python-enum34.spec new file mode 100644 index 0000000..fd60f5f --- /dev/null +++ b/python-enum34.spec @@ -0,0 +1,51 @@ +%global _name enum34 +%global _description enum34 is the new Python stdlib enum module available in Python 3.4 \ +backported for previous versions of Python from 2.4 to 3.3. tested on 2.6, 2.7, and 3.3+. + +Name: python-%{_name} +Version: 1.1.6 +Release: 8 +Summary: Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4 +License: BSD +URL: https://pypi.python.org/pypi/enum34 +Source0: https://files.pythonhosted.org/packages/source/e/enum34/%{_name}-%{version}.tar.gz + +BuildArch: noarch + +%description +%{_description} + +%package -n python2-%{_name} +Summary: %summary +BuildRequires: python2-devel python2-setuptools +%{?python_provide:%python_provide python2-enum34} + +%description -n python2-%{_name} +%{_description} + +%package_help + +%prep +%autosetup -n %{_name}-%{version} -p1 + +%build +%py2_build + +%install +%py2_install + +%check +cd %{buildroot}/%{python2_sitelib} +PYTHONPATH=".:${PYTHONPATH}" %{__python2} enum/test.py + + +%files -n python2-%{_name} +%license enum/LICENSE +%{python2_sitelib}/* + +%files help +%doc README PKG-INFO enum/doc/enum.rst + +%changelog +* Wed Sep 11 2019 openEuler Buildteam - 1.1.6-8 +- Package init