[python-pylibmc] Initial Build (#728662).

kumarpraveen kumarpraveen at fedoraproject.org
Wed Aug 10 15:46:53 UTC 2011


commit 592f7a9bda523225f00a0436cb463e56bc808470
Author: Praveen <daredevil at localhost.localdomain>
Date:   Wed Aug 10 20:57:30 2011 +0530

    Initial Build (#728662).

 .gitignore          |    1 +
 python-pylibmc.spec |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 61 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b0eb581 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-pylibmc-1.2.0.20110805gitf01c31.tar.xz
diff --git a/python-pylibmc.spec b/python-pylibmc.spec
new file mode 100644
index 0000000..ef5f4b1
--- /dev/null
+++ b/python-pylibmc.spec
@@ -0,0 +1,59 @@
+%global git_date    20110805
+%global git_version f01c31
+
+Name:           python-pylibmc
+Version:        1.2.0
+Release:        3.%{git_date}git%{git_version}%{?dist}
+Summary:        Memcached client for Python
+
+Group:          Development/Libraries
+License:        BSD
+URL:            http://sendapatch.se/projects/pylibmc/
+
+# git clone https://github.com/lericson/pylibmc
+# cd pylibmc
+# git archive --format=tar HEAD | xz  > {name}-{version}.{git_date}git{git_version}.tar.xz
+Source0:        %{name}-%{version}.%{git_date}git%{git_version}.tar.xz      
+
+BuildRequires:  python-devel
+BuildRequires:  python-setuptools
+BuildRequires:  libmemcached-devel
+BuildRequires:  zlib-devel
+
+%description
+pylibmc is a client in Python for memcached. It is a wrapper
+around TangentOrg‘s libmemcached library. The interface is 
+intentionally made as close to python-memcached as possible, 
+so that applications can drop-in replace it.
+
+%prep
+%setup -q -cn %{name}
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+%{?filter_setup:
+%filter_provides_in %{python_sitearch}/.*\.so$ 
+%filter_setup
+}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+chmod 755 $RPM_BUILD_ROOT%{python_sitearch}/_pylibmc.so
+ 
+%files
+%doc docs/ LICENSE README.rst TODO
+%{python_sitearch}/*.egg-info/
+%{python_sitearch}/pylibmc/
+%{python_sitearch}/*.so
+
+
+%changelog
+* Tue Aug 09 2011 Praveen Kumar <kumarpraveen.nitdgp at gmail.com> - 1.2.0-3.20110805gitf01c31
+- Changed file pylibmc.so permission
+
+* Tue Aug 09 2011 Praveen Kumar <kumarpraveen.nitdgp at gmail.com> - 1.2.0-2.20110805gitf01c31
+- Added soname files
+
+* Fri Aug 05 2011 Praveen Kumar <kumarpraveen.nitdgp at gmail.com> - 1.2.0-1.20110805gitf01c31
+- Initial RPM release
diff --git a/sources b/sources
index e69de29..a47ec56 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ac723a8c2049cd14b37d212f847ebe01  python-pylibmc-1.2.0.20110805gitf01c31.tar.xz


More information about the scm-commits mailing list