|
|
f31e50 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
f31e50 |
|
|
|
f31e50 |
%if 0%{?fedora} > 12 || 0%{?rhel} > 7
|
|
|
f31e50 |
%global with_python3 1
|
|
|
f31e50 |
|
|
|
f31e50 |
%global __python3 python3
|
|
|
f31e50 |
|
|
|
f31e50 |
%{!?python3_sitelib: %global python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
f31e50 |
%endif
|
|
|
f31e50 |
|
|
|
f31e50 |
Name: python-six
|
|
|
f31e50 |
Version: 1.3.0
|
|
|
f31e50 |
Release: 3%{?dist}
|
|
|
f31e50 |
Summary: Python 2 and 3 compatibility utilities
|
|
|
f31e50 |
|
|
|
f31e50 |
Group: Development/Languages
|
|
|
f31e50 |
License: MIT
|
|
|
f31e50 |
URL: http://pypi.python.org/pypi/six/
|
|
|
f31e50 |
Source0: http://pypi.python.org/packages/source/s/six/six-%{version}.tar.gz
|
|
|
f31e50 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
f31e50 |
|
|
|
f31e50 |
BuildArch: noarch
|
|
|
f31e50 |
BuildRequires: python-devel
|
|
|
f31e50 |
# For use by selftests:
|
|
|
f31e50 |
BuildRequires: pytest
|
|
|
f31e50 |
BuildRequires: tkinter
|
|
|
f31e50 |
%if 0%{?with_python3}
|
|
|
f31e50 |
BuildRequires: python3-devel
|
|
|
f31e50 |
# For use by selftests:
|
|
|
f31e50 |
BuildRequires: python3-pytest
|
|
|
f31e50 |
BuildRequires: python3-tkinter
|
|
|
f31e50 |
%endif
|
|
|
f31e50 |
|
|
|
f31e50 |
%description
|
|
|
f31e50 |
python-six provides simple utilities for wrapping over differences between
|
|
|
f31e50 |
Python 2 and Python 3.
|
|
|
f31e50 |
|
|
|
f31e50 |
This is the Python 2 build of the module.
|
|
|
f31e50 |
|
|
|
f31e50 |
%if 0%{?with_python3}
|
|
|
f31e50 |
%package -n python3-six
|
|
|
f31e50 |
Summary: Python 2 and 3 compatibility utilities
|
|
|
f31e50 |
Group: Development/Languages
|
|
|
f31e50 |
|
|
|
f31e50 |
%description -n python3-six
|
|
|
f31e50 |
python-six provides simple utilities for wrapping over differences between
|
|
|
f31e50 |
Python 2 and Python 3.
|
|
|
f31e50 |
|
|
|
f31e50 |
This is the Python 3 build of the module.
|
|
|
f31e50 |
%endif
|
|
|
f31e50 |
|
|
|
f31e50 |
%prep
|
|
|
f31e50 |
%setup -q -n six-%{version}
|
|
|
f31e50 |
%if 0%{?with_python3}
|
|
|
f31e50 |
rm -rf %{py3dir}
|
|
|
f31e50 |
cp -a . %{py3dir}
|
|
|
f31e50 |
%endif
|
|
|
f31e50 |
|
|
|
f31e50 |
|
|
|
f31e50 |
%build
|
|
|
f31e50 |
%{__python} setup.py build
|
|
|
f31e50 |
%if 0%{?with_python3}
|
|
|
f31e50 |
pushd %{py3dir}
|
|
|
f31e50 |
%{__python3} setup.py build
|
|
|
f31e50 |
popd
|
|
|
f31e50 |
%endif
|
|
|
f31e50 |
|
|
|
f31e50 |
%install
|
|
|
f31e50 |
rm -rf $RPM_BUILD_ROOT
|
|
|
f31e50 |
%if 0%{?with_python3}
|
|
|
f31e50 |
pushd %{py3dir}
|
|
|
f31e50 |
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
f31e50 |
popd
|
|
|
f31e50 |
%endif
|
|
|
f31e50 |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
f31e50 |
|
|
|
f31e50 |
|
|
|
f31e50 |
%clean
|
|
|
f31e50 |
rm -rf $RPM_BUILD_ROOT
|
|
|
f31e50 |
|
|
|
f31e50 |
%check
|
|
|
f31e50 |
py.test -rfsxX test_six.py
|
|
|
f31e50 |
%if 0%{?with_python3}
|
|
|
f31e50 |
pushd %{py3dir}
|
|
|
f31e50 |
py.test-%{python3_version} -rfsxX test_six.py
|
|
|
f31e50 |
popd
|
|
|
f31e50 |
%endif
|
|
|
f31e50 |
|
|
|
f31e50 |
|
|
|
f31e50 |
%files
|
|
|
f31e50 |
%defattr(-,root,root,-)
|
|
|
f31e50 |
%doc LICENSE README documentation/index.rst
|
|
|
f31e50 |
%{python_sitelib}/*
|
|
|
f31e50 |
|
|
|
f31e50 |
%if 0%{?with_python3}
|
|
|
f31e50 |
%files -n python3-six
|
|
|
f31e50 |
%defattr(-,root,root,-)
|
|
|
f31e50 |
%doc LICENSE README documentation/index.rst
|
|
|
f31e50 |
%{python3_sitelib}/*
|
|
|
f31e50 |
%endif
|
|
|
f31e50 |
|
|
|
f31e50 |
|
|
|
f31e50 |
%changelog
|
|
|
f31e50 |
* Thu Jun 13 2013 Endi S. Dewata <edewata@redhat.com> - 1.3.0-3
|
|
|
f31e50 |
- Reenable tests since dependencies have been added.
|
|
|
f31e50 |
|
|
|
f31e50 |
* Tue Jun 11 2013 Martin Kosek <mkosek@redhat.com> - 1.3.0-2
|
|
|
f31e50 |
- Do not run build tests due to missing dependencies
|
|
|
f31e50 |
|
|
|
f31e50 |
* Thu Mar 21 2013 David Malcolm <dmalcolm@redhat.com> - 1.3.0-1
|
|
|
f31e50 |
- 1.3.0
|
|
|
f31e50 |
|
|
|
f31e50 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
|
|
|
f31e50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
f31e50 |
|
|
|
f31e50 |
* Wed Aug 29 2012 David Malcolm <dmalcolm@redhat.com> - 1.2.0-1
|
|
|
f31e50 |
- 1.2.0 (rhbz#852658)
|
|
|
f31e50 |
- add %%check section
|
|
|
f31e50 |
|
|
|
f31e50 |
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.0-4
|
|
|
f31e50 |
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
f31e50 |
|
|
|
f31e50 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
|
|
|
f31e50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
f31e50 |
|
|
|
f31e50 |
* Fri Jun 22 2012 Ralph Bean <rbean@redhat.com> - 1.1.0-2
|
|
|
f31e50 |
- Conditionalized python3-six, allowing an el6 build.
|
|
|
f31e50 |
|
|
|
f31e50 |
* Tue Feb 7 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.0-1
|
|
|
f31e50 |
- 1.1.0
|
|
|
f31e50 |
|
|
|
f31e50 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
|
|
|
f31e50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
f31e50 |
|
|
|
f31e50 |
* Thu Mar 24 2011 David Malcolm <dmalcolm@redhat.com> - 1.0.0-1
|
|
|
f31e50 |
- initial packaging
|
|
|
f31e50 |
|
|
|
f31e50 |
|