File antiword.spec of Package antiword

#
# spec file for package antiword (Version 0.37)
#
# Copyright (c) 2004-2010 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/
#

Name:         antiword
License:      GPLv2
Group:        Productivity/Text/Convertors
Version:      0.37
Release:      0
Source0:      antiword-%{version}.tar.bz2
Source1:      README.SuSE
URL:          http://www.winfield.demon.nl/
Summary:      Free MS Word Reader for Linux
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
%{__sed} -i 's/\r$//' Docs/antiword.old.php

%build
%{__make} %{?_smp_mflags} 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
%doc %{_mandir}/man1/antiword.1.gz
openSUSE Build Service is sponsored by