packages: unoconv/unoconv-ooopath.patch (NEW), unoconv/unoconv.spec (NEW) -...

caleb caleb at pld-linux.org
Fri May 21 17:17:10 CEST 2010


Author: caleb                        Date: Fri May 21 15:17:10 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- Inital add

---- Files affected:
packages/unoconv:
   unoconv-ooopath.patch (NONE -> 1.1)  (NEW), unoconv.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/unoconv/unoconv-ooopath.patch
diff -u /dev/null packages/unoconv/unoconv-ooopath.patch:1.1
--- /dev/null	Fri May 21 17:17:10 2010
+++ packages/unoconv/unoconv-ooopath.patch	Fri May 21 17:17:05 2010
@@ -0,0 +1,11 @@
+--- unoconv~	2007-09-01 04:23:13.000000000 +0300
++++ unoconv	2010-05-21 17:59:08.060940939 +0300
+@@ -17,7 +17,7 @@
+ import getopt, sys, os, glob, time
+ 
+ #extrapaths = ('/usr/lib/openoffice/program/', '/usr/lib/openoffice.org2.0/program/')
+-extrapaths = glob.glob('/usr/lib*/openoffice*/program/') + glob.glob('/usr/lib*/ooo*/program') + [ '/Applications/NeoOffice.app/Contents/program', ]
++extrapaths = glob.glob('/usr/lib*/openoffice*/program/') + glob.glob('/usr/lib*/openoffice*/basis*/program/')
+ for path in extrapaths:
+     try:
+         sys.path.append(path)   

================================================================
Index: packages/unoconv/unoconv.spec
diff -u /dev/null packages/unoconv/unoconv.spec:1.1
--- /dev/null	Fri May 21 17:17:10 2010
+++ packages/unoconv/unoconv.spec	Fri May 21 17:17:05 2010
@@ -0,0 +1,59 @@
+# $Revision$, $Date$
+Summary:	Tool to convert between any document format supported by OpenOffice
+Name:		unoconv
+Version:	0.3
+Release:	1
+License:	GPL
+Group:		Base
+Source0:	http://dag.wieers.com/home-made/unoconv/%{name}-%{version}.tar.bz2
+# Source0-md5:	e6b33a2041137d8ebae1b71396ec0641
+Patch0:		%{name}-ooopath.patch
+URL:		http://dag.wieers.com/home-made/unoconv/
+BuildRequires:	python >= 2.0
+Requires:	openoffice.org-pyuno
+Requires:	python >= 2.0
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+unoconv converts between any document format that OpenOffice
+understands. It uses OpenOffice's UNO bindings for non-interactive
+conversion of documents.
+
+Supported document formats include: Open Document Text (.odt), Open
+Document Draw (.odd), Open Document Presentation (.odp), Open Document
+calc (.odc), MS Word (.doc), MS PowerPoint (.pps/.ppt), MS Excel
+(.xls), MS Office Open/OOXML (.xml), Portable Document Format (.pdf),
+DocBook (.xml), LaTeX (.ltx), HTML, XHTML, RTF, Docbook (.xml), GIF,
+PNG, JPG, SVG, BMP, EPS and many more...
+
+%prep
+%setup -q
+%patch0 -p0
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR="$RPM_BUILD_ROOT"
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/unoconv
+%doc AUTHORS ChangeLog COPYING README TODO WISHLIST docs/ tests/
+%{_mandir}/man1/unoconv.1*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/05/21 15:17:05  caleb
+- Inital add
+
================================================================


More information about the pld-cvs-commit mailing list