14
0
Sascha Peilicke
2012-02-28 09:00:11 +00:00
committed by Git OBS Bridge
parent 6d7d0942e3
commit 33717eb87a
4 changed files with 26 additions and 27 deletions

View File

@@ -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 <http://www.mongodb.org>
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