|
|
2f3832c |
%if 0%{?fedora} > 12
|
|
|
492f494 |
%global with_python3 1
|
|
|
492f494 |
%endif
|
|
|
492f494 |
|
|
|
492f494 |
%global modname dogpile.cache
|
|
|
492f494 |
|
|
|
492f494 |
Name: python-dogpile-cache
|
|
|
25c205a |
Version: 0.6.1
|
|
|
538f9d0 |
Release: 2%{?dist}
|
|
|
505ef7c |
Summary: A caching front-end based on the Dogpile lock
|
|
|
492f494 |
|
|
|
492f494 |
Group: Development/Libraries
|
|
|
492f494 |
License: BSD
|
|
|
492f494 |
URL: http://pypi.python.org/pypi/dogpile.cache
|
|
|
492f494 |
Source0: http://pypi.python.org/packages/source/d/%{modname}/%{modname}-%{version}.tar.gz
|
|
|
492f494 |
|
|
|
492f494 |
BuildArch: noarch
|
|
|
492f494 |
|
|
|
492f494 |
BuildRequires: python2-devel
|
|
|
492f494 |
BuildRequires: python-setuptools
|
|
|
492f494 |
BuildRequires: python-nose
|
|
|
33382cf |
BuildRequires: python-mock
|
|
|
0195a96 |
BuildRequires: python-dogpile-core >= 0.4.1
|
|
|
492f494 |
|
|
|
492f494 |
%if 0%{?with_python3}
|
|
|
492f494 |
BuildRequires: python3-devel
|
|
|
492f494 |
BuildRequires: python3-setuptools
|
|
|
492f494 |
BuildRequires: python3-nose
|
|
|
33382cf |
BuildRequires: python3-mock
|
|
|
0195a96 |
BuildRequires: python3-dogpile-core >= 0.4.1
|
|
|
492f494 |
%endif
|
|
|
492f494 |
|
|
|
0195a96 |
Requires: python-dogpile-core >= 0.4.1
|
|
|
afb28b5 |
|
|
|
492f494 |
%description
|
|
|
492f494 |
A caching API built around the concept of a "dogpile lock", which allows
|
|
|
492f494 |
continued access to an expiring data value while a single thread generates
|
|
|
492f494 |
a new value.
|
|
|
492f494 |
|
|
|
492f494 |
dogpile.cache builds on the `dogpile.core
|
|
|
492f494 |
<http://pypi.python.org/pypi/dogpile.core>`_ locking system, which
|
|
|
492f494 |
implements the idea of "allow one creator to write while others read" in
|
|
|
492f494 |
the abstract. Overall, dogpile.cache is intended as a replacement to the
|
|
|
492f494 |
`Beaker <http://beaker.groovie.org>`_ caching system, the internals of
|
|
|
492f494 |
which are written by the same author. All the ideas of Beaker which
|
|
|
492f494 |
"work" are re-implemented in dogpile.cache in a more efficient and succinct
|
|
|
492f494 |
manner, and all the cruft (Beaker's internals were first written in 2005)
|
|
|
492f494 |
relegated to the trash heap.
|
|
|
492f494 |
|
|
|
492f494 |
%if 0%{?with_python3}
|
|
|
492f494 |
%package -n python3-dogpile-cache
|
|
|
492f494 |
Summary: A caching front-end based on the Dogpile lock.
|
|
|
492f494 |
Group: Development/Libraries
|
|
|
492f494 |
|
|
|
0195a96 |
Requires: python3-dogpile-core >= 0.4.1
|
|
|
afb28b5 |
|
|
|
492f494 |
%description -n python3-dogpile-cache
|
|
|
492f494 |
A caching API built around the concept of a "dogpile lock", which allows
|
|
|
492f494 |
continued access to an expiring data value while a single thread generates
|
|
|
492f494 |
a new value.
|
|
|
492f494 |
|
|
|
492f494 |
dogpile.cache builds on the `dogpile.core
|
|
|
492f494 |
<http://pypi.python.org/pypi/dogpile.core>`_ locking system, which
|
|
|
492f494 |
implements the idea of "allow one creator to write while others read" in
|
|
|
492f494 |
the abstract. Overall, dogpile.cache is intended as a replacement to the
|
|
|
492f494 |
`Beaker <http://beaker.groovie.org>`_ caching system, the internals of
|
|
|
492f494 |
which are written by the same author. All the ideas of Beaker which
|
|
|
492f494 |
"work" are re-implemented in dogpile.cache in a more efficient and succinct
|
|
|
492f494 |
manner, and all the cruft (Beaker's internals were first written in 2005)
|
|
|
492f494 |
relegated to the trash heap.
|
|
|
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 |
|
|
|
492f494 |
%files
|
|
|
2a627fd |
%doc README.rst LICENSE
|
|
|
25c205a |
%{python_sitelib}/dogpile
|
|
|
492f494 |
%{python_sitelib}/%{modname}-%{version}*
|
|
|
492f494 |
|
|
|
492f494 |
%if 0%{?with_python3}
|
|
|
492f494 |
%files -n python3-dogpile-cache
|
|
|
2a627fd |
%doc README.rst LICENSE
|
|
|
25c205a |
%{python3_sitelib}/dogpile
|
|
|
492f494 |
%{python3_sitelib}/%{modname}-%{version}-*
|
|
|
492f494 |
%endif
|
|
|
492f494 |
|
|
|
492f494 |
%changelog
|
|
|
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
|