@@ -2,7 +2,7 @@
Section: devel
Priority: optional
Maintainer: Paul Martin <pm@debian.org>
-Build-Depends: debhelper (>> 7), gettext, quilt
+Build-Depends: debhelper (>> 8.1.3), gettext, quilt
Homepage: http://rpm5.org/
Standards-Version: 3.8.4
@@ -11,6 +11,8 @@
Section: libs
Priority: important
Depends: ${shlibs:Depends}, ${misc:Depends}
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
Conflicts: popt, libpopt-dev (<= 1.4-1), rpm (<= 4.0.2-3)
Replaces: popt
Description: lib for parsing cmdline parameters
@@ -28,6 +30,7 @@
Section: libdevel
Priority: optional
Depends: libc6-dev | libc-dev, libpopt0 (= ${binary:Version}), ${misc:Depends}
+Multi-Arch: same
Conflicts: popt
Replaces: popt
Description: lib for parsing cmdline parameters - development files
@@ -1,2 +0,0 @@
-debian/tmp/usr/lib*/libpopt.so.* lib
-debian/tmp/usr/share/locale/*/LC_MESSAGES/popt.mo
@@ -0,0 +1,2 @@
+debian/tmp/usr/lib/DEB_HOST_MULTIARCH/libpopt.so.* lib/DEB_HOST_MULTIARCH
+debian/tmp/usr/share/locale/*/LC_MESSAGES/popt.mo
@@ -1 +0,0 @@
-lib/libpopt.so.0.0.0 lib/libpopt.so.0
@@ -0,0 +1 @@
+lib/DEB_HOST_MULTIARCH/libpopt.so.0.0.0 lib/DEB_HOST_MULTIARCH/libpopt.so.0
@@ -1,5 +1,5 @@
-debian/tmp/usr/lib*/libpopt.so usr/lib
-debian/tmp/usr/lib*/libpopt.la usr/lib
-debian/tmp/usr/lib*/libpopt.a usr/lib
+debian/tmp/usr/lib/*/libpopt.so
+debian/tmp/usr/lib/*/libpopt.la
+debian/tmp/usr/lib/*/libpopt.a
debian/tmp/usr/share/man/man3/popt.3 usr/share/man/man3
debian/tmp/usr/include/popt.h usr/include
@@ -1 +0,0 @@
-lib/libpopt.so.0 usr/lib/libpopt.so
@@ -0,0 +1 @@
+lib/DEB_HOST_MULTIARCH/libpopt.so.0 usr/lib/DEB_HOST_MULTIARCH/libpopt.so
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+DEB_HOST_MULTIARCH=`dpkg-architecture -qDEB_HOST_MULTIARCH`
+
+for file in debian/*.in;
+do
+ target=`echo $file|sed -e 's/...$//'`
+ sed -e s/DEB_HOST_MULTIARCH/$DEB_HOST_MULTIARCH/g $file > $target
+done
@@ -7,6 +7,8 @@
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
else
@@ -50,7 +52,7 @@
mkdir $(objdir)
# Add here commands to configure the package.
cd $(objdir) && \
- ../configure --prefix=/usr --mandir=/usr/share/man --enable-shared $(CROSS)
+ ../configure --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) --prefix=/usr --mandir=/usr/share/man --enable-shared $(CROSS)
touch $@
configure-udeb-stamp:
@@ -124,6 +126,7 @@
dh_testdir
dh_testroot
+ sh debian/preprocess
dh_install --list-missing
# dh_installdebconf
dh_installdocs