--- openoffice.org-voikko-2.1.orig/debian/control +++ openoffice.org-voikko-2.1/debian/control @@ -0,0 +1,29 @@ +Source: openoffice.org-voikko +Section: text +Priority: optional +Maintainer: Timo Jyrinki +Build-Depends: debhelper (>= 4.0.0), openoffice.org-dev (>= 2.0.4), libvoikko-dev (>= 1.5), zip +Standards-Version: 3.7.2 + +Package: openoffice.org-voikko +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: openoffice.org (>= 2.0.4) | openoffice.org-writer (>= 2.0.4) | openoffice.org-calc (>= 2.0.4) | openoffice.org-impress (>= 2.0.4) | openoffice.org-draw (>= 2.0.4) +Conflicts: ${misc:Conflicts} +Enhances: openoffice.org +Provides: openoffice.org-spellcheck-fi, openoffice.org-hyphenation-fi +Description: Finnish spell-checker and hyphenation for OpenOffice.org + OpenOffice.org is a full-featured office productivity suite that provides + a near drop-in replacement for Microsoft(R) Office. + . + This package contains a Finnish spell-checking and hyphenation component for + OpenOffice.org. The actual spell-checking and hyphenation functionality is + provided by the Voikko library. + . + NOTE: Usually spell-checking and hyphenation should be automatically activated + after installing this package. If this is not the case, go to "Writing Aids" + settings in OpenOffice.org and activate Voikko components manually. See + file /usr/share/doc/openoffice.org-voikko/README.Debian for more + information about using this package. + . + Homepage: http://voikko.sourceforge.net/ --- openoffice.org-voikko-2.1.orig/debian/openoffice.org-voikko.install +++ openoffice.org-voikko-2.1/debian/openoffice.org-voikko.install @@ -0,0 +1 @@ +build/voikko.oxt usr/lib/openoffice.org-voikko --- openoffice.org-voikko-2.1.orig/debian/watch +++ openoffice.org-voikko-2.1/debian/watch @@ -0,0 +1,4 @@ +version=3 + +http://sf.net/voikko/openoffice.org-voikko-(.*)\.tar\.gz + --- openoffice.org-voikko-2.1.orig/debian/rules +++ openoffice.org-voikko-2.1/debian/rules @@ -0,0 +1,59 @@ +#!/usr/bin/make -f + +CC_FLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CC_FLAGS += -O0 +else + CC_FLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + sh -c ". /usr/lib/openoffice/sdk/setsdkenv_unix.sh && $(MAKE)" + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + -rm -rf build + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples + dh_install + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + sh debian/generate_dependencies.sh + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- openoffice.org-voikko-2.1.orig/debian/postinst +++ openoffice.org-voikko-2.1/debian/postinst @@ -0,0 +1,249 @@ +#!/bin/bash +# +# postinst - Configuration script for openoffice.org-voikko +# +# by Teemu Likonen +# +# This script first removes any previously installed language components and +# then registers the new one for OpenOffice.org package manager. + + +# Names used in messages +NAME_STRONG=Voikko +NAME_WEAK=Voiko +OPENOFFICEORG=OpenOffice.org + +# This package's name in Debian package manager. This is also the name of the +# directory the language component is in. +PACKAGE_NAME=openoffice.org-voikko + +# The name of the language component +COMPONENT_BASENAME=voikko +COMPONENT_FULLPATH=/usr/lib/$PACKAGE_NAME/${COMPONENT_BASENAME}*.oxt + +# 'unopkg' registers and removes the language component to/from the +# OpenOffice.org. This is the full path name to it. +UNOPKG=/usr/lib/openoffice/program/unopkg + + +# Here we define a function that will display messages to user. + +case "$(locale | grep ^LC_MESSAGES=)" in + *fi_*) MSG_LANG=finnish ;; + *) MSG_LANG="" ;; +esac + +ICONV="" +which iconv &>/dev/null && ICONV="| iconv --from-code=UTF-8 --to-code=//TRANSLIT" + +function msg() { + case "$1" in + upgrade_abort) + case "$MSG_LANG" in + finnish) echo VIRHE: postinst $2 $3 + ;; + *) echo ERROR: postinst $2 $3 + ;; + esac + ;; + ooo_is_running) + case "$MSG_LANG" in + finnish) eval cat </dev/null && msg ooo_is_running + + +# Registering program 'unopkg' writes things to $HOME/.openoffice* directory +# (even with the '--shared' option). We must set $HOME to some temporary +# directory so that these (root owned) files don't get written to the regular +# user's HOME in case he/she runs this with sudo. +TMP_HOME="$(mktemp -t -d $PACKAGE_NAME.XXXXXX)" || exit 1 +export HOME="$TMP_HOME" + +# First we remove all language components that might exist in the system. These +# can be previous versions or some other way installed ones. + +if $UNOPKG list --shared &>/dev/null +then + COMPONENT_LIST=$($UNOPKG list --shared 2>/dev/null | sed -ne "s/^Name: \\(${COMPONENT_BASENAME}.*\\)/\\1/p") + # If not found, OOo 2.3 or newer is in use + if [ "$COMPONENT_LIST" = "" ] + then + COMPONENT_LIST=$($UNOPKG list --shared 2>/dev/null | sed -ne "s/^Identifier: \\(org\.openoffice\.legacy\.openoffice\.org-voikko-.*\.uno\.pkg\\)/\\1/p") + fi + if [ "$COMPONENT_LIST" = "" ] + then + COMPONENT_LIST=$($UNOPKG list --shared 2>/dev/null | sed -ne "s/^Identifier: \\(org\.puimula\.ooovoikko\\)/\\1/p") + fi + for COMPONENT in $COMPONENT_LIST + do + if $UNOPKG remove --shared $COMPONENT &>/dev/null + then msg component_remove_previous + else msg component_remove_previous_failed + fi + done +else msg component_list_previous_failed +fi + + +# And then we register the new component for OpenOffice.org. + +if $UNOPKG add --shared $COMPONENT_FULLPATH &>/dev/null +then msg component_register +else + msg component_register_failed + exit 1 +fi + + +# Delete the temporary HOME directory +rm -fr $TMP_HOME + +exit 0 + +#DEBHELPER# --- openoffice.org-voikko-2.1.orig/debian/README.Debian +++ openoffice.org-voikko-2.1/debian/README.Debian @@ -0,0 +1,25 @@ +IMPORTANT NOTES + +1) The functionality of openoffice.org-voikko language component depends +heavily on fairly static OpenOffice.org installation. If the structure +of your OpenOffice.org installation changes (due to software update for +example), it is possible for the language component to get lost in the +process. You may need to reinstall the language component with the +following command (executed as root): + + dpkg-reconfigure openoffice.org-voikko + +2) It is possible that in the future new versions of OpenOffice.org will +become incompatible with current versions of openoffice.org-voikko. The +worst possible scenario is that this incompatibility will *break* the +installation of both openoffice.org-voikko and OpenOffice.org. This is +really possible; I am not exaggerating here. OpenOffice.org has certain +weak points in handling external components. + +To solve the problem, this openoffice.org-voikko binary package has been +set to conflict with any newer (and older) OpenOffice.org versions. It +means that when you install a new version of OpenOffice.org, you can no +longer use the old openoffice.org-voikko package; it has to be updated +too (or compiled again from source package). Minor OpenOffice.org +updates such as security updates should work without installing a new +version of openoffice.org-voikko. --- openoffice.org-voikko-2.1.orig/debian/copyright +++ openoffice.org-voikko-2.1/debian/copyright @@ -0,0 +1,31 @@ +This package was debianized by Teemu Likonen on +Sat, 15 Apr 2006 21:56:52 +0300. Continued by Timo Jyrinki + in September, 2006. + +It was downloaded from + + http://downloads.sourceforge.net/voikko/openoffice.org-voikko-2.1.tar.gz + +Upstream author: Harri Pitkänen + +The Debian packaging is (C) 2006, Harri Pitkänen, Teemu Likonen +and Timo Jyrinki and is licensed under the GNU General Public License. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License with + the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL; + if not, write to the Free Software Foundation, Inc., 51 Franklin St, + Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General Public +License, version 2, can be found in /usr/share/common-licenses/GPL-2. + --- openoffice.org-voikko-2.1.orig/debian/compat +++ openoffice.org-voikko-2.1/debian/compat @@ -0,0 +1 @@ +4 --- openoffice.org-voikko-2.1.orig/debian/prerm +++ openoffice.org-voikko-2.1/debian/prerm @@ -0,0 +1,175 @@ +#!/bin/bash +# +# prerm - Configuration script for openoffice.org-voikko +# +# by Teemu Likonen +# +# This script removes language component(s) from OpenOffice.org's package +# manager. + + +# Names used in messages +NAME_STRONG=Voikko +NAME_WEAK=Voiko +OPENOFFICEORG=OpenOffice.org + +# This package's name in Debian package manager. This is also the name of the +# directory the language component is in. +PACKAGE_NAME=openoffice.org-voikko + +# The name of the language component +COMPONENT_BASENAME=voikko +COMPONENT_FULLPATH=/usr/lib/$PACKAGE_NAME/${COMPONENT_BASENAME}*.oxt + +# 'unopkg' registers and removes the language component to/from the +# OpenOffice.org. This is the full path name to it. +UNOPKG=/usr/lib/openoffice/program/unopkg + + +# Here we define a function that will display messages to user. + +case "$(locale | grep ^LC_MESSAGES=)" in + *fi_*) MSG_LANG=finnish ;; + *) MSG_LANG="" ;; +esac + +ICONV="" +which iconv &>/dev/null && ICONV="| iconv --from-code=UTF-8 --to-code=//TRANSLIT" + +function msg() { + case "$1" in + upgrade_failed) + case "$MSG_LANG" in + finnish) echo VIRHE: prerm $2 $3 + ;; + *) echo ERROR: prerm $2 $3 + ;; + esac + ;; + ooo_is_running) + case "$MSG_LANG" in + finnish) eval cat </dev/null && msg ooo_is_running + + +# Registering program 'unopkg' writes things to $HOME/.openoffice* directory +# (even with the '--shared' option). We must set $HOME to some temporary +# directory so that these (root owned) files don't get written to the regular +# user's HOME in case he/she runs this with sudo. +TMP_HOME="$(mktemp -t -d $PACKAGE_NAME.XXXXXX)" || exit 1 +export HOME="$TMP_HOME" + +# We remove possible previously installed language component from the system. + +if $UNOPKG list --shared &>/dev/null +then + COMPONENT_LIST=$($UNOPKG list --shared 2>/dev/null | sed -ne "s/^Name: \\(${COMPONENT_BASENAME}.*\\)/\\1/p") + # If not found, OOo 2.3 or newer is in use + if [ "$COMPONENT_LIST" = "" ] + then + COMPONENT_LIST=$($UNOPKG list --shared 2>/dev/null | sed -ne "s/^Identifier: \\(org\.openoffice\.legacy\.openoffice\.org-voikko-.*\.uno\.pkg\\)/\\1/p") + fi + if [ "$COMPONENT_LIST" = "" ] + then + COMPONENT_LIST=$($UNOPKG list --shared 2>/dev/null | sed -ne "s/^Identifier: \\(org\.puimula\.ooovoikko\\)/\\1/p") + fi + for COMPONENT in $COMPONENT_LIST + do + if $UNOPKG remove --shared $COMPONENT &>/dev/null + then msg component_remove + else msg component_remove_failed + fi + done +else msg component_list_failed +fi + +# Delete the temporary HOME directory +rm -fr $TMP_HOME + +exit 0 + +#DEBHELPER# --- openoffice.org-voikko-2.1.orig/debian/generate_dependencies.sh +++ openoffice.org-voikko-2.1/debian/generate_dependencies.sh @@ -0,0 +1,13 @@ +#!/bin/sh +# This script generates "Depends" and "Conflicts" fields to binary package's +# control file. + +substvars=debian/openoffice.org-voikko.substvars + +current_version=$(dpkg-query --showformat='${Version}\n' --show openoffice.org-dev) +depends=${current_version%-*} +conflicts=${depends%~*}.1 + +LD_LIBRARY_PATH="/usr/lib/openoffice/program" dpkg-shlibdeps -O build/oxt/*.so >$substvars 2>/dev/null +echo "misc:Conflicts=openoffice.org-core (>= $conflicts)" >>$substvars + --- openoffice.org-voikko-2.1.orig/debian/changelog +++ openoffice.org-voikko-2.1/debian/changelog @@ -0,0 +1,180 @@ +openoffice.org-voikko (2.1-1build3) hardy-proposed; urgency=low + + * Rebuild against current openoffice.org. (LP: #236248) + + -- Timo Aaltonen Wed, 11 Jun 2008 12:05:55 +0300 + +openoffice.org-voikko (2.1-1build2) hardy; urgency=low + + * Rebuild against current openoffice.org. + + -- Timo Aaltonen Wed, 05 Mar 2008 10:27:42 +0200 + +openoffice.org-voikko (2.1-1build1) hardy; urgency=low + + * Rebuild against current openoffice.org. + + -- Timo Aaltonen Wed, 30 Jan 2008 15:39:56 +0200 + +openoffice.org-voikko (2.1-1) unstable; urgency=low + + * New upstream release + * Update dependencies + + -- Timo Jyrinki Sun, 18 Nov 2007 00:55:16 +0200 + +openoffice.org-voikko (2.0.1-2) unstable; urgency=low + + * Fix prerm/postinst to handle OOo 2.3 changes + + -- Timo Jyrinki Tue, 14 Aug 2007 15:26:05 +0300 + +openoffice.org-voikko (2.0.1-1) unstable; urgency=low + + * New upstream release + * Sync with upstream Debian packaging, ie: + * Remove openoffice.org-soikko conflict, not in Debian anymore + * Fix copyright file (missing line) + * Install the new Changelog + + -- Timo Jyrinki Wed, 16 May 2007 00:05:27 +0300 + +openoffice.org-voikko (2.0-1) unstable; urgency=low + + * New upstream release + * Update copyright to reflect that the whole package is now under GPL + * Update dependencies, update maintainer scripts + + -- Timo Jyrinki Sat, 05 May 2007 04:24:28 +0300 + +openoffice.org-voikko (1.2-1) unstable; urgency=low + + * New upstream version + * Remove workaround hack for the bug #387224 (not needed anymore) + * Add quotes in prerm and postinst in two places + * Change conflicts generation a bit + * Text changes because of component rename + * Fix wrong filename on Linux/SPARC (Closes: #403627) + * Update home page, watch file + + -- Timo Jyrinki Sat, 31 Mar 2007 18:18:03 +0300 + +openoffice.org-voikko (1.1-4) unstable; urgency=low + + * Change Linux_x86 to Linux_* in generate_dependencies.sh + * Remove stlport from Makefile (not needed anymore) + * Change dependencies as requested + * Add OOo components to Recommends + + -- Timo Jyrinki Sat, 7 Oct 2006 11:41:48 +0300 + +openoffice.org-voikko (1.1-3) unstable; urgency=low + + * Fix bashism (use of "source") in debian/rules + + -- Timo Jyrinki Sat, 30 Sep 2006 15:16:23 +0300 + +openoffice.org-voikko (1.1-2) unstable; urgency=low + + * Add conflict with openoffice.org-soikko + * Update debian/copyright again + + -- Timo Jyrinki Tue, 26 Sep 2006 17:59:36 +0300 + +openoffice.org-voikko (1.1-1) unstable; urgency=low + + * Change package name to openoffice.org-voikko + * Complete ITP (Closes: #388803) + * Clean debian/watch + * Indent homepages in debian/control by two spaces + * Add COPYING from upstream SVN to clarify copyright issues + * Update debian/copyright + * Change CFLAGS to CC_FLAGS in debian/rules + * Add #DEBHELPER# tokens to prerm and postinst scripts. + * Update Standards-Version to 3.7.2 + * Clean up debian/rules + + -- Timo Jyrinki Mon, 25 Sep 2006 20:37:25 +0300 + +oo2-voikko (1.1-0hf4) unstable; urgency=low + + * Use /tmp instead of /root as a temporary HOME directory for unopkg + * Add workaround for the bug #387224 (Debian Bug Tracking System) + + -- Teemu Likonen Mon, 18 Sep 2006 23:17:08 +0300 + +oo2-voikko (1.1-0hf3) unstable; urgency=low + + * Remove "preinst" script. + * Make "postinst" and "prerm" more independed of language component's name. + + -- Teemu Likonen Wed, 13 Sep 2006 12:27:48 +0300 + +oo2-voikko (1.1-0hf2) unstable; urgency=low + + * Don't cancel install/remove even if OpenOffice is running. Warning is + given during configure instead. + + -- Teemu Likonen Wed, 13 Sep 2006 09:27:00 +0300 + +oo2-voikko (1.1-0hf1) unstable; urgency=low + + * New upstream release + + -- Teemu Likonen Sat, 2 Sep 2006 13:26:24 +0300 + +oo2-voikko (1.0+svn20060829-0hf1) unstable; urgency=low + + * New SVN snapshot (r413) + + -- Teemu Likonen Tue, 29 Aug 2006 14:34:21 +0300 + +oo2-voikko (1.0-0hf1) unstable; urgency=low + + * New upstream release + * Lot of information moved from package's description to README.Debian + * Added "Enhances: openoffice.org" field to control file + + -- Teemu Likonen Tue, 25 Jul 2006 21:04:54 +0300 + +oo2-voikko (0.4-0hf2) unstable; urgency=low + + * Added dynamic "Conflicts" and "Depends" definition so that binary package + conflicts now with any newer OpenOffice.org's upstream version. From now on + oo2-voikko has to be built for every OpenOffice.org's upstream update. This + is to prevent possible (and likely) problems with incompatible UNO + components between OpenOffice.org versions. + + -- Teemu Likonen Tue, 4 Jul 2006 17:17:31 +0300 + +oo2-voikko (0.4-0hf1) unstable; urgency=low + + * New upstream release + + -- Teemu Likonen Sun, 21 May 2006 13:36:15 +0300 + +oo2-voikko (0.3-0hf3) unstable; urgency=low + + * Changed source package name to 'oo2-voikko' to reflect upstream naming. + * Now 'dpatch' utility handles patches. + * Updated build and binary package dependencies. + * Dropped binary support for official www.openoffice.org's .deb packages and + for old Debian/Ubuntu OpenOffice.org versions. + + -- Teemu Likonen Wed, 17 May 2006 22:24:16 +0300 + +openoffice.org-voikko (0.3-0hf2) unstable; urgency=low + + * Added 'zip' to build dependencies + * Updated binary package dependencies + * Minor improvements to postinst and prerm scripts + * Package name changed + + -- Teemu Likonen Sun, 16 Apr 2006 23:27:10 +0300 + +openoffice.org2-voikko (0.3-0hf1) unstable; urgency=low + + * Initial release + + -- Teemu Likonen Sat, 15 Apr 2006 22:19:38 +0300 +