67cff49
%global pypi_name singledispatch
3868f7a
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
3868f7a
67cff49
67cff49
Name:           python-%{pypi_name}
3868f7a
Version:        3.4.0.3
c111c9f
Release:        16%{?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 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
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.
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
3868f7a
%{__python3} setup.py build
67cff49
67cff49
%install
3868f7a
%{__python3} setup.py install --skip-build --root %{buildroot}
3868f7a
67cff49
%check
3868f7a
%{__python3} setup.py test
3868f7a
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__/*
67cff49
67cff49
%changelog
c111c9f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0.3-16
c111c9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c111c9f
b137c46
* Fri Jun 28 2019 Miro Hrončok <mhroncok@redhat.com> - 3.4.0.3-15
b137c46
- Subpackage python2-singledispatch has been removed
b137c46
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
b137c46
2693238
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0.3-14
2693238
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2693238
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.