]> git.proxmox.com Git - librados2-perl.git/commitdiff
buildsys: generate perlapi dependency version
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 7 Feb 2017 14:30:20 +0000 (15:30 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 7 Feb 2017 14:30:20 +0000 (15:30 +0100)
Makefile
control.in

index 0c9d6e497254d923b1caac8618112c069c586688..d828515e206d8c27a235c0d624f94fd234da47bd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@ PERLDIR=${PREFIX}/share/perl5
 
 PERL_ARCHLIB := `perl -MConfig -e 'print $$Config{archlib};'`
 PERL_INSTALLVENDORARCH := `perl -MConfig -e 'print $$Config{installvendorarch};'`
+PERL_APIVER := `perl -MConfig -e 'print $$Config{debian_abi}//$$Config{version};'`
 
 CFLAGS= -shared -fPIC -O2 -Wall -Wl,-z,relro -I$(PERL_ARCHLIB)/CORE -DXS_VERSION=\"1.0\"
 CFLAGS= -shared -fPIC -O2 -Werror -Wtype-limits -Wall -Wl,-z,relro \
@@ -55,7 +56,7 @@ ${DEB}:
        mkdir debian
        make DESTDIR=${CURDIR}/debian install
        install -d -m 0755 debian/DEBIAN
-       sed -e s/@@VERSION@@/${VERSION}/ -e s/@@PKGRELEASE@@/${PKGREL}/ -e s/@@ARCH@@/${ARCH}/ <control.in >debian/DEBIAN/control
+       sed -e s/@@VERSION@@/${VERSION}/ -e s/@@PKGRELEASE@@/${PKGREL}/ -e s/@@ARCH@@/${ARCH}/ -e "s|@PERLAPI@|perlapi-$(PERL_APIVER)|g" <control.in >debian/DEBIAN/control
        install -D -m 0644 copyright debian/${DOCDIR}/copyright
        install -m 0644 changelog.Debian debian/${DOCDIR}/
        gzip -9 -n debian/${DOCDIR}/changelog.Debian
index 73a4216ca547088399971a761c65c2c29ea180d1..c2dc77ec27447fc0f40e7d88cf5df2f2bd113d56 100644 (file)
@@ -3,7 +3,7 @@ Version: @@VERSION@@-@@PKGRELEASE@@
 Section: perl
 Priority: optional
 Architecture: @@ARCH@@
-Depends: libc6 (>= 2.2.5), perl (>= 5.20.1-5), perlapi-5.20.0, librados2 (>= 0.67.5), libpve-access-control
+Depends: libc6 (>= 2.2.5), perl (>= 5.20.1-5), @PERLAPI@, librados2 (>= 0.67.5), libpve-access-control
 Maintainer: Proxmox Support Team <support@proxmox.com>
 Description: Perl bindings for librados
  This package contains librados perl binding used by Proxmox VE.