[python-couchdbkit/f19] Initial SETUP.
Christopher Meng
cicku at fedoraproject.org
Sat Nov 9 05:16:31 UTC 2013
commit f863ca6b3915f109495b3776a2c37268df06e022
Author: Christopher Meng <rpm at cicku.me>
Date: Sat Nov 9 13:16:00 2013 +0800
Initial SETUP.
.gitignore | 1 +
python-couchdbkit.spec | 52 ++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 54 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..dc4c365 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/couchdbkit-0.6.5.tar.gz
diff --git a/python-couchdbkit.spec b/python-couchdbkit.spec
new file mode 100644
index 0000000..d9da53c
--- /dev/null
+++ b/python-couchdbkit.spec
@@ -0,0 +1,52 @@
+Name: python-couchdbkit
+Version: 0.6.5
+Release: 2%{?dist}
+Summary: CouchDB framework in Python
+License: MIT
+URL: http://couchdbkit.org
+Source0: http://pypi.python.org/packages/source/c/couchdbkit/couchdbkit-%{version}.tar.gz
+BuildArch: noarch
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+# For the tests.
+BuildRequires: couchdb
+BuildRequires: python-nose
+BuildRequires: python-unittest2
+# If we don't add this dep I think it will be useless.
+Requires: couchdb
+Requires: python-anyjson
+Requires: python-restkit
+
+%description
+Couchdbkit provides you a full featured and easy client to access and manage
+CouchDB. It allows you to manage a CouchDBserver, databases, doc managements
+and view access. All objects mostly reflect python objects for convenience.
+Server and Databases objects could be used for example as easy as using dicts.
+
+%prep
+%setup -qn couchdbkit-%{version}
+rm -rf couchdbkit.egg-info
+chmod 644 LICENSE
+
+%build
+%{__python2} setup.py build
+
+%install
+%{__python2} setup.py install --prefix=%{_prefix} -O1 --skip-build --root=%{buildroot}
+
+%check
+# I tried to run counchdb in non-root user and seems not successfully.
+# couchdb -b && %%{__python2} setup.py test && couchdb -d
+# Otherwise I can't find a way to test.
+
+%files
+%doc LICENSE README.rst
+%{python2_sitelib}/couchdbkit
+%{python2_sitelib}/couchdbkit-%{version}-py%{python2_version}.egg-info
+
+%changelog
+* Thu Oct 31 2013 Christopher Meng <rpm at cicku.me> - 0.6.5-2
+- Remove bundled eggs.
+
+* Tue Sep 17 2013 Christopher Meng <rpm at cicku.me> - 0.6.5-1
+- Initial Package.
diff --git a/sources b/sources
index e69de29..826973a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d5f6382665697b0f126f68a211c1a5a2 couchdbkit-0.6.5.tar.gz
More information about the scm-commits
mailing list