492f494
%global modname dogpile.cache
9b96cb3
%global sum A caching front-end based on the Dogpile lock
9b96cb3
%global desc Dogpile consists of two subsystems, one building on top of the other.\
9b96cb3
\
9b96cb3
dogpile provides the concept of a "dogpile lock", a control structure\
9b96cb3
which allows a single thread of execution to be selected as the\
9b96cb3
"creator" of some resource, while allowing other threads of execution to\
9b96cb3
refer to the previous version of this resource as the creation proceeds;\
9b96cb3
if there is no previous version, then those threads block until the\
9b96cb3
object is available.\
9b96cb3
\
9b96cb3
dogpile.cache is a caching API which provides a generic interface to\
9b96cb3
caching backends of any variety, and additionally provides API hooks\
9b96cb3
which integrate these cache backends with the locking mechanism of\
9b96cb3
dogpile.\
9b96cb3
\
9b96cb3
Overall, dogpile.cache is intended as a replacement to the Beaker\
9b96cb3
caching system, the internals of which are written by the same author.\
9b96cb3
All the ideas of Beaker which "work" are re- implemented in\
9b96cb3
dogpile.cache in a more efficient and succinct manner, and all the cruft\
9b96cb3
(Beaker\'s internals were first written in 2005) relegated to the trash\
9b96cb3
heap.
492f494
492f494
Name:               python-dogpile-cache
60a8d25
Version:            1.1.1
b61298a
Release:            1%{?dist}
9b96cb3
Summary:            %{sum}
492f494
b6bac12
License:            MIT
f5c2807
URL:                https://pypi.io/project/dogpile.cache
f5c2807
Source0:            https://pypi.io/packages/source/d/%{modname}/%{modname}-%{version}.tar.gz
492f494
b61298a
#
b61298a
# It is unclear why this is pinned at 3.0.0 upstream
b61298a
# So remove the constraint for now until the fedora stevedore package
b61298a
# is updated
b61298a
Patch1:             dogpile.cache-1.0.2-older-stevedore.patch
b61298a
492f494
BuildArch:          noarch
492f494
b6bac12
BuildRequires:      python3-decorator >= 4.0.0
492f494
BuildRequires:      python3-devel
7e9be06
BuildRequires:      python3-mako
33382cf
BuildRequires:      python3-mock
7e9be06
BuildRequires:      python3-pytest-cov
7e9be06
BuildRequires:      python3-setuptools
b61298a
BuildRequires:      python3-stevedore
492f494
afb28b5
492f494
%description
9b96cb3
%{desc}
9b96cb3
9b96cb3
492f494
%package -n python3-dogpile-cache
9b96cb3
Summary:  %{sum}
9b96cb3
4a1b04d
Requires:           python3-mako
4a1b04d
9b96cb3
%{?python_provide:%python_provide python3-dogpile-cache}
9b96cb3
9b96cb3
Provides: python3-dogpile-core = %{version}-%{release}
9b96cb3
Obsoletes: python3-dogpile-core < 0.4.1-12
492f494
afb28b5
492f494
%description -n python3-dogpile-cache
9b96cb3
%{desc}
492f494
492f494
%prep
492f494
%setup -q -n %{modname}-%{version}
b61298a
%patch1 -p1
492f494
492f494
# Remove bundled egg-info in case it exists
492f494
rm -rf %{modname}.egg-info
492f494
492f494
%build
492f494
%{__python3} setup.py build
492f494
492f494
%install
492f494
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
492f494
7e9be06
7e9be06
%check
7e9be06
%{__python3} -m pytest
7e9be06
7e9be06
492f494
%files -n python3-dogpile-cache
9b96cb3
%license LICENSE
9b96cb3
%doc README.rst
25c205a
%{python3_sitelib}/dogpile
492f494
%{python3_sitelib}/%{modname}-%{version}-*
492f494
492f494
%changelog
60a8d25
* Fri Jan 01 2021 Kevin Fenzi <kevin@scrye.com> - 1.1.1-1
60a8d25
- Upgrade to 1.1.1. Fixes rhbz#1897941
60a8d25
b61298a
* Sat Oct 10 2020 Kevin Fenzi <kevin@scrye.com> - 1.0.2-1
b61298a
- Update to 1.0.2.
b61298a
- Add patch to use older python-stevedore package in fedora for now for tests.
b61298a
fadbfa6
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-5
fadbfa6
- Second attempt - Rebuilt for
fadbfa6
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
fadbfa6
08d7b1a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-4
08d7b1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
08d7b1a
8f896b0
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.9.0-3
8f896b0
- Rebuilt for Python 3.9
8f896b0
f4fde42
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-2
f4fde42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f4fde42
e05d8ee
* Fri Nov 15 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.9.0-1
e05d8ee
- Update to 0.9.0 (#1766238).
e05d8ee
- https://dogpilecache.sqlalchemy.org/en/latest/changelog.html#change-0.9.0
e05d8ee
b6bac12
* Fri Sep 27 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.8.0-1
b6bac12
- Update to 0.8.0 (#1754092).
b6bac12
- https://dogpilecache.sqlalchemy.org/en/latest/changelog.html
b6bac12
ddcad89
* Mon Sep 09 2019 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.6.8-3
ddcad89
- Drop python2-dogpile-cache (#1748419).
ddcad89
46cb852
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.8-3
46cb852
- Rebuilt for Python 3.8
46cb852
4425bc4
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.8-2
4425bc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4425bc4
a6df771
* Wed Feb 06 2019 Alfredo Moralejo <amoralej@redhat.com> - 0.6.8-1
a6df771
- Update to 0.6.8.
a6df771
d305bcc
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.7-2
d305bcc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d305bcc
824b75a
* Tue Oct 09 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.6.7-1
824b75a
- Update to 0.6.7 (#1609253).
824b75a
- https://dogpilecache.readthedocs.io/en/latest/changelog.html#change-0.6.7
824b75a
70eeb91
* Mon Jul 23 2018 Kevin Fenzi <kevin@scrye.com> - 0.6.6-1
70eeb91
- Fix FTBFS bug #1605662
70eeb91
- Update to 0.6.6.
70eeb91
d341685
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.5-3
d341685
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d341685
27d251d
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 0.6.5-2
27d251d
- Rebuilt for Python 3.7
27d251d
aa44c33
* Thu Apr 12 2018 Ralph Bean <rbean@redhat.com> - 0.6.5-1
aa44c33
- new version
aa44c33
6cf06e0
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.6.4-5
6cf06e0
- Update Python 2 dependency declarations to new packaging standards
6cf06e0
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
6cf06e0
4a88ccb
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-4
4a88ccb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild