packages: python-pymongo/python-pymongo.spec (NEW)=?UTF-8?Q?=20?=- new package
jajcus
jajcus at pld-linux.org
Wed Jun 13 19:15:37 CEST 2012
Author: jajcus Date: Wed Jun 13 17:15:37 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- new package
---- Files affected:
packages/python-pymongo:
python-pymongo.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/python-pymongo/python-pymongo.spec
diff -u /dev/null packages/python-pymongo/python-pymongo.spec:1.1
--- /dev/null Wed Jun 13 19:15:37 2012
+++ packages/python-pymongo/python-pymongo.spec Wed Jun 13 19:15:32 2012
@@ -0,0 +1,77 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with tests # run tests (seem broken)
+
+%define module pymongo
+Summary: Python driver for MongoDB
+Summary(pl.UTF-8): Sterownik Pythona do MongoDB
+Name: python-%{module}
+Version: 2.2
+Release: 1
+License: Apache v2.0
+Group: Development/Languages/Python
+Source0: http://pypi.python.org/packages/source/p/pymongo/%{module}-%{version}.tar.gz
+# Source0-md5: 101dd4ae59bdd487f67b3a3968a82c8c
+URL: http://api.mongodb.org/python/current/
+BuildRequires: python-devel
+BuildRequires: python-distribute
+BuildRequires: rpm-pythonprov
+Requires: python-libs
+Requires: python-modules
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The PyMongo distribution contains tools for interacting with MongoDB
+database from Python. The bson package is an implementation of the
+BSON format for Python. The pymongo package is a native Python driver
+for MongoDB. The gridfs package is a gridfs implementation on top of
+pymongo.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+CC="%{__cc}" \
+CFLAGS="%{rpmcflags}" \
+%{__python} setup.py build
+
+%{?with_tests:%{__python} setup.py test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+ --skip-build \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst PKG-INFO doc/api doc/examples doc/*.rst
+%dir %{py_sitedir}/bson
+%{py_sitedir}/bson/*.py*
+%attr(755,root,root) %{py_sitedir}/bson/*.so
+%dir %{py_sitedir}/gridfs
+%{py_sitedir}/gridfs/*.py*
+%dir %{py_sitedir}/pymongo
+%{py_sitedir}/pymongo/*.py*
+%attr(755,root,root) %{py_sitedir}/pymongo/*.so
+%{py_sitedir}/*-*.egg-info
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2012/06/13 17:15:32 jajcus
+- new package
+
================================================================
More information about the pld-cvs-commit
mailing list