forked from pool/perl-Perl-PrereqScanner
- initial package 1.001
* created by cpanspec 1.78.03 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Perl-PrereqScanner?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
Perl-PrereqScanner-1.001.tar.bz2
Normal file
3
Perl-PrereqScanner-1.001.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:23fab27f89761782cceca7bf52ed5864d6301e4c3e245732184ec96215433d7e
|
||||
size 15280
|
6
perl-Perl-PrereqScanner.changes
Normal file
6
perl-Perl-PrereqScanner.changes
Normal file
@@ -0,0 +1,6 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 17 20:23:12 UTC 2011 - coolo@novell.com
|
||||
|
||||
- initial package 1.001
|
||||
* created by cpanspec 1.78.03
|
||||
|
119
perl-Perl-PrereqScanner.spec
Normal file
119
perl-Perl-PrereqScanner.spec
Normal file
@@ -0,0 +1,119 @@
|
||||
#
|
||||
# spec file for package perl-Perl-PrereqScanner (Version 1.001)
|
||||
#
|
||||
# Copyright (c) 2010 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
|
||||
# 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/
|
||||
#
|
||||
|
||||
Name: perl-Perl-PrereqScanner
|
||||
Version: 1.001
|
||||
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)
|
||||
BuildRequires: perl(List::MoreUtils)
|
||||
BuildRequires: perl(List::Util)
|
||||
BuildRequires: perl(Moose)
|
||||
BuildRequires: perl(Moose::Role)
|
||||
BuildRequires: perl(namespace::autoclean)
|
||||
BuildRequires: perl(Params::Util)
|
||||
BuildRequires: perl(PPI) >= 1.205
|
||||
BuildRequires: perl(PPI::Document)
|
||||
BuildRequires: perl(String::RewritePrefix) >= 0.005
|
||||
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)
|
||||
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
|
||||
The scanner will extract loosely your distribution prerequisites from your
|
||||
files.
|
||||
|
||||
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
|
||||
|
||||
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}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(644,root,root,755)
|
||||
%doc Changes dist.ini LICENSE README
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user