[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#206126: doesn't follow policy; should go to new myspell policy



Package: bgoffice
Version: unavailable; reported 2003-05-14
Severity: serious

Hi,

This patch converts myhungarian to the new myspell policy
(it is then myspell-bg) and makes it following the policy and
therefore actually useful because is is then actually usable to
OpenOffice.org without manual hackery.

Please apply.
(please use patch -E when applying the patch through patch or
when you are doing it manually please rm the myhungarian files
since patch doesn't do it automatically in some cases)

Regards,

René

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux frodo 2.4.20-apm-rene #1 Sat May 10 00:47:56 CEST 2003 i686
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro

 magyarispell (0.94-2) unstable; urgency=low
 
   * Gunnar's fixes works (closes: #201174)
diff -urN magyarispell-0.94-old/debian/control magyarispell-0.94/debian/control
--- magyarispell-0.94-old/debian/control	2003-08-08 12:38:15.000000000 +0200
+++ magyarispell-0.94/debian/control	2003-08-08 13:27:50.000000000 +0200
@@ -14,9 +14,14 @@
  NEMETH Laszlo <nemethl@gyorsposta.hu>
  home: http://www.szofi.hu/gnu/magyarispell
 
-Package: myhungarian
+Package: myspell-hu
 Architecture: all
-Description: The Hungarian dictionary for OpenOffice.
- This is the Hungarian dictionary made by
- NEMETH Laszlo <nemethl@gyorsposta.hu>
- home: http://www.szofi.hu/gnu/magyarispell
+Depends: dictionaries-common (>= 0.10) | openoffice.org-updatedicts
+Suggests: openoffice.org
+Conflicts: openoffice.org (<= 1.0.3-2), myhungarian
+Provides: myspell-dictionary, myspell-dictionary-hu, myhungarian
+Replaces: myhungarian
+Description: The Hungarian dictionary for myspell.
+ This is the Hungarian dictionary for use with the myspell spellchecker
+ which is currently used within OpenOffice.org and the mozilla
+ spellchecker.
diff -urN magyarispell-0.94-old/debian/myhungarian.dirs magyarispell-0.94/debian/myhungarian.dirs
--- magyarispell-0.94-old/debian/myhungarian.dirs	2003-08-08 12:38:15.000000000 +0200
+++ magyarispell-0.94/debian/myhungarian.dirs	1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-usr/share/myhungarian
diff -urN magyarispell-0.94-old/debian/myhungarian.docs magyarispell-0.94/debian/myhungarian.docs
--- magyarispell-0.94-old/debian/myhungarian.docs	2003-08-08 12:38:15.000000000 +0200
+++ magyarispell-0.94/debian/myhungarian.docs	1970-01-01 01:00:00.000000000 +0100
@@ -1,4 +0,0 @@
-README
-GYIK
-OLVASSEL
-TODO
diff -urN magyarispell-0.94-old/debian/myhungarian.files magyarispell-0.94/debian/myhungarian.files
--- magyarispell-0.94-old/debian/myhungarian.files	2003-08-08 12:38:15.000000000 +0200
+++ magyarispell-0.94/debian/myhungarian.files	1970-01-01 01:00:00.000000000 +0100
@@ -1,2 +0,0 @@
-usr/share/myhungarian/hu_HU.dic
-usr/share/myhungarian/hu_HU.aff
diff -urN magyarispell-0.94-old/debian/myhungarian.links magyarispell-0.94/debian/myhungarian.links
--- magyarispell-0.94-old/debian/myhungarian.links	2003-08-08 12:38:15.000000000 +0200
+++ magyarispell-0.94/debian/myhungarian.links	1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-usr/share/myhungarian/hu_HU.aff usr/lib/myspell/hu_HU.aff
-usr/share/myhungarian/hu_HU.dic usr/lib/myspell/hu_HU.dic
-usr/lib/myspell/hu_HU.aff usr/lib/myspell/magyar.aff
-usr/lib/myspell/hu_HU.dic usr/lib/myspell/magyar.dic
-usr/lib/myspell/hu_HU.aff usr/lib/myspell/hungarian.aff
-usr/lib/myspell/hu_HU.dic usr/lib/myspell/hungarian.dic
diff -urN magyarispell-0.94-old/debian/myhungarian.postinst magyarispell-0.94/debian/myhungarian.postinst
--- magyarispell-0.94-old/debian/myhungarian.postinst	2003-08-08 12:38:15.000000000 +0200
+++ magyarispell-0.94/debian/myhungarian.postinst	1970-01-01 01:00:00.000000000 +0100
@@ -1,47 +0,0 @@
-#! /bin/sh
-# postinst script for magyarispell
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# summary of how this script can be called:
-#        * <postinst> `configure' <most-recently-configured-version>
-#        * <old-postinst> `abort-upgrade' <new version>
-#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#          <new-version>
-#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#          <failed-install-package> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see /usr/doc/packaging-manual/
-#
-# quoting from the policy:
-#     Any necessary prompting should almost always be confined to the
-#     post-installation script, and should be protected with a conditional
-#     so that unnecessary prompting doesn't happen if a package's
-#     installation fails and the `postinst' is called with `abort-upgrade',
-#     `abort-remove' or `abort-deconfigure'.
-
-case "$1" in
-    configure)
-
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-
-
diff -urN magyarispell-0.94-old/debian/myhungarian.prerm magyarispell-0.94/debian/myhungarian.prerm
--- magyarispell-0.94-old/debian/myhungarian.prerm	2003-08-08 12:38:15.000000000 +0200
+++ magyarispell-0.94/debian/myhungarian.prerm	1970-01-01 01:00:00.000000000 +0100
@@ -1,36 +0,0 @@
-#! /bin/sh
-# prerm script for magyarispell
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# summary of how this script can be called:
-#        * <prerm> `remove'
-#        * <old-prerm> `upgrade' <new-version>
-#        * <new-prerm> `failed-upgrade' <old-version>
-#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
-#        * <deconfigured's-prerm> `deconfigure' `in-favour'
-#          <package-being-installed> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see /usr/doc/packaging-manual/
-
-case "$1" in
-    remove|upgrade|deconfigure)
-        ;;
-    failed-upgrade)
-        ;;
-    *)
-        echo "prerm called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-
-
diff -urN magyarispell-0.94-old/debian/myspell-hu.dirs magyarispell-0.94/debian/myspell-hu.dirs
--- magyarispell-0.94-old/debian/myspell-hu.dirs	1970-01-01 01:00:00.000000000 +0100
+++ magyarispell-0.94/debian/myspell-hu.dirs	2003-08-08 12:41:55.000000000 +0200
@@ -0,0 +1,2 @@
+usr/share/myspell/dicts
+usr/share/myspell/infos/ooo
diff -urN magyarispell-0.94-old/debian/myspell-hu.docs magyarispell-0.94/debian/myspell-hu.docs
--- magyarispell-0.94-old/debian/myspell-hu.docs	1970-01-01 01:00:00.000000000 +0100
+++ magyarispell-0.94/debian/myspell-hu.docs	2003-08-08 03:47:09.000000000 +0200
@@ -0,0 +1,4 @@
+README
+GYIK
+OLVASSEL
+TODO
diff -urN magyarispell-0.94-old/debian/myspell-hu.files magyarispell-0.94/debian/myspell-hu.files
--- magyarispell-0.94-old/debian/myspell-hu.files	1970-01-01 01:00:00.000000000 +0100
+++ magyarispell-0.94/debian/myspell-hu.files	2003-08-08 13:04:16.000000000 +0200
@@ -0,0 +1,2 @@
+usr/share/myspell/dicts/hu_HU.dic
+usr/share/myspell/dicts/hu_HU.aff
diff -urN magyarispell-0.94-old/debian/myspell-hu.info-myspell-ooo magyarispell-0.94/debian/myspell-hu.info-myspell-ooo
--- magyarispell-0.94-old/debian/myspell-hu.info-myspell-ooo	1970-01-01 01:00:00.000000000 +0100
+++ magyarispell-0.94/debian/myspell-hu.info-myspell-ooo	2003-08-08 12:59:37.000000000 +0200
@@ -0,0 +1 @@
+DICT hu HU hu_HU
diff -urN magyarispell-0.94-old/debian/myspell-hu.links magyarispell-0.94/debian/myspell-hu.links
--- magyarispell-0.94-old/debian/myspell-hu.links	1970-01-01 01:00:00.000000000 +0100
+++ magyarispell-0.94/debian/myspell-hu.links	2003-08-08 12:53:14.000000000 +0200
@@ -0,0 +1,3 @@
+usr/share/myspell/dicts/hu_HU.aff usr/share/myspell/dicts/hu-HU.aff
+usr/share/myspell/dicts/hu_HU.dic usr/share/myspell/dicts/hu-HU.dic
+
diff -urN magyarispell-0.94-old/debian/myspell-hu.postinst magyarispell-0.94/debian/myspell-hu.postinst
--- magyarispell-0.94-old/debian/myspell-hu.postinst	1970-01-01 01:00:00.000000000 +0100
+++ magyarispell-0.94/debian/myspell-hu.postinst	2003-08-08 12:55:09.000000000 +0200
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+    configure)
+        update-openoffice-dicts
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
diff -urN magyarispell-0.94-old/debian/myspell-hu.postrm magyarispell-0.94/debian/myspell-hu.postrm
--- magyarispell-0.94-old/debian/myspell-hu.postrm	1970-01-01 01:00:00.000000000 +0100
+++ magyarispell-0.94/debian/myspell-hu.postrm	2003-08-08 12:55:16.000000000 +0200
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+       purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+        if [ "$1" = "remove" ]; then
+                update-openoffice-dicts
+	fi
+        ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+
+esac
+
+#DEBHELPER#
+
+exit 0
diff -urN magyarispell-0.94-old/debian/rules magyarispell-0.94/debian/rules
--- magyarispell-0.94-old/debian/rules	2003-08-08 12:38:15.000000000 +0200
+++ magyarispell-0.94/debian/rules	2003-08-08 13:04:44.000000000 +0200
@@ -48,10 +48,10 @@
 	#$(MAKE) allinstal DESTDIR=$(CURDIR)/debian/tmp
 	install -D -o root -g root -m 0644 tmp/magyar.aff debian/tmp/usr/lib/ispell/hungarian.aff
 	install    -o root -g root -m 0644 tmp/magyar4ispell.hash debian/tmp/usr/lib/ispell/hungarian.hash
-	install -D -o root -g root -m 0644 tmp/hu_HU.dic debian/tmp/usr/share/myhungarian/hu_HU.dic
-	install    -o root -g root -m 0644 tmp/hu_HU.aff debian/tmp/usr/share/myhungarian/hu_HU.aff
-
+	install -D -o root -g root -m 0644 tmp/hu_HU.dic debian/tmp/usr/share/myspell/dicts/hu_HU.dic
+	install    -o root -g root -m 0644 tmp/hu_HU.aff debian/tmp/usr/share/myspell/dicts/hu_HU.aff
 	dh_movefiles
+	install -D -o root -g root -m 644 debian/myspell-hu.info-myspell-ooo debian/myspell-hu/usr/share/myspell/infos/ooo/myspell-hu
 	installdeb-ispell -pihungarian # This calls internally to dh_installdebconf
 
 # Build architecture-independent files here.

Attachment: pgpz7rHoPHZcM.pgp
Description: PGP signature


Reply to: