forked from pool/python-bsddb3
add python3 support OBS-URL: https://build.opensuse.org/request/show/148092 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bsddb3?expand=0&rev=16
78 lines
2.5 KiB
RPMSpec
78 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package python3-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: python3-bsddb3
|
|
Version: 5.3.0
|
|
Release: 0
|
|
Url: http://pypi.python.org/pypi/bsddb3
|
|
Summary: Python interface for Berkeley DB
|
|
License: MIT
|
|
Group: Development/Libraries/Python
|
|
Source: http://pypi.python.org/packages/source/b/bsddb3/bsddb3-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: db-devel
|
|
BuildRequires: python3
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-distribute
|
|
Requires: python(abi) = %{py3_ver}
|
|
|
|
%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.
|
|
|
|
%prep
|
|
%setup -q -n bsddb3-%{version}
|
|
sed -i "1d" Lib3/bsddb/dbshelve.py # Fix non-executable bits
|
|
|
|
%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}
|
|
|
|
%build
|
|
CFLAGS="%{optflags} -fno-strict-aliasing" python3 setup.py build
|
|
|
|
%install
|
|
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
rm -rf %{buildroot}%{python3_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/*
|
|
%{python3_sitearch}/*
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/python*/bsddb3
|
|
|
|
%changelog
|