[pmg-devel] [PATCH spamassassin 5/9] buildsys: add explicit dsc target

Stoiko Ivanov s.ivanov at proxmox.com
Mon Jan 20 19:37:31 CET 2020


and check the .dsc with lintian

Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 53dc412..bf0c1b7 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,7 @@ include /usr/share/dpkg/pkg-info.mk
 OPKGNAME = Mail-SpamAssassin-${DEB_VERSION_UPSTREAM}
 NPKGNAME = proxmox-spamassassin_${DEB_VERSION_UPSTREAM}
 DEB = proxmox-spamassassin_${DEB_VERSION_UPSTREAM_REVISION}_amd64.deb
+DSC = proxmox-spamassassin_${DEB_VERSION_UPSTREAM_REVISION}.dsc
 
 EXTRA_RULES = KAM.cf
 
@@ -30,9 +31,14 @@ SA_UPDATE_GPG_DIR = .sa-update-gpghome
 deb: ${DEB}
 
 ${DEB}: ${NPKGNAME}
-	cd ${NPKGNAME}; dpkg-buildpackage -us -uc -rfakeroot
+	cd ${NPKGNAME}; dpkg-buildpackage -b -us -uc -rfakeroot
 	lintian ${DEB}
 
+dsc: ${DSC}
+
+${DSC}: ${NPKGNAME}
+	cd ${NPKGNAME}; dpkg-buildpackage -S -us -uc -rfakeroot
+	lintian ${DSC}
 
 ${NPKGNAME}.orig.tar.gz: ${OPKGNAME}.tar.gz
 	rm -rf ${NPKGNAME}
-- 
2.20.1




More information about the pmg-devel mailing list