Control: tags 687862 + patch
Control: tags 687863 + patch
Control: tags 687864 + patch

Hi Magnus

I had a look at these policy violation bugs. I have attached a debdiff
patch which should solve the issue. Hope it can help.

Do you have time to prepare the upload?

Regards,
Salvatore
diff -Nru libspf2-1.2.9/debian/changelog libspf2-1.2.9/debian/changelog
--- libspf2-1.2.9/debian/changelog	2012-01-22 22:45:04.000000000 +0100
+++ libspf2-1.2.9/debian/changelog	2012-09-23 08:42:14.000000000 +0200
@@ -1,3 +1,14 @@
+libspf2 (1.2.9-6.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Replace documentation directory with symlink.
+    Replace documentation directory for libspf2-dev, libspf2-2-dbg and
+    spfquery with symlink. When updating from Squeeze to Wheezy the
+    directories are empty in violation of Debian policy 12.5.
+    (Closes: #687862, #687863, #687864)
+
+ -- Salvatore Bonaccorso <car...@debian.org>  Sat, 22 Sep 2012 13:37:17 +0200
+
 libspf2 (1.2.9-6) unstable; urgency=low
 
   * Rename ipv6-buffer-miscalculation.patch ipv6-bugs.patch. Include
diff -Nru libspf2-1.2.9/debian/libspf2-2-dbg.postinst libspf2-1.2.9/debian/libspf2-2-dbg.postinst
--- libspf2-1.2.9/debian/libspf2-2-dbg.postinst	1970-01-01 01:00:00.000000000 +0100
+++ libspf2-1.2.9/debian/libspf2-2-dbg.postinst	2012-09-23 08:42:14.000000000 +0200
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+# Replace documentation directory with symlink
+docdir="/usr/share/doc/libspf2-2-dbg"
+if [ -d $docdir ] && [ ! -L $docdir ]; then
+    if rmdir $docdir 2>/dev/null; then
+        ln -sf libspf2-2 $docdir
+    fi
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff -Nru libspf2-1.2.9/debian/libspf2-dev.postinst libspf2-1.2.9/debian/libspf2-dev.postinst
--- libspf2-1.2.9/debian/libspf2-dev.postinst	1970-01-01 01:00:00.000000000 +0100
+++ libspf2-1.2.9/debian/libspf2-dev.postinst	2012-09-23 08:42:14.000000000 +0200
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+# Replace documentation directory with symlink
+docdir="/usr/share/doc/libspf2-dev"
+if [ -d $docdir ] && [ ! -L $docdir ]; then
+    if rmdir $docdir 2>/dev/null; then
+        ln -sf libspf2-2 $docdir
+    fi
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff -Nru libspf2-1.2.9/debian/spfquery.postinst libspf2-1.2.9/debian/spfquery.postinst
--- libspf2-1.2.9/debian/spfquery.postinst	2008-03-04 23:30:53.000000000 +0100
+++ libspf2-1.2.9/debian/spfquery.postinst	2012-09-23 08:42:14.000000000 +0200
@@ -14,4 +14,12 @@
     ;;
 esac
 
+# Replace documentation directory with symlink
+docdir="/usr/share/doc/spfquery"
+if [ -d $docdir ] && [ ! -L $docdir ]; then
+    if rmdir $docdir 2>/dev/null; then
+        ln -sf libspf2-2 $docdir
+    fi
+fi
+
 #DEBHELPER#

Attachment: signature.asc
Description: Digital signature

Reply via email to