forked from pool/perl-Text-Hunspell
Compare commits
10 Commits
cf978aba8e
...
e5d9464831
Author | SHA256 | Date | |
---|---|---|---|
e5d9464831 | |||
|
06ccffe9d9 | ||
|
bdba411f7b | ||
|
e9d66bd559 | ||
|
5b8ebcb98c | ||
00752a9c60 | |||
|
9a99428cc6 | ||
|
18628f5da8 | ||
|
d5fe800d9c | ||
|
6339bdce69 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7870794ce95ad758ecd2537aed2fa5feb7e0aaab0a562bec3be585221290c351
|
||||
size 22760
|
3
Text-Hunspell-2.16.tar.gz
Normal file
3
Text-Hunspell-2.16.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b796cd0ab197083301d8f44f5e21ee3e014b7a0791c9e10f3a51204029fd3a3b
|
||||
size 287931
|
4
cpanspec.yml
Normal file
4
cpanspec.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
preamble: |-
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: hunspell-devel
|
@@ -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',
|
||||
);
|
||||
|
@@ -1,3 +1,103 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 16 03:08:55 UTC 2022 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 2.16
|
||||
see /usr/share/doc/packages/perl-Text-Hunspell/Changes
|
||||
|
||||
2.16 2022/07/15 13:04:00 Europe/Oslo (cosimo)
|
||||
Included LICENSE file in distribution manifest.
|
||||
2.15 2022/07/15 12:19:00 Europe/Oslo (cosimo)
|
||||
Documentation and license improvements:
|
||||
- Merged https://github.com/cosimo/perl5-text-hunspell/pull/14 by @manwar (from 2015! Sorry)
|
||||
- Merged https://github.com/cosimo/perl5-text-hunspell/pull/16 by @choroba (from 2016! Sorry)
|
||||
- Merged https://github.com/cosimo/perl5-text-hunspell/pull/18 by @JJ (from a month ago)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 5 10:18:57 UTC 2016 - coolo@suse.com
|
||||
|
||||
- updated to 2.14
|
||||
see /usr/share/doc/packages/perl-Text-Hunspell/Changes
|
||||
|
||||
2.14 2016/01/14 08:36:00 Europe/Oslo (cosimo)
|
||||
|
||||
No functional changes. Now Text::Hunspell depends on Alien::Hunspell
|
||||
version 0.04. Should finally compile nicely on Win32 platform.
|
||||
|
||||
2.13 2016/01/11 10:59:00 Europe/Oslo (cosimo)
|
||||
|
||||
Win32 build support added (Graham Ollis, @plicease).
|
||||
This should make Text::Hunspell build correctly on Windows. \o/
|
||||
|
||||
*** If you're using Win32, make sure you use a recent version of
|
||||
Alien::Base (>= 0.024) and/or Alien::Hunspell (soon-to-be 0.04)
|
||||
|
||||
2.12 2015/12/18 10:35:00 Europe/Oslo (cosimo)
|
||||
|
||||
Replaced ExtUtils::PkgConfig with Alien::Hunspell. This should allow
|
||||
Text::Hunspell to build on non-pkgconfig-enabled systems, even though
|
||||
I'm not sure how reliably it works. Will have to evaluate from CPAN
|
||||
testers results. Thanks to Alien* expert Graham Ollis for this
|
||||
contribution.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 13 13:01:16 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 2.11
|
||||
see /usr/share/doc/packages/perl-Text-Hunspell/Changes
|
||||
|
||||
2.11 2015/05/12 14:19:07 Europe/Oslo (cosimo)
|
||||
|
||||
No functional changes, only minor cleanups and a fix for RT#99810
|
||||
(compilation on non-gcc based systems). Thanks to bjakubski for sending
|
||||
in patches on Github.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
- updated to 2.08
|
||||
Improved main POD documentation for Hunspell.pm.
|
||||
Fixes RT#84964. Thanks to Paul Flo Williams for the patch.
|
||||
(https://github.com/cosimo/perl5-text-hunspell/pull/2)
|
||||
|
||||
DEPRECATED the delete() method, and implemented proper
|
||||
object handles in the hunspell XS glue. Again, thanks to
|
||||
Paul Flo Williams for patch and test case. Closes RT#84054.
|
||||
|
||||
Implemented new add_dic() function from hunspell API.
|
||||
Fixes RT#83765. Thanks to Paul Flo Williams for patch
|
||||
and test case.
|
||||
|
||||
Fixed RT#79630 incorrect encoding of Hunspell.pm POD documentation.
|
||||
Thanks to Paul for the patch.
|
||||
|
||||
Fixed t/02_pod.t test due to newest Test::Pod and
|
||||
missing =encoding directive. Thanks to SHLOMIF for
|
||||
the patch.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 1 17:18:04 UTC 2011 - coolo@novell.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Text-Hunspell
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,56 +12,54 @@
|
||||
# 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/
|
||||
# Please submit bugfixes or comments via https://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
|
||||
Name: perl-Text-Hunspell
|
||||
Version: 2.16
|
||||
Release: 0
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Perl interface to the Hunspell library
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/C/CO/COSIMO/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Alien::Hunspell) >= 0.04
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.52
|
||||
%{perl_requires}
|
||||
# MANUAL BEGIN
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: hunspell-devel
|
||||
# MANUAL END
|
||||
|
||||
%description
|
||||
This module provides a Perl interface to the OO *Hunspell* library. This
|
||||
This module provides a Perl interface to the *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
|
||||
%autosetup -n %{cpan_name}-%{version}
|
||||
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
%{__make} %{?_smp_mflags}
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
%make_build
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
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
|
||||
%doc Changes examples perlobject.map README
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user