8
0
Files
perl-Module-ScanDeps/perl-Module-ScanDeps.spec

116 lines
3.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Module-ScanDeps
#
Accepting request 147889 from home:oertel:branches:devel:languages:perl - update to 1.10: * add %Preload rule for Params::Validate to detect its PP and XS implementations * Fix RT #80276 Module DateTime::Format::ISO8601 generates error after being packaged - caused by failing to pack DateTime::Format::Builder::Parser::XXX modules needed by DateTime::Format::Builder::Parser - add a corresponding %Preload rule - update to 1.09: * teach Module::ScanDeps about "use if ..." constructs - fixes CPAN Testers failures for PAR::Packer with perl 5.17.1 and up (Roderich Schupp) * RT #79003: t/7-check-dynaloader.t failing when /usr/lib != /usr/lib64 - scrap the test for "$entry{file} starts with $expected_prefix" as its assumptions are flawed (Roderich Schupp) * Mojo::Base is a loader (Alexandr Ciornii) * Special case for Class::Load (Alexandr Ciornii) - update to 1.08: * RT #73785: scandeps -c fails on modules that depend on Getopt::Euclid - for "scandeps -c ..." switch from an INIT block to a CHECK block and call the augmented script with "perl -c" instaed of "perl" * RT#72954 ":encoding(UTF-8)" doesn't imply a dependency on Encode.pm - if scan_chunk sees ":encoding(FOO)" or similar, it goes to some length to find the "external" Encode module to handle FOO; but it forgets that Encode.pm itself is needed at runtime (esp. if FOO is an encoding "internally" handled by Encode.pm, e.g. "UTF-8") OBS-URL: https://build.opensuse.org/request/show/147889 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-ScanDeps?expand=0&rev=14
2013-01-10 14:15:26 +00:00
# Copyright (c) 2013 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-Module-ScanDeps
Version: 1.11
Accepting request 147889 from home:oertel:branches:devel:languages:perl - update to 1.10: * add %Preload rule for Params::Validate to detect its PP and XS implementations * Fix RT #80276 Module DateTime::Format::ISO8601 generates error after being packaged - caused by failing to pack DateTime::Format::Builder::Parser::XXX modules needed by DateTime::Format::Builder::Parser - add a corresponding %Preload rule - update to 1.09: * teach Module::ScanDeps about "use if ..." constructs - fixes CPAN Testers failures for PAR::Packer with perl 5.17.1 and up (Roderich Schupp) * RT #79003: t/7-check-dynaloader.t failing when /usr/lib != /usr/lib64 - scrap the test for "$entry{file} starts with $expected_prefix" as its assumptions are flawed (Roderich Schupp) * Mojo::Base is a loader (Alexandr Ciornii) * Special case for Class::Load (Alexandr Ciornii) - update to 1.08: * RT #73785: scandeps -c fails on modules that depend on Getopt::Euclid - for "scandeps -c ..." switch from an INIT block to a CHECK block and call the augmented script with "perl -c" instaed of "perl" * RT#72954 ":encoding(UTF-8)" doesn't imply a dependency on Encode.pm - if scan_chunk sees ":encoding(FOO)" or similar, it goes to some length to find the "external" Encode module to handle FOO; but it forgets that Encode.pm itself is needed at runtime (esp. if FOO is an encoding "internally" handled by Encode.pm, e.g. "UTF-8") OBS-URL: https://build.opensuse.org/request/show/147889 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-ScanDeps?expand=0&rev=14
2013-01-10 14:15:26 +00:00
Release: 0
%define cpan_name Module-ScanDeps
Summary: Recursively scan Perl code for dependencies
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Accepting request 147889 from home:oertel:branches:devel:languages:perl - update to 1.10: * add %Preload rule for Params::Validate to detect its PP and XS implementations * Fix RT #80276 Module DateTime::Format::ISO8601 generates error after being packaged - caused by failing to pack DateTime::Format::Builder::Parser::XXX modules needed by DateTime::Format::Builder::Parser - add a corresponding %Preload rule - update to 1.09: * teach Module::ScanDeps about "use if ..." constructs - fixes CPAN Testers failures for PAR::Packer with perl 5.17.1 and up (Roderich Schupp) * RT #79003: t/7-check-dynaloader.t failing when /usr/lib != /usr/lib64 - scrap the test for "$entry{file} starts with $expected_prefix" as its assumptions are flawed (Roderich Schupp) * Mojo::Base is a loader (Alexandr Ciornii) * Special case for Class::Load (Alexandr Ciornii) - update to 1.08: * RT #73785: scandeps -c fails on modules that depend on Getopt::Euclid - for "scandeps -c ..." switch from an INIT block to a CHECK block and call the augmented script with "perl -c" instaed of "perl" * RT#72954 ":encoding(UTF-8)" doesn't imply a dependency on Encode.pm - if scan_chunk sees ":encoding(FOO)" or similar, it goes to some length to find the "external" Encode module to handle FOO; but it forgets that Encode.pm itself is needed at runtime (esp. if FOO is an encoding "internally" handled by Encode.pm, e.g. "UTF-8") OBS-URL: https://build.opensuse.org/request/show/147889 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-ScanDeps?expand=0&rev=14
2013-01-10 14:15:26 +00:00
Url: http://search.cpan.org/dist/Module-ScanDeps/
Source: http://www.cpan.org/authors/id/R/RS/RSCHUPP/%{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build::ModuleInfo)
BuildRequires: perl(version)
#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)
Requires: perl(Module::Build::ModuleInfo)
Requires: perl(version)
%{perl_requires}
%description
This module scans potential modules used by perl programs, and returns a
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'.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc AUTHORS Changes README
%changelog