fbd7d20
Summary:	Pull out the modules a module explicitly uses
fbd7d20
Name:		perl-Module-Extract-Use
98f524f
Version:	1.047
6fca8b1
Release:	3%{?dist}
e317157
License:	Artistic 2.0
8d337ab
URL:		https://metacpan.org/release/Module-Extract-Use
cbfa036
Source0:	https://cpan.metacpan.org/modules/by-module/Module/Module-Extract-Use-%{version}.tar.gz
fbd7d20
BuildArch:	noarch
fbd7d20
# Module Build
fbd7d20
BuildRequires:	coreutils
fbd7d20
BuildRequires:	findutils
fbd7d20
BuildRequires:	make
fbd7d20
BuildRequires:	perl-generators
cbfa036
BuildRequires:	perl-interpreter >= 4:5.10.0
d5ab3a6
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.64
d5ab3a6
BuildRequires:	perl(File::Spec)
d5ab3a6
BuildRequires:	perl(File::Spec::Functions)
d5ab3a6
BuildRequires:	perl(Test::Manifest) >= 1.21
fbd7d20
# Module Runtime
fbd7d20
BuildRequires:	perl(PPI)
fbd7d20
BuildRequires:	perl(strict)
fbd7d20
BuildRequires:	perl(subs)
fbd7d20
BuildRequires:	perl(vars)
fbd7d20
BuildRequires:	perl(warnings)
fbd7d20
# Test Suite
fbd7d20
BuildRequires:	perl(File::Basename)
f97cd09
BuildRequires:	perl(Test::More) >= 1.0
fbd7d20
# Optional Tests
fbd7d20
BuildRequires:	perl(Test::Pod) >= 1.00
fbd7d20
BuildRequires:	perl(Test::Pod::Coverage) >= 1.00
fbd7d20
# Dependencies
fbd7d20
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
fbd7d20
Requires:	perl(PPI)
fbd7d20
fbd7d20
%description
fbd7d20
Extract the names of the modules used in a file using a static analysis. Since
fbd7d20
this module does not run code, it cannot find dynamic uses of modules, such as
fbd7d20
eval "require $class". It only reports modules that the file loads directly.
fbd7d20
Modules loaded with parent or base, for instance, will be in the import list
fbd7d20
for those pragmas but won't have separate entries in the data this module
fbd7d20
returns.
fbd7d20
fbd7d20
%prep
e317157
%setup -q -n Module-Extract-Use-%{version}
fbd7d20
fbd7d20
%build
fbd7d20
perl Makefile.PL INSTALLDIRS=vendor
fbd7d20
make %{?_smp_mflags}
fbd7d20
fbd7d20
%install
fbd7d20
make pure_install DESTDIR=%{buildroot}
fbd7d20
find %{buildroot} -type f -name .packlist -delete
fbd7d20
%{_fixperms} -c %{buildroot}
fbd7d20
fbd7d20
%check
fbd7d20
make test
fbd7d20
fbd7d20
%files
fbd7d20
%if 0%{?_licensedir:1}
fbd7d20
%license LICENSE
fbd7d20
%else
fbd7d20
%doc LICENSE
fbd7d20
%endif
d5ab3a6
%doc Changes examples/ README.pod
fbd7d20
%{perl_vendorlib}/Module/
fbd7d20
%{_mandir}/man3/Module::Extract::Use.3*
fbd7d20
fbd7d20
%changelog
6fca8b1
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.047-3
6fca8b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6fca8b1
fed2309
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.047-2
fed2309
- Perl 5.32 rebuild
fed2309
98f524f
* Sun Apr 26 2020 Paul Howarth <paul@city-fan.org> - 1.047-1
98f524f
- Update to 1.047
98f524f
  - Example 'extract_modules' now has a -e switch to exclude core modules
98f524f
  - Small pod fix
98f524f
8afd19a
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.045-2
8afd19a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8afd19a
c47e1d2
* Thu Dec 19 2019 Paul Howarth <paul@city-fan.org> - 1.045-1
c47e1d2
- Update to 1.045
c47e1d2
  - Fix test for extracting modules from parent and base
c47e1d2
f97cd09
* Wed Dec 18 2019 Paul Howarth <paul@city-fan.org> - 1.044-1
f97cd09
- Update to 1.044
f97cd09
  - Handle a couple of new cases:
f97cd09
    - Include the modules specified by parent or base
f97cd09
    - Find the requires in expressions, like 'my $r = require Foo'
f97cd09
  - Small documentation and examples updates
f97cd09
- Add patch to fix t/rt/79273.t (GH#5)
f97cd09
844e9e8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.043-10
844e9e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
844e9e8
8eabfce
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.043-9
8eabfce
- Perl 5.30 rebuild
8eabfce
0e5ba0d
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.043-8
0e5ba0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0e5ba0d
fde068f
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.043-7
fde068f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fde068f
a89b1cb
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.043-6
a89b1cb
- Perl 5.28 rebuild
a89b1cb
0711b27
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.043-5
0711b27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0711b27
3b7405b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.043-4
3b7405b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3b7405b
af9aa81
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.043-3
af9aa81
- Perl 5.26 rebuild
af9aa81
29de4e1
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.043-2
29de4e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
29de4e1
e317157
* Fri Feb  3 2017 Paul Howarth <paul@city-fan.org> - 1.043-1
e317157
- Update to 1.043
e317157
  - Clarified license as Artistic 2.0
e317157
    (https://github.com/briandfoy/module-extract-use/issues/3)
e317157
d5ab3a6
* Wed Feb  1 2017 Paul Howarth <paul@city-fan.org> - 1.04.2-1
d5ab3a6
- Update to 1.042
d5ab3a6
  - The -l and -j options work on the list of namespaces from all files
d5ab3a6
    together instead of the list per file; otherwise, strict and warnings
d5ab3a6
    for example always show up multiple times
d5ab3a6
  - Add JSON and simple list outputs for examples/extract_modules
d5ab3a6
fbd7d20
* Fri Nov 25 2016 Paul Howarth <paul@city-fan.org> - 1.04-2
fbd7d20
- Sanitize for Fedora submission
fbd7d20
fbd7d20
* Fri Nov 25 2016 Paul Howarth <paul@city-fan.org> - 1.04-1
fbd7d20
- Initial RPM version