]> git.proxmox.com Git - librados2-perl.git/commitdiff
bsys: add dsc target
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 10 Dec 2018 16:42:31 +0000 (17:42 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 11 Dec 2018 09:26:32 +0000 (10:26 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 8322a562e940cd33e0fea7eafea8711455583cfb..d3be0d3c8ac3041ec2c46eb2b078cf13a49ff8f2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -29,6 +29,7 @@ ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 GITVERSION:=$(shell cat .git/refs/heads/master)
 
 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
+DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc
 
 all:
 
@@ -60,9 +61,19 @@ ${DEB}:
        cd build; dpkg-buildpackage -b -us -uc
        lintian ${DEB}
 
+.PHONY: dsc
+dsc: ${DSC}
+${DSC}:
+       rm -rf build
+       rsync -a * build
+       sed -e "s|@PERLAPI@|perlapi-$(PERL_APIVER)|g" debian/control.in >build/debian/control
+       echo "git clone git://git.proxmox.com/git/librados2-perl.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
+       cd build; dpkg-buildpackage -S -us -uc -d -nc
+       lintian ${DSC}
+
 .PHONY: clean
 clean:         
-       rm -rf *~ build *.deb *.changes *.buildinfo
+       rm -rf *~ build *.deb *.changes *.buildinfo *.dsc *.tar.gz
        find . -name '*~' -exec rm {} ';'
 
 .PHONY: distclean