9e08cbc636
Disable python3 tests
164 lines
4.7 KiB
RPMSpec
164 lines
4.7 KiB
RPMSpec
%global modname six
|
|
|
|
Name: python-%{modname}
|
|
Version: 1.10.0
|
|
Release: 5%{?dist}
|
|
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
|
|
|
|
BuildArch: noarch
|
|
|
|
%global _description \
|
|
%%{name} provides simple utilities for wrapping over differences between\
|
|
Python 2 and Python 3.
|
|
|
|
%description %{_description}
|
|
|
|
%package -n python2-%{modname}
|
|
Summary: %{summary}
|
|
%{?python_provide:%python_provide python2-%{modname}}
|
|
BuildRequires: python2-devel
|
|
BuildRequires: python2-setuptools
|
|
# Testing
|
|
BuildRequires: python2-pytest
|
|
BuildRequires: tkinter
|
|
|
|
%description -n python2-%{modname} %{_description}
|
|
|
|
Python 2 version.
|
|
|
|
%package -n python3-%{modname}
|
|
Summary: %{summary}
|
|
%{?system_python_abi}
|
|
%{?python_provide:%python_provide python3-%{modname}}
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
# Testing
|
|
#BuildRequires: python3-pytest
|
|
#BuildRequires: python3-tkinter
|
|
|
|
%description -n python3-%{modname} %{_description}
|
|
|
|
Python 3 version.
|
|
|
|
%prep
|
|
%autosetup -n %{modname}-%{version}
|
|
|
|
%build
|
|
%py2_build
|
|
%py3_build
|
|
|
|
%install
|
|
%py2_install
|
|
%py3_install
|
|
|
|
%check
|
|
py.test-2 -rfsxX test_six.py
|
|
#py.test-3 -rfsxX test_six.py
|
|
|
|
%files -n python2-%{modname}
|
|
%license LICENSE
|
|
%doc README documentation/index.rst
|
|
%{python2_sitelib}/%{modname}-*.egg-info/
|
|
%{python2_sitelib}/%{modname}.py*
|
|
|
|
%files -n python3-%{modname}
|
|
%license LICENSE
|
|
%doc README documentation/index.rst
|
|
%{python3_sitelib}/%{modname}-*.egg-info/
|
|
%{python3_sitelib}/%{modname}.py
|
|
%{python3_sitelib}/__pycache__/%{modname}.*
|
|
|
|
%changelog
|
|
* 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
|
|
|
|
* Fri Nov 13 2015 Slavek Kabrda <bkabrda@redhat.com> - 1.10.0-1
|
|
- Update to 1.10.0
|
|
|
|
* 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
|
|
|
|
* Mon Feb 23 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 1.9.0-1
|
|
- Upstream 1.9.0
|
|
- Packaging cleanups
|
|
|
|
* Fri Nov 14 2014 Slavek Kabrda <bkabrda@redhat.com> - 1.8.0-1
|
|
- upgrade to 1.8.0 (rhbz#1105861)
|
|
|
|
* Sun Aug 3 2014 Tom Callaway <spot@fedoraproject.org> - 1.7.3-2
|
|
- fix license handling
|
|
|
|
* 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
|
|
|
|
* Thu May 08 2014 Orion Poplawski <orion@cora.nwra.com> - 1.6.1-2
|
|
- Rebuild for Python 3.4
|
|
|
|
* Tue Apr 29 2014 Matthias Runge <mrugne@redhat.com> - 1.6.1-1
|
|
- upgrade to 1.6.1 (rhbz#1076578)
|
|
|
|
* Fri Mar 07 2014 Matthias Runge <mrunge@redhat.com> - 1.5.2-1
|
|
- upgrade to 1.5.2 (rhbz#1048819)
|
|
|
|
* 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
|
|
|
|
* 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.
|
|
|
|
* 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
|
|
|
|
* Thu Mar 24 2011 David Malcolm <dmalcolm@redhat.com> - 1.0.0-1
|
|
- initial packaging
|
|
|
|
|