8
0

- updated to 1.004

- avoid calling a method on undef (i.e., cope with PPI doing surprising
    things)
  - fix a bug that caused things like "within" and "trextends" to trigger
    the Moose scanner
  - fix rt#61608 - missing description in whatisentry for TestMore.pm

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Perl-PrereqScanner?expand=0&rev=2
This commit is contained in:
Stephan Kulow
2011-06-01 07:30:01 +00:00
committed by Git OBS Bridge
parent cb4187f9ab
commit 3000bc6acc
4 changed files with 24 additions and 31 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:23fab27f89761782cceca7bf52ed5864d6301e4c3e245732184ec96215433d7e
size 15280

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ad27128999ebace9f39e8fae4ad710acd393ecac786f32220823db7a63336390
size 16594

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Jun 1 07:28:10 UTC 2011 - coolo@novell.com
- updated to 1.004
- avoid calling a method on undef (i.e., cope with PPI doing surprising
things)
- fix a bug that caused things like "within" and "trextends" to trigger
the Moose scanner
- fix rt#61608 - missing description in whatisentry for TestMore.pm
-------------------------------------------------------------------
Mon Jan 17 20:23:12 UTC 2011 - coolo@novell.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Perl-PrereqScanner (Version 1.001)
# spec file for package perl-Perl-PrereqScanner (Version 1.004)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,19 +16,19 @@
#
Name: perl-Perl-PrereqScanner
Version: 1.001
Version: 1.004
Release: 1
License: GPL+ or Artistic
%define cpan_name Perl-PrereqScanner
Summary: a tool to scan your Perl code for its prerequisites
Url: http://search.cpan.org/dist/Perl-PrereqScanner/
Group: Development/Libraries/Perl
#Source: http://www.cpan.org/authors/id/J/JQ/JQUELIN/Perl-PrereqScanner-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
Source: http://www.cpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(List::Util)
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Role)
BuildRequires: perl(namespace::autoclean)
@@ -36,13 +36,10 @@ BuildRequires: perl(Params::Util)
BuildRequires: perl(PPI) >= 1.205
BuildRequires: perl(PPI::Document)
BuildRequires: perl(String::RewritePrefix) >= 0.005
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(Version::Requirements) >= 0.100630
BuildRequires: perl
BuildRequires: perl-macros
Requires: perl(File::Spec::Functions)
Requires: perl(List::MoreUtils)
Requires: perl(List::Util)
Requires: perl(Moose)
Requires: perl(Moose::Role)
Requires: perl(namespace::autoclean)
@@ -50,8 +47,6 @@ Requires: perl(Params::Util)
Requires: perl(PPI) >= 1.205
Requires: perl(String::RewritePrefix) >= 0.005
Requires: perl(Version::Requirements) >= 0.100630
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{perl_requires}
%description
@@ -82,18 +77,6 @@ It will trim the following pragamata: 'strict', 'warnings', and 'lib'.
'base' is trimmed unless a specific version is required. 'parent' is kept,
since it's only recently become a core library.
Scanner Plugins
Perl::PrereqScanner works by running a series of scanners over a
PPI::Document representing the code to scan. By default the "Perl5" and
"Moose" scanners are run. You can supply your own scanners when
constructing your PrereqScanner:
# Do not use the Moose scanner, only Perl5:
my $scanner = Perl::PrereqScanner->new({ plugins => [ qw(Perl5) ] });
# Use any stock plugins, plus Example:
my $scanner = Perl::PrereqScanner->new({ extra_plugins => [ qw(Example) ] });
%prep
%setup -q -n %{cpan_name}-%{version}
@@ -113,7 +96,7 @@ Scanner Plugins
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(644,root,root,755)
%doc Changes dist.ini LICENSE README
%defattr(-,root,root,755)
%doc Changes LICENSE README
%changelog