8
0
Stephan Kulow
2011-04-01 18:06:14 +00:00
committed by Git OBS Bridge
parent b11add7dcb
commit 2d0dcf93b9
2 changed files with 36 additions and 0 deletions

33
fix-makefile.diff Normal file
View File

@@ -0,0 +1,33 @@
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
@@ -11,8 +11,8 @@ use Devel::CheckLib;
my $dlext = $Config{dlext} || 'so';
my $candidate_lib;
for (split " " => $Config{libpth}) {
- my $lib_path = "$_/libhunspell.$dlext";
- #warn "Checking $lib_path\n";
+ my $lib_path = glob("$_/libhunspell*.$dlext");
+ warn "Checking $lib_path\n";
if (-e $lib_path) {
$candidate_lib++;
warn "Found '$lib_path'. Good.\n";
@@ -33,7 +33,7 @@ if (0 == $candidate_lib) {
}
check_lib_or_exit(
- lib => 'hunspell',
+ lib => 'hunspell-1.3',
header => 'hunspell/hunspell.h',
);
@@ -44,7 +44,7 @@ my $CC = $ENV{"CXX"} || 'g++';
WriteMakefile(
NAME => 'Text::Hunspell',
VERSION_FROM => 'Hunspell.pm',
- LIBS => ['-lhunspell'],
+ LIBS => ['-lhunspell-1.3'],
CC => $CC,
LD => '$(CC)',
PREREQ_PM => {}, # e.g., Module::Name => 1.1

View File

@@ -25,9 +25,11 @@ Url: http://search.cpan.org/dist/Text-Hunspell/
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
#Source: http://www.cpan.org/authors/id/C/CO/COSIMO/Text-Hunspell-%{version}.tar.gz #Source: http://www.cpan.org/authors/id/C/CO/COSIMO/Text-Hunspell-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2 Source: %{cpan_name}-%{version}.tar.bz2
Patch0: fix-makefile.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: hunspell-devel
%{perl_requires} %{perl_requires}
%description %description
@@ -39,6 +41,7 @@ The example code describes the interface on http://hunspell.sf.net
%prep %prep
%setup -q -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
%patch0 -p1
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"