[packages/perl-Test-Dependencies] - updated to 0.23 - added undef patch (fixes Makefile.PL detection of modules without $VERSION, like

qboosh qboosh at pld-linux.org
Tue Nov 15 21:33:39 CET 2016


commit ae022eecb4b013079f2a2553d32474ad14f2953a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Nov 15 21:33:43 2016 +0100

    - updated to 0.23
    - added undef patch (fixes Makefile.PL detection of modules without $VERSION, like PerlReq::Utils)

 perl-Test-Dependencies-undef.patch | 13 +++++++++++++
 perl-Test-Dependencies.spec        | 24 ++++++++++++++----------
 2 files changed, 27 insertions(+), 10 deletions(-)
---
diff --git a/perl-Test-Dependencies.spec b/perl-Test-Dependencies.spec
index 31cadc6..4d47731 100644
--- a/perl-Test-Dependencies.spec
+++ b/perl-Test-Dependencies.spec
@@ -8,26 +8,29 @@
 Summary:	Test::Dependencies - Ensure that your Makefile.PL specifies all module dependencies
 Summary(pl.UTF-8):	Test::Dependencies - sprawdzanie czy Makefile.PL określa wszystkie zależności
 Name:		perl-Test-Dependencies
-Version:	0.12
+Version:	0.23
 Release:	1
-# same as perl
+# same as perl 5
 License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5:	c6a2296a4dd1f023cb396832c4c2535c
+# Source0-md5:	49c7be85e155591fede4fb818462665f
+Patch0:		%{name}-undef.patch
 URL:		http://search.cpan.org/dist/Test-Dependencies/
-BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	perl-CPAN-Meta-Requirements >= 2.120_620
+BuildRequires:	perl-Pod-Strip
+BuildRequires:	perl-devel >= 1:5.10.1
 BuildRequires:	rpm-perlprov >= 4.1-13
 %if %{with tests}
-BuildRequires:	perl(B::PerlReq)
-BuildRequires:	perl(PerlReq::Utils)
 BuildRequires:	perl(Test::Builder::Module)
-BuildRequires:	perl(Test::Builder::Tester) >= 0.64
 BuildRequires:	perl-File-Find-Rule
 BuildRequires:	perl-IPC-Cmd
 BuildRequires:	perl-Module-CoreList
-BuildRequires:	perl-Pod-Strip
+BuildRequires:	perl-Test-Builder-Tester >= 0.64
+BuildRequires:	perl-Test-Needs
+BuildRequires:	perl-Test-Simple >= 1.30
 BuildRequires:	perl-YAML
+BuildRequires:	perl-rpm-build-perl
 %endif
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -43,6 +46,7 @@ Makefile.PL.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
 
 %build
 %{__perl} Makefile.PL \
@@ -63,6 +67,6 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc Changes README
-%{perl_vendorlib}/Test/*.pm
+%{perl_vendorlib}/Test/Dependencies.pm
 %{perl_vendorlib}/Test/Dependencies
-%{_mandir}/man3/*
+%{_mandir}/man3/Test::Dependencies*.3pm*
diff --git a/perl-Test-Dependencies-undef.patch b/perl-Test-Dependencies-undef.patch
new file mode 100644
index 0000000..8d06080
--- /dev/null
+++ b/perl-Test-Dependencies-undef.patch
@@ -0,0 +1,13 @@
+--- Test-Dependencies-0.23/Makefile.PL.orig	2016-11-15 21:24:48.868706625 +0100
++++ Test-Dependencies-0.23/Makefile.PL	2016-11-15 21:29:49.902036520 +0100
+@@ -79,7 +79,9 @@
+   require Module::Metadata;
+   my $mmd = Module::Metadata->new_from_module($module);
+   return undef if not $mmd;
+-  return $mmd->version($module) if not defined $version_or_range;
++  my $version = $mmd->version($module);
++  return "0.0" if not defined $version;
++  return $version if not defined $version_or_range;
+ 
+   require CPAN::Meta::Requirements;
+   my $req = CPAN::Meta::Requirements->new;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Test-Dependencies.git/commitdiff/ae022eecb4b013079f2a2553d32474ad14f2953a



More information about the pld-cvs-commit mailing list