public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pymemcache] epel10.3: Initial import
@ 2026-09-30 11:59 Nejc Saje
0 siblings, 0 replies; only message in thread
From: Nejc Saje @ 2026-09-30 11:59 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-pymemcache
Branch : epel10.3
Commit : 5d3771ca255288c3e389327ac70cbe97baf581ae
Author : Nejc Saje <nsaje@redhat.com>
Date : 2014-09-09T23:20:09-04:00
Stats : +115/-0 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-pymemcache/c/5d3771ca255288c3e389327ac70cbe97baf581ae?branch=epel10.3
Log:
Initial import
---
diff --git a/.gitignore b/.gitignore
index e69de29..3ad1178 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pymemcache-1.2.5.tar.gz
diff --git a/python-pymemcache.spec b/python-pymemcache.spec
new file mode 100644
index 0000000..4b420c9
--- /dev/null
+++ b/python-pymemcache.spec
@@ -0,0 +1,113 @@
+# Created by pyp2rpm-1.0.1
+%global pypi_name pymemcache
+
+%if 0%{?fedora}
+%global with_python3 1
+%endif
+
+%if 0%{?rhel} && 0%{?rhel} <= 6
+%{!?__python2: %global __python2 /usr/bin/python}
+%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+Name: python-%{pypi_name}
+Version: 1.2.5
+Release: 1%{?dist}
+Summary: A comprehensive, fast, pure Python memcached client
+
+License: ASL 2.0
+URL: https://github.com/Pinterest/pymemcache
+Source0: https://pypi.python.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: python2-devel
+BuildRequires: python-nose >= 1.0
+BuildRequires: python-setuptools
+Requires: python-six
+
+%description
+pymemcache supports the following features:
+
+* Complete implementation of the memcached text protocol.
+* Configurable timeouts for socket connect and send/recv calls.
+* Access to the "noreply" flag, which can significantly increase the speed of
+ writes.
+* Flexible, simple approach to serialization and deserialization.
+* The (optional) ability to treat network and memcached errors as cache misses.
+
+%if 0%{?with_python3}
+%package -n python3-%{pypi_name}
+Summary: A comprehensive, fast, pure Python memcached client
+BuildRequires: python3-devel
+BuildRequires: python3-nose >= 1.0
+BuildRequires: python3-setuptools
+Requires: python3-six
+
+%description -n python3-%{pypi_name}
+pymemcache supports the following features:
+
+* Complete implementation of the memcached text protocol.
+* Configurable timeouts for socket connect and send/recv calls.
+* Access to the "noreply" flag, which can significantly increase the speed of
+ writes.
+* Flexible, simple approach to serialization and deserialization.
+* The (optional) ability to treat network and memcached errors as cache misses.
+%endif
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
+%endif # with_python3
+
+%build
+%{__python2} setup.py build
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif
+
+
+%install
+%{__python2} setup.py install --skip-build --root %{buildroot}
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+%endif
+
+
+%check
+%{__python2} setup.py nosetests
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py nosetests
+popd
+%endif
+
+
+%files
+%doc README.md LICENSE.txt
+%{python2_sitelib}/%{pypi_name}
+%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+
+%if 0%{?with_python3}
+%files -n python3-%{pypi_name}
+%doc README.md LICENSE.txt
+%{python3_sitelib}/%{pypi_name}
+%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+%endif
+
+%changelog
+* Tue Sep 09 2014 Nejc Saje <nsaje@redhat.com> - 1.2.5-1
+- Initial package.
+
diff --git a/sources b/sources
index e69de29..3a15146 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+56dcfa6dfa7205118b60531e5336ab8b pymemcache-1.2.5.tar.gz
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-30 11:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-30 11:59 [rpms/python-pymemcache] epel10.3: Initial import Nejc Saje
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox