perl-Test-Requires-vl.spec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. Name: perl-Test-Requires
  2. Summary: Checks to see if a given module can be loaded
  3. Version: 0.06
  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. BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
  13. BuildRequires: perl(Filter::Util::Call)
  14. BuildRequires: perl(Test::More) >= 0.61
  15. Requires: perl(Test::Builder::Module)
  16. %{?perl_default_filter}
  17. %{?perl_default_subpackage_tests}
  18. %description
  19. Test::Requires checks to see if the module can be loaded; if this fails
  20. rather than failing tests this *skips all tests*.
  21. %prep
  22. %setup -q -n Test-Requires-%{version}
  23. %build
  24. %{__perl} Makefile.PL INSTALLDIRS=vendor
  25. make %{?_smp_mflags}
  26. %install
  27. rm -rf %{buildroot}
  28. make pure_install DESTDIR=%{buildroot}
  29. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  30. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
  31. %{_fixperms} %{buildroot}/*
  32. %check
  33. # note the "skipped" warnings indicate success :)
  34. make test
  35. %clean
  36. rm -rf %{buildroot}
  37. %files
  38. %defattr(-,root,root,-)
  39. %doc Changes README
  40. %{perl_vendorlib}/*
  41. %{_mandir}/man3/*.3*
  42. %changelog
  43. * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.06-1
  44. - initial build for Vine Linux
  45. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-3
  46. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  47. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-2
  48. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  49. * Tue Oct 05 2010 Iain Arnell <iarnell@gmail.com> 0.06-1
  50. - update to latest upstream version
  51. * Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.03-2
  52. - Mass rebuild with perl-5.12.0
  53. * Sat Mar 20 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.03-1
  54. - specfile by Fedora::App::MaintainerTools 0.006