Name: perl-Perl-MinimumVersion-Fast Version: 0.18 Release: 1%{?dist} Summary: Find a minimum required version of perl for Perl code License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Perl-MinimumVersion-Fast/ Source0: http://www.cpan.org/authors/id/T/TO/TOKUHIROM/Perl-MinimumVersion-Fast-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl >= 0:5.008005 BuildRequires: perl(Compiler::Lexer) >= 0.17 BuildRequires: perl(Module::Build) BuildRequires: perl(Test::More) >= 0.98 Requires: perl(Compiler::Lexer) >= 0.17 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description "Perl::MinimumVersion::Fast" takes Perl source code and calculates the minimum version of perl required to be able to run it. Because it is based on goccy's Compiler::Lexer, it can do this without having to actually load the code. %prep %setup -q -n Perl-MinimumVersion-Fast-%{version} %build %{__perl} Build.PL installdirs=vendor ./Build %install rm -rf $RPM_BUILD_ROOT ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check ./Build test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes cpanfile LICENSE META.json README.md %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Sun Jun 26 2016 Dave Cross 0.18-1 - Specfile autogenerated by cpanspec 1.78.