forked from pool/python-bsddb3
- Update to new upstream release 6.0.0 * Support for BDB 6.0.19 OBS-URL: https://build.opensuse.org/request/show/181955 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bsddb3?expand=0&rev=24
87 lines
2.9 KiB
RPMSpec
87 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package python-bsddb3
|
|
#
|
|
# Copyright (c) 2013 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/
|
|
#
|
|
|
|
|
|
Name: python-bsddb3
|
|
Version: 6.0.0
|
|
Release: 0
|
|
Url: http://pypi.python.org/pypi/bsddb3
|
|
Summary: Python interface for Berkeley DB
|
|
License: MIT
|
|
Group: Development/Libraries/Python
|
|
|
|
#Freecode-URL: http://freecode.com/projects/bsddb3
|
|
#Hg-Clone: http://hg.jcea.es/pybsddb/
|
|
Source: http://pypi.python.org/packages/source/b/bsddb3/bsddb3-%{version}.tar.gz
|
|
Source2: http://pypi.python.org/packages/source/b/bsddb3/bsddb3-%{version}.tar.gz.asc
|
|
Source3: python-bsddb3.keyring
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: db-devel
|
|
BuildRequires: python-devel
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
%endif
|
|
%if 0%{?suse_version} >= 1230
|
|
BuildRequires: gpg-offline
|
|
%endif
|
|
|
|
%description
|
|
This module provides a nearly complete wrapping of the Oracle/Sleepycat C API
|
|
for the Database Environment, Database, Cursor, Log Cursor, Sequence and
|
|
Transaction objects, and each of these is exposed as a Python type in the
|
|
bsddb3.db module.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Group: Development/Libraries/Python
|
|
Requires: %{name} = %{version}
|
|
|
|
%description devel
|
|
This module provides a nearly complete wrapping of the Oracle/Sleepycat C API
|
|
for the Database Environment, Database, Cursor, Log Cursor, Sequence and
|
|
Transaction objects, and each of these is exposed as a Python type in the
|
|
bsddb3.db module.
|
|
|
|
This package contains the development files for %{name}
|
|
|
|
%prep
|
|
%{?gpg_verify: %gpg_verify %{S:2}}
|
|
%setup -q -n bsddb3-%{version}
|
|
sed -i "1d" Lib/bsddb/dbshelve.py # Fix non-executable bits
|
|
|
|
%build
|
|
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
rm -rf %{buildroot}%{python_sitearch}/bsddb3/tests # Remove wrongly packaged tests
|
|
|
|
# Disabled testsuite, takes quite some time to finish:
|
|
#%%check
|
|
#python test.py
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc ChangeLog TODO.txt docs/*
|
|
%{python_sitearch}/*
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/python*/bsddb3
|
|
|
|
%changelog
|