From 33717eb87a2825f255c352faf8bd2fd7b39eb2b2327387669cac6cc3c583f574 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Tue, 28 Feb 2012 09:00:11 +0000 Subject: [PATCH] - Update to version 2.1.1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymongo?expand=0&rev=2 --- pymongo-1.9.tar.bz2 | 3 --- pymongo-2.1.1.tar.gz | 3 +++ python-pymongo.changes | 5 +++++ python-pymongo.spec | 42 ++++++++++++++++++------------------------ 4 files changed, 26 insertions(+), 27 deletions(-) delete mode 100644 pymongo-1.9.tar.bz2 create mode 100644 pymongo-2.1.1.tar.gz diff --git a/pymongo-1.9.tar.bz2 b/pymongo-1.9.tar.bz2 deleted file mode 100644 index 44b4964..0000000 --- a/pymongo-1.9.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4402170eaf7bc5cb97dd46b5e118e94ba9b646f5494b222373a4c5acaa11005b -size 116109 diff --git a/pymongo-2.1.1.tar.gz b/pymongo-2.1.1.tar.gz new file mode 100644 index 0000000..2d142f3 --- /dev/null +++ b/pymongo-2.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7dd891ce2088a2d21f172102be530cc3083571a0f1eecfa0aff612da8076c37b +size 199974 diff --git a/python-pymongo.changes b/python-pymongo.changes index 2ec35d9..5075ca6 100644 --- a/python-pymongo.changes +++ b/python-pymongo.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 28 08:54:00 UTC 2012 - saschpe@suse.de + +- Update to version 2.1.1 + ------------------------------------------------------------------- Sat Mar 26 00:03:48 UTC 2011 - alexandre@exatati.com.br diff --git a/python-pymongo.spec b/python-pymongo.spec index db7e882..80ad1ef 100644 --- a/python-pymongo.spec +++ b/python-pymongo.spec @@ -1,7 +1,7 @@ # # spec file for package python-pymongo # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 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 @@ -15,25 +15,23 @@ # 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 +Name: python-pymongo +Version: 2.1.1 Release: 0 Url: http://github.com/mongodb/mongo-python-driver -Summary: Python driver for MongoDB -License: Apache License, Version 2.0 +Summary: Python driver for MongoDB +License: Apache-2.0 Group: Development/Languages/Python -Source: %{mod_name}-%{version}.tar.bz2 +Source: pymongo-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel -BuildRequires: python-setuptools -%if 0%{?suse_version} -%py_requires +BuildRequires: python-distribute +#BuildRequires: python-nose +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%else +BuildArch: noarch %endif %description @@ -44,24 +42,20 @@ driver for MongoDB. The gridfs package is a gridfs implementation on top of pymongo. %prep -%setup -q -n %{mod_name}-%{version} +%setup -q -n pymongo-%{version} %build -export CFLAGS="%{optflags}" -python setup.py build +CFLAGS="%{optflags}" python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%clean -rm -rf %{buildroot} +%check +#python setup.py test %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 +%doc LICENSE README.rst +%{python_sitearch}/* %changelog