Blame SPECS/python2-six.spec

df2d66
%global modname six
df2d66
%global build_wheel 1
df2d66
df2d66
%bcond_without tests
df2d66
df2d66
%global python2_wheelname %{modname}-%{version}-py2.py3-none-any.whl
df2d66
df2d66
Name:           python2-%{modname}
df2d66
Version:        1.11.0
df2d66
Release:        6%{?dist}
df2d66
Summary:        Python 2 and 3 compatibility utilities
df2d66
df2d66
License:        MIT
df2d66
URL:            https://pypi.python.org/pypi/six
df2d66
Source0:        https://files.pythonhosted.org/packages/source/%(n=%{modname}; echo ${n:0:1})/%{modname}/%{modname}-%{version}.tar.gz
df2d66
df2d66
BuildArch:      noarch
df2d66
df2d66
%{?python_provide:%python_provide python2-%{modname}}
df2d66
BuildRequires:  python2-devel
df2d66
BuildRequires:  python2-setuptools
df2d66
df2d66
%if %{with tests}
df2d66
BuildRequires:  python2-pytest
df2d66
BuildRequires:  python2-tkinter
df2d66
%endif
df2d66
df2d66
%if 0%{?build_wheel}
df2d66
BuildRequires:  python2-pip
df2d66
BuildRequires:  python2-wheel
df2d66
%endif
df2d66
df2d66
%description
df2d66
%{name} provides simple utilities for wrapping over differences between
df2d66
Python 2 and Python 3.
df2d66
df2d66
df2d66
%prep
df2d66
%autosetup -n %{modname}-%{version}
df2d66
df2d66
df2d66
%build
df2d66
%if 0%{?build_wheel}
df2d66
%py2_build_wheel
df2d66
%else
df2d66
%py2_build
df2d66
%endif
df2d66
df2d66
df2d66
%install
df2d66
%if 0%{?build_wheel}
df2d66
%py2_install_wheel %{python2_wheelname}
df2d66
%else
df2d66
%py2_install
df2d66
%endif
df2d66
df2d66
df2d66
%if %{with tests}
df2d66
%check
df2d66
py.test-2 -rfsxX test_six.py
df2d66
%endif
df2d66
df2d66
df2d66
%files
df2d66
%license LICENSE
df2d66
%doc README.rst documentation/index.rst
df2d66
%{python2_sitelib}/%{modname}-*.dist-info/
df2d66
%{python2_sitelib}/%{modname}.py*
df2d66
df2d66
df2d66
%changelog
df2d66
* Tue Jan 05 2021 Tomas Orsava <torsava@redhat.com> - 1.11.0-6
df2d66
- Rename component name to python2-six, clean specfile and remove bconds
df2d66
- Resolves: rhbz#1908300
df2d66
df2d66
* Thu Apr 25 2019 Tomas Orsava <torsava@redhat.com> - 1.11.0-5
df2d66
- Bumping due to problems with modular RPM upgrade path
df2d66
- Resolves: rhbz#1695587
df2d66
df2d66
* Wed Jun 27 2018 Tomas Orsava <torsava@redhat.com> - 1.11.0-4
df2d66
- Run tests only of the Python versions that are actually built
df2d66
df2d66
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-3
df2d66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
df2d66
df2d66
* Wed Nov 15 2017 Lumír Balhar <lbalhar@redhat.com> - 1.11.0-2
df2d66
- Removed and obsoleted the platform-python subpackage
df2d66
df2d66
* Tue Sep 19 2017 Charalampos Stratakis <cstratak@redhat.com> - 1.11.0-1
df2d66
- Update to 1.11.0
df2d66
df2d66
* Thu Aug 10 2017 Tomas Orsava <torsava@redhat.com> - 1.10.0-11
df2d66
- Added the platform-python subpackage
df2d66
df2d66
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-10
df2d66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
df2d66
df2d66
* Mon Jul 03 2017 Petr Viktorin <pviktori@redhat.com> - 1.10.0-9
df2d66
- Fix unversioned Python BuildRequires
df2d66
df2d66
* Mon Feb 13 2017 Charalampos Stratakis <cstratak@redhat.com> - 1.10.0-8
df2d66
- Rebuild as wheel
df2d66
df2d66
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-7
df2d66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
df2d66
df2d66
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.10.0-6
df2d66
- Enable tests
df2d66
df2d66
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.10.0-5
df2d66
- Rebuild for Python 3.6
df2d66
- Disable python3 tests
df2d66
df2d66
* Tue Aug 09 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.10.0-4
df2d66
- Modernize spec more
df2d66
- Depend on system-python(abi)
df2d66
- Cleanups
df2d66
df2d66
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-3
df2d66
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
df2d66
df2d66
* Wed Feb 3 2016 Orion Poplawski <orion@cora.nwra.com> - 1.10.0-2
df2d66
- Modernize spec
df2d66
- Fix python3 package file ownership
df2d66
df2d66
* Fri Nov 13 2015 Slavek Kabrda <bkabrda@redhat.com> - 1.10.0-1
df2d66
- Update to 1.10.0
df2d66
df2d66
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 1.9.0-4
df2d66
- Rebuilt for Python3.5 rebuild
df2d66
df2d66
* Mon Jul 13 2015 Slavek Kabrda <bkabrda@redhat.com> - 1.9.0-3
df2d66
- Added python2-six provide to python-six
df2d66
df2d66
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-2
df2d66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
df2d66
df2d66
* Mon Feb 23 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 1.9.0-1
df2d66
- Upstream 1.9.0
df2d66
- Packaging cleanups
df2d66
df2d66
* Fri Nov 14 2014 Slavek Kabrda <bkabrda@redhat.com> - 1.8.0-1
df2d66
- upgrade to 1.8.0 (rhbz#1105861)
df2d66
df2d66
* Sun Aug  3 2014 Tom Callaway <spot@fedoraproject.org> - 1.7.3-2
df2d66
- fix license handling
df2d66
df2d66
* Thu Jul 31 2014 Pádraig Brady <pbrady@redhat.com> - 1.7.3-1
df2d66
- Latest upstream
df2d66
df2d66
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-3
df2d66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
df2d66
df2d66
* Thu May 08 2014 Orion Poplawski <orion@cora.nwra.com> - 1.6.1-2
df2d66
- Rebuild for Python 3.4
df2d66
df2d66
* Tue Apr 29 2014 Matthias Runge <mrugne@redhat.com> - 1.6.1-1
df2d66
- upgrade to 1.6.1 (rhbz#1076578)
df2d66
df2d66
* Fri Mar 07 2014 Matthias Runge <mrunge@redhat.com> - 1.5.2-1
df2d66
- upgrade to 1.5.2 (rhbz#1048819)
df2d66
df2d66
* Mon Sep 16 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.4.1-1
df2d66
- 1.4.1
df2d66
df2d66
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2
df2d66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
df2d66
df2d66
* Thu Mar 21 2013 David Malcolm <dmalcolm@redhat.com> - 1.3.0-1
df2d66
- 1.3.0
df2d66
df2d66
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
df2d66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
df2d66
df2d66
* Wed Aug 29 2012 David Malcolm <dmalcolm@redhat.com> - 1.2.0-1
df2d66
- 1.2.0 (rhbz#852658)
df2d66
- add %%check section
df2d66
df2d66
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.0-4
df2d66
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
df2d66
df2d66
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
df2d66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
df2d66
df2d66
* Fri Jun 22 2012 Ralph Bean <rbean@redhat.com> - 1.1.0-2
df2d66
- Conditionalized python3-six, allowing an el6 build.
df2d66
df2d66
* Tue Feb  7 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.0-1
df2d66
- 1.1.0
df2d66
df2d66
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
df2d66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
df2d66
df2d66
* Thu Mar 24 2011 David Malcolm <dmalcolm@redhat.com> - 1.0.0-1
df2d66
- initial packaging
df2d66
df2d66