File antiword.spec of Package antiword
#
# spec file for package antiword (Version 0.37)
#
# Copyright (c) 2004 SuSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
# norootforbuild
Name: antiword
License: GPL-2.0-or-later
Group: Productivity/Text/Convertors
Autoreqprov: on
Version: 0.37
Release: 0
Source0: antiword-%{version}.tar.bz2
Source1: README.SuSE
URL: http://www.winfield.demon.nl/
Summary: A Free MS Word Reader for Linux and RISC OS
BuildRequires: gcc-c++ xorg-x11-devel
%if 0%{?suse_version} > 1200
BuildRequires: glib2-devel
%else
BuildRequires: glib-devel
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Antiword converts the files from Microsoft Word (TM) 6, 7, 97,
2000, and 2003 to plain text and PostScript (TM) format.
Authors:
--------
A.J. van Os <antiword@winfield.demon.nl>
%prep
%setup
%{?suse_update_config:%{suse_update_config}}
%build
make CFLAGS="$RPM_OPT_FLAGS -pedantic -DNDEBUG"
%install
cp %{SOURCE1} .
chmod 644 Docs/* Resources/*.txt README.SuSE
install -d $RPM_BUILD_ROOT/%{_bindir}
install -m 755 antiword $RPM_BUILD_ROOT/%{_bindir}
install -m 755 kantiword $RPM_BUILD_ROOT/%{_bindir}
install -d $RPM_BUILD_ROOT/%{_mandir}/man1
mv Docs/antiword.1 $RPM_BUILD_ROOT/%{_mandir}/man1
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/antiword
install -m 644 Resources/*.txt $RPM_BUILD_ROOT/%{_datadir}/antiword
install -m 644 Resources/fontnames $RPM_BUILD_ROOT/%{_datadir}/antiword
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc Docs/* README.SuSE
%{_bindir}/kantiword
%{_bindir}/antiword
%{_datadir}/antiword
%{_mandir}/man1/antiword.1.gz