diff -Nru libcec-3.1.0+dfsg1/debian/changelog libcec-3.1.0+dfsg1/debian/changelog --- libcec-3.1.0+dfsg1/debian/changelog 2016-03-07 20:54:01.000000000 +0000 +++ libcec-3.1.0+dfsg1/debian/changelog 2016-03-10 01:09:39.000000000 +0000 @@ -1,3 +1,10 @@ +libcec (3.1.0+dfsg1-4+rpi1) stretch-staging; urgency=medium + + * Add symbols file hack for raspbian. + * Fix clean target. + + -- Peter Michael Green Thu, 10 Mar 2016 00:53:26 +0000 + libcec (3.1.0+dfsg1-4) unstable; urgency=medium * Fall back to use libudev.pc when udev.pc is not usable (Closes: #817051) diff -Nru libcec-3.1.0+dfsg1/debian/rules libcec-3.1.0+dfsg1/debian/rules --- libcec-3.1.0+dfsg1/debian/rules 2016-03-07 20:54:01.000000000 +0000 +++ libcec-3.1.0+dfsg1/debian/rules 2016-03-10 01:11:06.000000000 +0000 @@ -6,6 +6,7 @@ dh $@ --with python2 override_dh_auto_configure: + sed -i 's/(arch=!armel)/(optional=raspbian)/' debian/libcec3.symbols ln -s /usr/include/cec-platform include/platform && \ dh_auto_configure -- -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=1 -DCMAKE_INSTALL_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) @@ -14,3 +15,13 @@ mv debian/tmp/usr/lib/pkgconfig debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/ rm debian/tmp/usr/bin/cec-client mv debian/tmp/usr/bin/cec-client-* debian/tmp/usr/bin/cec-client + +override_dh_auto_clean: + dh_auto_clean + rm -f include/platform + rm -f include/version.h + rm -f src/cec-client/env.h + rm -f src/cecc-client/env.h + rm -f src/libcec/env.h + rm -f src/libcec/libcec.pc + sed -i 's/(optional=raspbian)/(arch=!armel)/' debian/libcec3.symbols