| 1 | Name: perl-Test-Requires |
|---|
| 2 | Summary: Checks to see if a given module can be loaded |
|---|
| 3 | Version: 0.07 |
|---|
| 4 | Release: 1%{?_dist_release} |
|---|
| 5 | License: GPL+ or Artistic |
|---|
| 6 | Group: Development/Libraries |
|---|
| 7 | Source0: http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Test-Requires-%{version}.tar.gz |
|---|
| 8 | URL: http://search.cpan.org/dist/Test-Requires |
|---|
| 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
|---|
| 10 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
|---|
| 11 | BuildArch: noarch |
|---|
| 12 | |
|---|
| 13 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 |
|---|
| 14 | BuildRequires: perl(Filter::Util::Call) |
|---|
| 15 | BuildRequires: perl(Test::More) >= 0.61 |
|---|
| 16 | |
|---|
| 17 | Requires: perl(Test::Builder::Module) |
|---|
| 18 | |
|---|
| 19 | %{?perl_default_filter} |
|---|
| 20 | %{?perl_default_subpackage_tests} |
|---|
| 21 | |
|---|
| 22 | %description |
|---|
| 23 | Test::Requires checks to see if the module can be loaded; if this fails |
|---|
| 24 | rather than failing tests this *skips all tests*. |
|---|
| 25 | |
|---|
| 26 | %prep |
|---|
| 27 | %setup -q -n Test-Requires-%{version} |
|---|
| 28 | |
|---|
| 29 | %build |
|---|
| 30 | %{__perl} Build.PL installdirs=vendor |
|---|
| 31 | %{__perl} Build |
|---|
| 32 | |
|---|
| 33 | %install |
|---|
| 34 | rm -rf %{buildroot} |
|---|
| 35 | |
|---|
| 36 | %{__perl} Build install destdir=%{buildroot} |
|---|
| 37 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
|---|
| 38 | find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' |
|---|
| 39 | |
|---|
| 40 | %{_fixperms} %{buildroot}/* |
|---|
| 41 | |
|---|
| 42 | %check |
|---|
| 43 | # note the "skipped" warnings indicate success :) |
|---|
| 44 | %{__perl} Build test |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | %clean |
|---|
| 48 | rm -rf %{buildroot} |
|---|
| 49 | |
|---|
| 50 | %files |
|---|
| 51 | %defattr(-,root,root,-) |
|---|
| 52 | %doc Changes README |
|---|
| 53 | %{perl_vendorlib}/* |
|---|
| 54 | %{_mandir}/man3/*.3* |
|---|
| 55 | |
|---|
| 56 | %changelog |
|---|
| 57 | * Mon Jun 30 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.07-1 |
|---|
| 58 | - new upstream release. |
|---|
| 59 | |
|---|
| 60 | * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.06-1 |
|---|
| 61 | - initial build for Vine Linux |
|---|
| 62 | |
|---|
| 63 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-3 |
|---|
| 64 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
|---|
| 65 | |
|---|
| 66 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-2 |
|---|
| 67 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
|---|
| 68 | |
|---|
| 69 | * Tue Oct 05 2010 Iain Arnell <iarnell@gmail.com> 0.06-1 |
|---|
| 70 | - update to latest upstream version |
|---|
| 71 | |
|---|
| 72 | * Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.03-2 |
|---|
| 73 | - Mass rebuild with perl-5.12.0 |
|---|
| 74 | |
|---|
| 75 | * Sat Mar 20 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.03-1 |
|---|
| 76 | - specfile by Fedora::App::MaintainerTools 0.006 |
|---|
| 77 | |
|---|
| 78 | |
|---|