diff --git a/fix-makefile.diff b/fix-makefile.diff index f3a8f5c..defa466 100644 --- a/fix-makefile.diff +++ b/fix-makefile.diff @@ -1,7 +1,7 @@ Index: Text-Hunspell-2.02/Makefile.PL =================================================================== --- Text-Hunspell-2.02.orig/Makefile.PL 2010-10-24 13:23:11.000000000 +0200 -+++ Text-Hunspell-2.02/Makefile.PL 2011-04-01 20:04:27.688784790 +0200 ++++ Text-Hunspell-2.02/Makefile.PL 2011-04-01 20:11:18.887713482 +0200 @@ -11,8 +11,8 @@ use Devel::CheckLib; my $dlext = $Config{dlext} || 'so'; my $candidate_lib; @@ -31,3 +31,16 @@ Index: Text-Hunspell-2.02/Makefile.PL CC => $CC, LD => '$(CC)', PREREQ_PM => {}, # e.g., Module::Name => 1.1 +Index: Text-Hunspell-2.02/t/00-prereq.t +=================================================================== +--- Text-Hunspell-2.02.orig/t/00-prereq.t 2010-10-24 13:02:27.000000000 +0200 ++++ Text-Hunspell-2.02/t/00-prereq.t 2011-04-01 20:11:53.159207337 +0200 +@@ -4,7 +4,7 @@ use lib qw(inc ../inc); + use Devel::CheckLib; + + check_lib_or_exit( +- lib => 'hunspell', ++ lib => 'hunspell-1.3', + header => 'hunspell/hunspell.h', + ); + diff --git a/perl-Text-Hunspell.spec b/perl-Text-Hunspell.spec index a63d518..52b2970 100644 --- a/perl-Text-Hunspell.spec +++ b/perl-Text-Hunspell.spec @@ -44,6 +44,7 @@ The example code describes the interface on http://hunspell.sf.net %patch0 -p1 %build +pkg-config --libs hunspell %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" %{__make} %{?_smp_mflags}