diff --git a/.gitignore b/.gitignore index 4b87bbb..80e9cdf 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /hspell-1.3.tar.gz +/hspell-1.4.tar.gz diff --git a/0001-require-local-module-explicitly.patch b/0001-require-local-module-explicitly.patch new file mode 100644 index 0000000..a02a581 --- /dev/null +++ b/0001-require-local-module-explicitly.patch @@ -0,0 +1,54 @@ +From 4573c39c4a5bfbcd36941c2ead3d4d93d9ac85e4 Mon Sep 17 00:00:00 2001 +From: Dan Kenigsberg +Date: Sat, 15 Jul 2017 21:28:03 +0300 +Subject: [PATCH] require local module explicitly + +this allows build hspell when perl runs in taint mode which does not +include the current directory in @INC +--- + binarize-desc.pl | 2 +- + genprefixes.pl | 2 +- + pmerge | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/binarize-desc.pl b/binarize-desc.pl +index dbf0b1c..f62ebc6 100755 +--- a/binarize-desc.pl ++++ b/binarize-desc.pl +@@ -8,7 +8,7 @@ + + use Carp; + +-require "PrefixBits.pl"; ++require "./PrefixBits.pl"; + + # "perl -w" warns about variables only used once (it assumes they are a + # typo). This ugliness gets rid of this warning. Is there a more sensible way? +diff --git a/genprefixes.pl b/genprefixes.pl +index 450a7ca..9ae9e50 100755 +--- a/genprefixes.pl ++++ b/genprefixes.pl +@@ -1,6 +1,6 @@ + #!/usr/bin/perl -w + +-require "PrefixBits.pl"; ++require "./PrefixBits.pl"; + + sub find_prefixes { + my $INQUISITIVE_HE=shift; +diff --git a/pmerge b/pmerge +index 83ad949..9ceb9de 100755 +--- a/pmerge ++++ b/pmerge +@@ -8,7 +8,7 @@ + use IO::File; + use Carp; + +-require "PrefixBits.pl"; ++require "./PrefixBits.pl"; + + # "perl -w" warns about variables only used once (it assumes they are a + # typo). This ugliness gets rid of this warning. Is there a more sensible way? +-- +2.9.4 + diff --git a/hspell.spec b/hspell.spec index 148e80f..cd0d28c 100644 --- a/hspell.spec +++ b/hspell.spec @@ -1,11 +1,12 @@ Summary: A Hebrew spell checker Name: hspell -Version: 1.3 -Release: 3%{?dist} +Version: 1.4 +Release: 1%{?dist} License: AGPLv3 Group: Applications/Text URL: http://hspell.ivrix.org.il/ Source: http://hspell.ivrix.org.il/%{name}-%{version}.tar.gz +Patch0: 0001-require-local-module-explicitly.patch BuildRequires: hunspell-devel, perl-generators, zlib-devel @@ -14,12 +15,14 @@ Hspell is a Hebrew SPELLer and morphological analyzer. It provides a mostly spell-like interface (gives the list of wrong words in the input text), but can also suggest corrections (-c). It also provides a true morphological analyzer (-l), that prints all known meanings of a Hebrew string. +Hspell 1.4 still follows the old (pre June 2017) spelling standard of the Academy. %description -l he Hspell הוא מאיית ומנתח צורני עברי, המספק מנשק דמוי-spell - פולט רשימה של המילים השגויות המופיעות בקלט. Hspell מקפיד מאוד כללי האקדמיה העברית לכתיב חסר ניקוד ("כתיב מלא"). כמו כן, Hspell מספק (-l) מנתח מורפולוגי אשר מדפיס את כל המשמעויות האפשריות של מחרוזת אותיות עברית. +גרסה 1.4 תואמת עדיין לכללי האיות הישנים (טרם יוני 2017) של האקדמיה. %package devel Summary: Library and include files for Hspell, the Hebrew spell checker @@ -42,6 +45,7 @@ Hebrew hunspell dictionaries. %prep %setup -q +%patch0 -p1 -b .localreq /usr/bin/iconv -f hebrew -t utf8 -o WHATSNEW WHATSNEW %build @@ -84,6 +88,9 @@ cp -p he.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/he_IL.aff %postun -p /sbin/ldconfig %changelog +* Sat Jul 15 2017 Dan Kenigsberg - 1.4-1 +- Sync with upstream hspell-1.4 + * Wed Feb 03 2016 Fedora Release Engineering - 1.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index a76ae64..efe3f04 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -351850c9f6974a709dd092a2d1063e4a hspell-1.3.tar.gz +SHA512 (hspell-1.4.tar.gz) = d0c9205d9f6a7e9e2577b685418120542235d290ee8d95e2066694c45b4083e3ce1abc38c910714cde0941fa6b211522a8259b0d880a71c5b9c5a6d77a115f1a