File unoconv.spec of Package unoconv
#
# spec file for package unoconv
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: unoconv
Version: 0.4
Release: 1
License: GPL
Summary: Tool to convert between any document format supported by LibreOffice
Url: http://dag.wieers.com/home-made/unoconv/
Group: Productivity/File utilities
Source: http://dag.wieers.com/home-made/unoconv/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM unoconv-0.4-LD_LIBRARY_PATH.patch bnc#657140 adam@mizerski.pl -- fix LD_LIBRARY_PATH handling. fixed in svn rev9235, so it should be in v0.5
Patch0: %{name}-0.4-LD_LIBRARY_PATH.patch
# PATCH-FIX-UPSTREAM unoconv-libreoffice-support.patch bnc#725004 vuntz@opensuse.org -- Add support for LibreOffice, taken from git
Patch1: unoconv-libreoffice-support.patch
# PATCH-FIX-UPSTREAM unoconv-output-argument.patch bnc#725004 vuntz@opensuse.org -- deprecate --outputpath in favor of --output, that works in a more reasonable way, taken from git
Patch2: unoconv-output-argument.patch
Requires: libreoffice-pyuno >= 2.0
Requires: python >= 2.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
unoconv converts between any document format that LibreOffice understands.
It uses LibreOffice'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 -p1
%patch1 -p1
%patch2 -p1
%build
%install
make DESTDIR=%{buildroot} install
make DESTDIR=%{buildroot} install-links
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog COPYING README TODO WISHLIST docs/*.txt
%doc %{_mandir}/man1/unoconv.1*
%{_bindir}/*
%changelog