[python-dogpile-core] Initial import (#886221)

Ralph Bean ralph at fedoraproject.org
Mon Dec 17 14:15:27 UTC 2012


commit b1491c50ad23228d122df510e217ac2bfe9905ae
Author: Ralph Bean <rbean at redhat.com>
Date:   Mon Dec 17 09:15:21 2012 -0500

    Initial import (#886221)

 .gitignore               |    1 +
 python-dogpile-core.spec |  100 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 3 files changed, 102 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6c46211 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dogpile.core-0.4.0.tar.gz
diff --git a/python-dogpile-core.spec b/python-dogpile-core.spec
new file mode 100644
index 0000000..3c04918
--- /dev/null
+++ b/python-dogpile-core.spec
@@ -0,0 +1,100 @@
+%if 0%{?fedora} > 12 || 0%{?rhel} > 6
+%global with_python3 1
+%endif
+
+%global modname dogpile.core
+
+Name:               python-dogpile-core
+Version:            0.4.0
+Release:            2%{?dist}
+Summary:            A 'dogpile' lock, typically used as a component of a larger caching solution
+
+Group:              Development/Libraries
+License:            BSD
+URL:                http://pypi.python.org/pypi/dogpile.core
+Source0:            http://pypi.python.org/packages/source/d/%{modname}/%{modname}-%{version}.tar.gz
+
+BuildArch:          noarch
+
+
+BuildRequires:      python2-devel
+BuildRequires:      python-setuptools
+BuildRequires:      python-nose
+
+%if 0%{?with_python3}
+BuildRequires:      python3-devel
+BuildRequires:      python3-setuptools
+BuildRequires:      python3-nose
+%endif
+
+%description
+A "dogpile" lock, one which allows a single thread to generate an expensive
+resource while other threads use the "old" value, until the "new" value is
+ready.
+
+Dogpile is basically the locking code extracted from the Beaker package,
+for simple and generic usage.
+
+%if 0%{?with_python3}
+%package -n python3-dogpile-core
+Summary:            A 'dogpile' lock, typically used as a component of a larger caching solution
+Group:              Development/Libraries
+
+%description -n python3-dogpile-core
+A "dogpile" lock, one which allows a single thread to generate an expensive
+resource while other threads use the "old" value, until the "new" value is
+ready.
+
+Dogpile is basically the locking code extracted from the Beaker package,
+for simple and generic usage.
+%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
+# Tests are not run since they take quite a while and appear to be sensitive to
+# koji's environment.
+
+%files
+%doc README.rst LICENSE CHANGES
+%{python_sitelib}/dogpile/
+%{python_sitelib}/%{modname}-%{version}*
+
+%if 0%{?with_python3}
+%files -n python3-dogpile-core
+%doc README.rst LICENSE CHANGES
+%{python3_sitelib}/dogpile/
+%{python3_sitelib}/%{modname}-%{version}-*
+%endif
+
+%changelog
+* Tue Dec 11 2012 Ralph Bean <rbean at redhat.com> - 0.4.0-2
+- Disabled running tests in %%check due to inconsistent koji failures.
+
+* 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..fdc2877 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4f6414fbdf52e3c23610f76a748a09a8  dogpile.core-0.4.0.tar.gz


More information about the scm-commits mailing list