File odt2txt.spec of Package odt2txt

# norootforbuild

Name:           odt2txt
Summary:        Converter from OpenDocument Text to plain text
Group:          Productivity/Text/Convertors
Version:        0.4
Release:        0
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}-%{release}-root
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