Blame SPECS/python2-six.spec

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