From 15fd447eabc06b2063932835ce051cdf82fdccc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Schneider?= Date: Wed, 25 Feb 2015 19:11:38 +0100 Subject: [PATCH] perl; fix build for Jessie --- liblasso-perl.install | 3 --- liblasso-perl.install.in | 2 ++ rules | 6 +++++- 3 files changed, 7 insertions(+), 4 deletions(-) delete mode 100644 liblasso-perl.install create mode 100644 liblasso-perl.install.in diff --git a/liblasso-perl.install b/liblasso-perl.install deleted file mode 100644 index e8063272..00000000 --- a/liblasso-perl.install +++ /dev/null @@ -1,3 +0,0 @@ -debian/tmp/usr/lib/perl5/Lasso.pm -debian/tmp/usr/lib/perl5/auto/Lasso/Lasso.bs -debian/tmp/usr/lib/perl5/auto/Lasso/Lasso.so diff --git a/liblasso-perl.install.in b/liblasso-perl.install.in new file mode 100644 index 00000000..e7b84f0c --- /dev/null +++ b/liblasso-perl.install.in @@ -0,0 +1,2 @@ +${archlib}/auto/Lasso/* +${archlib}/*.pm diff --git a/rules b/rules index 55669067..db06d7fd 100644 --- a/rules +++ b/rules @@ -20,6 +20,8 @@ PYVERS := $(shell pyversions -vr debian/control) PY3VERS := $(shell py3versions -vr '>= 3.0') OTHERPYVERS := $(filter-out $(PYDEF), $(PYVERS)) +PERLARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}') + CFLAGS = `dpkg-buildflags --get CFLAGS` CFLAGS += -Wall LDFLAGS = `dpkg-buildflags --get LDFLAGS` @@ -107,6 +109,8 @@ install: build dh_clean -k dh_installdirs + sed -e 's,$${archlib},$(PERLARCHLIB),g' debian/liblasso-perl.install.in > debian/liblasso-perl.install + # Add here commands to install the package into debian/tmp $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp \ GACUTIL="/usr/bin/gacutil -root $(CURDIR)/debian/tmp/usr/lib" @@ -131,7 +135,7 @@ binary-arch: build install dh_installexamples -XCVS dh_installman dh_install - chrpath -d $(CURDIR)/debian/liblasso-perl/usr/lib/perl5/auto/Lasso/Lasso.so + chrpath -d $(CURDIR)/debian/liblasso-perl$(PERLARCHLIB)/auto/Lasso/Lasso.so dh_link dh_strip dh_perl