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

Bug#206125: myspell



Package: igerman98
Version: unavailable; reported 2003-05-14
Severity: wishlist
Tags: patch

Hi Roland,

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=181146&archive=yes
suggested that you build the myspell packages for OpenOffice.org
yourself.

Now, after we deployed the new policy for myspell dictionaries we
can do that.

I attach a patch creating these packages from the de_DE.{dic,aff},
de_CH.{dic,aff} and de_AT.dic files (the .dic files need to be generated
of course, I didn't know how you want to make that...)

I copied the split (-at depends on -de) over from the "old" package.

I would be happy if I could be put into Uploaders: because then I
can react to OpenOffice.org specific things better. (included in the
patch)

Regards,

Rene

-- 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
diff -urN igerman98-20030222-old/debian/changelog igerman98-20030222/debian/changelog
--- igerman98-20030222-old/debian/changelog	2003-08-07 22:18:01.000000000 +0200
+++ igerman98-20030222/debian/changelog	2003-08-08 13:33:09.000000000 +0200
@@ -1,3 +1,11 @@
+igerman98 (20030222-2) unstable; urgency=low
+
+  * Rene Engelhard
+    * add myspell-de-{at,ch,de}
+    * add myself to Uploaders:
+
+ -- Rene Engelhard <rene@debian.org>  Thu,  7 Aug 2003 22:18:29 +0200
+
 igerman98 (20030222-1) unstable; urgency=low
 
   * New upstream version.
diff -urN igerman98-20030222-old/debian/control igerman98-20030222/debian/control
--- igerman98-20030222-old/debian/control	2003-08-07 22:18:01.000000000 +0200
+++ igerman98-20030222/debian/control	2003-08-08 04:35:32.000000000 +0200
@@ -2,6 +2,7 @@
 Section: text
 Priority: optional
 Maintainer: Roland Rosenfeld <roland@debian.org>
+Uploaders: Rene Engelhard <rene@debian.org>
 Standards-Version: 3.5.9
 Build-Depends: debhelper (>= 4.0.0), ispell (>= 3.1.20-12.1), dictionaries-common-dev (>= 0.8.4)
 
@@ -69,3 +70,40 @@
  rmligs-german is a program for removing incorrectly used ligatures
  from LaTeX documents. This version is intended for German language
  texts only.
+
+Package: myspell-de-at
+Architecture: all
+Depends: myspell-de-de
+Suggests: openoffice.org
+Replaces: openoffice.org-spellcheck-de-at
+Provides: myspell-dictionary, myspell-dictionary-de, openoffice.org-spellcheck-de-at
+Conflicts: openoffice.org (<= 1.0.3-2), openoffice.org-spellcheck-de-at
+Description: Austrian (German) dictionary for myspell
+ This is the German (Austria) dictionary for use with the myspell
+ spellchecker which is currently used within OpenOffice.org and the
+ mozilla spellchecker.
+
+Package: myspell-de-ch
+Architecture: all
+Depends: dictionaries-common (>= 0.10) | openoffice.org-updatedicts
+Suggests: openoffice.org
+Replaces: openoffice.org-spellcheck-de-ch
+Provides: myspell-dictionary, myspell-dictionary-de, openoffice.org-spellcheck-de-ch
+Conflicts: openoffice.org (<= 1.0.3-2), openoffice.org-spellcheck-de-ch
+Description: Swiss (German) dictionary for myspell
+ This is the German (Switzerland) dictionary for use with the myspell
+ spellchecker which is currently used within OpenOffice.org and the
+ mozilla spellchecker.
+
+Package: myspell-de-de
+Architecture: all
+Depends: dictionaries-common (>= 0.10) | openoffice.org-updatedicts
+Suggests: openoffice.org
+Replaces: openoffice.org-spellcheck-de-de
+Provides: myspell-dictionary, myspell-dictionaries-de, openoffice.org-spellcheck-de-de
+Conflicts: openoffice.org (<= 1.0.3-2), openoffice.org-spellcheck-de-de
+Description: German dictionary for myspell
+ This is the German (Germany) dictionary for use with the myspell
+ spellchecker which is currently used within OpenOffice.org and the
+ mozilla spellchecker.
+
diff -urN igerman98-20030222-old/debian/myspell-de-at.dirs igerman98-20030222/debian/myspell-de-at.dirs
--- igerman98-20030222-old/debian/myspell-de-at.dirs	1970-01-01 01:00:00.000000000 +0100
+++ igerman98-20030222/debian/myspell-de-at.dirs	2003-08-08 03:16:14.000000000 +0200
@@ -0,0 +1,2 @@
+usr/share/myspell/dicts
+usr/share/myspell/infos/ooo
diff -urN igerman98-20030222-old/debian/myspell-de-at.info-myspell-ooo igerman98-20030222/debian/myspell-de-at.info-myspell-ooo
--- igerman98-20030222-old/debian/myspell-de-at.info-myspell-ooo	1970-01-01 01:00:00.000000000 +0100
+++ igerman98-20030222/debian/myspell-de-at.info-myspell-ooo	2003-08-08 03:25:21.000000000 +0200
@@ -0,0 +1,2 @@
+DICT de AT de_AT
+DICT de AT de_DE
diff -urN igerman98-20030222-old/debian/myspell-de-at.postinst igerman98-20030222/debian/myspell-de-at.postinst
--- igerman98-20030222-old/debian/myspell-de-at.postinst	1970-01-01 01:00:00.000000000 +0100
+++ igerman98-20030222/debian/myspell-de-at.postinst	2003-08-08 03:21:30.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 igerman98-20030222-old/debian/myspell-de-at.postrm igerman98-20030222/debian/myspell-de-at.postrm
--- igerman98-20030222-old/debian/myspell-de-at.postrm	1970-01-01 01:00:00.000000000 +0100
+++ igerman98-20030222/debian/myspell-de-at.postrm	2003-08-08 04:54:09.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 igerman98-20030222-old/debian/myspell-de-ch.dirs igerman98-20030222/debian/myspell-de-ch.dirs
--- igerman98-20030222-old/debian/myspell-de-ch.dirs	1970-01-01 01:00:00.000000000 +0100
+++ igerman98-20030222/debian/myspell-de-ch.dirs	2003-08-08 03:16:18.000000000 +0200
@@ -0,0 +1,2 @@
+usr/share/myspell/dicts
+usr/share/myspell/infos/ooo
diff -urN igerman98-20030222-old/debian/myspell-de-ch.info-myspell-ooo igerman98-20030222/debian/myspell-de-ch.info-myspell-ooo
--- igerman98-20030222-old/debian/myspell-de-ch.info-myspell-ooo	1970-01-01 01:00:00.000000000 +0100
+++ igerman98-20030222/debian/myspell-de-ch.info-myspell-ooo	2003-08-08 03:24:56.000000000 +0200
@@ -0,0 +1 @@
+DICT de CH de_CH
diff -urN igerman98-20030222-old/debian/myspell-de-ch.postinst igerman98-20030222/debian/myspell-de-ch.postinst
--- igerman98-20030222-old/debian/myspell-de-ch.postinst	1970-01-01 01:00:00.000000000 +0100
+++ igerman98-20030222/debian/myspell-de-ch.postinst	2003-08-08 03:21:41.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 igerman98-20030222-old/debian/myspell-de-ch.postrm igerman98-20030222/debian/myspell-de-ch.postrm
--- igerman98-20030222-old/debian/myspell-de-ch.postrm	1970-01-01 01:00:00.000000000 +0100
+++ igerman98-20030222/debian/myspell-de-ch.postrm	2003-08-08 04:54: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 igerman98-20030222-old/debian/myspell-de-de.dirs igerman98-20030222/debian/myspell-de-de.dirs
--- igerman98-20030222-old/debian/myspell-de-de.dirs	1970-01-01 01:00:00.000000000 +0100
+++ igerman98-20030222/debian/myspell-de-de.dirs	2003-08-08 03:16:08.000000000 +0200
@@ -0,0 +1,2 @@
+usr/share/myspell/dicts
+usr/share/myspell/infos/ooo
diff -urN igerman98-20030222-old/debian/myspell-de-de.info-myspell-ooo igerman98-20030222/debian/myspell-de-de.info-myspell-ooo
--- igerman98-20030222-old/debian/myspell-de-de.info-myspell-ooo	1970-01-01 01:00:00.000000000 +0100
+++ igerman98-20030222/debian/myspell-de-de.info-myspell-ooo	2003-08-08 03:24:46.000000000 +0200
@@ -0,0 +1 @@
+DICT de DE de_DE
diff -urN igerman98-20030222-old/debian/myspell-de-de.postinst igerman98-20030222/debian/myspell-de-de.postinst
--- igerman98-20030222-old/debian/myspell-de-de.postinst	1970-01-01 01:00:00.000000000 +0100
+++ igerman98-20030222/debian/myspell-de-de.postinst	2003-08-08 04:53:22.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 igerman98-20030222-old/debian/myspell-de-de.postrm igerman98-20030222/debian/myspell-de-de.postrm
--- igerman98-20030222-old/debian/myspell-de-de.postrm	1970-01-01 01:00:00.000000000 +0100
+++ igerman98-20030222/debian/myspell-de-de.postrm	2003-08-08 04:53:58.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 igerman98-20030222-old/debian/rules igerman98-20030222/debian/rules
--- igerman98-20030222-old/debian/rules	2003-08-07 22:18:01.000000000 +0200
+++ igerman98-20030222/debian/rules	2003-08-08 13:34:27.000000000 +0200
@@ -74,6 +74,27 @@
 	    < ligature/rmligs.1 \
 	    > `pwd`/debian/rmligs-german/usr/share/man/man1/rmligs-german.1
 
+#	myspell-de-ch (binary-indep)
+	install -o root -g root -m644 myspell/de_CH.aff \
+		`pwd`/debian/myspell-de-ch/usr/share/myspell/dicts
+	install -o root -g root -m644 myspell/de_CH.dic \
+		`pwd`/debian/myspell-de-ch/usr/share/myspell/dicts
+	cd `pwd`/debian/myspell-de-ch/usr/share/myspell/dicts && \
+		ln -s de_CH.aff de-CH.aff; ln -s de_CH.dic de-CH.dic
+		
+#	myspell-de-de (binary-indep)
+	install -o root -g root -m644 myspell/de_DE.aff \
+		`pwd`/debian/myspell-de-de/usr/share/myspell/dicts
+	install -o root -g root -m644 myspell/de_DE.dic \
+		`pwd`/debian/myspell-de-de/usr/share/myspell/dicts
+	cd `pwd`/debian/myspell-de-de/usr/share/myspell/dicts && \
+		ln -s de_DE.aff de-DE.aff; ln -s de_DE.dic de-DE.dic
+
+# 	myspell-de-at (binary-indep)
+	install -o root -g root -m644 myspell/de_AT.dic \
+		 `pwd`/debian/myspell-de-de/usr/share/myspell/dicts && \
+		 ln -s de_AT.dic de-AT.dic && ln -s de_DE.aff de-AT.aff
+
 # Build architecture-independent files here.
 binary-indep: build install
 	dh_testdir -i
@@ -87,6 +108,10 @@
 #	dh_installlogrotate -i
 	installdeb-wordlist -pwngerman # Internally calls dh_installdebconf
 	installdeb-wordlist -pwswiss   # Internally calls dh_installdebconf
+	for pkg in `dh_listpackages | grep myspell`; do \
+		install -m 644 debian/$$pkg.info-myspell-ooo \
+		  `pwd`/debian/$$pkg/usr/share/myspell/infos/ooo/$$pkg; \
+	done
 #	dh_installemacsen -i
 #	dh_installpam -i
 #	dh_installmime -i

Attachment: pgp1vzPmEEBVw.pgp
Description: PGP signature


Reply to: