diff -Nru aspell-sv-0.51-0/debian/changelog aspell-sv-0.51-0/debian/changelog --- aspell-sv-0.51-0/debian/changelog 2010-08-03 22:22:28.000000000 +0000 +++ aspell-sv-0.51-0/debian/changelog 2011-09-17 12:31:21.000000000 +0000 @@ -1,3 +1,11 @@ +aspell-sv (0.51-0-3) unstable; urgency=low + + * Don't include /var/lib/aspell/sv.{compat,rws} in package; instead let + them be created in postinst and removed in postrm (Closes: #638738). + * Bump Standards-Version to 3.9.2. + + -- Magnus Holmgren Sat, 17 Sep 2011 14:31:21 +0200 + aspell-sv (0.51-0-2) unstable; urgency=low * New maintainer e-mail address. diff -Nru aspell-sv-0.51-0/debian/control aspell-sv-0.51-0/debian/control --- aspell-sv-0.51-0/debian/control 2010-08-03 22:22:31.000000000 +0000 +++ aspell-sv-0.51-0/debian/control 2011-09-17 12:30:15.000000000 +0000 @@ -3,13 +3,13 @@ Priority: optional Maintainer: Magnus Holmgren Build-Depends: debhelper (>= 7), cdbs (>= 0.4.0), dictionaries-common-dev (>= 0.9.1) -Standards-Version: 3.9.1 +Standards-Version: 3.9.2 Homepage: http://aspell.net/ Package: aspell-sv Architecture: all Depends: aspell (>= 0.60.3-3), dictionaries-common (>= 0.49.2), ${misc:Depends} Provides: aspell-dictionary -Description: The Swedish dictionary for GNU aspell +Description: Swedish dictionary for GNU aspell This is the Swedish dictionaries, to be used with aspell to check and correct spelling in Swedish texts. diff -Nru aspell-sv-0.51-0/debian/postinst aspell-sv-0.51-0/debian/postinst --- aspell-sv-0.51-0/debian/postinst 1970-01-01 00:00:00.000000000 +0000 +++ aspell-sv-0.51-0/debian/postinst 2011-09-17 12:00:10.000000000 +0000 @@ -0,0 +1,20 @@ +#!/bin/sh -e + +case "$1" in + configure) + # register with install-dictcommon-aspell + touch /var/lib/aspell/sv.compat + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff -Nru aspell-sv-0.51-0/debian/postrm aspell-sv-0.51-0/debian/postrm --- aspell-sv-0.51-0/debian/postrm 1970-01-01 00:00:00.000000000 +0000 +++ aspell-sv-0.51-0/debian/postrm 2011-09-17 12:08:48.000000000 +0000 @@ -0,0 +1,19 @@ +#!/bin/sh -e + +case "$1" in + remove|disappear) + rm -f /var/lib/aspell/sv.compat + # remove generated files since update-dictcommon-aspell does not + rm -f /var/lib/aspell/sv.rws + ;; + + purge|upgrade|failed-upgrade|abort-install|abort-upgrade) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# diff -Nru aspell-sv-0.51-0/debian/rules aspell-sv-0.51-0/debian/rules --- aspell-sv-0.51-0/debian/rules 2007-09-07 17:24:46.000000000 +0000 +++ aspell-sv-0.51-0/debian/rules 2011-09-17 12:10:49.000000000 +0000 @@ -11,11 +11,8 @@ for f in *.cwl; do \ gzip -9 -c "$$f" > "$(DEB_DESTDIR)/usr/share/aspell/"$$f".gz"; \ WL=`echo $$f | sed 's/\.cwl$$//'`; \ - touch "$(DEB_DESTDIR)/var/lib/aspell/$$WL.rws"; \ dh_link "var/lib/aspell/$$WL.rws" "usr/lib/aspell/$$WL.rws"; \ echo "$$WL" >> "$(DEB_DESTDIR)/usr/share/aspell/$(DICT_LANG).contents"; \ done - touch $(DEB_DESTDIR)/var/lib/aspell/$(DICT_LANG).compat - installdeb-aspell