|
|
67cff49 |
%global pypi_name singledispatch
|
|
|
3868f7a |
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
|
|
3868f7a |
|
|
|
72006a2 |
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
3868f7a |
%global with_python3 1
|
|
|
3868f7a |
%endif
|
|
|
67cff49 |
|
|
|
67cff49 |
Name: python-%{pypi_name}
|
|
|
3868f7a |
Version: 3.4.0.3
|
|
|
89bebe3 |
Release: 13%{?dist}
|
|
|
67cff49 |
Summary: This library brings functools.singledispatch from Python 3.4 to Python 2.6-3.3
|
|
|
67cff49 |
|
|
|
67cff49 |
License: MIT
|
|
|
67cff49 |
URL: http://docs.python.org/3/library/functools.html#functools.singledispatch
|
|
|
67cff49 |
Source0: https://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
67cff49 |
BuildArch: noarch
|
|
|
3868f7a |
|
|
|
3868f7a |
%description
|
|
|
3868f7a |
PEP 443 proposed to expose a mechanism in the functools standard library
|
|
|
3868f7a |
module in Python 3.4 that provides a simple form of generic programming
|
|
|
3868f7a |
known as single-dispatch generic functions.
|
|
|
3868f7a |
|
|
|
3868f7a |
This library is a backport of this functionality to Python 2.6 - 3.3.
|
|
|
3868f7a |
|
|
|
3868f7a |
%package -n python2-%{pypi_name}
|
|
|
3868f7a |
Summary: This library brings functools.singledispatch from Python 3.4 to Python 2.6-3.3
|
|
|
3868f7a |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
3868f7a |
# python_provide does not exist in CBS Cloud buildroot
|
|
|
beaeb8a |
Provides: python-%{pypi_name} = %{version}-%{release}
|
|
|
beaeb8a |
Obsoletes: python-%{pypi_name} < 3.4.0.3-2
|
|
|
3868f7a |
|
|
|
67cff49 |
BuildRequires: python2-devel
|
|
|
714baa7 |
BuildRequires: python2-setuptools
|
|
|
714baa7 |
BuildRequires: python2-six
|
|
|
3868f7a |
|
|
|
714baa7 |
Requires: python2-six
|
|
|
67cff49 |
|
|
|
3868f7a |
%description -n python2-%{pypi_name}
|
|
|
3868f7a |
PEP 443 proposed to expose a mechanism in the functools standard library
|
|
|
3868f7a |
module in Python 3.4 that provides a simple form of generic programming
|
|
|
3868f7a |
known as single-dispatch generic functions.
|
|
|
ccdd18f |
|
|
|
3868f7a |
This library is a backport of this functionality to Python 2.6 - 3.3.
|
|
|
3868f7a |
|
|
|
3868f7a |
# python3 packaging stuff
|
|
|
3868f7a |
%if 0%{?with_python3}
|
|
|
3868f7a |
%package -n python3-%{pypi_name}
|
|
|
3868f7a |
Summary: This library brings functools.singledispatch from Python 3.4 to Python 2.6-3.3
|
|
|
3868f7a |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
3868f7a |
|
|
|
3868f7a |
BuildRequires: python3-devel
|
|
|
3868f7a |
BuildRequires: python3-setuptools
|
|
|
3868f7a |
BuildRequires: python3-six
|
|
|
3868f7a |
|
|
|
3868f7a |
Requires: python3-six
|
|
|
3868f7a |
%endif
|
|
|
3868f7a |
|
|
|
3868f7a |
%if 0%{?with_python3}
|
|
|
3868f7a |
%description -n python3-%{pypi_name}
|
|
|
67cff49 |
PEP 443 proposed to expose a mechanism in the functools standard library
|
|
|
67cff49 |
module in Python 3.4 that provides a simple form of generic programming
|
|
|
67cff49 |
known as single-dispatch generic functions.
|
|
|
67cff49 |
|
|
|
67cff49 |
This library is a backport of this functionality to Python 2.6 - 3.3.
|
|
|
3868f7a |
%endif
|
|
|
67cff49 |
|
|
|
67cff49 |
%prep
|
|
|
67cff49 |
%setup -q -n %{pypi_name}-%{version}
|
|
|
67cff49 |
|
|
|
67cff49 |
# remove /usr/bin/env python from scripts
|
|
|
67cff49 |
sed -i '1d' singledispatch.py
|
|
|
67cff49 |
sed -i '1d' singledispatch_helpers.py
|
|
|
67cff49 |
|
|
|
67cff49 |
%build
|
|
|
67cff49 |
%{__python2} setup.py build
|
|
|
67cff49 |
|
|
|
3868f7a |
%if 0%{?with_python3}
|
|
|
3868f7a |
%{__python3} setup.py build
|
|
|
3868f7a |
%endif
|
|
|
67cff49 |
|
|
|
67cff49 |
%install
|
|
|
67cff49 |
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
67cff49 |
|
|
|
3868f7a |
%if 0%{?with_python3}
|
|
|
3868f7a |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
3868f7a |
%endif
|
|
|
3868f7a |
|
|
|
67cff49 |
%check
|
|
|
67cff49 |
%{__python2} setup.py test
|
|
|
67cff49 |
|
|
|
3868f7a |
%if 0%{?with_python3}
|
|
|
3868f7a |
%{__python3} setup.py test
|
|
|
3868f7a |
%endif
|
|
|
3868f7a |
|
|
|
3868f7a |
%files -n python2-%{pypi_name}
|
|
|
67cff49 |
%doc README.rst
|
|
|
3868f7a |
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
3868f7a |
%{python2_sitelib}/%{pypi_name}.py*
|
|
|
3868f7a |
%{python2_sitelib}/%{pypi_name}_helpers.py*
|
|
|
3868f7a |
|
|
|
3868f7a |
%if 0%{?with_python3}
|
|
|
3868f7a |
%files -n python3-%{pypi_name}
|
|
|
3868f7a |
%doc README.rst
|
|
|
3868f7a |
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
3868f7a |
%{python3_sitelib}/%{pypi_name}.py*
|
|
|
3868f7a |
%{python3_sitelib}/%{pypi_name}_helpers.py*
|
|
|
3868f7a |
%{python3_sitelib}/__pycache__/*
|
|
|
3868f7a |
%endif
|
|
|
67cff49 |
|
|
|
67cff49 |
%changelog
|
|
|
89bebe3 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0.3-13
|
|
|
89bebe3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
89bebe3 |
|
|
|
25508a6 |
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 3.4.0.3-12
|
|
|
25508a6 |
- Rebuilt for Python 3.7
|
|
|
25508a6 |
|
|
|
714baa7 |
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.4.0.3-11
|
|
|
714baa7 |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
714baa7 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
714baa7 |
|
|
|
19d18a0 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0.3-10
|
|
|
19d18a0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
19d18a0 |
|
|
|
72006a2 |
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 3.4.0.3-9
|
|
|
72006a2 |
- Cleanup spec file conditionals
|
|
|
72006a2 |
|
|
|
18a894e |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0.3-8
|
|
|
18a894e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
18a894e |
|
|
|
0e21c3e |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0.3-7
|
|
|
0e21c3e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
0e21c3e |
|
|
|
6339880 |
* Mon Dec 12 2016 Stratakis Charalampos <cstratak@redhat.com> - 3.4.0.3-6
|
|
|
6339880 |
- Rebuild for Python 3.6
|
|
|
6339880 |
|
|
|
5eec142 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0.3-5
|
|
|
5eec142 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
5eec142 |
|
|
|
a0c8b8c |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0.3-4
|
|
|
a0c8b8c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
a0c8b8c |
|
|
|
92189aa |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0.3-3
|
|
|
92189aa |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
92189aa |
|
|
|
beaeb8a |
* Sun Sep 06 2015 Matthias Runge <mrunge@redhat.com> - 3.4.0.3-2
|
|
|
beaeb8a |
- fix provides and obsoletes
|
|
|
beaeb8a |
|
|
|
3868f7a |
* Fri Sep 04 2015 Chandan Kumar <chkumar246@gmail.com> - 3.4.0.3-1
|
|
|
3868f7a |
- Added python2 and python3 subpackage
|
|
|
3868f7a |
- updated the package to 3.4.0.3
|
|
|
3868f7a |
|
|
|
a3e1264 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0.2-4
|
|
|
a3e1264 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
a3e1264 |
|
|
|
2452602 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0.2-3
|
|
|
2452602 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
2452602 |
|
|
|
67cff49 |
* Tue Mar 18 2014 Matthias Runge <mrunge@redhat.com> - 3.4.0.2-2
|
|
|
67cff49 |
- add support for epel6
|
|
|
67cff49 |
|
|
|
67cff49 |
* Tue Mar 18 2014 Matthias Runge <mrunge@redhat.com> - 3.4.0.2-1
|
|
|
67cff49 |
- Initial package.
|