|
|
|
1 |
commit 13eb70eba4cd8d9f0b811160336a9ff7f323e173 |
2 |
Author: Timo Aaltonen <tjaalton@debian.org> |
3 |
Date: Wed Aug 14 11:44:54 2019 +0300 |
4 |
|
5 |
Add python3 packages. |
6 |
|
7 |
diff --git debian/control debian/control |
8 |
index 769c93b..da9e2de 100644 |
9 |
--- debian/control |
10 |
+++ debian/control |
11 |
@@ -17,10 +17,15 @@ Build-Depends: debhelper (>> 9), |
12 |
libtevent-dev (>= 0.9.37~), |
13 |
pkg-config, |
14 |
python (>= 2.6.6-3), |
15 |
+ python3, |
16 |
python-all-dbg (>= 2.6.6-3), |
17 |
+ python3-all-dbg, |
18 |
python-all-dev (>= 2.6.6-3), |
19 |
+ python3-all-dev, |
20 |
python-talloc-dev (>= 2.1.14~), |
21 |
+ python3-talloc-dev, |
22 |
python-tdb (>= 1.3.16~), |
23 |
+ python3-tdb, |
24 |
xsltproc |
25 |
Homepage: http://ldb.samba.org/ |
26 |
Standards-Version: 4.0.0 |
27 |
@@ -122,3 +127,37 @@ Description: LDB Python bindings - development files |
28 |
database. |
29 |
. |
30 |
This package contains the development files for the Python bindings. |
31 |
+ |
32 |
+Package: python3-ldb |
33 |
+Pre-Depends: ${misc:Pre-Depends} |
34 |
+Section: python |
35 |
+Architecture: any |
36 |
+Depends: libldb1 (= ${binary:Version}), |
37 |
+ ${misc:Depends}, |
38 |
+ ${python3:Depends}, |
39 |
+ ${shlibs:Depends} |
40 |
+Provides: ${python:Provides} |
41 |
+Breaks: ${python:Breaks} |
42 |
+Description: Python 3 bindings for LDB |
43 |
+ ldb is a LDAP-like embedded database built on top of TDB. |
44 |
+ . |
45 |
+ This package contains the Python 3 bindings. |
46 |
+ |
47 |
+Package: python3-ldb-dev |
48 |
+Section: libdevel |
49 |
+Architecture: any |
50 |
+Multi-Arch: same |
51 |
+Depends: libc6-dev, |
52 |
+ libldb-dev, |
53 |
+ pkg-config, |
54 |
+ python3-ldb (= ${binary:Version}), |
55 |
+ ${misc:Depends} |
56 |
+Description: LDB Python 3 bindings - development files |
57 |
+ ldb is a LDAP-like embedded database built on top of TDB. |
58 |
+ . |
59 |
+ It is a fast database with an LDAP-like API designed |
60 |
+ to be used within an application. In some ways it can be seen as a |
61 |
+ intermediate solution between key-value pair databases and a real LDAP |
62 |
+ database. |
63 |
+ . |
64 |
+ This package contains the development files for the Python 3 bindings. |
65 |
diff --git debian/python3-ldb-dev.install debian/python3-ldb-dev.install |
66 |
new file mode 100644 |
67 |
index 0000000..ddf0e1a |
68 |
--- /dev/null |
69 |
+++ debian/python3-ldb-dev.install |
70 |
@@ -0,0 +1,3 @@ |
71 |
+usr/include/pyldb.h |
72 |
+usr/lib/*/libpyldb-util.cpython-*.so |
73 |
+usr/lib/*/pkgconfig/pyldb-util.cpython-*.pc |
74 |
diff --git debian/python3-ldb.install debian/python3-ldb.install |
75 |
new file mode 100644 |
76 |
index 0000000..b8d6112 |
77 |
--- /dev/null |
78 |
+++ debian/python3-ldb.install |
79 |
@@ -0,0 +1,2 @@ |
80 |
+usr/lib/*/libpyldb-util.cpython-*.so.* |
81 |
+usr/lib/python3* |
82 |
diff --git debian/rules debian/rules |
83 |
index a420954..4b37eb6 100755 |
84 |
--- debian/rules |
85 |
+++ debian/rules |
86 |
@@ -20,7 +20,7 @@ LDFLAGS += -Wl,--as-needed |
87 |
|
88 |
DESTDIR=$(CURDIR)/debian/tmp |
89 |
|
90 |
-export PYTHON=$(shell which `pyversions -d`) |
91 |
+export PYTHON=$(shell which python3) |
92 |
export PYTHON_CONFIG="$(PYTHON)-config" |
93 |
export WAF=$(PYTHON) ./buildtools/bin/waf |
94 |
|
95 |
@@ -28,15 +28,16 @@ DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) |
96 |
DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU) |
97 |
|
98 |
%: |
99 |
- dh $* --with python2 |
100 |
+ dh $* --with python2,python3 |
101 |
|
102 |
override_dh_auto_configure: |
103 |
- PYTHON="$(PYTHON)" PYTHON_CONFIG="$(PYTHON_CONFIG)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CPPFLAGS="$(CPPFLAGS)" \ |
104 |
+ PYTHON="" PYTHON_CONFIG="$(PYTHON_CONFIG)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CPPFLAGS="$(CPPFLAGS)" \ |
105 |
$(WAF) configure --prefix=/usr --disable-rpath-install \ |
106 |
--builtin-libraries=ccan,replace,tdb_compat \ |
107 |
--bundled-libraries=NONE,pytevent \ |
108 |
--minimum-library-version="$(shell ./debian/autodeps.py --minimum-library-version)" \ |
109 |
--libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \ |
110 |
+ --extra-python=/usr/bin/python2 \ |
111 |
--with-modulesdir=/usr/lib/$(DEB_HOST_MULTIARCH)/ldb/modules |
112 |
|
113 |
get-packaged-orig-source: |
114 |
@@ -80,4 +81,5 @@ override_dh_missing: |
115 |
|
116 |
override_dh_makeshlibs: |
117 |
dh_makeshlibs -Xldb.so -ppython-ldb -- -c4 |
118 |
+ dh_makeshlibs -Xldb. -ppython3-ldb -- -c4 |
119 |
dh_makeshlibs -X/usr/lib/$(DEB_HOST_MULTIARCH)/ldb -plibldb1 -- -c4 |