2011-01-17 20:23:46 +00:00
|
|
|
#
|
2011-08-08 13:53:25 +00:00
|
|
|
# spec file for package perl-Perl-PrereqScanner
|
2011-01-17 20:23:46 +00:00
|
|
|
#
|
2013-06-10 10:35:15 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-01-17 20:23:46 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-08-08 13:53:25 +00:00
|
|
|
|
2011-01-17 20:23:46 +00:00
|
|
|
Name: perl-Perl-PrereqScanner
|
2013-11-25 09:19:34 +00:00
|
|
|
Version: 1.018
|
2012-02-15 12:08:21 +00:00
|
|
|
Release: 0
|
2011-01-17 20:23:46 +00:00
|
|
|
%define cpan_name Perl-PrereqScanner
|
2012-05-28 13:37:43 +00:00
|
|
|
Summary: A tool to scan your Perl code for its prerequisites
|
2012-02-15 12:08:21 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2011-01-17 20:23:46 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2012-02-15 12:08:21 +00:00
|
|
|
Url: http://search.cpan.org/dist/Perl-PrereqScanner/
|
2013-06-10 10:35:15 +00:00
|
|
|
Source: http://www.cpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz
|
2011-06-01 07:30:01 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2012-05-28 13:37:43 +00:00
|
|
|
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.120630
|
2013-07-26 18:37:32 +00:00
|
|
|
BuildRequires: perl(Getopt::Long::Descriptive)
|
2011-01-17 20:23:46 +00:00
|
|
|
BuildRequires: perl(List::MoreUtils)
|
2013-07-26 18:37:32 +00:00
|
|
|
BuildRequires: perl(Module::Path)
|
2011-01-17 20:23:46 +00:00
|
|
|
BuildRequires: perl(Moose)
|
|
|
|
BuildRequires: perl(Moose::Role)
|
2013-06-10 10:35:15 +00:00
|
|
|
BuildRequires: perl(PPI) >= 1.215
|
2011-01-17 20:23:46 +00:00
|
|
|
BuildRequires: perl(PPI::Document)
|
2012-02-15 12:08:21 +00:00
|
|
|
BuildRequires: perl(Params::Util)
|
2011-01-17 20:23:46 +00:00
|
|
|
BuildRequires: perl(String::RewritePrefix) >= 0.005
|
2011-06-01 07:30:01 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
2011-01-17 20:23:46 +00:00
|
|
|
BuildRequires: perl(Try::Tiny)
|
2012-02-15 12:08:21 +00:00
|
|
|
BuildRequires: perl(namespace::autoclean)
|
|
|
|
#BuildRequires: perl(Perl::PrereqScanner)
|
|
|
|
#BuildRequires: perl(Perl::PrereqScanner::Scanner)
|
2012-05-28 13:37:43 +00:00
|
|
|
Requires: perl(CPAN::Meta::Requirements) >= 2.120630
|
2013-07-26 18:37:32 +00:00
|
|
|
Requires: perl(Getopt::Long::Descriptive)
|
2011-01-17 20:23:46 +00:00
|
|
|
Requires: perl(List::MoreUtils)
|
2013-07-26 18:37:32 +00:00
|
|
|
Requires: perl(Module::Path)
|
2011-01-17 20:23:46 +00:00
|
|
|
Requires: perl(Moose)
|
|
|
|
Requires: perl(Moose::Role)
|
2013-06-10 10:35:15 +00:00
|
|
|
Requires: perl(PPI) >= 1.215
|
2012-02-23 10:01:11 +00:00
|
|
|
Requires: perl(Params::Util)
|
2011-01-17 20:23:46 +00:00
|
|
|
Requires: perl(String::RewritePrefix) >= 0.005
|
2012-02-23 10:01:11 +00:00
|
|
|
Requires: perl(namespace::autoclean)
|
2011-01-17 20:23:46 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
The scanner will extract loosely your distribution prerequisites from your
|
|
|
|
files.
|
|
|
|
|
2012-02-15 12:08:21 +00:00
|
|
|
The extraction may not be perfect but tries to do its best. It will
|
|
|
|
currently find the following prereqs:
|
|
|
|
|
|
|
|
* *
|
|
|
|
|
|
|
|
plain lines beginning with 'use' or 'require' in your perl modules and
|
|
|
|
scripts, including minimum perl version
|
|
|
|
|
|
|
|
* *
|
|
|
|
|
|
|
|
regular inheritance declared with the 'base' and 'parent' pragmata
|
|
|
|
|
|
|
|
* *
|
|
|
|
|
|
|
|
the Moose manpage inheritance declared with the 'extends' keyword
|
|
|
|
|
|
|
|
* *
|
|
|
|
|
|
|
|
the Moose manpage roles included with the 'with' keyword
|
|
|
|
|
|
|
|
* *
|
|
|
|
|
|
|
|
OO namespace aliasing using the 'aliased' module
|
|
|
|
|
2011-01-17 20:23:46 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2011-06-01 07:30:01 +00:00
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes LICENSE README
|
2011-01-17 20:23:46 +00:00
|
|
|
|
|
|
|
%changelog
|