File OpenOffice_org-converter.spec of Package OpenOffice_org-converter

#
# spec file for package OpenOffice_org-converter (Version 3.0)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           OpenOffice_org-converter
%define	      	ooo_home	ooo3
Version:        3.0
Release:        5
License:        LGPL v2.1 or later
Group:          Productivity/Office/Other
AutoReqProv:    on
Requires:       OpenOffice_org-pyuno >= 2.99
Summary:        Commandline Document Converter Using OpenOffice.org
Url:            http://www.artofsolving.com/files/DocumentConverter.py
Source0:        DocumentConverter.py
Source1:        ooconvert
Source2:        ooconvert.1
Patch0:         DocumentConverter.py-more-types.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This package includes a simple script ooconvert that can be used to
convert various document file formats on the commandline. It uses
OpenOffice.org that guarantees the quality and the variety of available
document file formats.



%prep
%setup -c -T
cp %{S:0} %{S:1} %{S:2} .
%patch0

%build

%install
install -m 755 -d $RPM_BUILD_ROOT%_datadir/%ooo_home/program
install -m 755 -d $RPM_BUILD_ROOT%_bindir
install -m 755 -d $RPM_BUILD_ROOT%_mandir/man1
install -m 644 DocumentConverter.py $RPM_BUILD_ROOT%_datadir/%ooo_home/program
install -m 755 ooconvert $RPM_BUILD_ROOT%_bindir
install -m 644 ooconvert.1 $RPM_BUILD_ROOT%_mandir/man1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%dir %_datadir/%ooo_home
%dir %_datadir/%ooo_home/program
%_datadir/%ooo_home/program/*
%_bindir/*
%_mandir/man1/*

%changelog
* Thu Apr 23 2009 pmladek@suse.cz
- moved DocumentConverter.py from the basis3.0 dir to avoid dependency
  on the minor OOo version; works with OOo-3.1 now
* Mon Feb 09 2009 pmladek@suse.cz
- defined filters for OOo-1.x file formats
- defined filters for templates of the already supported formats
- added check for already existing output file
- added --force option
- added manual page and better help
- fixed to work with filenames with space
* Thu Sep 11 2008 pmladek@suse.cz
- package created, version 3.0 (fate#304874)
openSUSE Build Service is sponsored by