forked from pool/python-bsddb3
Accepting request 182386 from devel:languages:python
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/182386 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bsddb3?expand=0&rev=19
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4619f6189e5f94e337c62ae398ccb9c25568f3c3cab39970a4ea7625d38f8b3e
|
||||
size 385113
|
||||
@@ -1,9 +0,0 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v1.4.8 (SunOS)
|
||||
|
||||
iQCVAwUATxR/d5lgi5GaxT1NAQJ+UAP8DSWawG9Kl9DXzYytCGQ3j/T4UPoMbifV
|
||||
YDxJ/nPVnSEJjFMtbQiRcTjBYn1AsnZkolAN1kC10AhaqJ0GEymLrYQtxXH3xDzR
|
||||
xKp+ZCRQ4JawVBqWRkBP1xxp0Sy8uj+cUrnDveWu5/xBz6E0jq0X4xm+qsFjWsFb
|
||||
tb41De6aH0E=
|
||||
=UVcu
|
||||
-----END PGP SIGNATURE-----
|
||||
3
bsddb3-6.0.0.tar.gz
Normal file
3
bsddb3-6.0.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:158fad482c42e0e3ace712ebf474a250fb221c06c570da578a1632b80fe3d84c
|
||||
size 342086
|
||||
9
bsddb3-6.0.0.tar.gz.asc
Normal file
9
bsddb3-6.0.0.tar.gz.asc
Normal file
@@ -0,0 +1,9 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v1.4.13 (SunOS)
|
||||
|
||||
iQCVAwUAUcRPKJlgi5GaxT1NAQKaEAQAmaJtNOPhe4ZluTbBbYvH4ooOzYI33yMs
|
||||
D2/eeJsjLrJnhRxozm2cZH1ARMomo867+UZ8WR4DNLxayvPbi9h580MbnKHgQBi/
|
||||
DhRATXdF67zkYezrHWGCZHcbYIi6TZGDpjnp8b6axwCGG+lGdzImx+OeSCL7E9YK
|
||||
6EBo/ThYMUg=
|
||||
=dBOT
|
||||
-----END PGP SIGNATURE-----
|
||||
@@ -1,73 +0,0 @@
|
||||
From: Jan Engelhardt <jengelh@inai.de>
|
||||
Date: 2013-06-16 01:28:54.291797887 +0200
|
||||
|
||||
Have bsddb3 support BDB 6.0.
|
||||
|
||||
---
|
||||
Modules/_bsddb.c | 10 ++++++++++
|
||||
setup2.py | 2 +-
|
||||
setup3.py | 2 +-
|
||||
3 files changed, 12 insertions(+), 2 deletions(-)
|
||||
|
||||
Index: bsddb3-5.3.0/Modules/_bsddb.c
|
||||
===================================================================
|
||||
--- bsddb3-5.3.0.orig/Modules/_bsddb.c
|
||||
+++ bsddb3-5.3.0/Modules/_bsddb.c
|
||||
@@ -2659,10 +2659,15 @@ _default_cmp(const DBT *leftKey,
|
||||
return res;
|
||||
}
|
||||
|
||||
+#if DB_VERSION_MAJOR >= 6
|
||||
+static int _db_compareCallback(DB *db, const DBT *leftKey, const DBT *rightKey,
|
||||
+ size_t *locp)
|
||||
+#else
|
||||
static int
|
||||
_db_compareCallback(DB* db,
|
||||
const DBT *leftKey,
|
||||
const DBT *rightKey)
|
||||
+#endif
|
||||
{
|
||||
int res = 0;
|
||||
PyObject *args;
|
||||
@@ -2773,10 +2778,15 @@ DB_set_bt_compare(DBObject* self, PyObje
|
||||
RETURN_NONE();
|
||||
}
|
||||
|
||||
+#if DB_VERSION_MAJOR >= 6
|
||||
+static int _db_dupCompareCallback(DB *db, const DBT *leftKey,
|
||||
+ const DBT *rightKey, size_t *locp)
|
||||
+#else
|
||||
static int
|
||||
_db_dupCompareCallback(DB* db,
|
||||
const DBT *leftKey,
|
||||
const DBT *rightKey)
|
||||
+#endif
|
||||
{
|
||||
int res = 0;
|
||||
PyObject *args;
|
||||
Index: bsddb3-5.3.0/setup2.py
|
||||
===================================================================
|
||||
--- bsddb3-5.3.0.orig/setup2.py
|
||||
+++ bsddb3-5.3.0/setup2.py
|
||||
@@ -128,7 +128,7 @@ if os.name == 'posix':
|
||||
incdir = libdir = None
|
||||
if not BERKELEYDB_DIR and not BERKELEYDB_LIBDIR and not BERKELEYDB_INCDIR:
|
||||
# Supported Berkeley DB versions, in order of preference.
|
||||
- db_ver_list = ((5, 3), (5, 2), (5, 1), (5, 0),
|
||||
+ db_ver_list = ((6, 0), (5, 3), (5, 2), (5, 1), (5, 0),
|
||||
(4, 8), (4, 7), (4, 6), (4, 5), (4, 4), (4, 3))
|
||||
|
||||
# construct a list of paths to look for the header file in on
|
||||
Index: bsddb3-5.3.0/setup3.py
|
||||
===================================================================
|
||||
--- bsddb3-5.3.0.orig/setup3.py
|
||||
+++ bsddb3-5.3.0/setup3.py
|
||||
@@ -128,7 +128,7 @@ if os.name == 'posix':
|
||||
incdir = libdir = None
|
||||
if not BERKELEYDB_DIR and not BERKELEYDB_LIBDIR and not BERKELEYDB_INCDIR:
|
||||
# Supported Berkeley DB versions, in order of preference.
|
||||
- db_ver_list = ((5, 3), (5, 2), (5, 1), (5, 0),
|
||||
+ db_ver_list = ((6, 0), (5, 3), (5, 2), (5, 1), (5, 0),
|
||||
(4, 8), (4, 7), (4, 6), (4, 5), (4, 4), (4, 3))
|
||||
|
||||
# construct a list of paths to look for the header file in on
|
||||
@@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 22 17:16:27 UTC 2013 - jengelh@inai.de
|
||||
|
||||
- Update to new upstream release 6.0.0
|
||||
* Support for BDB 6.0.19
|
||||
* HEADS UP: If you are using "bsddb3._bsddb" in your code, for
|
||||
example for exceptions, change it to "bsddb3._db".
|
||||
- Removed bsddb3-db6.diff (rendered obsolete)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 15 23:24:15 UTC 2013 - jengelh@inai.de
|
||||
|
||||
|
||||
@@ -17,17 +17,18 @@
|
||||
|
||||
|
||||
Name: python-bsddb3
|
||||
Version: 5.3.0
|
||||
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
|
||||
Patch1: bsddb3-db6.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: db-devel
|
||||
BuildRequires: python-devel
|
||||
@@ -60,7 +61,6 @@ This package contains the development files for %{name}
|
||||
%prep
|
||||
%{?gpg_verify: %gpg_verify %{S:2}}
|
||||
%setup -q -n bsddb3-%{version}
|
||||
%patch -P 1 -p1
|
||||
sed -i "1d" Lib/bsddb/dbshelve.py # Fix non-executable bits
|
||||
|
||||
%build
|
||||
|
||||
Reference in New Issue
Block a user