Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > 1e7d267a587f559322242708cc031079 > files > 3

antiword-0.36.1-1mdk.src.rpm

%define name antiword
%define version 0.36.1
%define release 1mdk

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-find-my-files.patch.bz2
License: GPL 
Group: Text tools 
BuildRoot: %{_tmppath}/%{name}-buildroot

%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 -q
%patch0 -p1
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
* Wed May 25 2005 Lenny Cartier <lenny@mandrakesoft.com> 0.36.1-1mdk
- 0.36.1

* Wed Nov 17 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.36-1mdk
- 0.36
- regenerate & rename patch

* Tue Dec 09 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.35-1mdk
- 0.35

* Fri Mar 21 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.33-1mdk
- 0.33
- regenerate find-my-files patch

* 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)