[perl-Lingua-Identify: 8/11] Patch a unit test so it actually tests something (RT#83071)

Mathieu Bridon bochecha at fedoraproject.org
Fri Feb 8 06:59:45 UTC 2013


commit cb517e4a0357b51373e4e5222524574d763f9c15
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date:   Mon Feb 4 13:06:17 2013 +0800

    Patch a unit test so it actually tests something (RT#83071)

 Lingua-Identify-0.51-Fix-a-unit-test.patch |   26 ++++++++++++++++++++++++++
 perl-Lingua-Identify.spec                  |    5 +++++
 2 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/Lingua-Identify-0.51-Fix-a-unit-test.patch b/Lingua-Identify-0.51-Fix-a-unit-test.patch
new file mode 100644
index 0000000..353f075
--- /dev/null
+++ b/Lingua-Identify-0.51-Fix-a-unit-test.patch
@@ -0,0 +1,26 @@
+From f15c2cf51da313b289673d9053ed20046284da7d Mon Sep 17 00:00:00 2001
+From: Mathieu Bridon <bochecha at fedoraproject.org>
+Date: Mon, 4 Feb 2013 10:46:49 +0800
+Subject: [PATCH] Fix a unit test
+
+https://rt.cpan.org/Public/Bug/Display.html?id=83071
+---
+ t/04-compile-make-lingua-identify-language.t |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/t/04-compile-make-lingua-identify-language.t b/t/04-compile-make-lingua-identify-language.t
+index 7ce9b6e..009d5a8 100644
+--- a/t/04-compile-make-lingua-identify-language.t
++++ b/t/04-compile-make-lingua-identify-language.t
+@@ -3,7 +3,7 @@
+ 
+ use Test::More tests => 1;
+ 
+-my $file = "langident";
++my $file = "make-lingua-identify-language";
+ 
+ print "bail out! Script file is missing!" unless -e $file;
+ 
+-- 
+1.7.1
+
diff --git a/perl-Lingua-Identify.spec b/perl-Lingua-Identify.spec
index f086c67..966256a 100644
--- a/perl-Lingua-Identify.spec
+++ b/perl-Lingua-Identify.spec
@@ -6,6 +6,9 @@ License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/Lingua-Identify/
 Source0:        http://www.cpan.org/authors/id/A/AM/AMBS/Lingua/Lingua-Identify-%{version}.tar.gz
 
+# https://rt.cpan.org/Public/Bug/Display.html?id=83071
+Patch0:         Lingua-Identify-0.51-Fix-a-unit-test.patch
+
 BuildArch:      noarch
 
 BuildRequires:  perl(base)
@@ -19,6 +22,7 @@ BuildRequires:  perl(Test::More)
 BuildRequires:  perl(Test::Pod)
 BuildRequires:  perl(Test::Pod::Coverage)
 BuildRequires:  perl(Text::Affixes) >= 0.07
+BuildRequires:  perl(Text::ExtractWords)
 BuildRequires:  perl(Text::Ngram) >= 0.13
 
 Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@@ -73,6 +77,7 @@ make test
 
 %changelog
 - Add missing build requirements.
+- Patch a unit test so it actually tests something (RT#83071)
 
 * Thu Jan 24 2013 Mathieu Bridon <bochecha at fedoraproject.org> - 0.51-2
 - Replace usage of the %%{__perl} macro by the plain perl command.



More information about the perl-devel mailing list