2f3832c
%if 0%{?fedora} > 12
492f494
%global with_python3 1
492f494
%endif
492f494
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
7e9be06
Version:            0.6.4
6cf06e0
Release:            5%{?dist}
9b96cb3
Summary:            %{sum}
492f494
492f494
Group:              Development/Libraries
492f494
License:            BSD
f5c2807
URL:                https://pypi.io/project/dogpile.cache
f5c2807
Source0:            https://pypi.io/packages/source/d/%{modname}/%{modname}-%{version}.tar.gz
492f494
492f494
BuildArch:          noarch
492f494
6cf06e0
BuildRequires:      python2-mako
6cf06e0
BuildRequires:      python2-pytest-cov
7e9be06
BuildRequires:      python2-devel
4a1b04d
BuildRequires:      python2-mock
4a1b04d
BuildRequires:      python2-setuptools
492f494
492f494
%if 0%{?with_python3}
492f494
BuildRequires:      python3-devel
7e9be06
BuildRequires:      python3-mako
33382cf
BuildRequires:      python3-mock
7e9be06
BuildRequires:      python3-pytest-cov
7e9be06
BuildRequires:      python3-setuptools
492f494
%endif
492f494
afb28b5
492f494
%description
9b96cb3
%{desc}
9b96cb3
9b96cb3
9b96cb3
%package -n python2-dogpile-cache
9b96cb3
Summary:  %{sum}
9b96cb3
6cf06e0
Requires:           python2-mako
4a1b04d
9b96cb3
%{?python_provide:%python_provide python2-dogpile-cache}
9b96cb3
9b96cb3
Provides: python-dogpile-core = %{version}-%{release}
9b96cb3
Obsoletes: python-dogpile-core < 0.4.1-12
9b96cb3
9b96cb3
9b96cb3
%description -n python2-dogpile-cache
9b96cb3
%{desc}
9b96cb3
492f494
492f494
%if 0%{?with_python3}
492f494
%package -n python3-dogpile-cache
9b96cb3
Summary:  %{sum}
9b96cb3
Group:    Development/Libraries
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
%endif
492f494
492f494
%prep
492f494
%setup -q -n %{modname}-%{version}
492f494
492f494
# Remove bundled egg-info in case it exists
492f494
rm -rf %{modname}.egg-info
492f494
%if 0%{?with_python3}
492f494
rm -rf %{py3dir}
492f494
cp -a . %{py3dir}
492f494
%endif
492f494
492f494
%build
492f494
%{__python} setup.py build
492f494
%if 0%{?with_python3}
492f494
pushd %{py3dir}
492f494
%{__python3} setup.py build
492f494
popd
492f494
%endif
492f494
492f494
%install
492f494
%if 0%{?with_python3}
492f494
pushd %{py3dir}
492f494
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
492f494
popd
492f494
%endif
492f494
%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
492f494
7e9be06
7e9be06
%check
7e9be06
%{__python2} -m pytest
7e9be06
7e9be06
%if 0%{?with_python3}
7e9be06
pushd %{py3dir}
7e9be06
%{__python3} -m pytest
7e9be06
popd
7e9be06
%endif
7e9be06
7e9be06
9b96cb3
%files -n python2-dogpile-cache
9b96cb3
%license LICENSE
9b96cb3
%doc README.rst
25c205a
%{python_sitelib}/dogpile
492f494
%{python_sitelib}/%{modname}-%{version}*
492f494
492f494
%if 0%{?with_python3}
492f494
%files -n python3-dogpile-cache
9b96cb3
%license LICENSE
9b96cb3
%doc README.rst
25c205a
%{python3_sitelib}/dogpile
492f494
%{python3_sitelib}/%{modname}-%{version}-*
492f494
%endif
492f494
492f494
%changelog
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
4a88ccb
da74fb5
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-3
da74fb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
da74fb5
4a1b04d
* Sat Jul 01 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.6.4-2
4a1b04d
- Require python-mako.
4a1b04d
- Use python2- versions of a few BuildRequires.
4a1b04d
7e9be06
* Sat Jul 01 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.6.4-1
7e9be06
- Update to 0.6.4 (#1465192).
7e9be06
- http://dogpilecache.readthedocs.io/en/latest/changelog.html#change-0.6.4
7e9be06
- Sort the BuildRequires alphabetically.
7e9be06
- Run the tests.
7e9be06
f5c2807
* Thu Jun 01 2017 Ralph Bean <rbean@redhat.com> - 0.6.3-1
f5c2807
- new version
f5c2807
9b96cb3
* Thu Feb 16 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.6.2-4
9b96cb3
- Drop Require on python-dogpile-core (#1422716).
9b96cb3
- Provide and obsolete python-dogpile-core.
9b96cb3
- Replace the description with upstream's new description, and make it a global.
9b96cb3
- Make the summary a global.
9b96cb3
- Rename python-dogpile-cache to python2-dogpile-cache.
9b96cb3
- Use the license macro.
9b96cb3
ac43f8c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-3
ac43f8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ac43f8c
9e621e8
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.6.2-2
9e621e8
- Rebuild for Python 3.6
9e621e8
aa76856
* Sat Aug 27 2016 Kevin Fenzi <kevin@scrye.com> - 0.6.2-1
aa76856
- Update to 0.6.2. Fixes bug #1370712
aa76856
538f9d0
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-2
538f9d0
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
538f9d0
25c205a
* Tue Jun 07 2016 Kevin Fenzi <kevin@scrye.com> - 0.6.1-1
25c205a
- Update to 0.6.1. Fixes bug #1343255
25c205a
2245c48
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.7-3
2245c48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2245c48
0698f8c
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.7-2
0698f8c
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
0698f8c
0f3b4c1
* Tue Oct 20 2015 Ralph Bean <rbean@redhat.com> - 0.5.7-1
0f3b4c1
- new version
0f3b4c1
d3c484f
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.5-2
d3c484f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d3c484f
cf485e9
* Thu Jan 22 2015 Ralph Bean <rbean@redhat.com> - 0.5.5-1
cf485e9
- new version
cf485e9
f5a54d6
* Wed Aug 20 2014 Ralph Bean <rbean@redhat.com> - 0.5.4-1
f5a54d6
- Latest upstream.
f5a54d6
eeb0727
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-3
eeb0727
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
eeb0727
36c7cbd
* Fri May 30 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.5.3-2
36c7cbd
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
36c7cbd
6caa4aa
* Tue Jan 28 2014 Ralph Bean <rbean@redhat.com> - 0.5.3-1
6caa4aa
- Latest upstream.
6caa4aa
- Modernize python3 conditional.
6caa4aa
cee7877
* Mon Sep 9 2013 Pádraig Brady <pbrady@redhat.com> - 0.5.0-1
cee7877
- Update to 0.5.0 release
cee7877
fecd0f0
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-3
fecd0f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
fecd0f0
7281190
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-2
7281190
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7281190
afb28b5
* Mon Jan 21 2013 Ralph Bean <rbean@redhat.com> - 0.4.2-1
afb28b5
- Upstream accepted async patches.
33382cf
- Added BuildRequires on python-mock
0195a96
- Restrict python-dogpile-core to newer version.
e7a7252
- Remove tests since they're kind of stochastic.
afb28b5
afb28b5
* Fri Jan 11 2013 Ralph Bean <rbean@redhat.com> - 0.4.1-2.20130111hg111
afb28b5
- Updated experimental async work.
afb28b5
- Actually require python-dogpile-core for install.
afb28b5
2a627fd
* Thu Jan 03 2013 Ralph Bean <rbean@redhat.com> - 0.4.1-1.20130103hg108
2a627fd
- Move to a post-release hg checkout.
2a627fd
- Experimenting with background value creation.
2a627fd
- Temporarily removed the CHANGES doc
2a627fd
505ef7c
* Tue Dec 18 2012 Ralph Bean <rbean@redhat.com> - 0.4.0-3
505ef7c
- Remove period from end of summary.
505ef7c
c2d9ea9
* Fri Dec 14 2012 Ralph Bean <rbean@redhat.com> - 0.4.0-2
c2d9ea9
- Disable tests on epel6.
c2d9ea9
492f494
* Tue Dec 11 2012 Ralph Bean <rbean@redhat.com> - 0.4.0-1
492f494
- Initial packaging for Fedora