debian: add python3 support
This commit is contained in:
parent
2c5034d240
commit
945fb5b207
17
control.in
17
control.in
|
@ -2,8 +2,9 @@ Source: lasso
|
|||
Priority: optional
|
||||
Section: libs
|
||||
Maintainer: Frederic Peters <fpeters@debian.org>
|
||||
Build-Depends: debhelper (>= 5.0.37.2), libxml2-dev, libxslt1-dev, libxmlsec1-dev, libxmlsec1-openssl, libglib2.0-dev, python-all-dev (>= 2.3.5-11), libexpat1-dev, fastjar, php5-dev, python-lxml, chrpath, python-six
|
||||
XS-Python-Version: all
|
||||
Build-Depends: debhelper (>= 5.0.37.2), libxml2-dev, libxslt1-dev, libxmlsec1-dev, libxmlsec1-openssl, libglib2.0-dev, python-all-dev (>= 2.6), python3-all-dev (>= 3.2), libexpat1-dev, fastjar, php5-dev, python-lxml, chrpath, python-six
|
||||
X-Python-Version: >= 2.6
|
||||
X-Python3-Version: >= 3.2
|
||||
Standards-Version: 3.8.0
|
||||
Homepage: http://lasso.entrouvert.org
|
||||
|
||||
|
@ -47,6 +48,18 @@ Description: Library for Liberty Alliance and SAML protocols - Python bindings
|
|||
This package contains Python bindings for liblasso, needed to use lasso
|
||||
in Python applications.
|
||||
|
||||
Package: python3-lasso
|
||||
Section: python
|
||||
Architecture: any
|
||||
Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:depends}
|
||||
Description: Library for Liberty Alliance and SAML protocols - Python bindings
|
||||
Lasso is an implementation of Liberty Alliance and related protocols, for
|
||||
network identity federations, single sign-on and other web services protocols.
|
||||
The main specifications implemented by the library are ID-FF, ID-WSF and SAML.
|
||||
.
|
||||
This package contains Python bindings for liblasso, needed to use lasso
|
||||
in Python applications.
|
||||
|
||||
#JAVA#Package: liblasso-java
|
||||
#JAVA#Section: libs
|
||||
#JAVA#Architecture: amd64 armel i386 ia64 mips mipsel powerpc ppc64 s390 sparc kfreebsd-i386 kfreebsd-amd64
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
debian/tmp/usr/lib/python3*/dist-packages/*.py
|
||||
debian/tmp/usr/lib/python3*/dist-packages/*.so
|
23
rules
23
rules
|
@ -6,6 +6,7 @@
|
|||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
include /usr/share/python/python.mk
|
||||
|
||||
# These are used for cross-compiling and for saving the configure script
|
||||
# from having to guess our platform (since we know it already)
|
||||
|
@ -26,6 +27,7 @@ endif
|
|||
|
||||
PYDEF := $(shell pyversions -vd)
|
||||
PYVERS := $(shell pyversions -vr debian/control)
|
||||
PY3VERS := $(shell py3versions -vr '>= 3.0')
|
||||
OTHERPYVERS := $(filter-out $(PYDEF), $(PYVERS))
|
||||
|
||||
CFLAGS = `dpkg-buildflags --get CFLAGS`
|
||||
|
@ -49,11 +51,8 @@ CONFIGURE_ARGS := \
|
|||
--enable-tests=no \
|
||||
--disable-gtk-doc \
|
||||
--enable-perl \
|
||||
--disable-csharp \
|
||||
--disable-php4 \
|
||||
--with-php5-config-dir=/etc/php5/mods-available/
|
||||
|
||||
|
||||
ifeq ($(with_java),yes)
|
||||
CONFIGURE_ARGS += --enable-java
|
||||
else
|
||||
|
@ -82,6 +81,14 @@ build-stamp: config.status
|
|||
$(MAKE) -C bindings/python$$v; \
|
||||
done
|
||||
|
||||
for v in $(PY3VERS); do \
|
||||
rm -rf bindings/python$$v; \
|
||||
cp -a bindings/python bindings/python$$v; \
|
||||
sed "s/$(PYDEF)/$$v/g" bindings/python/Makefile > bindings/python$$v/Makefile; \
|
||||
$(MAKE) -C bindings/python$$v clean; \
|
||||
$(MAKE) -C bindings/python$$v; \
|
||||
done
|
||||
|
||||
touch build-stamp
|
||||
|
||||
clean:
|
||||
|
@ -108,6 +115,10 @@ endif
|
|||
rm -rf bindings/python$$v; \
|
||||
done
|
||||
|
||||
for v in $(PY3VERS); do \
|
||||
rm -rf bindings/python$$v; \
|
||||
done
|
||||
|
||||
rm -f config.log
|
||||
|
||||
dh_clean
|
||||
|
@ -125,6 +136,9 @@ install: build
|
|||
for v in $(OTHERPYVERS); do \
|
||||
$(MAKE) -C bindings/python$$v install DESTDIR=$(CURDIR)/debian/tmp; \
|
||||
done
|
||||
for v in $(PY3VERS); do \
|
||||
$(MAKE) -C bindings/python$$v install DESTDIR=$(CURDIR)/debian/tmp; \
|
||||
done
|
||||
|
||||
mkdir $(CURDIR)/debian/tmp/usr/lib/jni/
|
||||
if [ -e $(CURDIR)/debian/tmp/usr/lib/java ]; then \
|
||||
|
@ -153,6 +167,7 @@ binary-arch: build install
|
|||
dh_strip
|
||||
dh_perl
|
||||
dh_python2 -ppython-lasso
|
||||
dh_python3 -ppython3-lasso
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
dh_makeshlibs -a -V
|
||||
|
@ -164,4 +179,4 @@ binary-arch: build install
|
|||
dh_builddeb
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install
|
||||
.PHONY: build clean binary-indep binary-arch binary install
|
||||
|
|
Loading…
Reference in New Issue