Hello community,

here is the log from the commit of package perl-Text-Hunspell for 
openSUSE:Factory checked in at 2011-12-21 17:00:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Text-Hunspell (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Text-Hunspell.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Text-Hunspell", Maintainer is ""

Changes:
--------
New Changes file:

--- /dev/null   2010-08-26 16:28:41.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-Text-Hunspell.new/perl-Text-Hunspell.changes   
    2011-12-21 17:00:40.000000000 +0100
@@ -0,0 +1,6 @@
+-------------------------------------------------------------------
+Fri Apr  1 17:18:04 UTC 2011 - [email protected]
+
+- initial package 2.02
+    * created by cpanspec 1.78.03
+

New:
----
  Text-Hunspell-2.03.tar.gz
  fix-makefile.diff
  perl-Text-Hunspell.changes
  perl-Text-Hunspell.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Text-Hunspell.spec ++++++
#
# spec file for package perl-Text-Hunspell
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           perl-Text-Hunspell
Version:        2.03
Release:        0
%define cpan_name Text-Hunspell
Summary:        Perl interface to the GNU Hunspell library
License:        Artistic-1.0 or GPL-1.0+
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Text-Hunspell/
Source:         
http://www.cpan.org/authors/id/C/CO/COSIMO/Text-Hunspell-%{version}.tar.gz
Patch0:         fix-makefile.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-c++
BuildRequires:  hunspell-devel
BuildRequires:  perl
BuildRequires:  perl-macros
%{perl_requires}

%description
This module provides a Perl interface to the OO *Hunspell* library. This
module is to meet the need of looking up many words, one at a time, in a
single session, such as spell-checking a document in memory.

The example code describes the interface on http://hunspell.sf.net

%prep
%setup -q -n %{cpan_name}-%{version}
%patch0 -p1
hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s,  *,,g'`
sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%clean
%{__rm} -rf %{buildroot}

%files -f %{name}.files
%defattr(644,root,root,755)
%doc Changes perlobject.map README

%changelog
++++++ fix-makefile.diff ++++++
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:11:18.887713482 +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-X',
     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-X'],
     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-X',
     header => 'hunspell/hunspell.h',
 );
 
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to