2d879f6b |
%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
cb2cc312 |
%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
|
f4d17450 |
Name: python-six |
4ae6baa5 |
Version: 1.10.0 |
2d879f6b |
Release: 6%{?dist} |
f4d17450 |
Summary: Python 2 and 3 compatibility utilities
License: MIT
Group: Development/Languages/Python
Url: https://pypi.python.org/packages/source/s/six/six-%{version}.tar.gz
Source0: six-%{version}.tar.gz |
cb2cc312 |
%define sha1 six=30d480d2e352e8e4c2aae042cf1bf33368ff0920 |
f4d17450 |
|
cb2cc312 |
BuildRequires: python2
BuildRequires: python2-libs |
f4d17450 |
|
cb2cc312 |
Requires: python2
Requires: python2-libs |
f4d17450 |
BuildArch: noarch
%description
Six is a Python 2 and 3 compatibility library. It provides utility functions for smoothing over the differences between the Python versions with the goal of writing Python code that is compatible on both Python versions.
|
cb2cc312 |
%package -n python3-six
Summary: python-six
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: python3-libs
Requires: python3
Requires: python3-libs
%description -n python3-six
Python 3 version.
|
f4d17450 |
%prep
%setup -n six-%{version}
%build |
2d879f6b |
python2 setup.py build |
cb2cc312 |
python3 setup.py build |
f4d17450 |
%install |
2d879f6b |
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
cb2cc312 |
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
f4d17450 |
|
b8cc0b85 |
%check
easy_install py |
2d879f6b |
python2 test_six.py |
cb2cc312 |
python3 test_six.py |
b8cc0b85 |
|
f4d17450 |
%files
%defattr(-,root,root,-) |
2d879f6b |
%{python2_sitelib}/* |
f4d17450 |
|
cb2cc312 |
%files -n python3-six
%defattr(-,root,root,-)
%{python3_sitelib}/*
|
f4d17450 |
%changelog |
2d879f6b |
* Thu Jun 01 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.10.0-6
- Use python2 explicitly |
c727ea33 |
* Wed Apr 05 2017 Sarah Choi <sarahc@vmware.com> 1.10.0-5
- Remove python-setuptools from BuildRequires |
cb2cc312 |
* Mon Jan 09 2017 Xiaolin Li <xiaolinl@vmware.com> 1.10.0-4
- Added python3 site-packages.
* Mon Oct 10 2016 ChangLee <changlee@vmware.com> 1.10.0-3
- Modified %check
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.10.0-2
- GA - Bump release of all rpms
* Thu Jan 21 2016 Anish Swaminathan <anishs@vmware.com> 1.10.0-1
- Upgrade version
* Wed Mar 04 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
- Initial packaging for Photon |