--- writer2latex-0.5.orig/debian/openoffice.org-writer2latex.install +++ writer2latex-0.5/debian/openoffice.org-writer2latex.install @@ -0,0 +1 @@ +target/lib/*.pkg usr/lib/openoffice/share/extension/install --- writer2latex-0.5.orig/debian/openoffice.org-writer2latex.prerm +++ writer2latex-0.5/debian/openoffice.org-writer2latex.prerm @@ -0,0 +1,31 @@ +#!/bin/sh + +set -e + +flush_unopkg_cache() { + /usr/lib/openoffice/program/unopkg list --shared > /dev/null 2>&1 +} + +remove_extension() { + if /usr/lib/openoffice/program/unopkg list --shared $1 >/dev/null; then + echo -n "Removing extension $1..." + INSTDIR=`mktemp -d` + /usr/lib/openoffice/program/unopkg remove --shared $1 \ + "-env:UserInstallation=file://$INSTDIR" \ + '-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \ + "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" + if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi + echo " done." + flush_unopkg_cache + fi +} + +case "$1" in + remove) + # this is a legacy package, so we need to find it first... + id=`/usr/lib/openoffice/program/unopkg list --shared | grep Identifier:.*writer2latex | cut -d":" -f2` + remove_extension $id + ;; +esac + +#DEBHELPER# --- writer2latex-0.5.orig/debian/libwriter2latex-java-doc.install +++ writer2latex-0.5/debian/libwriter2latex-java-doc.install @@ -0,0 +1 @@ +target/javadoc usr/share/doc/libwriter2latex-java --- writer2latex-0.5.orig/debian/control +++ writer2latex-0.5/debian/control @@ -0,0 +1,104 @@ +Source: writer2latex +Section: text +Priority: optional +Maintainer: Ubuntu Core developers +XSBC-Original-Maintainer: Debian OpenOffice Team +Uploaders: Rene Engelhard , Chris Halls +Build-Depends: debhelper (>= 5), ant, libxerces2-java, libxalan2-java, default-jdk, openoffice.org-java-common, dpatch, tex-common +Standards-Version: 3.7.2 +Homepage: http://www.hj-gym.dk/~hj/writer2latex + +Package: writer2latex +Architecture: all +Depends: default-jre-headless | java2-runtime-headless, libwriter2latex-java, ${misc:Depends} +Recommends: www-browser | x-www-browser | pdf-viewer | openoffice.org-writer +Description: OpenOffice.org Writer/Calc to LaTeX/XHTML converter + Writer2LaTeX is a utility written in java. It converts OpenOffice.org + documents – in particular documents containing formulas – into other + formats. It is actually a collection of four converters, i.e.: + 1) Writer2LaTeX converts documents into LaTeX 2e format for high quality + typesetting. + 2) Writer2BibTeX extracts bibliographic data from a document and stores it in + BibTeX format (works together with Writer2LaTeX). + 3) Writer2xhtml converts documents into XHTML 1.0 or XHTML 1.1+MathML 2.0 with + CSS2. + 4) Calc2xhtml is a companion to Writer2xhtml that converts OOo Calc documents + to XHTML 1.0 with CSS2 to display your spreadsheets on the web. + +Package: writer2latex-manual +Architecture: all +Section: doc +Description: OpenOffice.org Writer/Calc to LaTeX/XHTML converter -- manual + Writer2LaTeX is a utility written in java. It converts OpenOffice.org + documents – in particular documents containing formulas – into other + formats. It is actually a collection of four converters, i.e.: + 1) Writer2LaTeX converts documents into LaTeX 2e format for high quality + typesetting. + 2) Writer2BibTeX extracts bibliographic data from a document and stores it in + BibTeX format (works together with Writer2LaTeX). + 3) Writer2xhtml converts documents into XHTML 1.0 or XHTML 1.1+MathML 2.0 with + CSS2. + 4) Calc2xhtml is a companion to Writer2xhtml that converts OOo Calc documents + to XHTML 1.0 with CSS2 to display your spreadsheets on the web. + . + This package contains the manual. + +Package: libwriter2latex-java-doc +Architecture: all +Section: doc +Recommends: www-browser | x-www-browser +Description: OpenOffice.org Writer/Calc to LaTeX/XHTML converter -- javadoc + Writer2LaTeX is a utility written in java. It converts OpenOffice.org + documents – in particular documents containing formulas – into other + formats. It is actually a collection of four converters, i.e.: + 1) Writer2LaTeX converts documents into LaTeX 2e format for high quality + typesetting. + 2) Writer2BibTeX extracts bibliographic data from a document and stores it in + BibTeX format (works together with Writer2LaTeX). + 3) Writer2xhtml converts documents into XHTML 1.0 or XHTML 1.1+MathML 2.0 with + CSS2. + 4) Calc2xhtml is a companion to Writer2xhtml that converts OOo Calc documents + to XHTML 1.0 with CSS2 to display your spreadsheets on the web. + . + This package contains the javadoc for the writer2latex library. + +Package: libwriter2latex-java +Architecture: all +Depends: libxalan2-java, libxerces2-java +Description: OpenOffice.org Writer/Calc to LaTeX/XHTML converter -- library + Writer2LaTeX is a utility written in java. It converts OpenOffice.org + documents – in particular documents containing formulas – into other + formats. It is actually a collection of four converters, i.e.: + 1) Writer2LaTeX converts documents into LaTeX 2e format for high quality + typesetting. + 2) Writer2BibTeX extracts bibliographic data from a document and stores it in + BibTeX format (works together with Writer2LaTeX). + 3) Writer2xhtml converts documents into XHTML 1.0 or XHTML 1.1+MathML 2.0 with + CSS2. + 4) Calc2xhtml is a companion to Writer2xhtml that converts OOo Calc documents + to XHTML 1.0 with CSS2 to display your spreadsheets on the web. + . + This package contains the java library. + +Package: openoffice.org-writer2latex +Architecture: all +Depends: openoffice.org-core (>= 1:2.3.0~oog680m1), openoffice.org-java-common (>= 1:2.3.0~oog680m1) +Enhances: openoffice.org-writer, openoffice.org-calc +Description: Writer/Calc to LaTeX/XHTML converter extension for OpenOffice.org + Writer2LaTeX is a utility written in java. It converts OpenOffice.org + documents – in particular documents containing formulas – into other + formats. It is actually a collection of four converters, i.e.: + 1) Writer2LaTeX converts documents into LaTeX 2e format for high quality + typesetting. + 2) Writer2BibTeX extracts bibliographic data from a document and stores it in + BibTeX format (works together with Writer2LaTeX). + 3) Writer2xhtml converts documents into XHTML 1.0 or XHTML 1.1+MathML 2.0 with + CSS2. + 4) Calc2xhtml is a companion to Writer2xhtml that converts OOo Calc documents + to XHTML 1.0 with CSS2 to display your spreadsheets on the web. + . + This package contains the OpenOffice.org extension providing + writer2latex for OpenOffice.org. Note that OOo contains Writer2LaTeX 0.4 + since 2.0.4 and this disables the internal writer2latex and uses the new + one. + --- writer2latex-0.5.orig/debian/writer2latex.install +++ writer2latex-0.5/debian/writer2latex.install @@ -0,0 +1,4 @@ +w2l usr/bin +*.xml usr/share/writer2latex +*.ott usr/share/writer2latex +ooomath.sty usr/share/texmf/tex/latex/ooomath --- writer2latex-0.5.orig/debian/writer2latex.links +++ writer2latex-0.5/debian/writer2latex.links @@ -0,0 +1 @@ +usr/share/java/writer2latex.jar usr/share/writer2latex/writer2latex.jar --- writer2latex-0.5.orig/debian/openoffice.org-writer2latex.script.bug +++ writer2latex-0.5/debian/openoffice.org-writer2latex.script.bug @@ -0,0 +1,4 @@ +#!/bin/sh +# this is a legacy package, so we need to find it first... +id=`/usr/lib/openoffice/program/unopkg list --shared | grep Identifier:.*writer2latex | cut -d":" -f2` +/usr/lib/openoffice/program/unopkg list --shared $id >&3 --- writer2latex-0.5.orig/debian/libwriter2latex-java.install +++ writer2latex-0.5/debian/libwriter2latex-java.install @@ -0,0 +1 @@ +target/lib/writer2latex.jar usr/share/java --- writer2latex-0.5.orig/debian/writer2latex-manual.install +++ writer2latex-0.5/debian/writer2latex-manual.install @@ -0,0 +1 @@ +doc/* /usr/share/doc/writer2latex/manual --- writer2latex-0.5.orig/debian/compat +++ writer2latex-0.5/debian/compat @@ -0,0 +1 @@ +5 --- writer2latex-0.5.orig/debian/openoffice.org-writer2latex.preinst +++ writer2latex-0.5/debian/openoffice.org-writer2latex.preinst @@ -0,0 +1,31 @@ +#!/bin/sh + +set -e + +flush_unopkg_cache() { + /usr/lib/openoffice/program/unopkg list --shared > /dev/null 2>&1 +} + +remove_extension() { + if /usr/lib/openoffice/program/unopkg list --shared $1 >/dev/null; then + echo -n "Removing extension $1..." + INSTDIR=`mktemp -d` + /usr/lib/openoffice/program/unopkg remove --shared $1 \ + "-env:UserInstallation=file://$INSTDIR" \ + '-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \ + "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" + if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi + echo " done." + flush_unopkg_cache + fi +} + +case "$1" in + upgrade) + # this is a legacy package, so we need to find it first... + id=`/usr/lib/openoffice/program/unopkg list --shared | grep Identifier:.*writer2latex | cut -d":" -f2` + remove_extension $id + ;; +esac + +#DEBHELPER# --- writer2latex-0.5.orig/debian/copyright +++ writer2latex-0.5/debian/copyright @@ -0,0 +1,21 @@ +This package was debianized by Rene Engelhard on +Tue, 20 Nov 2007 21:12:28 +0100. + +It was downloaded from http://www.hj-gym.dk/~hj/writer2latex/ + +Upstream Author: + + Henrik Just + +Copyright: + + (C) 2002-2007 Henrik Just + +License: + + LGPL 2.1. On Debian systems you can find the full text of the LGPL 2.1 + in /usr/share/common-licenses/LGPL-2.1 + + ooomath.sty is under LPPL 1.2 or later; the latest version of the LPPL + is in http://www.latex-project.org/lppl.txt + --- writer2latex-0.5.orig/debian/openoffice.org-writer2latex.postinst +++ writer2latex-0.5/debian/openoffice.org-writer2latex.postinst @@ -0,0 +1,20 @@ +#!/bin/sh + +set -e + +add_extension() { + echo -n "Adding extension $1..." + INSTDIR=`mktemp -d` + /usr/lib/openoffice/program/unopkg add --shared $1 \ + "-env:UserInstallation=file:///$INSTDIR" \ + '-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \ + "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" + if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi + echo " done." +} + +if [ "$1" = "configure" -o "$1" = "upgrade" ]; then + add_extension /usr/lib/openoffice/share/extension/install/writer2latex.uno.pkg +fi + +#DEBHELPER# --- writer2latex-0.5.orig/debian/rules +++ writer2latex-0.5/debian/rules @@ -0,0 +1,101 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. +# +# Modified to make a template file for a multi-binary package with separated +# build-arch and build-indep targets by Bill Allombert 2001 + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +include /usr/share/dpatch/dpatch.make + +export JAVA_HOME=/usr/lib/jvm/default-java + +configure: configure-stamp +configure-stamp: patch-stamp + dh_testdir + touch configure-stamp + + +build: build-arch build-indep + +build-arch: build-arch-stamp +build-arch-stamp: configure-stamp + + touch $@ + +build-indep: build-indep-stamp +build-indep-stamp: configure-stamp + + ant jar + ant javadoc + ant package + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-arch-stamp build-indep-stamp configure-stamp + + ant clean + + dh_clean + +install: install-indep install-arch +install-indep: + dh_testdir + dh_testroot + dh_clean -k -i + dh_installdirs -i + + install -D -m755 debian/openoffice.org-writer2latex.script.bug \ + debian/openoffice.org-writer2latex/usr/share/bug/openoffice.org-writer2latex/script + + dh_install -i + +install-arch: + dh_testdir + dh_testroot + dh_clean -k -s + dh_installdirs -s + + dh_install -s + +binary-common: + dh_testdir + dh_testroot + dh_installchangelogs History.txt + dh_installdocs + dh_installexamples -pwriter2latex samples/* + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + unset DH_OPTIONS; dh_installtex -p writer2latex +# dh_perl +# dh_nativejava + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: build-indep install-indep + $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common + +binary-arch: build-arch install-arch + $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common + +binary: binary-arch binary-indep +.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure --- writer2latex-0.5.orig/debian/changelog +++ writer2latex-0.5/debian/changelog @@ -0,0 +1,70 @@ +writer2latex (0.5-8ubuntu1) intrepid; urgency=low + + * Merge from Debian unstable (LP: #244098), remaining Ubuntu changes: + - (Build-)depend on default-jre/-jdk. + + -- Luca Falavigna Mon, 04 Aug 2008 02:19:03 +0200 + +writer2latex (0.5-8) unstable; urgency=high + + * add missing Depends: on ${misc:Depends} for writer2latex + (closes: #490138) + + -- Rene Engelhard Fri, 11 Jul 2008 00:28:21 +0200 + +writer2latex (0.5-7) unstable; urgency=high + + * fix debian/copyright; ooomath.sty is LPPL, actually mention that + + -- Rene Engelhard Wed, 09 Jul 2008 15:40:16 +0200 + +writer2latex (0.5-6ubuntu1) intrepid; urgency=low + + * (Build-)depend on default-jre/-jdk. + * Set Ubuntu maintainer address. + + -- Matthias Klose Thu, 31 Jul 2008 08:17:33 +0000 + +writer2latex (0.5-6) unstable; urgency=low + + * add missing -env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1 to the prerm + unopkg call, hopefully closes: #468202, please reopen if not + + -- Rene Engelhard Thu, 28 Feb 2008 14:11:44 +0100 + +writer2latex (0.5-5) unstable; urgency=low + + * build-depend on openoffice.org-java-common (closes: #46760) + + -- Rene Engelhard Tue, 26 Feb 2008 15:53:46 +0100 + +writer2latex (0.5-4) unstable; urgency=low + + * upload to unstable + * add bug script running unopkg list + + -- Rene Engelhard Fri, 15 Feb 2008 12:37:10 +0100 + +writer2latex (0.5-3) experimental; urgency=low + + * debian/shell-lib.sh: + - run unopkg with -env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1 because + otherwise the first run with gcj won't find a JRE (and might fail the + install then). Flush the cache after removing as unopkg doesn't remove + files on uninstall but marks them as "to-be-removed-on-next-start". + Thanks Caolan McNamara. + + -- Rene Engelhard Tue, 04 Dec 2007 17:31:46 +0100 + +writer2latex (0.5-2) experimental; urgency=low + + * run dh_installtex + + -- Rene Engelhard Mon, 26 Nov 2007 14:12:01 +0100 + +writer2latex (0.5-1) experimental; urgency=low + + * Initial release + + -- Rene Engelhard Mon, 26 Nov 2007 10:06:34 +0100 + --- writer2latex-0.5.orig/debian/patches/01_dirs.dpatch +++ writer2latex-0.5/debian/patches/01_dirs.dpatch @@ -0,0 +1,38 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_dir.dpatch by Rene Engelhard +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad writer2latex-0.5~/build.xml writer2latex-0.5/build.xml +--- writer2latex-0.5~/build.xml 2007-11-20 21:42:34.000000000 +0100 ++++ writer2latex-0.5/build.xml 2007-11-20 21:42:45.000000000 +0100 +@@ -8,7 +8,7 @@ + + + +- ++ + + writer2latex - build file + +diff -urNad writer2latex-0.5~/w2l writer2latex-0.5/w2l +--- writer2latex-0.5~/w2l 2007-10-04 21:21:52.000000000 +0200 ++++ writer2latex-0.5/w2l 2007-11-20 21:48:02.000000000 +0100 +@@ -6,7 +6,7 @@ + # Modified may 2004 as suggested by J. Wolfgang Kaltz + # Please edit the following line to contain the full path to Writer2LaTeX: + +-W2LPATH="$HOME/writer2latex05" ++W2LPATH="/usr/share/writer2latex" + + # If the Java executable is not in your path, please edit the following + # line to contain the full path and file name +@@ -45,4 +45,4 @@ + else + $JAVAEXE -jar $W2LPATH/writer2latex.jar "$@" + +-fi +\ No newline at end of file ++fi --- writer2latex-0.5.orig/debian/patches/03_no_writer2latex_in_extension.dpatch +++ writer2latex-0.5/debian/patches/03_no_writer2latex_in_extension.dpatch @@ -0,0 +1,38 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 03_no_writer2latex_in_extension.dpatch by Rene Engelhard +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad writer2latex-0.5~/build.xml writer2latex-0.5/build.xml +--- writer2latex-0.5~/build.xml 2007-11-20 23:25:55.000000000 +0100 ++++ writer2latex-0.5/build.xml 2007-11-20 23:26:27.000000000 +0100 +@@ -100,7 +100,7 @@ + + + ++ includes="META-INF/manifest.xml,w2l_types.xcu,w2l_filters.xcu" /> + + + + + + + + +- +\ No newline at end of file ++ --- writer2latex-0.5.orig/debian/patches/02_BASE64_no_Sunism.dpatch +++ writer2latex-0.5/debian/patches/02_BASE64_no_Sunism.dpatch @@ -0,0 +1,33 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_BASE64_no_Sunism.dpatch by Rene Engelhard +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad writer2latex-0.5~/build.xml writer2latex-0.5/build.xml +--- writer2latex-0.5~/build.xml 2006-11-02 11:15:42.000000000 +0100 ++++ writer2latex-0.5/build.xml 2007-11-20 21:17:21.000000000 +0100 +@@ -85,7 +85,7 @@ + + + +- ++ + + + +diff -urNad writer2latex-0.5~/source/writer2latex/office/ImageLoader.java writer2latex-0.5/source/writer2latex/office/ImageLoader.java +--- writer2latex-0.5~/source/writer2latex/office/ImageLoader.java 2007-04-17 09:30:42.000000000 +0200 ++++ writer2latex-0.5/source/writer2latex/office/ImageLoader.java 2007-11-20 21:18:32.000000000 +0100 +@@ -107,8 +107,8 @@ + } + // TODO: Use another base64 decoder. This one is "nonstandard" + try { +- blob = new sun.misc.BASE64Decoder().decodeBuffer(buf.toString()); +- } catch (IOException e) { ++ blob = org.apache.xerces.impl.dv.util.Base64.decode(buf.toString()); ++ } catch (Exception e) { + System.err.println("Oops - error converting base64"); + } + sMIME = MIMETypes.getMagicMIMEType(blob); --- writer2latex-0.5.orig/debian/patches/00list +++ writer2latex-0.5/debian/patches/00list @@ -0,0 +1,2 @@ +01_dirs +02_BASE64_no_Sunism