Package: libnl2 Version: 2.0-1 Severity: normal User: [email protected] Usertags: multiarch Tags: patch
Hi, The following patch converts libnl2 to multiarch directories and adds needed Multi-Arch: stanzas to control.in file. This package was really simple to convert, If only all libraries were this simple.. http://wiki.debian.org/Multiarch/Implementation Riku
diff -u libnl2-2.0/debian/control libnl2-2.0/debian/control --- libnl2-2.0/debian/control +++ libnl2-2.0/debian/control @@ -3,13 +3,15 @@ Priority: optional Maintainer: Heiko Stuebner <[email protected]> DM-Upload-Allowed: yes -Build-Depends: debhelper (>= 7), cdbs, doxygen, bison, flex, mscgen, graphviz +Build-Depends: debhelper (>= 8.1.3), cdbs (>=0.4.93), doxygen, bison, flex, mscgen, graphviz Standards-Version: 3.9.1 Homepage: http://people.suug.ch/~tgr/libnl/ Package: libnl2 Architecture: linux-any Section: libs +Pre-Depends: ${misc:Pre-Depends} +Multi-Arch: same Depends: ${misc:Depends}, ${shlibs:Depends} Description: library for dealing with netlink sockets This is a library for applications dealing with netlink sockets. @@ -22,6 +24,7 @@ Depends: libnl2 (= ${binary:Version}), ${misc:Depends} Conflicts: libnl-dev Suggests: libnl2-doc +Multi-Arch: same Description: development library and headers for libnl2 This is a library for applications dealing with netlink sockets. The library provides an interface for raw netlink messaging and various diff -u libnl2-2.0/debian/rules libnl2-2.0/debian/rules --- libnl2-2.0/debian/rules +++ libnl2-2.0/debian/rules @@ -6,7 +6,7 @@ DEB_DH_STRIP_ARGS := --dbg-package=libnl2-dbg DEB_DH_MAKESHLIBS_ARGS_libnl2 := -V"libnl2 (>= $(DEB_UPSTREAM_VERSION))" - +DEB_CONFIGURE_EXTRA_FLAGS += --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) build/libnl2-doc:: cd doc && $(MAKE) gendoc diff -u libnl2-2.0/debian/changelog libnl2-2.0/debian/changelog --- libnl2-2.0/debian/changelog +++ libnl2-2.0/debian/changelog @@ -1,3 +1,9 @@ +libnl2 (2.0-1.1) unstable; urgency=low + + * Convert to multiarch + + -- Riku Voipio <[email protected]> Mon, 26 Sep 2011 15:43:22 +0300 + libnl2 (2.0-1) unstable; urgency=low * New upstream release (Closes: #603765) diff -u libnl2-2.0/debian/libnl2.install libnl2-2.0/debian/libnl2.install --- libnl2-2.0/debian/libnl2.install +++ libnl2-2.0/debian/libnl2.install @@ -1 +1 @@ -debian/tmp/usr/lib/libnl*.so.* +debian/tmp/usr/lib/*/libnl*.so.* diff -u libnl2-2.0/debian/libnl2-dev.install libnl2-2.0/debian/libnl2-dev.install --- libnl2-2.0/debian/libnl2-dev.install +++ libnl2-2.0/debian/libnl2-dev.install @@ -2,2 +2,2 @@ -debian/tmp/usr/lib/pkgconfig/* -debian/tmp/usr/lib/libnl*.so +debian/tmp/usr/lib/*/pkgconfig/* +debian/tmp/usr/lib/*/libnl*.so

