File unoconv-libreoffice-support.patch of Package unoconv

From 445f4f2b79384d942c0e0cd18231e6f6c81b0528 Mon Sep 17 00:00:00 2001
From: Hans de Graaff <hans@winkwaves.com>
Date: Wed, 27 Apr 2011 12:49:31 +0200
Subject: [PATCH] Add support for libreoffice.

---
 unoconv |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/unoconv b/unoconv
index 611b3fe..72a026b 100755
--- a/unoconv
+++ b/unoconv
@@ -20,7 +20,8 @@ global convertor, oobin, oobinpath, oolibpath, ooproc
 
 ### The first thing we ought to do is find a suitable OpenOffice installation
 ### with a compatible pyuno library that we can import.
-extrapaths = glob.glob('/usr/lib*/openoffice*/program') + \
+extrapaths = glob.glob('/usr/lib*/libreoffice*/basis*/program') + \
+             glob.glob('/usr/lib*/openoffice*/program') + \
              glob.glob('/usr/lib*/openoffice*/basis*/program') + \
              glob.glob('/usr/lib*/ooo*/program') + \
              glob.glob('/usr/lib*/ooo*/basis*/program') + \
-- 
1.7.5.4
openSUSE Build Service is sponsored by