Blame python-backports-functools_lru_cache.spec

bae8b25
%global dotname backports.functools_lru_cache
bae8b25
%global srcname backports-functools_lru_cache
bae8b25
%global sum A backport of functools.lru_cache from Python 3.3 as published at ActiveState
bae8b25
bae8b25
Name:           python-%{srcname}
4d5befb
Version:        1.4
aead55a
Release:        3%{?dist}
bae8b25
Summary:        %{sum}
bae8b25
bae8b25
License:        MIT
bae8b25
URL:            https://pypi.python.org/pypi/%{srcname}
bae8b25
Source0:        https://pypi.python.org/packages/source/b/%{dotname}/%{dotname}-%{version}.tar.gz
bae8b25
bae8b25
BuildArch:      noarch
Orion Poplawski 0c67212
BuildRequires:  python2-devel
Orion Poplawski 0c67212
BuildRequires:  python-setuptools
Orion Poplawski 0c67212
# python2-setuptools is too old in EPEL7 for these
83ff7b0
%if 0%{?fedora} || 0%{?rhel} > 7
Orion Poplawski 0c67212
BuildRequires:  python2-setuptools_scm
Orion Poplawski 0c67212
BuildRequires:  python2-pytest-runner
Orion Poplawski 0c67212
%endif
bae8b25
bae8b25
%description
bae8b25
%{sum}.
bae8b25
bae8b25
%package -n python2-%{srcname}
bae8b25
Summary:        %{sum}
bae8b25
%{?python_provide:%python_provide python2-%{srcname}}
aead55a
Requires:	python2-backports
bae8b25
bae8b25
%description -n python2-%{srcname}
bae8b25
%{sum}.
bae8b25
bae8b25
bae8b25
%prep
bae8b25
%autosetup -n %{dotname}-%{version}
bae8b25
bae8b25
bae8b25
%build
bae8b25
%py2_build
bae8b25
bae8b25
bae8b25
%install
bae8b25
%py2_install
bae8b25
bae8b25
bae8b25
%check
Orion Poplawski 0c67212
# python2-setuptools is too old in EPEL7 to run tests
83ff7b0
%if 0%{?fedora} || 0%{?rhel} > 7
bae8b25
%{__python2} setup.py test
Orion Poplawski 0c67212
%endif
bae8b25
bae8b25
bae8b25
%files -n python2-%{srcname}
bae8b25
%doc CHANGES.rst README.rst
bae8b25
%{python2_sitelib}/*
4d5befb
%exclude %{python2_sitelib}/backports/__init__.py*
bae8b25
bae8b25
%changelog
aead55a
* Fri Oct 06 2017 Gwyn Ciesla <limburgher@gmail.com> - 1.4-3
aead55a
- Requires correction.
aead55a
3f2bfcd
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-2
3f2bfcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3f2bfcd
4d5befb
4d5befb
* Mon May 15 2017 Gwyn Ciesla <limburgher@gmail.com> - 1.4-1
4d5befb
- 1.4
4d5befb
Orion Poplawski 0c67212
* Thu Mar 9 2017 Orion Poplawski <orion@cora.nwra.com> - 1.2.1-4
Orion Poplawski 0c67212
- Do not run python 2 tests on EPEL7, setuptools is too old
Orion Poplawski 0c67212
- Drop python 3 package as this is a backport to python 2
Orion Poplawski 0c67212
75731b8
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
75731b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
75731b8
383bde8
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 1.2.1-2
383bde8
- Rebuild for Python 3.6
383bde8
bae8b25
* Wed Sep 28 2016 Jon Ciesla <limburgher@gmail.com> - 1.2.1-1
bae8b25
- Initial package.