2015-02-23 22:36:21 +00:00
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
|
|
%{!?__python2: %global __python2 /usr/bin/python2}
|
|
|
|
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
%endif
|
2011-07-21 17:56:10 +00:00
|
|
|
|
2012-06-25 16:14:54 +00:00
|
|
|
%if 0%{?fedora} > 12 || 0%{?rhel} > 7
|
|
|
|
%global with_python3 1
|
|
|
|
|
2011-07-21 17:56:10 +00:00
|
|
|
%global __python3 python3
|
2012-06-25 16:14:54 +00:00
|
|
|
%endif
|
2011-07-21 17:56:10 +00:00
|
|
|
|
|
|
|
Name: python-six
|
2015-02-23 22:36:21 +00:00
|
|
|
Version: 1.9.0
|
2015-06-18 20:50:16 +00:00
|
|
|
Release: 2%{?dist}
|
2011-07-21 17:56:10 +00:00
|
|
|
Summary: Python 2 and 3 compatibility utilities
|
|
|
|
|
|
|
|
Group: Development/Languages
|
|
|
|
License: MIT
|
|
|
|
URL: http://pypi.python.org/pypi/six/
|
|
|
|
Source0: http://pypi.python.org/packages/source/s/six/six-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildArch: noarch
|
2014-03-07 09:35:01 +00:00
|
|
|
BuildRequires: python2-devel
|
2012-08-29 15:55:31 +00:00
|
|
|
# For use by selftests:
|
|
|
|
BuildRequires: pytest
|
|
|
|
BuildRequires: tkinter
|
2012-06-25 16:14:54 +00:00
|
|
|
%if 0%{?with_python3}
|
2011-07-21 17:56:10 +00:00
|
|
|
BuildRequires: python3-devel
|
2012-08-29 15:55:31 +00:00
|
|
|
# For use by selftests:
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
BuildRequires: python3-tkinter
|
2012-06-25 16:14:54 +00:00
|
|
|
%endif
|
2011-07-21 17:56:10 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
python-six provides simple utilities for wrapping over differences between
|
|
|
|
Python 2 and Python 3.
|
|
|
|
|
|
|
|
This is the Python 2 build of the module.
|
|
|
|
|
2012-06-25 16:14:54 +00:00
|
|
|
%if 0%{?with_python3}
|
2011-07-21 17:56:10 +00:00
|
|
|
%package -n python3-six
|
|
|
|
Summary: Python 2 and 3 compatibility utilities
|
|
|
|
Group: Development/Languages
|
|
|
|
|
|
|
|
%description -n python3-six
|
|
|
|
python-six provides simple utilities for wrapping over differences between
|
|
|
|
Python 2 and Python 3.
|
|
|
|
|
|
|
|
This is the Python 3 build of the module.
|
2012-06-25 16:14:54 +00:00
|
|
|
%endif
|
2011-07-21 17:56:10 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n six-%{version}
|
2012-06-25 16:14:54 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
%endif
|
2011-07-21 17:56:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2015-02-23 22:36:21 +00:00
|
|
|
%{__python2} setup.py build
|
2012-06-25 16:14:54 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
2011-07-21 17:56:10 +00:00
|
|
|
%{__python3} setup.py build
|
2012-06-25 16:14:54 +00:00
|
|
|
popd
|
|
|
|
%endif
|
2011-07-21 17:56:10 +00:00
|
|
|
|
|
|
|
%install
|
2012-06-25 16:14:54 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
2011-07-21 17:56:10 +00:00
|
|
|
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
2012-06-25 16:14:54 +00:00
|
|
|
popd
|
|
|
|
%endif
|
2015-02-23 22:36:21 +00:00
|
|
|
%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
2011-07-21 17:56:10 +00:00
|
|
|
|
|
|
|
|
2012-08-29 15:55:31 +00:00
|
|
|
%check
|
|
|
|
py.test -rfsxX test_six.py
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
py.test-%{python3_version} -rfsxX test_six.py
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
2011-07-21 17:56:10 +00:00
|
|
|
|
|
|
|
%files
|
2014-08-04 02:27:48 +00:00
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README documentation/index.rst
|
2015-02-23 22:36:21 +00:00
|
|
|
%{python2_sitelib}/*
|
2011-07-21 17:56:10 +00:00
|
|
|
|
2012-06-25 16:14:54 +00:00
|
|
|
%if 0%{?with_python3}
|
2011-07-21 17:56:10 +00:00
|
|
|
%files -n python3-six
|
2014-08-04 02:27:48 +00:00
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README documentation/index.rst
|
2011-07-21 17:56:10 +00:00
|
|
|
%{python3_sitelib}/*
|
2012-06-25 16:14:54 +00:00
|
|
|
%endif
|
2011-07-21 17:56:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2015-06-18 20:50:16 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-02-23 22:36:21 +00:00
|
|
|
* Mon Feb 23 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 1.9.0-1
|
|
|
|
- Upstream 1.9.0
|
|
|
|
- Packaging cleanups
|
|
|
|
|
2014-11-14 11:45:49 +00:00
|
|
|
* Fri Nov 14 2014 Slavek Kabrda <bkabrda@redhat.com> - 1.8.0-1
|
|
|
|
- upgrade to 1.8.0 (rhbz#1105861)
|
|
|
|
|
2014-08-04 02:27:48 +00:00
|
|
|
* Sun Aug 3 2014 Tom Callaway <spot@fedoraproject.org> - 1.7.3-2
|
|
|
|
- fix license handling
|
|
|
|
|
2014-07-31 12:39:53 +00:00
|
|
|
* Thu Jul 31 2014 Pádraig Brady <pbrady@redhat.com> - 1.7.3-1
|
|
|
|
- Latest upstream
|
|
|
|
|
2014-06-07 23:08:56 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-08 21:25:37 +00:00
|
|
|
* Thu May 08 2014 Orion Poplawski <orion@cora.nwra.com> - 1.6.1-2
|
|
|
|
- Rebuild for Python 3.4
|
|
|
|
|
2014-04-29 11:07:20 +00:00
|
|
|
* Tue Apr 29 2014 Matthias Runge <mrugne@redhat.com> - 1.6.1-1
|
|
|
|
- upgrade to 1.6.1 (rhbz#1076578)
|
|
|
|
|
2014-03-07 09:35:01 +00:00
|
|
|
* Fri Mar 07 2014 Matthias Runge <mrunge@redhat.com> - 1.5.2-1
|
|
|
|
- upgrade to 1.5.2 (rhbz#1048819)
|
|
|
|
|
2013-09-16 10:26:57 +00:00
|
|
|
* Mon Sep 16 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.4.1-1
|
|
|
|
- 1.4.1
|
|
|
|
|
2013-08-04 09:49:24 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-03-21 05:09:44 +00:00
|
|
|
* Thu Mar 21 2013 David Malcolm <dmalcolm@redhat.com> - 1.3.0-1
|
|
|
|
- 1.3.0
|
|
|
|
|
2013-02-14 20:24:33 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-08-29 15:55:31 +00:00
|
|
|
* Wed Aug 29 2012 David Malcolm <dmalcolm@redhat.com> - 1.2.0-1
|
|
|
|
- 1.2.0 (rhbz#852658)
|
|
|
|
- add %%check section
|
|
|
|
|
2012-08-04 05:29:10 +00:00
|
|
|
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.0-4
|
|
|
|
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
|
|
2012-07-21 09:16:39 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-25 16:14:54 +00:00
|
|
|
* Fri Jun 22 2012 Ralph Bean <rbean@redhat.com> - 1.1.0-2
|
|
|
|
- Conditionalized python3-six, allowing an el6 build.
|
|
|
|
|
2012-02-07 13:19:51 +00:00
|
|
|
* Tue Feb 7 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.0-1
|
|
|
|
- 1.1.0
|
|
|
|
|
2012-01-14 02:08:24 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-07-21 17:56:10 +00:00
|
|
|
* Thu Mar 24 2011 David Malcolm <dmalcolm@redhat.com> - 1.0.0-1
|
|
|
|
- initial packaging
|
|
|
|
|
|
|
|
|