%define name antiword %define version 0.32 %define release 2mdk Summary: MS Word to ASCII/Postscript converter Name: %{name} Version: %{version} Release: %{release} Source: %{name}-%{version}.tar.bz2 URL: http://www.winfield.demon.nl/ Patch0: antiword-0.32-fix-flags.patch.bz2 Patch1: antiword-0.32-find-my-files.patch.bz2 License: GPL Group: Text tools BuildRoot: %{_tmppath}/%{name}-buildroot Prefix: %{_prefix} %description Antiword is a free MS-Word reader for Linux, BeOS and RISC OS. It converts the documets from Word 6, 7, 97 and 2000 to ASCII and Postscript. Antiword tries to keep the layout of the document intact. %prep %setup -n %{name}.%{version}/ -q %patch0 -p0 %patch1 -p0 perl -pi -e 's|PKGBASEDIR_SUBSTITUTE_FROM_SPECFILE|\"%{_libdir}\"|g' options.c chmod a+r * Resources/* Docs/* %build OPT="$RPM_OPT_FLAGS" make all %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_bindir} install -m 755 antiword $RPM_BUILD_ROOT%{_bindir} mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name} cp -a Resources/* $RPM_BUILD_ROOT%{_libdir}/%{name} mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 cp Docs/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc Docs/COPYING Docs/FAQ Docs/ReadMe Docs/Netscape %{_bindir}/* %{_mandir}/*/* %{_libdir}/%{name} %changelog * Fri Feb 22 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 0.32-2mdk - rebuild to fix invalid-packager * Mon Oct 15 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 0.32-1mdk - new version - fix obsolete-tag Copyright * Sat Jun 23 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 0.31-2mdk - have the resources files findable by default by the binary - use our flags - install man page * Thu Jan 04 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.31-1mdk - updated to 0.31 * Thu Jul 27 2000 Lenny Cartier <lenny@mandrakesoft.com> 0.30-2mdk - BM - macros * Thu Jul 13 2000 rufus t firefly <rufus.t.firefly@linux-mandrake.com> 0.30-1mdk - v0.30 (initial packaging from freshmeat)