Package: src:ucpp
Version: 1.3.2-1
Tags: patch
User: d...@debian.org
Usertags: multiarch

please clean up the package build and multiarchify the library package. A patch is attached.

  * Bump standards and policy version.
  * Build-depend on dh-exec.
  * Enable parallel builds.
  * Build with hardening flags.
  * Make the library package M-A: same.

diff -Nru ucpp-1.3.2/debian/compat ucpp-1.3.2/debian/compat
--- ucpp-1.3.2/debian/compat	2014-07-01 05:37:08.000000000 +0000
+++ ucpp-1.3.2/debian/compat	2016-02-22 13:24:29.000000000 +0000
@@ -1 +1 @@
-8
+9
diff -Nru ucpp-1.3.2/debian/control ucpp-1.3.2/debian/control
--- ucpp-1.3.2/debian/control	2014-07-07 21:07:50.000000000 +0000
+++ ucpp-1.3.2/debian/control	2016-02-22 13:27:07.000000000 +0000
@@ -2,8 +2,8 @@
 Section: interpreters
 Priority: extra
 Maintainer: Rene Engelhard <r...@debian.org>
-Build-Depends: debhelper (>= 8.0.0)
-Standards-Version: 3.9.3
+Build-Depends: debhelper (>= 9), dh-exec
+Standards-Version: 3.9.7
 Homepage: http://http://code.google.com/p/ucpp/
 
 Package: ucpp
@@ -16,6 +16,7 @@
 Package: libucpp-dev
 Section: libdevel
 Architecture: any
+Multi-Arch: same
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: embeddable, quick and light C preprocessor -- development
  A C preprocessor designed to be embeddable, quick, light and fully compliant
diff -Nru ucpp-1.3.2/debian/libucpp-dev.install ucpp-1.3.2/debian/libucpp-dev.install
--- ucpp-1.3.2/debian/libucpp-dev.install	2014-07-01 05:43:17.000000000 +0000
+++ ucpp-1.3.2/debian/libucpp-dev.install	2016-02-22 13:25:03.000000000 +0000
@@ -1,4 +1,5 @@
-./libucpp.a usr/lib
+#! /usr/bin/dh-exec
+./libucpp.a usr/lib/${DEB_HOST_MULTIARCH}
 ucppi.h usr/include/ucpp
 tune.h usr/include/ucpp
 nhash.h usr/include/ucpp
diff -Nru ucpp-1.3.2/debian/rules ucpp-1.3.2/debian/rules
--- ucpp-1.3.2/debian/rules	2014-07-01 05:44:51.000000000 +0000
+++ ucpp-1.3.2/debian/rules	2016-02-22 13:31:27.000000000 +0000
@@ -9,6 +9,10 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+export DEB_CFLAGS_MAINT_APPEND = -W -Wall -ansi
+
 %:
-	dh $@ 
+	dh $@ --parallel
 
+override_dh_auto_build:
+	dh_auto_build -- CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"

Reply via email to