--- openoffice.org-hyphenation-pl-3.0a.orig/debian/postinst
+++ openoffice.org-hyphenation-pl-3.0a/debian/postinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ]; then
+  if [ -x /usr/sbin/update-openoffice-dicts ]; then
+    update-openoffice-dicts
+  fi
+fi
+
+#DEBHELPER#
+
+exit 0
--- openoffice.org-hyphenation-pl-3.0a.orig/debian/watch
+++ openoffice.org-hyphenation-pl-3.0a/debian/watch
@@ -0,0 +1,2 @@
+# Upstream uses a distribution mechanism that cannot be meaningfully
+# monitored by uscan and the Debian External Health Status project.
--- openoffice.org-hyphenation-pl-3.0a.orig/debian/postrm
+++ openoffice.org-hyphenation-pl-3.0a/debian/postrm
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "remove" ]; then
+  if [ -x /usr/sbin/update-openoffice-dicts ]; then
+    update-openoffice-dicts
+  fi
+fi
+
+#DEBHELPER#
+
+exit 0
--- openoffice.org-hyphenation-pl-3.0a.orig/debian/copyright
+++ openoffice.org-hyphenation-pl-3.0a/debian/copyright
@@ -0,0 +1,31 @@
+This package was debianized by Mateusz Skowroński <skowri@gmail.com> on
+Fri, 28 Jul 2006 16:23:41 +0200
+
+It was downloaded from http://pl.openoffice.org/pliki/oo/hyph_pl_PL.zip
+
+Copyright (C) 1987, 1991 Hanna Kołodziejska
+Copyright (C) 1987-1989, 1995 Marek Ryćko
+Copyright (C) 1987-1989, 1995 Bogusław Jackowski
+Copyright (C) 2003 Artur Polaczyński <artiip@gmail.com>
+
+Based on the TeX hyphenation tables. GNU LGPL.
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library 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
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; 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 Lesser General Public
+License, can be found in /usr/share/common-licenses/LGPL-2.1.
+
+The Debian packaging is Copyright (C) 2006-2011, Mateusz Skowroński <skowri@gmail.com>
+and is licensed under the GPL version 2, see `/usr/share/common-licenses/GPL-2'.
--- openoffice.org-hyphenation-pl-3.0a.orig/debian/links
+++ openoffice.org-hyphenation-pl-3.0a/debian/links
@@ -0,0 +1 @@
+/usr/share/hyphen/hyph_pl_PL.dic /usr/share/myspell/dicts/hyph_pl_PL.dic
--- openoffice.org-hyphenation-pl-3.0a.orig/debian/rules
+++ openoffice.org-hyphenation-pl-3.0a/debian/rules
@@ -0,0 +1,43 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE=1
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+
+	install -D -m644 hyph_pl_PL.dic \
+	    debian/hyphen-pl/usr/share/hyphen/hyph_pl_PL.dic
+	install -D -m644 debian/dictlistinfo \
+	    debian/hyphen-pl/usr/share/myspell/infos/ooo/hyphen-pl
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs debian/copyright
+	dh_link
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary-arch: build install
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- openoffice.org-hyphenation-pl-3.0a.orig/debian/compat
+++ openoffice.org-hyphenation-pl-3.0a/debian/compat
@@ -0,0 +1 @@
+8
--- openoffice.org-hyphenation-pl-3.0a.orig/debian/dictlistinfo
+++ openoffice.org-hyphenation-pl-3.0a/debian/dictlistinfo
@@ -0,0 +1 @@
+HYPH pl PL hyph_pl_PL
--- openoffice.org-hyphenation-pl-3.0a.orig/debian/changelog
+++ openoffice.org-hyphenation-pl-3.0a/debian/changelog
@@ -0,0 +1,57 @@
+openoffice.org-hyphenation-pl (1:3.0a-4) unstable; urgency=low
+
+  * Rename to hyphen-pl. (Closes: #617567)
+  * Recommend libreoffice-writer | openoffice.org-writer.
+  * Provide hyphen-hyphenation-patterns instead of openoffice.org-hyphenation.
+  * Add debian/source/format. Thanks lintian.
+  * Bump Standards-Version to 3.9.1.
+  * Fix package description.
+  * Use dh_prep instead of deprecated dh_clean.
+  * Switch to debhelper v8.
+  * Update copyright file.
+
+ -- Mateusz Skowronski <skowri@gmail.com>  Sun, 13 Mar 2011 13:38:09 +0100
+
+openoffice.org-hyphenation-pl (1:3.0a-3) unstable; urgency=low
+
+  * Move hyphenation patterns to /usr/share/hyphen. (Closes: #541905)
+  * Bump Standards-Version to 3.8.3 (no changes needed).
+  * Update copyright file.
+  * Remove duplicated "section" field from debian/control.
+  * Only recommend openoffice.org (>= 1.0.3) | openoffice.org-writer
+  * Guard update-openoffice-dicts call with -x.
+
+ -- Mateusz Skowronski <skowri@gmail.com>  Sun, 13 Sep 2009 15:09:29 +0200
+
+openoffice.org-hyphenation-pl (1:3.0a-2) unstable; urgency=low
+
+  * Bump Standards-Version to 3.8.0 (no changes needed).
+  * Add set -e to debian/postrm. Thanks lintian.
+  * Add a dummy debian/watch file. Lintian wishlist.
+  * Fix package description.
+
+ -- Mateusz Skowronski <skowri@gmail.com>  Sun, 28 Dec 2008 12:48:12 +0100
+
+openoffice.org-hyphenation-pl (1:3.0a-1) unstable; urgency=low
+
+  * Correct version number.
+  * Add epoch due to version number change.
+  * Update copyright file.
+  * Bump Standards-Version to 3.7.3 (no changes needed).
+
+ -- Mateusz Skowronski <skowri@gmail.com>  Wed, 09 Apr 2008 03:21:16 +0200
+
+openoffice.org-hyphenation-pl (20070207-1) unstable; urgency=low
+
+  * New upstream release.
+  * Update copyright file.
+  * Switch to debhelper v5.
+  * Clean up debian/rules.
+
+ -- Mateusz Skowronski <skowri@gmail.com>  Tue, 24 Apr 2007 10:42:46 +0200
+
+openoffice.org-hyphenation-pl (20060728-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Mateusz Skowronski <skowri@gmail.com>  Fri, 28 Jul 2006 14:28:47 +0200
--- openoffice.org-hyphenation-pl-3.0a.orig/debian/control
+++ openoffice.org-hyphenation-pl-3.0a/debian/control
@@ -0,0 +1,19 @@
+Source: openoffice.org-hyphenation-pl
+Section: text
+Priority: optional
+Maintainer: Mateusz Skowronski <skowri@gmail.com>
+Build-Depends: debhelper (>= 8)
+Standards-Version: 3.9.1
+
+Package: hyphen-pl
+Architecture: all
+Depends: dictionaries-common (>= 0.10) | openoffice.org-updatedicts, ${misc:Depends}
+Recommends: libreoffice-writer | openoffice.org-writer
+Provides: hyphen-hyphenation-patterns, hyphen-hyphenation-patterns-pl, openoffice.org-hyphenation-pl
+Replaces: openoffice.org-hyphenation-pl
+Description: Polish hyphenation patterns for LibreOffice/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 the Polish hyphenation patterns for
+ LibreOffice/OpenOffice.org
--- openoffice.org-hyphenation-pl-3.0a.orig/debian/source/format
+++ openoffice.org-hyphenation-pl-3.0a/debian/source/format
@@ -0,0 +1 @@
+1.0
