[perl-Text-Levenshtein] 0.12 bump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit f10091c08fd5f45e30e5be73b2cd44f9888b2d0c
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Fri Nov 14 11:20:46 2014 +0100

    0.12 bump

 .gitignore                 |    1 +
 .rpmlint                   |    2 +
 perl-Text-Levenshtein.spec |   48 +++++++++++++++++++++++++------------------
 sources                    |    2 +-
 4 files changed, 32 insertions(+), 21 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 1f57c0a..887fd90 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 Text-Levenshtein-0.05.tar.gz
+/Text-Levenshtein-0.12.tar.gz
diff --git a/.rpmlint b/.rpmlint
new file mode 100644
index 0000000..ce93d7d
--- /dev/null
+++ b/.rpmlint
@@ -0,0 +1,2 @@
+from Config import *
+addFilter("spelling-error .* (http|versa|wikipedia)");
diff --git a/perl-Text-Levenshtein.spec b/perl-Text-Levenshtein.spec
index 4d0c635..c1d6c64 100644
--- a/perl-Text-Levenshtein.spec
+++ b/perl-Text-Levenshtein.spec
@@ -1,55 +1,63 @@
 Name:           perl-Text-Levenshtein
-Version:        0.05
-Release:        21%{?dist}
+Version:        0.12
+Release:        1%{?dist}
 Summary:        Implementation of the Levenshtein edit distance
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Text-Levenshtein/
-Source0:        http://www.cpan.org/authors/id/J/JG/JGOLDBERG/Text-Levenshtein-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0:        http://www.cpan.org/authors/id/N/NE/NEILB/Text-Levenshtein-%{version}.tar.gz
 BuildArch:      noarch
+BuildRequires:  perl
 BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:  perl(Test::More)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+# Run-time:
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(List::Util)
+# Unicode::Collate 1.04 not used at tests
+# Tests:
+BuildRequires:  perl(lib)
+BuildRequires:  perl(open)
+BuildRequires:  perl(parent)
+BuildRequires:  perl(Test::More) >= 0.88
+BuildRequires:  perl(utf8)
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:       perl(Unicode::Collate) >= 1.04
 
 %description
 This module implements the Levenshtein edit distance. The Levenshtein edit
 distance is a measure of the degree of proximity between two strings. This
 distance is the number of substitutions, deletions or insertions ("edits")
 needed to transform one string into the other one (and vice versa). When
-two strings have distance 0, they are the same. A good point to start is:
-<http://www.merriampark.com/ld.htm>
+two strings have distance 0, they are the same. To learn more about the
+Levenshtein metric, have a look at the wikipedia page
+<http://en.wikipedia.org/wiki/Levenshtein_distance>.
 
 %prep
 %setup -q -n Text-Levenshtein-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
+make pure_install DESTDIR=$RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
 make test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
-%doc Changes README
+%doc Changes LICENSE README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Fri Nov 14 2014 Petr Pisar <ppisar@xxxxxxxxxx> - 0.12-1
+- 0.12 bump
+
 * Wed Aug 27 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 0.05-21
 - Perl 5.20 rebuild
 
diff --git a/sources b/sources
index e78cd1c..6fcaef4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-481bf8c903db6ba7e5c9251140e1b98f  Text-Levenshtein-0.05.tar.gz
+1073c16268ff588c7eb0baf057e0a784  Text-Levenshtein-0.12.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux