File OpenOffice_org-converter.spec of Package OpenOffice_org-converter
#
# spec file for package OpenOffice_org-converter (Version 3.0)
#
# Copyright (c) 2008 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_basis_dir basis3.0
%define ooo_home ooo3
Version: 3.0
Release: 1
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
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 documents between various formats on the commandline. It uses
OpenOffice.org that guarantees the quality and the variety of available
document formats.
%prep
%setup -c -T
cp %{S:0} %{S:1} .
%patch0
%build
%install
install -m 755 -d $RPM_BUILD_ROOT%_datadir/%ooo_home/%ooo_basis_dir/program
install -m 755 -d $RPM_BUILD_ROOT%_bindir
install -m 644 DocumentConverter.py $RPM_BUILD_ROOT%_datadir/%ooo_home/%ooo_basis_dir/program
install -m 755 ooconvert $RPM_BUILD_ROOT%_bindir
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir %_datadir/%ooo_home
%dir %_datadir/%ooo_home/%ooo_basis_dir
%dir %_datadir/%ooo_home/%ooo_basis_dir/program
%_datadir/%ooo_home/%ooo_basis_dir/program/*
%_bindir/*
%changelog
* Thu Sep 11 2008 pmladek@suse.cz
- package created, version 3.0 (fate#304874)