debian/0000755000000000000000000000000012264312510007162 5ustar debian/dirs0000644000000000000000000000001012264312510010035 0ustar usr/bin debian/source/0000755000000000000000000000000012264312510010462 5ustar debian/source/format0000644000000000000000000000001412264312510011670 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012264312510010611 5ustar debian/patches/support-for-xlsx.patch0000644000000000000000000000200712264312510015125 0ustar From 20b34c08622089c6b081c602a6428d6009aec0a3 Mon Sep 17 00:00:00 2001 From: Josias Montag Date: Tue, 7 May 2013 12:40:47 +0300 Subject: [PATCH] Add XLSX support add the 'Calc MS Excel 2007 XML' (XLSX) export filter --- unoconv | 1 + 1 file changed, 1 insertion(+) diff --git a/unoconv b/unoconv index 30e6706..ea18a38 100755 --- a/unoconv +++ b/unoconv @@ -419,6 +419,7 @@ fmts.add('spreadsheet', 'xls95', 'xls', 'Microsoft Excel 95', 'MS Excel 95') ### fmts.add('spreadsheet', 'xlt', 'xlt', 'Microsoft Excel 97/2000/XP Template', 'MS Excel 97 Vorlage/Template') ### 6 fmts.add('spreadsheet', 'xlt5', 'xlt', 'Microsoft Excel 5.0 Template', 'MS Excel 5.0/95 Vorlage/Template') ### 28 fmts.add('spreadsheet', 'xlt95', 'xlt', 'Microsoft Excel 95 Template', 'MS Excel 95 Vorlage/Template') ### 21 +fmts.add('spreadsheet', 'xlsx', 'xlsx', 'Microsoft Excel 2007/2010 XML', 'Calc MS Excel 2007 XML') ### Graphics fmts.add('graphics', 'bmp', 'bmp', 'Windows Bitmap', 'draw_bmp_Export') ### 21 -- 1.8.5.1 debian/patches/python3-support.patch0000644000000000000000000004272312264312510014760 0ustar From fc59dd90f03cf88f4cf16c07204809f2239284ee Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Thu, 20 Dec 2012 00:02:53 +0100 Subject: [PATCH] Add support for python3 Libreoffice 4.0 will switch its internal python version to 3.3.0 so it's to support that. Porting done automatically 2to3 plus print_function import added manually. Tested on both libreoffice master with internal python and with libreoffince 3.6.4 on debian with system python 2.7. This bumps the minimal python version to 2.6 since 2.5 does not have the print function. --- unoconv | 124 +++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 63 insertions(+), 61 deletions(-) diff --git a/unoconv b/unoconv index 30e6706..f72cf08 100755 --- a/unoconv +++ b/unoconv @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ### 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 @@ -14,6 +14,8 @@ ### Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ### Copyright 2007-2010 Dag Wieers +from __future__ import print_function + from distutils.version import LooseVersion import getopt import glob @@ -77,11 +79,11 @@ def find_offices(): else: if os.name in ( 'nt', 'os2' ): - if 'PROGRAMFILES' in os.environ.keys(): + if 'PROGRAMFILES' in list(os.environ.keys()): extrapaths += glob.glob(os.environ['PROGRAMFILES']+'\\LibreOffice*') + \ glob.glob(os.environ['PROGRAMFILES']+'\\OpenOffice.org*') - if 'PROGRAMFILES(X86)' in os.environ.keys(): + if 'PROGRAMFILES(X86)' in list(os.environ.keys()): extrapaths += glob.glob(os.environ['PROGRAMFILES(X86)']+'\\LibreOffice*') + \ glob.glob(os.environ['PROGRAMFILES(X86)']+'\\OpenOffice.org*') @@ -233,18 +235,18 @@ def office_environ(office): def debug_office(): if 'URE_BOOTSTRAP' in os.environ: - print >>sys.stderr, 'URE_BOOTSTRAP=%s' % os.environ['URE_BOOTSTRAP'] + print('URE_BOOTSTRAP=%s' % os.environ['URE_BOOTSTRAP'], file=sys.stderr) if 'UNO_PATH' in os.environ: - print >>sys.stderr, 'UNO_PATH=%s' % os.environ['UNO_PATH'] + print('UNO_PATH=%s' % os.environ['UNO_PATH'], file=sys.stderr) if 'UNO_TYPES' in os.environ: - print >>sys.stderr, 'UNO_TYPES=%s' % os.environ['UNO_TYPES'] - print 'PATH=%s' % os.environ['PATH'] + print('UNO_TYPES=%s' % os.environ['UNO_TYPES'], file=sys.stderr) + print('PATH=%s' % os.environ['PATH']) if 'PYTHONHOME' in os.environ: - print >>sys.stderr, 'PYTHONHOME=%s' % os.environ['PYTHONHOME'] + print('PYTHONHOME=%s' % os.environ['PYTHONHOME'], file=sys.stderr) if 'PYTHONPATH' in os.environ: - print >>sys.stderr, 'PYTHONPATH=%s' % os.environ['PYTHONPATH'] + print('PYTHONPATH=%s' % os.environ['PYTHONPATH'], file=sys.stderr) if 'LD_LIBRARY_PATH' in os.environ: - print >>sys.stderr, 'LD_LIBRARY_PATH=%s' % os.environ['LD_LIBRARY_PATH'] + print('LD_LIBRARY_PATH=%s' % os.environ['LD_LIBRARY_PATH'], file=sys.stderr) def python_switch(office): if office.pythonhome: @@ -335,11 +337,11 @@ class FmtList: return ret def display(self, doctype): - print >>sys.stderr, "The following list of %s formats are currently available:\n" % doctype + print("The following list of %s formats are currently available:\n" % doctype, file=sys.stderr) for fmt in self.list: if fmt.doctype == doctype: - print >>sys.stderr, " %-8s - %s" % (fmt.name, fmt) - print >>sys.stderr + print(" %-8s - %s" % (fmt.name, fmt), file=sys.stderr) + print(file=sys.stderr) fmts = FmtList() @@ -530,14 +532,14 @@ class Options: 'outputpath', 'password=', 'pipe=', 'port=', 'server=', 'timeout=', 'show', 'stdout', 'template', 'verbose', 'version'] ) - except getopt.error, exc: - print 'unoconv: %s, try unoconv -h for a list of all the options' % str(exc) + except getopt.error as exc: + print('unoconv: %s, try unoconv -h for a list of all the options' % str(exc)) sys.exit(255) for opt, arg in opts: if opt in ['-h', '--help']: self.usage() - print + print() self.help() sys.exit(1) elif opt in ['-c', '--connection']: @@ -562,7 +564,7 @@ class Options: except ValueError: self.exportfilter.append( PropertyValue( name, 0, value, 0 ) ) else: - print >>sys.stderr, 'Warning: Option %s cannot be parsed, ignoring.' % arg + print('Warning: Option %s cannot be parsed, ignoring.' % arg, file=sys.stderr) elif opt in ['-f', '--format']: self.format = arg elif opt in ['-i', '--import']: @@ -581,7 +583,7 @@ class Options: except ValueError: self.importfilter.append( PropertyValue( name, 0, value, 0 ) ) else: - print >>sys.stderr, 'Warning: Option %s cannot be parsed, ignoring.' % arg + print('Warning: Option %s cannot be parsed, ignoring.' % arg, file=sys.stderr) elif opt in ['-l', '--listener']: self.listener = True elif opt in ['-n', '--no-launch']: @@ -589,7 +591,7 @@ class Options: elif opt in ['-o', '--output']: self.output = arg elif opt in ['--outputpath']: - print >>sys.stderr, 'Warning: This option is deprecated by --output.' + print('Warning: This option is deprecated by --output.', file=sys.stderr) self.output = arg elif opt in ['--password']: self.password = arg @@ -615,13 +617,13 @@ class Options: ### Enable verbosity if self.verbose >= 2: - print >>sys.stderr, 'Verbosity set to level %d' % self.verbose + print('Verbosity set to level %d' % self.verbose, file=sys.stderr) self.filenames = args if not self.listener and not self.showlist and self.doctype != 'list' and not self.filenames: - print >>sys.stderr, 'unoconv: you have to provide a filename as argument' - print >>sys.stderr, 'Try `unoconv -h\' for more information.' + print('unoconv: you have to provide a filename as argument', file=sys.stderr) + print('Try `unoconv -h\' for more information.', file=sys.stderr) sys.exit(255) ### Set connection string @@ -659,21 +661,21 @@ class Options: ### Get office product information product = uno.getComponentContext().ServiceManager.createInstance("com.sun.star.configuration.ConfigurationProvider").createInstanceWithArguments("com.sun.star.configuration.ConfigurationAccess", UnoProps(nodepath="/org.openoffice.Setup/Product")) - print 'unoconv %s' % VERSION - print 'Written by Dag Wieers ' - print 'Homepage at http://dag.wieers.com/home-made/unoconv/' - print - print 'platform %s/%s' % (os.name, sys.platform) - print 'python %s' % sys.version - print product.ooName, product.ooSetupVersion + print('unoconv %s' % VERSION) + print('Written by Dag Wieers ') + print('Homepage at http://dag.wieers.com/home-made/unoconv/') + print() + print('platform %s/%s' % (os.name, sys.platform)) + print('python %s' % sys.version) + print(product.ooName, product.ooSetupVersion) # print # print 'build revision $Rev$' def usage(self): - print >>sys.stderr, 'usage: unoconv [options] file [file2 ..]' + print('usage: unoconv [options] file [file2 ..]', file=sys.stderr) def help(self): - print >>sys.stderr, '''Convert from and to any format supported by LibreOffice + print('''Convert from and to any format supported by LibreOffice unoconv options: -c, --connection=string use a custom connection string @@ -698,7 +700,7 @@ unoconv options: -t, --template=file import the styles from template (.ott) -T, --timeout=secs timeout after secs if connection to listener fails -v, --verbose be more and more verbose (-vvv for debugging) -''' +''', file=sys.stderr) class Convertor: def __init__(self): @@ -714,7 +716,7 @@ class Convertor: info(3, 'Connection type: %s' % op.connection) try: unocontext = resolver.resolve("uno:%s" % op.connection) - except NoConnectException, e: + except NoConnectException as e: # info(3, "Existing listener not found.\n%s" % e) info(3, "Existing listener not found.") @@ -749,7 +751,7 @@ class Convertor: raise else: error("Failed to connect to %s (pid=%s) in %d seconds.\n%s" % (office.binary, ooproc.pid, op.timeout, e)) - except Exception, e: + except Exception as e: raise error("Launch of %s failed.\n%s" % (office.binary, e)) @@ -799,9 +801,9 @@ class Convertor: ### No format found, throw error if not outputfmt: if doctype: - print >>sys.stderr, 'unoconv: format [%s/%s] is not known to unoconv.' % (op.doctype, op.format) + print('unoconv: format [%s/%s] is not known to unoconv.' % (op.doctype, op.format), file=sys.stderr) else: - print >>sys.stderr, 'unoconv: format [%s] is not known to unoconv.' % op.format + print('unoconv: format [%s] is not known to unoconv.' % op.format, file=sys.stderr) die(1) return outputfmt @@ -813,10 +815,10 @@ class Convertor: outputfmt = self.getformat(inputfn) if op.verbose > 0: - print >>sys.stderr, 'Input file:', inputfn + print('Input file:', inputfn, file=sys.stderr) if not os.path.exists(inputfn): - print >>sys.stderr, 'unoconv: file `%s\' does not exist.' % inputfn + print('unoconv: file `%s\' does not exist.' % inputfn, file=sys.stderr) exitcode = 1 try: @@ -854,7 +856,7 @@ class Convertor: templateurl = unohelper.absolutize(self.cwd, unohelper.systemPathToFileUrl(op.template)) document.StyleFamilies.loadStylesFromURL(templateurl, templateprops) else: - print >>sys.stderr, 'unoconv: template file `%s\' does not exist.' % op.template + print('unoconv: template file `%s\' does not exist.' % op.template, file=sys.stderr) exitcode = 1 ### Update document links @@ -924,40 +926,40 @@ class Convertor: try: document.storeToURL(outputurl, tuple(outputprops) ) - except IOException, e: + except IOException as e: raise UnoException("Unable to store document to %s (ErrCode %d)\n\nProperties: %s" % (outputurl, e.ErrCode, outputprops), None) phase = "dispose" document.dispose() document.close(True) - except SystemError, e: + except SystemError as e: error("unoconv: SystemError during %s phase:\n%s" % (phase, e)) exitcode = 1 - except RuntimeException, e: + except RuntimeException as e: error("unoconv: RuntimeException during %s phase:\nOffice probably died. %s" % (phase, e)) exitcode = 6 - except DisposedException, e: + except DisposedException as e: error("unoconv: DisposedException during %s phase:\nOffice probably died. %s" % (phase, e)) exitcode = 7 - except IllegalArgumentException, e: + except IllegalArgumentException as e: error("UNO IllegalArgument during %s phase:\nSource file cannot be read. %s" % (phase, e)) exitcode = 8 - except IOException, e: + except IOException as e: # for attr in dir(e): print '%s: %s', (attr, getattr(e, attr)) error("unoconv: IOException during %s phase:\n%s" % (phase, e.Message)) exitcode = 3 - except CannotConvertException, e: + except CannotConvertException as e: # for attr in dir(e): print '%s: %s', (attr, getattr(e, attr)) error("unoconv: CannotConvertException during %s phase:\n%s" % (phase, e.Message)) exitcode = 4 - except UnoException, e: + except UnoException as e: if hasattr(e, 'ErrCode'): error("unoconv: UnoException during %s phase in %s (ErrCode %d)" % (phase, repr(e.__class__), e.ErrCode)) exitcode = e.ErrCode @@ -982,7 +984,7 @@ class Listener: product = self.svcmgr.createInstance("com.sun.star.configuration.ConfigurationProvider").createInstanceWithArguments("com.sun.star.configuration.ConfigurationAccess", UnoProps(nodepath="/org.openoffice.Setup/Product")) try: unocontext = resolver.resolve("uno:%s" % op.connection) - except NoConnectException, e: + except NoConnectException as e: pass else: info(1, "Existing %s listener found, nothing to do." % product.ooName) @@ -991,25 +993,25 @@ class Listener: subprocess.call([office.binary, "-headless", "-invisible", "-nocrashreport", "-nodefault", "-nologo", "-nofirststartwizard", "-norestore", "-accept=%s" % op.connection], env=os.environ) else: subprocess.call([office.binary, "--headless", "--invisible", "--nocrashreport", "--nodefault", "--nologo", "--nofirststartwizard", "--norestore", "--accept=%s" % op.connection], env=os.environ) - except Exception, e: + except Exception as e: error("Launch of %s failed.\n%s" % (office.binary, e)) else: info(1, "Existing %s listener found, nothing to do." % product.ooName) def error(msg): "Output error message" - print >>sys.stderr, msg + print(msg, file=sys.stderr) def info(level, msg): "Output info message" if 'op' not in globals(): pass elif op.verbose >= 3 and level >= 3: - print >>sys.stderr, "DEBUG:", msg + print("DEBUG:", msg, file=sys.stderr) elif not op.stdout and level <= op.verbose: - print >>sys.stdout, msg + print(msg, file=sys.stdout) elif level <= op.verbose: - print >>sys.stderr, msg + print(msg, file=sys.stderr) def die(ret, msg=None): "Print optional error and exit with errorcode" @@ -1031,7 +1033,7 @@ def die(ret, msg=None): subprocess.Popen([office.binary, "--headless", "--invisible", "--nocrashreport", "--nodefault", "--nofirststartwizard", "--nologo", "--norestore", "--unaccept=%s" % op.connection], env=os.environ) ooproc.wait() info(2, '%s listener successfully disabled.' % product.ooName) - except Exception, e: + except Exception as e: error("Terminate using %s failed.\n%s" % (office.binary, e)) ### If there is no GUI attached to the instance, terminate instance @@ -1080,7 +1082,7 @@ def main(): for inputfn in op.filenames: convertor.convert(inputfn) - except NoConnectException, e: + except NoConnectException as e: error("unoconv: could not find an existing connection to LibreOffice at %s:%s." % (op.server, op.port)) if op.connection: info(0, "Please start an LibreOffice instance on server '%s' by doing:\n\n unoconv --listener --server %s --port %s\n\nor alternatively:\n\n soffice -nologo -nodefault -accept=\"%s\"" % (op.server, op.server, op.port, op.connection)) @@ -1110,14 +1112,14 @@ if __name__ == '__main__': break except: # debug_office() - print >>sys.stderr, "unoconv: Cannot find a suitable pyuno library and python binary combination in %s" % of - print >>sys.stderr, "ERROR:", sys.exc_info()[1] - print >>sys.stderr + print("unoconv: Cannot find a suitable pyuno library and python binary combination in %s" % of, file=sys.stderr) + print("ERROR:", sys.exc_info()[1], file=sys.stderr) + print(file=sys.stderr) else: # debug_office() - print >>sys.stderr, "unoconv: Cannot find a suitable office installation on your system." - print >>sys.stderr, "ERROR: Please locate your office installation and send your feedback to:" - print >>sys.stderr, " http://github.com/dagwieers/unoconv/issues" + print("unoconv: Cannot find a suitable office installation on your system.", file=sys.stderr) + print("ERROR: Please locate your office installation and send your feedback to:", file=sys.stderr) + print(" http://github.com/dagwieers/unoconv/issues", file=sys.stderr) sys.exit(1) ### Now that we have found a working pyuno library, let's import some classes @@ -1160,6 +1162,6 @@ if __name__ == '__main__': try: main() - except KeyboardInterrupt, e: + except KeyboardInterrupt as e: die(6, 'Exiting on user request') die(exitcode) -- 1.8.1.6 debian/patches/series0000644000000000000000000000023112264312510012022 0ustar python3-support.patch dont-show-changes.patch spelling-errors-unoconv-manual.patch python3-stdout-fix.patch support-for-wps.patch support-for-xlsx.patch debian/patches/python3-stdout-fix.patch0000644000000000000000000000114712264312510015345 0ustar From: Caolán McNamara Subject: Fix "can't write bytes direct to stdout in python3" Origin: https://github.com/caolanm/unoconv/commit/3249fd3df136f1a859ac0272f75fcbf010926d58 Forwarded: https://github.com/dagwieers/unoconv/pull/170 diff --git a/unoconv b/unoconv index a4f9490..2b0b0eb 100755 --- a/unoconv +++ b/unoconv @@ -1146,7 +1146,7 @@ if __name__ == '__main__': self.closed = 1 def writeBytes( self, seq ): - sys.stdout.write( seq.value ) + sys.stdout.buffer.write( seq.value ) def flush( self ): pass -- 1.8.5.1 debian/patches/support-for-wps.patch0000644000000000000000000000166512264312510014751 0ustar From a59b9b05824868266dc0bc82518132942821515e Mon Sep 17 00:00:00 2001 From: Josias Montag Date: Wed, 14 Aug 2013 12:51:04 +0200 Subject: [PATCH] add Microsoft Works (.wps) import filter --- unoconv | 1 + 1 file changed, 1 insertion(+) diff --git a/unoconv b/unoconv index a4f9490..7a4b89c 100755 --- a/unoconv +++ b/unoconv @@ -375,6 +375,7 @@ fmts.add('document', 'uot', 'uot', 'Unified Office Format text','UOF text') ### fmts.add('document', 'vor', 'vor', 'StarWriter 5.0 Template', 'StarWriter 5.0 Vorlage/Template') ### 6 fmts.add('document', 'vor4', 'vor', 'StarWriter 4.0 Template', 'StarWriter 4.0 Vorlage/Template') ### 5 fmts.add('document', 'vor3', 'vor', 'StarWriter 3.0 Template', 'StarWriter 3.0 Vorlage/Template') ### 4 +fmts.add('document', 'wps', 'wps', 'Microsoft Works', 'MS_Works') fmts.add('document', 'xhtml', 'html', 'XHTML Document', 'XHTML Writer File') ### 33 ### WebDocument -- 1.8.5.1 debian/patches/dont-show-changes.patch0000644000000000000000000000105212264312510015160 0ustar Hide changes when converting a document. Closes: #624295. diff --git a/unoconv b/unoconv index 972e962..dd43884 100755 --- a/unoconv +++ b/unoconv @@ -882,6 +882,11 @@ class Convertor: info(2, "Selected office filter: %s" % outputfmt.filter) info(2, "Used doctype: %s" % outputfmt.doctype) + ### Document properties phase + phase = "properties" + if hasattr(document, 'ShowChanges'): + document.ShowChanges = False + ### Export phase phase = "export" debian/patches/spelling-errors-unoconv-manual.patch0000644000000000000000000000417612264312510017731 0ustar Description: Fix spelling errors in unoconv.1 Forwarded: https://github.com/dagwieers/unoconv/pull/117 Author: Vincent Bernat Last-Update: 2013-02-18 Index: unoconv-0.6/doc/unoconv.1 =================================================================== --- unoconv-0.6.orig/doc/unoconv.1 2013-02-18 17:04:12.127613761 +1300 +++ unoconv-0.6/doc/unoconv.1 2013-02-18 17:04:33.479614342 +1300 @@ -222,7 +222,7 @@ .RE .\} .sp -For a list of posible encoding types, you can use the above link to find the possible options\&. +For a list of possible encoding types, you can use the above link to find the possible options\&. .sp .RS 4 .ie n \{\ @@ -278,7 +278,7 @@ .RE .\} .sp -For a list of posible encoding types, you can use the above link to find the possible options\&. +For a list of possible encoding types, you can use the above link to find the possible options\&. .sp .RS 4 .ie n \{\ @@ -339,7 +339,7 @@ .RE .\} .sp -For a list of posible encoding types, you can use the above link to find the possible options\&. +For a list of possible encoding types, you can use the above link to find the possible options\&. .sp .RS 4 .ie n \{\ Index: unoconv-0.6/doc/unoconv.1.txt =================================================================== --- unoconv-0.6.orig/doc/unoconv.1.txt 2013-02-18 17:04:12.127613761 +1300 +++ unoconv-0.6/doc/unoconv.1.txt 2013-02-18 17:04:42.235614582 +1300 @@ -134,7 +134,7 @@ -i FilterOptions=76 -For a list of posible encoding types, you can use the above link to find the +For a list of possible encoding types, you can use the above link to find the possible options. - FilterOptions @@ -165,7 +165,7 @@ -i FilterOptions=9/32,,9,2 -For a list of posible encoding types, you can use the above link to find the +For a list of possible encoding types, you can use the above link to find the possible options. - FilterOptions @@ -207,7 +207,7 @@ -e FilterOptions=9/32,,9 -For a list of posible encoding types, you can use the above link to find the +For a list of possible encoding types, you can use the above link to find the possible options. - FilterOptions debian/copyright0000644000000000000000000000173312264312510011121 0ustar This package was downloaded from Files: * Copyright: © 2007 Dag Wieers License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; version 2 only 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. Files: * Copyright: © 2007, 2008 Vincent Bernat License: GPL-2+ On Debian systems, the complete text of the GPL can be found in `/usr/share/common-licenses/GPL`. debian/rules0000755000000000000000000000070212264312510010241 0ustar #!/usr/bin/make -f # -*- makefile -*- %: dh $@ override_dh_install: $(MAKE) DESTDIR=$(CURDIR)/debian/unoconv install install-links mv $(CURDIR)/debian/unoconv/usr/bin/odt2txt $(CURDIR)/debian/unoconv/usr/bin/odt2txt.unoconv # Add link to manual pages find debian/unoconv/usr/bin -name '*2*' | \ while read f; do \ dh_link usr/share/man/man1/unoconv.1 usr/share/man/man1/"`echo "$$f" | sed -e s#debian/unoconv/usr/bin/##`".1; \ done debian/README.Debian0000644000000000000000000000126512264312510011227 0ustar If you are unable to convert some documents, ensure first that you have installed the appropriate LibreOffice package. For example, if you want to convert a text document, you need libreoffice-writer. If you want to convert a spreadsheet, you need libreoffice-calc. On most installations, unoconv will pull "libreoffice" package that contains everything needed. However, this is only a suggestion and if you have configured your package system to not install suggestions, you need to install the appropriate modules by hand. If this still does not work, check that you are able to open the document using LibreOffice. -- Vincent Bernat , Sat, 5 Mar 2011 12:37:43 +0100 debian/compat0000644000000000000000000000000212264312510010360 0ustar 7 debian/postinst0000644000000000000000000000040012264312510010762 0ustar #!/bin/sh -e #DEBHELPER# if [ "$1" = configure ]; then update-alternatives --quiet --install /usr/bin/odt2txt odt2txt /usr/bin/odt2txt.unoconv 100 \ --slave /usr/share/man/man1/odt2txt.1.gz odt2txt.1.gz \ /usr/share/man/man1/odt2txt.unoconv.1.gz fi debian/prerm0000644000000000000000000000023212264312510010227 0ustar #!/bin/sh -e if [ "$1" = remove ] || [ "$1" = deconfigure ]; then update-alternatives --quiet --remove odt2txt /usr/bin/odt2txt.unoconv fi #DEBHELPER# debian/watch0000644000000000000000000000010712264312510010211 0ustar version=3 http://dag.wieers.com/home-made/unoconv/ unoconv-(.*).tar.gz debian/changelog0000644000000000000000000001142412264312510011036 0ustar unoconv (0.6-6) unstable; urgency=low * Add support for Microsoft Works and Microsoft Excel 2007 XML. Closes: #734434. -- Vincent Bernat Sat, 11 Jan 2014 20:01:58 +0100 unoconv (0.6-5) unstable; urgency=low * Fix use of `--stdout` with Python3. Closes: #718481. -- Vincent Bernat Sun, 29 Dec 2013 17:58:05 +0100 unoconv (0.6-4) unstable; urgency=low * Drop no-asciidoc-for-selinux.patch. Not needed anymore. Closes: #732351. * Patch for spelling errors in the manual page. Thanks to Olly Betts for the patch and to Paul Wise to report it. Closes: #732352. * Bump Standards-Version. -- Vincent Bernat Sat, 21 Dec 2013 17:21:23 +0100 unoconv (0.6-3) unstable; urgency=low * Depends on python3-uno (>= 4.0) to ensure to have the version supporting Python 3.3. Closes: #717485. -- Vincent Bernat Sun, 21 Jul 2013 12:59:47 +0200 unoconv (0.6-2) unstable; urgency=low * Patch to avoid to show changes. Should closes: #624295. * Patch for Python 3 support. Closes: #707337. * Depends on python3-uno. -- Vincent Bernat Sat, 20 Jul 2013 12:17:45 +0200 unoconv (0.6-1) unstable; urgency=low * New upstream version. Closes: #700893. * Don't recommend the whole LibreOffice suite, only core components. Closes: #710799. * Bump Standards-Version to 3.9.4. * Update Vcs-* fields. * Update debian/watch. * Drop doc-base integration: we only install the manual page. * Add a Lintian override for Conflicts with older versions of odt2txt. It is legit. -- Vincent Bernat Sun, 02 Jun 2013 16:32:40 +0200 unoconv (0.5-1) unstable; urgency=low * New upstream version. Closes: #670574. + Typo in manual page fixed. Closes: #594648. + Don't use deprecated command line switches with Libre Office. Closes: #640771 * Update debian/watch to use GitHub. * Bump Standards-Version to 3.9.3. * Do not build selinux.html: selinux.txt is not a valid asciidoc file. * Fix spelling error in unoconv.1. * Register documentation with doc-base. -- Vincent Bernat Sat, 28 Apr 2012 09:51:22 +0200 unoconv (0.4-3) unstable; urgency=low * Move libreoffice from Suggests to Recommends since libreoffice-core does not depend on most important modules any more. Closes: #641806. * Bump Standards-Version to 3.9.2. -- Vincent Bernat Sun, 25 Sep 2011 09:35:06 +0200 unoconv (0.4-2) unstable; urgency=low * Add a README.Debian file to notice that unoconv will only be able to convert some formats only if the appropriate LibreOffice package is installed. Closes: #491456. -- Vincent Bernat Sat, 05 Mar 2011 12:34:48 +0100 unoconv (0.4-1) unstable; urgency=low * New upstream version. + Drop patch to support Impress templates which is included upstream. + Fix manpage with invalid option. Closes: #569160. * Switch to 3.0 (quilt) format. * Bump Standards-Version to 3.9.1. * Depends on LibreOffice packages instead of OpenOffice.org ones. * Switch to debhelper 7. -- Vincent Bernat Sat, 05 Mar 2011 12:28:32 +0100 unoconv (0.3-6) unstable; urgency=low * Recommends openoffice.org-headless or openoffice.org-core (>= 1:3) since it is already headless capable. * Also recommends openoffice.org-java-common. This should closes: #501440. * Bump Standards-Version to 3.8.3. No change required. -- Vincent Bernat Tue, 27 Oct 2009 20:00:19 +0100 unoconv (0.3-5) unstable; urgency=low * Recommends openoffice.org-headless instead of openoffice.org. * Suggests openoffice.org. -- Vincent Bernat Wed, 19 Nov 2008 19:51:40 +0100 unoconv (0.3-4) unstable; urgency=low * Recommends openoffice.org. Without openoffice.org-writer, unoconv cannot convert a text document for example. This leads to bugs similar to #491456 (but there seems to be other reasons for such bug). * Update to new Standards-Version. No changes required. * In debian/control: + add Vcs-* fields + remove DM-Upload-Allowed field * Convert debian/copyright to machine readable format -- Vincent Bernat Sun, 17 Aug 2008 13:01:43 +0200 unoconv (0.3-3) unstable; urgency=low * Add support for Impress templates, thanks to Sune Vuorela (Closes: #456654). -- Vincent Bernat Mon, 17 Dec 2007 22:27:11 +0100 unoconv (0.3-2) unstable; urgency=low * Use update-alternatives to provide odt2txt, thanks to Michal Politowsk (Closes: #451586). -- Vincent Bernat Sat, 17 Nov 2007 11:38:42 +0100 unoconv (0.3-1) unstable; urgency=low * Initial release (Closes: #444885) -- Vincent Bernat Mon, 01 Oct 2007 20:14:53 +0200 debian/control0000644000000000000000000000176712264312510010600 0ustar Source: unoconv Section: text Priority: extra Maintainer: Vincent Bernat Build-Depends: debhelper (>= 7.0.50~) Build-Depends-Indep: asciidoc Standards-Version: 3.9.5 Homepage: http://dag.wieers.com/home-made/unoconv/ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/unoconv.git Vcs-Git: git://anonscm.debian.org/collab-maint/unoconv.git Package: unoconv Architecture: all Depends: python3, python3-uno (>= 4.0), ${misc:Depends} Recommends: libreoffice-writer, libreoffice-draw, libreoffice-calc, libreoffice-impress Conflicts: odt2txt (<= 0.3-1) Description: converter between LibreOffice document formats This package provides a commandline utility which can convert from any document format that LibreOffice can import to any document format it can export. It uses LibreOffice's UNO bindings for non-interactive conversion of documents. . Supported document formats include Open Document format, MS Word, MS Office Open/MS OOXML, PDF, HTML, XHTML, RTF, DocBook, and more. debian/docs0000644000000000000000000000004512264312510010034 0ustar README.asciidoc WISHLIST docs/*.html debian/unoconv.lintian-overrides0000644000000000000000000000013012264312510014223 0ustar unoconv: conflicts-with-version odt2txt (<= 0.3-1) unoconv: manpage-has-errors-from-man