---- libwmf-0.2.0/fonts/libwmf-fontmap.in.orig Sat May 19 14:12:06 2001
-+++ libwmf-0.2.0/fonts/libwmf-fontmap.in Mon Jun 11 13:24:44 2001
+--- libwmf-0.2.1/fonts/libwmf-fontmap.in.orig Sat May 19 14:12:06 2001
++++ libwmf-0.2.1/fonts/libwmf-fontmap.in Mon Jun 11 13:24:44 2001
@@ -33,9 +33,9 @@
fi
if test "x$font_dir" = "x"; then
-- font_dir="@prefix@/share/@PACKAGE@/fonts"
-+ font_dir="@prefix@/share/@PACKAGE@/fonts /usr/share/fonts/Type1 /usr/share/fonts/TTF"
+- font_dir="@WMF_FONTDIR@"
++ font_dir="@WMF_FONTDIR@ /usr/share/fonts/Type1 /usr/share/fonts/TTF"
else
-- font_dir="$font_dir @prefix@/share/@PACKAGE@/fonts"
-+ font_dir="$font_dir @prefix@/share/@PACKAGE@/fonts /usr/share/fonts/Type1 /usr/share/fonts/TTF"
+- font_dir="$font_dir @WMF_FONTDIR@"
++ font_dir="$font_dir @WMF_FONTDIR@ /usr/share/fonts/Type1 /usr/share/fonts/TTF"
fi
if test $echo_help = yes; then
--- /dev/null
+--- libwmf-0.2.1/src/ipa/gd.h.orig Mon May 14 09:27:18 2001
++++ libwmf-0.2.1/src/ipa/gd.h Thu Aug 30 23:23:09 2001
+@@ -23,7 +23,7 @@
+ /* I suppose I shouldn't call this file gd.h, but as long <gd.h> is included
+ * before any other "gd*.h" there's no problem...
+ */
+-#include <gd.h>
++#include "../extra/gd/gd.h"
+
+ extern int gdImageBoundsSafe (gdImage*,int,int);
+
--- /dev/null
+--- libwmf-0.2.1/src/ipa/Makefile.am.orig Sun Jul 15 18:11:57 2001
++++ libwmf-0.2.1/src/ipa/Makefile.am Sat Sep 1 12:14:53 2001
+@@ -1,5 +1,7 @@
+ CFLAGS = @CFLAGS@ @WMF_CFLAGS@
+
++DEFAULT_INCLUDES =
++
+ LDFLAGS = @LDFLAGS@
+
+ DEFS = @DEFS@ @WMF_DEFS@ \
Summary: libwmf - library to convert wmf files
Summary(pl): libwmf - biblioteka z funkcjami do konwersji plików wmf
Name: libwmf
-Version: 0.2.0
+Version: 0.2.1
Release: 1
Epoch: 2
License: GPL
Group(pl): Aplikacje/Tekst
Source0: ftp://download.sourceforge.net/pub/sourceforge/wvware/%{name}-%{version}.tar.gz
Patch0: %{name}-fontmap-pld.patch
+Patch1: %{name}-gd.patch
+Patch2: %{name}-includes.patch
URL: http://wvware.sourceforge.net/
BuildRequires: libpng-devel
BuildRequires: libjpeg-devel
BuildRequires: XFree86-devel
BuildRequires: expat-devel
BuildRequires: libplot-devel
+BuildRequires: autoconf
+BuildRequires: automake
Prereq: /sbin/ldconfig
Prereq: sed
Prereq: ghostscript-fonts-std
%prep
%setup -q
-%patch -p1
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
%build
+libtoolize --copy --force
+aclocal
+automake -a -c
+autoconf
%configure \
--with-plot
%{__make}
%{__make} install DESTDIR=$RPM_BUILD_ROOT
-mv -f $RPM_BUILD_ROOT%{_prefix}/doc ./html-doc
+mv -f $RPM_BUILD_ROOT%{_datadir}/doc ./html-doc
gzip -9nf CREDITS ChangeLog README TODO
%clean