Hello community, here is the log from the commit of package perl-Text-Hunspell for openSUSE:Factory checked in at 2015-04-15 16:27:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Text-Hunspell (Old) and /work/SRC/openSUSE:Factory/.perl-Text-Hunspell.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "perl-Text-Hunspell" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Text-Hunspell/perl-Text-Hunspell.changes 2013-06-06 12:57:51.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Text-Hunspell.new/perl-Text-Hunspell.changes 2015-04-15 16:27:50.000000000 +0200 @@ -1,0 +2,24 @@ +Wed Apr 15 11:54:19 UTC 2015 - coolo@suse.com + +- updated to 2.10 + see /usr/share/doc/packages/perl-Text-Hunspell/Changes + + 2.10 2015/03/26 11:24:00 Europe/Oslo (cosimo) + + Fixed GH#5 (http://github.com/cosimo/perl5-text-hunspell/issues/5). + Should make Text::Hunspell installable without pain from CPAN and + cpanminus clients. The problem was in the undeclared use of + ExtUtils::PkgConfig, which needs to be known even before running + the configure (Makefile.PL) step. Thanks to Pavel Shaydo for reporting + the problem. + + 2.09 2014/10/20 07:56:00 Europe/Oslo (cosimo) + + Fixed RT#99548, which should make it easier to install Text::Hunspell + on most systems. Basically replace my broken way of checking for + libhunspell by looking up pkgconfig using ExtUtils::PkgConfig. + Thanks to David Gutteridge for teaching me how to do it! + +- obsolete fix-makefile.diff + +------------------------------------------------------------------- Old: ---- Text-Hunspell-2.08.tar.gz fix-makefile.diff New: ---- Text-Hunspell-2.10.tar.gz cpanspec.yml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Text-Hunspell.spec ++++++ --- /var/tmp/diff_new_pack.yixUQY/_old 2015-04-15 16:27:50.000000000 +0200 +++ /var/tmp/diff_new_pack.yixUQY/_new 2015-04-15 16:27:50.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Text-Hunspell # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: perl-Text-Hunspell -Version: 2.08 +Version: 2.10 Release: 0 %define cpan_name Text-Hunspell Summary: Perl interface to the Hunspell library @@ -25,17 +25,16 @@ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Text-Hunspell/ Source: http://www.cpan.org/authors/id/C/CO/COSIMO/%{cpan_name}-%{version}.tar.gz -# MANUAL BEGIN -Patch0: fix-makefile.diff -BuildRequires: gcc-c++ -BuildRequires: hunspell-devel -# MANUAL END +Source1: cpanspec.yml BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -#BuildRequires: perl(Devel::CheckLib) -#BuildRequires: perl(Text::Hunspell) +BuildRequires: perl(ExtUtils::PkgConfig) %{perl_requires} +#MANUAL BEGIN +BuildRequires: gcc-c++ +BuildRequires: hunspell-devel +#MANUAL END %description This module provides a Perl interface to the *Hunspell* library. This @@ -46,11 +45,6 @@ %prep %setup -q -n %{cpan_name}-%{version} -# MANUAL BEGIN -%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 -# MANUAL END find . -type f -print0 | xargs -0 chmod 644 %build ++++++ Text-Hunspell-2.08.tar.gz -> Text-Hunspell-2.10.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Hunspell-2.08/Changes new/Text-Hunspell-2.10/Changes --- old/Text-Hunspell-2.08/Changes 2013-05-01 23:24:29.000000000 +0200 +++ new/Text-Hunspell-2.10/Changes 2015-03-26 11:27:33.000000000 +0100 @@ -1,5 +1,21 @@ Revision history for Perl extension Text::Hunspell. +2.10 2015/03/26 11:24:00 Europe/Oslo (cosimo) + + Fixed GH#5 (http://github.com/cosimo/perl5-text-hunspell/issues/5). + Should make Text::Hunspell installable without pain from CPAN and + cpanminus clients. The problem was in the undeclared use of + ExtUtils::PkgConfig, which needs to be known even before running + the configure (Makefile.PL) step. Thanks to Pavel Shaydo for reporting + the problem. + +2.09 2014/10/20 07:56:00 Europe/Oslo (cosimo) + + Fixed RT#99548, which should make it easier to install Text::Hunspell + on most systems. Basically replace my broken way of checking for + libhunspell by looking up pkgconfig using ExtUtils::PkgConfig. + Thanks to David Gutteridge for teaching me how to do it! + 2.08 2013/05/01 23:22:35 Europe/Oslo (cosimo) Improved main POD documentation for Hunspell.pm. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Hunspell-2.08/Hunspell.pm new/Text-Hunspell-2.10/Hunspell.pm --- old/Text-Hunspell-2.08/Hunspell.pm 2013-05-01 23:22:19.000000000 +0200 +++ new/Text-Hunspell-2.10/Hunspell.pm 2015-03-26 11:25:12.000000000 +0100 @@ -5,7 +5,7 @@ use vars qw/ @ISA $VERSION /; @ISA = 'DynaLoader'; -$VERSION = '2.08'; +$VERSION = '2.10'; bootstrap Text::Hunspell $VERSION; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Hunspell-2.08/Hunspell.xs new/Text-Hunspell-2.10/Hunspell.xs --- old/Text-Hunspell-2.08/Hunspell.xs 2013-03-26 20:44:44.000000000 +0100 +++ new/Text-Hunspell-2.10/Hunspell.xs 2015-03-26 11:28:00.000000000 +0100 @@ -17,8 +17,6 @@ using namespace std; /*using namespace Hunspell;*/ -/* $Id: Hunspell.xs,v 1.5 2002/08/29 20:28:00 moseley Exp $ */ - static void * get_mortalspace ( size_t nbytes ) { SV * mortal; mortal = sv_2mortal( NEWSV(0, nbytes ) ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Hunspell-2.08/MANIFEST new/Text-Hunspell-2.10/MANIFEST --- old/Text-Hunspell-2.08/MANIFEST 2013-05-01 23:26:09.000000000 +0200 +++ new/Text-Hunspell-2.10/MANIFEST 2015-03-26 11:30:41.000000000 +0100 @@ -3,13 +3,11 @@ hunspell.h Hunspell.pm Hunspell.xs -inc/Devel/CheckLib.pm Makefile.PL MANIFEST META.yml Module meta-data (added by MakeMaker) perlobject.map README -t/00-prereq.t t/01-use.t t/02-pod.t t/05-core.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Hunspell-2.08/META.json new/Text-Hunspell-2.10/META.json --- old/Text-Hunspell-2.08/META.json 2013-05-01 23:26:09.000000000 +0200 +++ new/Text-Hunspell-2.10/META.json 2015-03-26 11:30:41.000000000 +0100 @@ -4,7 +4,7 @@ "unknown" ], "dynamic_config" : 1, - "generated_by" : "ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter version 2.120921", + "generated_by" : "ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.143240", "keywords" : [ "hunspell", "spelling", @@ -33,7 +33,7 @@ }, "configure" : { "requires" : { - "ExtUtils::MakeMaker" : "0" + "ExtUtils::PkgConfig" : "0" } }, "runtime" : { @@ -46,5 +46,5 @@ "url" : "https://github.com/cosimo/perl5-text-hunspell" } }, - "version" : "2.08" + "version" : "2.10" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Hunspell-2.08/META.yml new/Text-Hunspell-2.10/META.yml --- old/Text-Hunspell-2.08/META.yml 2013-05-01 23:26:09.000000000 +0200 +++ new/Text-Hunspell-2.10/META.yml 2015-03-26 11:30:41.000000000 +0100 @@ -3,11 +3,11 @@ author: - unknown build_requires: - ExtUtils::MakeMaker: 0 + ExtUtils::MakeMaker: '0' configure_requires: - ExtUtils::MakeMaker: 0 + ExtUtils::PkgConfig: '0' dynamic_config: 1 -generated_by: 'ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter version 2.120921' +generated_by: 'ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.143240' keywords: - hunspell - spelling @@ -16,7 +16,7 @@ license: unknown meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 + version: '1.4' name: Text-Hunspell no_index: directory: @@ -25,4 +25,4 @@ requires: {} resources: repository: https://github.com/cosimo/perl5-text-hunspell -version: 2.08 +version: '2.10' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Hunspell-2.08/Makefile.PL new/Text-Hunspell-2.10/Makefile.PL --- old/Text-Hunspell-2.08/Makefile.PL 2013-03-26 20:52:12.000000000 +0100 +++ new/Text-Hunspell-2.10/Makefile.PL 2015-03-26 11:24:30.000000000 +0100 @@ -1,60 +1,38 @@ -use lib qw(inc); -use Config; -use Devel::CheckLib; - -# -# Try to warn the user if linking might fail. -# Some systems seem to not install the unversioned library symlinks. -# -# Probably too platform specific, but seemed an acceptable compromise. -# -my $dlext = $Config{dlext} || 'so'; -my $candidate_lib; -for (split " " => $Config{libpth}) { - my $lib_path = "$_/libhunspell.$dlext"; - #warn "Checking $lib_path\n"; - if (-e $lib_path) { - $candidate_lib++; - warn "Found '$lib_path'. Good.\n"; - } +# Only EU::MM 6.52+ understands CONFIGURE_REQUIRES +use ExtUtils::MakeMaker 6.52; +use ExtUtils::PkgConfig; + +my $CC = $ENV{'CXX'} || 'g++'; + +my $shlib_location = ExtUtils::PkgConfig->libs_only_l('hunspell'); +my $header_location = ExtUtils::PkgConfig->cflags_only_I('hunspell'); + +if ($shlib_location ne '' && $header_location ne '') { + WriteMakefile( + NAME => 'Text::Hunspell', + VERSION_FROM => 'Hunspell.pm', + LIBS => [$shlib_location], + CC => $CC, + LD => '$(CC)', + CONFIGURE_REQUIRES => { + 'ExtUtils::PkgConfig' => 0, + }, + XSOPT => '-C++', + TYPEMAPS => ['perlobject.map', 'typemap'], + META_MERGE => { + resources => { + repository => 'https://github.com/cosimo/perl5-text-hunspell', + }, + keywords => [ qw(hunspell spelling spell-checker text-processing) ], + }, + ); } - -if (0 == $candidate_lib) { - my $def_lib = "/usr/lib/libhunspell"; - my ($possible_candidate) = glob("$def_lib-*.so"); - $possible_candidate ||= "/usr/lib/libhunspell-<ver>.so"; - warn "---------------------------------------------------------------------\n"; - warn "Your system doesn't appear to have a libhunspell.$dlext link.\n"; - warn "Linking might fail. If it does, you might want to try installing\n"; - warn "the libhunspell-dev package (or the equivalent on your OS) or try:\n"; - warn "\n"; - warn " $Config{lns} $possible_candidate $def_lib.so\n"; - warn "---------------------------------------------------------------------\n"; - warn "\n"; +else { + # By default, ExtUtils::PkgConfig provides a verbose warning about + # being unable to locate the pkgconfig file and such. This adds an + # additional comment after that output. + warn "\n=========================================================\n"; + warn "NOTE: You may need to install the libhunspell-dev package\n"; + warn "(or the equivalent on your OS).\n"; + warn "=========================================================\n"; } - -check_lib_or_exit( - lib => 'hunspell', - header => 'hunspell/hunspell.h', -); - -use ExtUtils::MakeMaker; - -my $CC = $ENV{"CXX"} || 'g++'; - -WriteMakefile( - NAME => 'Text::Hunspell', - VERSION_FROM => 'Hunspell.pm', - LIBS => ['-lhunspell'], - CC => $CC, - LD => '$(CC)', - PREREQ_PM => {}, # e.g., Module::Name => 1.1 - XSOPT => '-C++', - TYPEMAPS => ['perlobject.map', 'typemap'], - META_MERGE => { - resources => { - repository => 'https://github.com/cosimo/perl5-text-hunspell', - }, - keywords => [ qw(hunspell spelling spell-checker text-processing) ], - }, -); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Hunspell-2.08/inc/Devel/CheckLib.pm new/Text-Hunspell-2.10/inc/Devel/CheckLib.pm --- old/Text-Hunspell-2.08/inc/Devel/CheckLib.pm 2013-03-26 09:27:31.000000000 +0100 +++ new/Text-Hunspell-2.10/inc/Devel/CheckLib.pm 1970-01-01 01:00:00.000000000 +0100 @@ -1,445 +0,0 @@ -# $Id: CheckLib.pm,v 1.25 2008/10/27 12:16:23 drhyde Exp $ - -package # -Devel::CheckLib; - -use strict; -use vars qw($VERSION @ISA @EXPORT); -$VERSION = '0.7'; -use Config; - -use File::Spec; -use File::Temp; - -require Exporter; -@ISA = qw(Exporter); -@EXPORT = qw(assert_lib check_lib_or_exit check_lib); - -# localising prevents the warningness leaking out of this module -local $^W = 1; # use warnings is a 5.6-ism - -_findcc(); # bomb out early if there's no compiler - -=head1 NAME - -Devel::CheckLib - check that a library is available - -=head1 DESCRIPTION - -Devel::CheckLib is a perl module that checks whether a particular C -library and its headers are available. - -=head1 SYNOPSIS - - use Devel::CheckLib; - - check_lib_or_exit( lib => 'jpeg', header => 'jpeglib.h' ); - check_lib_or_exit( lib => [ 'iconv', 'jpeg' ] ); - - # or prompt for path to library and then do this: - check_lib_or_exit( lib => 'jpeg', libpath => $additional_path ); - -=head1 USING IT IN Makefile.PL or Build.PL - -If you want to use this from Makefile.PL or Build.PL, do -not simply copy the module into your distribution as this may cause -problems when PAUSE and search.cpan.org index the distro. Instead, use -the use-devel-checklib script. - -=head1 HOW IT WORKS - -You pass named parameters to a function, describing to it how to build -and link to the libraries. - -It works by trying to compile some code - which defaults to this: - - int main(void) { return 0; } - -and linking it to the specified libraries. If something pops out the end -which looks executable, it gets executed, and if main() returns 0 we know -that it worked. That tiny program is -built once for each library that you specify, and (without linking) once -for each header file. - -If you want to check for the presence of particular functions in a -library, or even that those functions return particular results, then -you can pass your own function body for main() thus: - - check_lib_or_exit( - function => 'foo();if(libversion() > 5) return 0; else return 1;' - incpath => ... - libpath => ... - lib => ... - header => ... - ); - -In that case, it will fail to build if either foo() or libversion() don't -exist, and main() will return the wrong value if libversion()'s return -value isn't what you want. - -=head1 FUNCTIONS - -All of these take the same named parameters and are exported by default. -To avoid exporting them, C