diff --git a/python-bsddb3.changes b/python-bsddb3.changes index 5aae811..b306465 100644 --- a/python-bsddb3.changes +++ b/python-bsddb3.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jan 11 14:41:24 UTC 2013 - p.drouand@gmail.com + +- Initial python3 support + ------------------------------------------------------------------- Fri Jan 11 07:20:30 UTC 2013 - mlin@suse.com diff --git a/python3-bsddb3.changes b/python3-bsddb3.changes new file mode 100644 index 0000000..310493c --- /dev/null +++ b/python3-bsddb3.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Jan 11 14:41:40 UTC 2013 - p.drouand@gmail.com + +- Initial python3 support + diff --git a/python3-bsddb3.spec b/python3-bsddb3.spec new file mode 100644 index 0000000..90c3ce4 --- /dev/null +++ b/python3-bsddb3.spec @@ -0,0 +1,77 @@ +# +# 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