[Pkg-voip-commits] [pjproject] 40/42: package python-pjproject
tzafrir at debian.org
tzafrir at debian.org
Sat Nov 1 17:13:57 UTC 2014
This is an automated email from the git hooks/post-receive script.
tzafrir pushed a commit to branch master-2.3
in repository pjproject.
commit 08c8bc631b8226970b930ffd1c5dec52d46401f9
Author: Tzafrir Cohen <tzafrir at debian.org>
Date: Sat Nov 1 13:34:32 2014 +0200
package python-pjproject
Add python bindings
---
debian/control | 16 ++++++++++++++++
debian/python-pjproject.install | 3 +++
debian/rules | 11 +++++++++--
3 files changed, 28 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index f1f8e91..a4f2e71 100644
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,7 @@ Uploaders: Jeremy Lainé <jeremy.laine at m4x.org>
Build-Depends: debhelper (>= 9),
autotools-dev,
python-dev,
+ dh-python,
dh-autoreconf,
libspeex-dev, libspeexdsp-dev,
portaudio19-dev,
@@ -207,3 +208,18 @@ Description: PJ Project - development headers
from desktops, embedded systems, to mobile handsets.
.
This packagee includes the development headers for PJ Project.
+
+Package: python-pjproject
+Architecture: any
+Multi-Arch: same
+Section: python
+Depends: ${misc:Depends}, ${misc:Pre-Depends}, ${shlibs:Depends}
+Description: PJ Project - python bindings
+ PJSIP (a.k.a PJProject) is a multimedia communication library written
+ in C language implementing standard based protocols such as SIP, SDP,
+ RTP, STUN, TURN, and ICE. It combines signaling protocol (SIP) with rich
+ multimedia framework and NAT traversal functionality into high level API
+ that is portable and suitable for almost any type of systems ranging
+ from desktops, embedded systems, to mobile handsets.
+ .
+ This packagee includes the python bindings.
diff --git a/debian/python-pjproject.install b/debian/python-pjproject.install
new file mode 100644
index 0000000..8c95c71
--- /dev/null
+++ b/debian/python-pjproject.install
@@ -0,0 +1,3 @@
+usr/lib/python2.7/dist-packages/*.py
+usr/lib/python2.7/dist-packages/*.so
+usr/lib/python2.7/dist-packages/*.egg-info
diff --git a/debian/rules b/debian/rules
index 24441d1..43b17fe 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,8 @@ export CFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS; dpkg-buildflags --get CFL
#CXXFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS; dpkg-buildflags --get CXXFLAGS)
export LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
+pybuild = pybuild -d pjsip-apps/src/python --pyver 2.7
+
# FIXME: the explicit and duplicate 'build' target is because of the
# existing directory 'build'. .PHONY doesn't seem to be good enough with
# the wildcard target. Any better way?
@@ -20,6 +22,7 @@ build:
override_dh_auto_clean:
# Handle the case where the source tree is not configured.
if test -f build.mak; then make distclean; fi
+ rm -rf .pybuild
# left-overs from the tests:
find tests/pjsua/ -name \*.pyc | xargs --no-run-if-empty rm
rm -rf tests/pjsua/logs/ tests/pjsua/wavs/
@@ -38,7 +41,7 @@ endif
override_dh_auto_build:
dh_auto_build -- dep all
- #pybuild -d pjsip-apps/src/python
+ $(pybuild)
# selftest target takes too long. Parts of it may also require hardware.
# Don't enable it by default. Allow running it manually.
@@ -47,11 +50,15 @@ run-tests:
LD_LIBRARY_PATH=`echo $$PWD/*/lib | tr ' ' :` make selftest
PC_FILE=$(CURDIR)/debian/tmp/usr/lib/*/pkgconfig/libpjproject.pc
+pythn_mod=$(CURDIR)/debian/tmp/usr/lib/python2.7/dist-packages/_pjsua.so
override_dh_auto_install:
dh_auto_install
# Disable it for now. This will wait (and be done properly) in
# later versions:
- #pybuild -d pjsip-apps/src/python --install
+ $(pybuild) --install
+ ma=`dpkg-architecture -qDEB_BUILD_MULTIARCH`; \
+ new_name=`echo $(pythn_mod) | sed -e "s|\.so$$|.$$ma&|"`; \
+ mv $(pythn_mod) $$new_name
# FIXME: the proper fix is in the generation of libpjproject.pc.in:
# PJ_INSTALL_CXXFLAGS (which is basically CFLAGS) should not be used
# as-is. Maybe it should just be avoided and a hand-crafted set
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/pjproject.git
More information about the Pkg-voip-commits
mailing list