2011-05-01 10:54:23 +00:00
|
|
|
#
|
2011-07-19 14:06:17 +00:00
|
|
|
# spec file for package perl-Module-ScanDeps
|
2011-05-01 10:54:23 +00:00
|
|
|
#
|
2013-01-10 14:15:26 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-05-01 10:54:23 +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/
|
|
|
|
#
|
2010-09-01 04:56:31 +00:00
|
|
|
|
2011-07-19 14:06:17 +00:00
|
|
|
|
2010-09-01 04:56:31 +00:00
|
|
|
Name: perl-Module-ScanDeps
|
2013-10-04 15:23:49 +00:00
|
|
|
Version: 1.11
|
2013-01-10 14:15:26 +00:00
|
|
|
Release: 0
|
2011-05-01 10:54:23 +00:00
|
|
|
%define cpan_name Module-ScanDeps
|
2010-09-01 04:56:31 +00:00
|
|
|
Summary: Recursively scan Perl code for dependencies
|
2013-10-04 15:23:49 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2010-09-01 04:56:31 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2013-01-10 14:15:26 +00:00
|
|
|
Url: http://search.cpan.org/dist/Module-ScanDeps/
|
2011-05-01 10:54:23 +00:00
|
|
|
Source: http://www.cpan.org/authors/id/R/RS/RSCHUPP/%{cpan_name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-10-04 15:23:49 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 14:43:00 +00:00
|
|
|
BuildRequires: perl-macros
|
2010-09-01 04:56:31 +00:00
|
|
|
BuildRequires: perl(Module::Build::ModuleInfo)
|
|
|
|
BuildRequires: perl(version)
|
2013-10-04 15:23:49 +00:00
|
|
|
#BuildRequires: perl(chicken)
|
|
|
|
#BuildRequires: perl(CPANPLUS::Backend)
|
|
|
|
#BuildRequires: perl(Duplicated)
|
|
|
|
#BuildRequires: perl(egg)
|
|
|
|
#BuildRequires: perl(inc::Module::Install) >= 1.00
|
|
|
|
#BuildRequires: perl(inner_diamond_E)
|
|
|
|
#BuildRequires: perl(inner_diamond_N)
|
|
|
|
#BuildRequires: perl(inner_diamond_S)
|
|
|
|
#BuildRequires: perl(inner_diamond_W)
|
|
|
|
#BuildRequires: perl(JSON)
|
|
|
|
#BuildRequires: perl(LWP::Simple)
|
|
|
|
#BuildRequires: perl(Module::Build)
|
|
|
|
#BuildRequires: perl(Module::Install::Base)
|
|
|
|
#BuildRequires: perl(Module::Pluggable)
|
|
|
|
#BuildRequires: perl(Module::ScanDeps)
|
|
|
|
#BuildRequires: perl(Module::ScanDeps::Cache)
|
|
|
|
#BuildRequires: perl(Module::ScanDeps::DataFeed)
|
|
|
|
#BuildRequires: perl(outer_diamond_E)
|
|
|
|
#BuildRequires: perl(outer_diamond_S)
|
|
|
|
#BuildRequires: perl(outer_diamond_W)
|
|
|
|
#BuildRequires: perl(Parse::CPAN::Meta)
|
|
|
|
#BuildRequires: perl(prefork)
|
|
|
|
#BuildRequires: perl(Scoped::Package)
|
|
|
|
#BuildRequires: perl(Some)
|
|
|
|
#BuildRequires: perl(test)
|
|
|
|
#BuildRequires: perl(TestA)
|
|
|
|
#BuildRequires: perl(TestB)
|
|
|
|
#BuildRequires: perl(TestC)
|
|
|
|
#BuildRequires: perl(TestD)
|
|
|
|
#BuildRequires: perl(Utils)
|
|
|
|
#BuildRequires: perl(YAML::Tiny)
|
2010-09-01 04:56:31 +00:00
|
|
|
Requires: perl(Module::Build::ModuleInfo)
|
|
|
|
Requires: perl(version)
|
2011-05-01 10:54:23 +00:00
|
|
|
%{perl_requires}
|
2010-09-01 04:56:31 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This module scans potential modules used by perl programs, and returns a
|
2013-10-04 15:23:49 +00:00
|
|
|
hash reference; its keys are the module names as appears in '%INC' (e.g.
|
|
|
|
'Test/More.pm'); the values are hash references with this structure:
|
|
|
|
|
|
|
|
{
|
|
|
|
file => '/usr/local/lib/perl5/5.8.0/Test/More.pm',
|
|
|
|
key => 'Test/More.pm',
|
|
|
|
type => 'module', # or 'autoload', 'data', 'shared'
|
|
|
|
used_by => [ 'Test/Simple.pm', ... ],
|
|
|
|
uses => [ 'Test/Other.pm', ... ],
|
|
|
|
}
|
|
|
|
|
|
|
|
One function, 'scan_deps', is exported by default. Other functions such as
|
|
|
|
('scan_line', 'scan_chunk', 'add_deps', 'path_to_inc_name') are exported
|
|
|
|
upon request.
|
|
|
|
|
|
|
|
Users of *App::Packer* may also use this module as the dependency-checking
|
|
|
|
frontend, by tweaking their _p2e.pl_ like below:
|
|
|
|
|
|
|
|
use Module::ScanDeps;
|
|
|
|
...
|
|
|
|
my $packer = App::Packer->new( frontend => 'Module::ScanDeps' );
|
|
|
|
...
|
|
|
|
|
|
|
|
Please see the App::Packer::Frontend manpage for detailed explanation on
|
|
|
|
the structure returned by 'get_files'.
|
2010-09-01 04:56:31 +00:00
|
|
|
|
|
|
|
%prep
|
2011-05-01 10:54:23 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2010-09-01 04:56:31 +00:00
|
|
|
|
|
|
|
%build
|
2011-05-01 10:54:23 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
2010-09-01 04:56:31 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2011-05-01 10:54:23 +00:00
|
|
|
%perl_gen_filelist
|
2010-09-01 04:56:31 +00:00
|
|
|
|
2011-05-01 10:54:23 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc AUTHORS Changes README
|
2010-09-01 04:56:31 +00:00
|
|
|
|
2011-05-01 10:54:23 +00:00
|
|
|
%changelog
|