File unoconv.spec of Package unoconv
#
# spec file for package unoconv
#
# Copyright (c) 2015 SUSE LINUX 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.7
Release: 0
Summary: Tool to convert between any document format supported by LibreOffice
License: GPL-2.0
Group: Productivity/File utilities
Url: http://dag.wieers.com/home-made/unoconv/
Source: http://dag.wieers.com/home-made/unoconv/unoconv-%{version}.tar.gz
Patch0: 0001-python3-added-compatibility.patch
Patch1: 0001-update-FSF-address.patch
Patch2: 0001-make-LaTeX-export-usable-with-writer2latex-ext.patch
Patch3: 0001-libreoffice-or-OO.o-has-never-had-wps-export.patch
Patch4: 0002-remove-export-formats-dropped-by-LibreOffice.patch
Patch5: 0001-Updated-ChangeLog.patch
%if 0%{?suse_version} >= 1315
Requires: python >= 3.0
%endif
Requires: libreoffice-pyuno
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
%if 0%{?suse_version} >= 1315
%patch0 -p1
%endif
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
%install
make DESTDIR=%{buildroot} install
make DESTDIR=%{buildroot} install-links
rm -v %{buildroot}%{_bindir}/odt2txt
%files
%defattr(-, root, root, 0755)
%doc AUTHORS CHANGELOG.md ChangeLog COPYING README.adoc doc/*.adoc
%doc %{_mandir}/man1/unoconv.1*
%{_bindir}/*
%changelog