File catdoc.spec of Package catdoc
#
# spec file for package catdoc
#
# Copyright (c) 2018 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 https://bugs.opensuse.org/
#
Name: catdoc
Version: 0.95
Release: 0
Summary: MS-Office Format Readers
License: GPL-2.0-only
Group: Productivity/Text/Convertors
URL: http://www.wagner.pp.ru/~vitus/software/catdoc/
Source0: http://ftp.wagner.pp.ru/pub/catdoc/%{name}-%{version}.tar.gz
Patch0: catdoc-fix-build.patch
%description
catdoc is program which reads one or more Microsoft word files and
outputs text, contained insinde them to standard output. Therefore it
does same work for .doc files, as unix cat command for plain ASCII
files.
It is now accompanied by xls2csv - program which converts Excel
spreadsheet into comma-separated value file, and catppt - utility to
extract textual information from Powerpoint files.
%prep
%setup -q
%patch0 -p1
sed -i 's/\r$//' TODO
%build
%configure --disable-wordview
make %{?_smp_mflags}
%install
make installroot=%{buildroot} install
%files
%license COPYING
%doc NEWS README TODO
%{_bindir}/catdoc
%{_bindir}/catppt
%{_bindir}/xls2csv
%{_datadir}/%{name}
%{_mandir}/man1/catdoc.1%{?ext_man}
%{_mandir}/man1/catppt.1%{?ext_man}
%{_mandir}/man1/xls2csv.1%{?ext_man}
%changelog