File odt2txt.spec of Package odt2txt

#
# spec file for package odt2txt
#
# 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/
#

# norootforbuild


Name:           odt2txt
Summary:        Converter from OpenDocument Text to plain text
Group:          Productivity/Text/Convertors
Version:        0.4
Release:        1
License:        GPLv2
Url:            http://stosberg.net/odt2txt/
# repacked to bz2 http://stosberg.net/odt2txt/odt2txt-%%{version}.tar.gz
Source:         %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  zlib-devel

%description
A simple converter from OpenDocument Text to plain text

odt2txt is a command-line tool which extracts the text out of OpenDocument Texts produced by OpenOffice.org, StarOffice, KOffice and others.

odt2txt can also extract text from some file formats similar to OpenDocument Text, such as OpenOffice.org XML (*.sxw), which was used by OpenOffice.org version 1.x and older StarOffice versions. To a lesser extend, odt2txt may be useful to extract content from OpenDocument spreadsheets (*.ods) and OpenDocument presentations (*.odp).

%prep
%setup -q

%build
%__make CFLAGS="%optflags" %{?_smp_mflags}

%install
%__make DESTDIR=%buildroot PREFIX=%{_prefix} install
%__chmod 644 %buildroot%{_mandir}/man1/odt2txt.1

%clean
%__rm -rf %buildroot

%files
%defattr(-,root,root)
%{_bindir}/%{name}
%doc %{_mandir}/man1/odt2txt.1*

%changelog
openSUSE Build Service is sponsored by