[1400] | 1 | # Run prefork optional test
|
---|
| 2 | #%{bcond_without perl_Module_ScanDeps_enables_prefork}
|
---|
| 3 |
|
---|
| 4 | Name: perl-Module-ScanDeps
|
---|
| 5 | Summary: Recursively scan Perl code for dependencies
|
---|
| 6 | Version: 1.24
|
---|
| 7 | Release: 1%{?dist}
|
---|
| 8 | License: GPL+ or Artistic
|
---|
| 9 | Vendor: bww bitwise works GmbH
|
---|
| 10 | Source0: http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/Module-ScanDeps-%{version}.tar.gz
|
---|
| 11 | URL: http://search.cpan.org/dist/Module-ScanDeps/
|
---|
| 12 | BuildArch: noarch
|
---|
| 13 | BuildRequires: make
|
---|
| 14 | #BuildRequires: perl-interpreter
|
---|
| 15 | BuildRequires: perl-generators
|
---|
| 16 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63
|
---|
| 17 | BuildRequires: perl(strict)
|
---|
| 18 | BuildRequires: perl(warnings)
|
---|
| 19 | # Run-time:
|
---|
| 20 | BuildRequires: perl(B)
|
---|
| 21 | BuildRequires: perl(Config)
|
---|
| 22 | BuildRequires: perl(constant)
|
---|
| 23 | # CPANPLUS::Backend is optional and not used by tests
|
---|
| 24 | BuildRequires: perl(Cwd)
|
---|
| 25 | BuildRequires: perl(Data::Dumper)
|
---|
| 26 | # Digest::MD5 is optional and not used by tests
|
---|
| 27 | BuildRequires: perl(DynaLoader)
|
---|
| 28 | BuildRequires: perl(Encode)
|
---|
| 29 | BuildRequires: perl(Exporter)
|
---|
| 30 | BuildRequires: perl(File::Basename)
|
---|
| 31 | BuildRequires: perl(File::Find)
|
---|
| 32 | BuildRequires: perl(File::Path)
|
---|
| 33 | BuildRequires: perl(File::Spec)
|
---|
| 34 | BuildRequires: perl(File::Temp)
|
---|
| 35 | BuildRequires: perl(FileHandle)
|
---|
| 36 | # Getopt::Long not used by tests
|
---|
| 37 | BuildRequires: perl(Module::Metadata)
|
---|
| 38 | # Storable is optional and not used by tests
|
---|
| 39 | # subs not used by tests
|
---|
| 40 | # Text::ParseWords not used by tests
|
---|
| 41 | BuildRequires: perl(vars)
|
---|
| 42 | BuildRequires: perl(version)
|
---|
| 43 | # VMS::Filespec never used
|
---|
| 44 | # Tests:
|
---|
| 45 | #BuildRequires: perl(autouse)
|
---|
| 46 | #BuildRequires: perl(if)
|
---|
| 47 | #BuildRequires: perl(lib)
|
---|
| 48 | #BuildRequires: perl(Test::More)
|
---|
| 49 | #BuildRequires: perl(Test::Requires)
|
---|
| 50 | # Optional tests:
|
---|
| 51 | #BuildRequires: perl(Module::Pluggable)
|
---|
| 52 | #%if !%{defined perl_bootstrap} && %{with perl_Module_ScanDeps_enables_prefork}
|
---|
| 53 | # Cycle: perl-Module-ScanDeps â perl-prefork â perl-Perl-MinimumVersion
|
---|
| 54 | # â perl-Perl-Critic â perl-Pod-Spell â perl-File-ShareDir-ProjectDistDir
|
---|
| 55 | # â perl-Path-Tiny â perl-Unicode-UTF8 â perl-Module-Install
|
---|
| 56 | # â perl-Module-ScanDeps
|
---|
| 57 | #BuildRequires: perl(prefork)
|
---|
| 58 | #%endif
|
---|
| 59 | #BuildRequires: perl(Test::Pod) >= 1.00
|
---|
| 60 | #Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
---|
| 61 | #Requires: perl(B)
|
---|
| 62 | #Requires: perl(DynaLoader)
|
---|
| 63 | #Requires: perl(Data::Dumper)
|
---|
| 64 | #Requires: perl(Encode)
|
---|
| 65 | #Requires: perl(File::Find)
|
---|
| 66 | #Requires: perl(Text::ParseWords)
|
---|
| 67 | #Recommends: perl(Digest::MD5)
|
---|
| 68 | #Recommends: perl(Storable)
|
---|
| 69 | Suggests: perl(CPANPLUS::Backend)
|
---|
| 70 |
|
---|
| 71 | %description
|
---|
| 72 | This module scans potential modules used by perl programs and returns a
|
---|
| 73 | hash reference. Its keys are the module names as they appear in %%INC (e.g.
|
---|
| 74 | Test/More.pm). The values are hash references.
|
---|
| 75 |
|
---|
| 76 | %prep
|
---|
| 77 | %setup -q -n Module-ScanDeps-%{version}
|
---|
| 78 |
|
---|
| 79 | %build
|
---|
| 80 | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
---|
| 81 | make %{?_smp_mflags}
|
---|
| 82 | make manifypods
|
---|
| 83 |
|
---|
| 84 | %install
|
---|
| 85 | make pure_install DESTDIR=%{buildroot}
|
---|
| 86 | %{_fixperms} %{buildroot}
|
---|
| 87 | find %{buildroot} -type f -name .packlist -delete
|
---|
| 88 |
|
---|
| 89 | %check
|
---|
| 90 | #make test
|
---|
| 91 |
|
---|
| 92 | %files
|
---|
| 93 | %license LICENSE
|
---|
| 94 | %doc AUTHORS Changes README
|
---|
| 95 | %{_bindir}/scandeps.pl
|
---|
| 96 | %{perl_vendorlib}/Module/
|
---|
| 97 | %{_mandir}/man1/scandeps.pl.1*
|
---|
| 98 | #%{_mandir}/man3/Module::ScanDeps.3pm*
|
---|
| 99 | %{_mandir}/man3/*.3pm*
|
---|
| 100 |
|
---|
| 101 | %changelog
|
---|
| 102 | * Fri May 04 2018 Elbert Pol <elbert.pol@gmail.com> - 1.24-1
|
---|
| 103 | - initial rpm for OS2
|
---|