Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release-src > by-pkgid > c7bccbfc5bb302a19aca1cea8a1e7368 > files > 4

antiword-0.37-13.mga5.src.rpm

Summary: MS Word to ASCII/Postscript converter
Name: antiword
Version: 0.37
Release: %mkrel 13
Source: %{name}-%{version}.tar.bz2
URL: http://www.winfield.demon.nl/
Patch0: antiword-find-my-files.patch
# Fix buffer overflow with malformed input files (patch from Debian, Debian
# bug #407015, rhbz#1169665, CVE-2014-8123)
Patch1:	antiword-bGetPPS-Prevent-buffer-overflow-of-atPPSlist-_szName.diff
License: GPL 
Group: Text tools 
BuildRequires: bzip2

%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
%patch1 -p1
perl -pi -e 's|PKGBASEDIR_SUBSTITUTE_FROM_SPECFILE|\"%{_libdir}\"|g' options.c
# Use standard CFLAGS
sed -i -e "s/OPT\t=/#OPT\t=/" Makefile*
chmod a+r * Resources/* Docs/*

%build
OPT="%{optflags}" %make all

%install
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
bzip2 Docs/*.1
cp Docs/*.1.bz2 $RPM_BUILD_ROOT%{_mandir}/man1

%files
%doc Docs/COPYING Docs/FAQ Docs/ReadMe Docs/Netscape
%{_bindir}/*
%{_mandir}/*/*
%{_libdir}/%{name}





%changelog
* Fri Dec 12 2014 luigiwalser <luigiwalser> 0.37-13.mga5
+ Revision: 802809
- use updated CVE-2014-8123 patch from fedora

* Wed Oct 15 2014 umeabot <umeabot> 0.37-12.mga5
+ Revision: 744294
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 0.37-11.mga5
+ Revision: 677778
- Mageia 5 Mass Rebuild

* Fri Oct 18 2013 umeabot <umeabot> 0.37-10.mga4
+ Revision: 502498
- Mageia 4 Mass Rebuild

* Fri Jan 11 2013 umeabot <umeabot> 0.37-9.mga3
+ Revision: 345600
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Wed Jun 22 2011 blino <blino> 0.37-8.mga2
+ Revision: 112381
- imported package antiword