python-six/python-six.spec

285 lines
7.3 KiB
RPMSpec
Raw Normal View History

%global modname six
2017-02-15 12:31:07 +00:00
%global build_wheel 1
2017-08-15 12:33:48 +00:00
%bcond_without tests
%bcond_without python2
%bcond_without python3
%bcond_without platform_python
2017-02-15 12:31:07 +00:00
%global python2_wheelname %{modname}-%{version}-py2.py3-none-any.whl
%global python3_wheelname %python2_wheelname
2011-07-21 17:56:10 +00:00
Name: python-%{modname}
2017-09-19 09:57:25 +00:00
Version: 1.11.0
Release: 1%{?dist}
2011-07-21 17:56:10 +00:00
Summary: Python 2 and 3 compatibility utilities
License: MIT
URL: https://pypi.python.org/pypi/six
Source0: https://files.pythonhosted.org/packages/source/%(n=%{modname}; echo ${n:0:1})/%{modname}/%{modname}-%{version}.tar.gz
2011-07-21 17:56:10 +00:00
BuildArch: noarch
%global _description \
%%{name} provides simple utilities for wrapping over differences between\
Python 2 and Python 3.
%description %{_description}
2017-08-15 12:33:48 +00:00
%if %{with python2}
%package -n python2-%{modname}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{modname}}
2014-03-07 09:35:01 +00:00
BuildRequires: python2-devel
BuildRequires: python2-setuptools
2017-08-15 12:33:48 +00:00
%if %{with tests}
BuildRequires: python2-pytest
2017-07-03 11:56:36 +00:00
BuildRequires: python2-tkinter
2017-08-15 12:33:48 +00:00
%endif
2011-07-21 17:56:10 +00:00
2017-02-15 12:31:07 +00:00
%if 0%{?build_wheel}
BuildRequires: python2-pip
2017-07-03 11:56:36 +00:00
BuildRequires: python2-wheel
2017-02-15 12:31:07 +00:00
%endif
%description -n python2-%{modname} %{_description}
Python 2 version.
2011-07-21 17:56:10 +00:00
2017-08-15 12:33:48 +00:00
%endif
%if %{with python3}
%package -n python3-%{modname}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{modname}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
2017-08-15 12:33:48 +00:00
%if %{with tests}
2016-12-13 20:07:38 +00:00
BuildRequires: python3-pytest
BuildRequires: python3-tkinter
2017-08-15 12:33:48 +00:00
%endif
2011-07-21 17:56:10 +00:00
2017-02-15 12:31:07 +00:00
%if 0%{?build_wheel}
BuildRequires: python%{python3_pkgversion}-pip
BuildRequires: python%{python3_pkgversion}-wheel
%endif
%description -n python3-%{modname} %{_description}
Python 3 version.
2011-07-21 17:56:10 +00:00
2017-08-15 12:33:48 +00:00
%endif
%if %{with platform_python}
%package -n platform-python-%{modname}
Summary: %{summary}
BuildRequires: platform-python-devel
BuildRequires: platform-python-setuptools
%if %{with tests}
BuildRequires: platform-python-pytest
BuildRequires: platform-python-tkinter
%endif
%description -n platform-python-%{modname} %{_description}
Platform-Python version.
%endif
2011-07-21 17:56:10 +00:00
%prep
%autosetup -n %{modname}-%{version}
2011-07-21 17:56:10 +00:00
2017-08-15 12:33:48 +00:00
2011-07-21 17:56:10 +00:00
%build
2017-08-15 12:33:48 +00:00
%if %{with python2}
2017-02-15 12:31:07 +00:00
%if 0%{?build_wheel}
%py2_build_wheel
%else
%py2_build
2017-02-15 12:31:07 +00:00
%endif
2017-08-15 12:33:48 +00:00
%endif
%if %{with python3}
2017-02-15 12:31:07 +00:00
%if 0%{?build_wheel}
%py3_build_wheel
%else
%py3_build
2017-02-15 12:31:07 +00:00
%endif
2017-08-15 12:33:48 +00:00
%endif
%if %{with platform_python}
%platform_py_build
%endif
2011-07-21 17:56:10 +00:00
%install
2017-08-15 12:33:48 +00:00
%if %{with python2}
2017-02-15 12:31:07 +00:00
%if 0%{?build_wheel}
%py2_install_wheel %{python2_wheelname}
%else
%py2_install
2017-02-15 12:31:07 +00:00
%endif
2017-08-15 12:33:48 +00:00
%endif
%if %{with python3}
2017-02-15 12:31:07 +00:00
%if 0%{?build_wheel}
%py3_install_wheel %{python3_wheelname}
%else
%py3_install
2017-02-15 12:31:07 +00:00
%endif
2017-08-15 12:33:48 +00:00
%endif
%if %{with platform_python}
%platform_py_install
%endif
2011-07-21 17:56:10 +00:00
2017-08-15 12:33:48 +00:00
%if %{with tests}
%check
py.test-2 -rfsxX test_six.py
2016-12-13 20:07:38 +00:00
py.test-3 -rfsxX test_six.py
2017-08-15 12:33:48 +00:00
%{__platform_python} -m pytest -rfsxX test_six.py
%endif
2011-07-21 17:56:10 +00:00
2017-08-15 12:33:48 +00:00
%if %{with python2}
%files -n python2-%{modname}
2014-08-04 02:27:48 +00:00
%license LICENSE
2017-09-19 09:57:25 +00:00
%doc README.rst documentation/index.rst
2017-02-15 12:31:07 +00:00
%{python2_sitelib}/%{modname}-*.dist-info/
%{python2_sitelib}/%{modname}.py*
2017-08-15 12:33:48 +00:00
%endif
2011-07-21 17:56:10 +00:00
2017-08-15 12:33:48 +00:00
%if %{with python3}
%files -n python3-%{modname}
2014-08-04 02:27:48 +00:00
%license LICENSE
2017-09-19 09:57:25 +00:00
%doc README.rst documentation/index.rst
2017-02-15 12:31:07 +00:00
%{python3_sitelib}/%{modname}-*.dist-info/
%{python3_sitelib}/%{modname}.py
%{python3_sitelib}/__pycache__/%{modname}.*
2017-08-15 12:33:48 +00:00
%endif
%if %{with platform_python}
%files -n platform-python-%{modname}
%license LICENSE
2017-09-19 09:57:25 +00:00
%doc README.rst documentation/index.rst
2017-08-15 12:33:48 +00:00
%{platform_python_sitelib}/%{modname}-*.egg-info/
%{platform_python_sitelib}/%{modname}.py
%{platform_python_sitelib}/__pycache__/%{modname}.*
%endif
2011-07-21 17:56:10 +00:00
%changelog
2017-09-19 09:57:25 +00:00
* Tue Sep 19 2017 Charalampos Stratakis <cstratak@redhat.com> - 1.11.0-1
- Update to 1.11.0
2017-08-15 12:33:48 +00:00
* Thu Aug 10 2017 Tomas Orsava <torsava@redhat.com> - 1.10.0-11
- Added the platform-python subpackage
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-07-03 11:56:36 +00:00
* Mon Jul 03 2017 Petr Viktorin <pviktori@redhat.com> - 1.10.0-9
- Fix unversioned Python BuildRequires
2017-02-15 12:31:07 +00:00
* Mon Feb 13 2017 Charalampos Stratakis <cstratak@redhat.com> - 1.10.0-8
- Rebuild as wheel
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2016-12-13 20:07:38 +00:00
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.10.0-6
- Enable tests
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.10.0-5
- Rebuild for Python 3.6
- Disable python3 tests
* Tue Aug 09 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.10.0-4
- Modernize spec more
- Depend on system-python(abi)
- Cleanups
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-3
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Wed Feb 3 2016 Orion Poplawski <orion@cora.nwra.com> - 1.10.0-2
- Modernize spec
- Fix python3 package file ownership
2015-11-13 09:19:24 +00:00
* Fri Nov 13 2015 Slavek Kabrda <bkabrda@redhat.com> - 1.10.0-1
- Update to 1.10.0
2015-10-13 12:47:00 +00:00
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 1.9.0-4
- Rebuilt for Python3.5 rebuild
* Mon Jul 13 2015 Slavek Kabrda <bkabrda@redhat.com> - 1.9.0-3
- Added python2-six provide to python-six
* 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
* 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
* 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
* 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
* Wed Aug 29 2012 David Malcolm <dmalcolm@redhat.com> - 1.2.0-1
- 1.2.0 (rhbz#852658)
- add %%check section
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.0-4
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
* 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
* 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
* 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