[python-dogpile-cache] Initial import (#886164)

Ralph Bean ralph at fedoraproject.org
Tue Dec 18 18:54:11 UTC 2012


commit 492f494e969d9ae58bb8ea419cd96659083c3ee1
Author: Ralph Bean <rbean at redhat.com>
Date:   Tue Dec 18 13:52:15 2012 -0500

    Initial import (#886164)

 .gitignore                |    1 +
 python-dogpile-cache.spec |  116 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 3 files changed, 118 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5156f44 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dogpile.cache-0.4.0.tar.gz
diff --git a/python-dogpile-cache.spec b/python-dogpile-cache.spec
new file mode 100644
index 0000000..205f30a
--- /dev/null
+++ b/python-dogpile-cache.spec
@@ -0,0 +1,116 @@
+%if 0%{?fedora} > 12 || 0%{?rhel} > 6
+%global with_python3 1
+%endif
+
+%global modname dogpile.cache
+
+Name:               python-dogpile-cache
+Version:            0.4.0
+Release:            1%{?dist}
+Summary:            A caching front-end based on the Dogpile lock.
+
+Group:              Development/Libraries
+License:            BSD
+URL:                http://pypi.python.org/pypi/dogpile.cache
+Source0:            http://pypi.python.org/packages/source/d/%{modname}/%{modname}-%{version}.tar.gz
+
+BuildArch:          noarch
+
+
+BuildRequires:      python2-devel
+BuildRequires:      python-setuptools
+BuildRequires:      python-nose
+BuildRequires:      python-dogpile-core
+
+%if 0%{?with_python3}
+BuildRequires:      python3-devel
+BuildRequires:      python3-setuptools
+BuildRequires:      python3-nose
+BuildRequires:      python3-dogpile-core
+%endif
+
+%description
+A caching API built around the concept of a "dogpile lock", which allows
+continued access to an expiring data value while a single thread generates
+a new value.
+
+dogpile.cache builds on the `dogpile.core
+<http://pypi.python.org/pypi/dogpile.core>`_ locking system, which
+implements the idea of "allow one creator to write while others read" in
+the abstract.   Overall, dogpile.cache is intended as a replacement to the
+`Beaker <http://beaker.groovie.org>`_ caching system, the internals of
+which are written by the same author.   All the ideas of Beaker which
+"work" are re-implemented in dogpile.cache in a more efficient and succinct
+manner, and all the cruft (Beaker's internals were first written in 2005)
+relegated to the trash heap.
+
+%if 0%{?with_python3}
+%package -n python3-dogpile-cache
+Summary:            A caching front-end based on the Dogpile lock.
+Group:              Development/Libraries
+
+%description -n python3-dogpile-cache
+A caching API built around the concept of a "dogpile lock", which allows
+continued access to an expiring data value while a single thread generates
+a new value.
+
+dogpile.cache builds on the `dogpile.core
+<http://pypi.python.org/pypi/dogpile.core>`_ locking system, which
+implements the idea of "allow one creator to write while others read" in
+the abstract.   Overall, dogpile.cache is intended as a replacement to the
+`Beaker <http://beaker.groovie.org>`_ caching system, the internals of
+which are written by the same author.   All the ideas of Beaker which
+"work" are re-implemented in dogpile.cache in a more efficient and succinct
+manner, and all the cruft (Beaker's internals were first written in 2005)
+relegated to the trash heap.
+%endif
+
+%prep
+%setup -q -n %{modname}-%{version}
+
+# Remove bundled egg-info in case it exists
+rm -rf %{modname}.egg-info
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif
+
+%build
+%{__python} setup.py build
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif
+
+%install
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
+popd
+%endif
+%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
+
+%check
+%{__python} setup.py test
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py test
+popd
+%endif
+
+%files
+%doc README.rst LICENSE CHANGES
+%{python_sitelib}/dogpile/cache/
+%{python_sitelib}/%{modname}-%{version}*
+
+%if 0%{?with_python3}
+%files -n python3-dogpile-cache
+%doc README.rst LICENSE CHANGES
+%{python3_sitelib}/dogpile/cache/
+%{python3_sitelib}/%{modname}-%{version}-*
+%endif
+
+%changelog
+* Tue Dec 11 2012 Ralph Bean <rbean at redhat.com> - 0.4.0-1
+- Initial packaging for Fedora
diff --git a/sources b/sources
index e69de29..b28bf75 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b15db13a70f7f9a57d5d561d716a6cf3  dogpile.cache-0.4.0.tar.gz


More information about the scm-commits mailing list