# # spec file for package perl-Module-ExtractUse # # Copyright (c) 2023 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-ExtractUse Name: perl-Module-ExtractUse Version: 0.345 Release: 1.76 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Find out what modules are used URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/D/DO/DOMM/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Module::Build) >= 0.280000 BuildRequires: perl(Parse::RecDescent) >= 1.967009 BuildRequires: perl(Pod::Strip) BuildRequires: perl(Test::Deep) BuildRequires: perl(Test::NoWarnings) Requires: perl(Parse::RecDescent) >= 1.967009 Requires: perl(Pod::Strip) %{perl_requires} %description 'Module::ExtractUse' is basically a Parse::RecDescent grammar to parse Perl code. It tries very hard to find all modules (whether pragmas, Core, or from CPAN) used by the parsed code. "Usage" is defined by either calling 'use' or 'require'. %prep %autosetup -n %{cpan_name}-%{version} %build perl Build.PL installdirs=vendor ./Build build flags=%{?_smp_mflags} %check ./Build test %install ./Build install destdir=%{buildroot} create_packlist=0 # MANUAL BEGIN : > _build/runtime_params # MANUAL END %perl_gen_filelist %files -f %{name}.files %doc Changes example grammar README %license LICENSE %changelog * Tue Jan 17 2023 Tina Müller - updated to 0.345 see /usr/share/doc/packages/perl-Module-ExtractUse/Changes 0.345 2023-01-16T17:12:05 - Auto generate meta_yml_has_provides experimental Kwalitee. (Mohammad S Anwar) * Tue Sep 7 2021 Tina Müller - updated to 0.344 see /usr/share/doc/packages/perl-Module-ExtractUse/Changes 0.344 2021-09-06T13:31:26 - Fixed some spelling errors in the Pod. (Håkon Hægland) * Thu Nov 8 2018 Stephan Kulow - updated to 0.343 see /usr/share/doc/packages/perl-Module-ExtractUse/Changes 0.343 2018-10-18T15:19:05 - Mention Perl::PrereqScanner modules family (perlancar) * Tue Jan 23 2018 coolo@suse.com - updated to 0.342 see /usr/share/doc/packages/perl-Module-ExtractUse/Changes 0.342 2018-01-22T16:02:20 - Escape left (and right) braces to silence deprecation warnings (RT-124146) (Kenichi Ishigaki) * Sun Feb 7 2016 coolo@suse.com - updated to 0.341 see /usr/share/doc/packages/perl-Module-ExtractUse/Changes 0.341 2016-01-30T22:18:20 - fixed 20_parse_self.t; version.pm is not used anymore (Kenichi Ishigaki) 0.340 2016-01-30T20:42:39 - load_first_existing_class() is now working (Anthony Brummett) - Class::Load::load_class(), try_load_class() and load_optional_class() are working (Anthony Brummett) - Detect uses of Module::Runtime (Anthony Brummett) - include extractuse as provided by Jonathan Yu in example/ (Anthony Brummett) - Linkify POD modules, mention Module::Extract::Use to resolve RT#45571. (Jeremy Mates) * Thu Apr 23 2015 coolo@suse.com - updated to 0.33 see /usr/share/doc/packages/perl-Module-ExtractUse/Changes 0.33 2014-04-11T21:04:52+0200 - added base() handling to no (Thomas Klausner) - support 'no MODULE' etc (for RT-94305) (Kenichi Ishigaki) - typo fix (David Steinbrunner) - ignore __DATA|END__ sections (see https://rt.cpan.org/Ticket/Display.html?id=88969 ) (Kenichi Ishigaki) - ignore use/require method calls (Kenichi Ishigaki) 0.32 2013-09-04T16:48:07+0200 - not to include cached results (Kenichi Ishigaki) - Fix handling module beginning with v and pragma with version. (Yasutaka ATARASHI) - Recognize "use parent". (Yasutaka ATARASHI) 0.31 2013-05-31T10:21:06+0200 - applied a patch from cjm with slight modification to resolve RT#50723 (support use Foo::Bar (); etc) (Kenichi Ishigaki) - fixed RT#71761 (Kenichi Ishigaki) - applied a patch from wyant (RT#71761) (Kenichi Ishigaki) - fixed the Pod::Simple encoding issue (Kenichi Ishigaki) - Fix incorrect regexp (ref gh-5). (Yasutaka ATARASHI) - Avoid regex features introduced only in later perl (close gh-5). (Yasutaka ATARASHI) - Use plan() instead of done_testing() (ref gh-5). (Yasutaka ATARASHI) - Add support for bareword leading hyphyen, in-place arrayref and hashref. (Yasutaka ATARASHI) - proper version number for older releases (Brian Cassidy) 0.30 2013-04-18T08:57:49+0200 - Add accessors and tests for _in_eval/_out_of_eval. (Yasutaka ATARASHI) - reworked 80_failig.t to TODO tests; (Thomas Klausner) - added more require-in-string corner test cases (suggested by Buddy Burden) (Thomas Klausner) - Fix the case for eval["']expr["'] and add regression tests. (Yasutaka ATARASHI) 0.29 2013-02-25T20:25:44+0100 - fixed regex to filter use/require (RT83569) (reported by ribasushi) 0.28 2012-08-21T14:41:15+0200 - whitespace in use base is valid (Barbie) * Thu May 31 2012 coolo@suse.com - updated to 0.27 - fixed 23_universal_require.t for real (RT75342) (reported by Manoj Kumar and Paul Howarth) - removed Test::NoWarning from a t/23_universal_require.t because it upsets the (manual) plan if the tests are skipped - autogenerate the grammer during ./Build (based on a patch by jtbraun@CPAN.org) (RT74879) - added $VERSION to into Module::ExtractUse::Grammar, suggested by Manoj Kumar (RT75342) - specify min verion of Parse::RecDescent (1.967009), suggested by ANDK@cpan.org (RT75130) - fix typos reported by gregor herrmann (RT75115) - switched to Dist::Zilla (all on my own!) - regenerated Grammer to work with new Parse::RecDescent (thanks to cpan-testers, TMUELLER, KENTNL, dirkus@yo****.com and paul@city****.org for reporting the problem) * Wed Dec 1 2010 coolo@novell.com - switch to perl_requires macro * Thu Aug 26 2010 pascal.bleser@opensuse.org - initial package (0.23)