forked from pool/perl-Module-ScanDeps
- updated to 1.370.0 (1.37) see /usr/share/doc/packages/perl-Module-ScanDeps/Changes 1.37 2024-11-14 - fix parsing of "use if ..." Fixes errors in PAR::Packer test t/90-rt59710.t - add test for _parse_libs() 1.36 2024-10-21 - Fix CVE-2024-10224: Unsanitized input leads to LPE - use three-argument open() - replace 'eval "..."' constructs Note: this version was not released on CPAN because of Coordinated Release Date for CVE - README: add "Source Repository" and "Contact" info switch "Please submit bug reports to ..." to GitHub issues - add preload rule for MooX::HandlesVia cf. https://github.com/rschupp/PAR-Packer/issues/88 OBS-URL: https://build.opensuse.org/request/show/1235346 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-ScanDeps?expand=0&rev=62
93 lines
2.9 KiB
RPMSpec
93 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package perl-Module-ScanDeps
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define cpan_name Module-ScanDeps
|
|
Name: perl-Module-ScanDeps
|
|
Version: 1.370.0
|
|
Release: 0
|
|
# 1.37 -> normalize -> 1.370.0
|
|
%define cpan_version 1.37
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Recursively scan Perl code for dependencies
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RS/RSCHUPP/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(IPC::Run3) >= 0.048
|
|
BuildRequires: perl(List::Util) >= 1.33
|
|
BuildRequires: perl(Module::Metadata)
|
|
BuildRequires: perl(Test::Requires)
|
|
BuildRequires: perl(version)
|
|
Requires: perl(List::Util) >= 1.33
|
|
Requires: perl(Module::Metadata)
|
|
Requires: perl(version)
|
|
Provides: perl(Module::ScanDeps) = %{version}
|
|
Provides: perl(Module::ScanDeps::Cache)
|
|
%undefine __perllib_provides
|
|
%{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 App::Packer::Frontend for detailed explanation on the structure
|
|
returned by 'get_files'.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc AUTHORS Changes README
|
|
%license LICENSE
|
|
|
|
%changelog
|