perl-Test-Requires/perl-Test-Requires.spec

51 lines
1.3 KiB
RPMSpec

# vim: set sw=4 ts=4 et nu:
# norootforbuild
Name: perl-Test-Requires
Version: 0.05
Release: 0
Summary: Checks to see if the module can be loaded
Source: http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Test-Requires-%{version}.tar.gz
URL: http://search.cpan.org/dist/Test-Requires
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl = %{perl_version}
BuildRequires: make perl
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(Test::More) >= 0.61
Requires: perl(Test::More) >= 0.61
%description
Test::Requires checks to see if the module can be loaded.
If this fails rather than failing tests this skips all tests.
%prep
%setup -q -n "Test-Requires-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%install
%perl_make_install
%perl_process_packlist
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorlib}/Test
%{perl_vendorlib}/Test/Requires.pm
%dir %{perl_vendorarch}/auto/Test
%{perl_vendorarch}/auto/Test/Requires
%doc %{perl_man3dir}/Test::Requires.%{perl_man3ext}%{ext_man}
/var/adm/perl-modules/%{name}