From 6d7d0942e371eb94d17b1310857d798109832066d57a0d5753eb0dd06b418409 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sat, 26 Mar 2011 08:06:04 +0000 Subject: [PATCH] Accepting request 65264 from home:aledr looks good OBS-URL: https://build.opensuse.org/request/show/65264 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymongo?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + pymongo-1.9.tar.bz2 | 3 ++ python-pymongo.changes | 4 +++ python-pymongo.spec | 67 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 98 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pymongo-1.9.tar.bz2 create mode 100644 python-pymongo.changes create mode 100644 python-pymongo.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pymongo-1.9.tar.bz2 b/pymongo-1.9.tar.bz2 new file mode 100644 index 0000000..44b4964 --- /dev/null +++ b/pymongo-1.9.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4402170eaf7bc5cb97dd46b5e118e94ba9b646f5494b222373a4c5acaa11005b +size 116109 diff --git a/python-pymongo.changes b/python-pymongo.changes new file mode 100644 index 0000000..2ec35d9 --- /dev/null +++ b/python-pymongo.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sat Mar 26 00:03:48 UTC 2011 - alexandre@exatati.com.br + +- Initial package (1.9) for openSUSE. diff --git a/python-pymongo.spec b/python-pymongo.spec new file mode 100644 index 0000000..db7e882 --- /dev/null +++ b/python-pymongo.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-pymongo +# +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +%define mod_name pymongo + +Name: python-%{mod_name} +Version: 1.9 +Release: 0 +Url: http://github.com/mongodb/mongo-python-driver +Summary: Python driver for MongoDB +License: Apache License, Version 2.0 +Group: Development/Languages/Python +Source: %{mod_name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python-devel +BuildRequires: python-setuptools +%if 0%{?suse_version} +%py_requires +%endif + +%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 %{mod_name}-%{version} + +%build +export CFLAGS="%{optflags}" +python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +# You may have to add additional files here (documentation and binaries mostly) +%python_sitearch/%{mod_name}* +%python_sitearch/bson +%python_sitearch/gridfs +%python_sitearch/*.egg-info + +%changelog