psabata pushed to perl-Text-Levenshtein (master). "Fix the build, Unicode::Collate is actually needed (..more)"
notifications at fedoraproject.org
notifications at fedoraproject.org
Tue Jul 14 11:06:06 UTC 2015
From 58404a671e46cb80cb605155a430e644e24d35ac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <contyk at redhat.com>
Date: Tue, 14 Jul 2015 13:05:58 +0200
Subject: Fix the build, Unicode::Collate is actually needed
- Package the license text with %license
diff --git a/perl-Text-Levenshtein.spec b/perl-Text-Levenshtein.spec
index 1a3623c..542a722 100644
--- a/perl-Text-Levenshtein.spec
+++ b/perl-Text-Levenshtein.spec
@@ -1,22 +1,24 @@
Name: perl-Text-Levenshtein
Version: 0.12
-Release: 3%{?dist}
+Release: 4%{?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/N/NE/NEILB/Text-Levenshtein-%{version}.tar.gz
BuildArch: noarch
+# Build
+BuildRequires: make
BuildRequires: perl
-BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
-# Run-time:
+# Runtime
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(List::Util)
-# Unicode::Collate 1.04 not used at tests
-# Tests:
+BuildRequires: perl(Unicode::Collate) >= 1.04
+# Tests only
BuildRequires: perl(lib)
BuildRequires: perl(open)
BuildRequires: perl(parent)
@@ -38,23 +40,27 @@ Levenshtein metric, have a look at the wikipedia page
%setup -q -n Text-Levenshtein-%{version}
%build
-perl Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%install
-make pure_install DESTDIR=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-%{_fixperms} $RPM_BUILD_ROOT/*
+make pure_install DESTDIR=%{buildroot}
+%{_fixperms} %{buildroot}/*
%check
make test
%files
-%doc Changes LICENSE README
+%license LICENSE
+%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
+* Tue Jul 14 2015 Petr Ĺ abata <contyk at redhat.com> - 0.12-4
+- Fix the build, Unicode::Collate is actually needed
+- Package the license text with %%license
+
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.12-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-Text-Levenshtein.git/commit/?h=master&id=58404a671e46cb80cb605155a430e644e24d35ac
More information about the perl-devel
mailing list