9
0

Accepting request 296822 from devel:languages:perl

1

OBS-URL: https://build.opensuse.org/request/show/296822
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Text-Hunspell?expand=0&rev=7
This commit is contained in:
2015-04-15 14:27:49 +00:00
committed by Git OBS Bridge
6 changed files with 39 additions and 63 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f846490dcef84d3a99993e368360859ac478507b3d9e37586fb7ab6f66fcda9c
size 23590

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:125ec51b98b8b0a03f15a9ad7829974f0ab526029aa0dd850809f3195dbd2522
size 18937

4
cpanspec.yml Normal file
View File

@@ -0,0 +1,4 @@
---
preamble: |-
BuildRequires: gcc-c++
BuildRequires: hunspell-devel

View File

@@ -1,46 +0,0 @@
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',
);

View File

@@ -1,3 +1,27 @@
-------------------------------------------------------------------
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
-------------------------------------------------------------------
Tue Jun 4 15:16:32 UTC 2013 - coolo@suse.com

View File

@@ -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 @@ License: GPL-1.0+ or Artistic-1.0
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 @@ The example code describes the interface on http://hunspell.sf.net
%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