perl-Test-Without-Module-vl.spec 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Name: perl-Test-Without-Module
  2. Version: 0.18
  3. Release: 1%{?_dist_release}
  4. Summary: Test fallback behavior in absence of modules
  5. License: GPL+ or Artistic
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/Test-Without-Module/
  8. Source0: http://www.cpan.org/modules/by-module/Test/Test-Without-Module-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. BuildArch: noarch
  11. BuildRequires: perl(ExtUtils::MakeMaker)
  12. BuildRequires: perl(File::Slurp)
  13. BuildRequires: perl(Test::More)
  14. BuildRequires: perl(Test::Pod)
  15. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  16. %{?perl_default_filter}
  17. %description
  18. This module allows you to deliberately hide modules from a program even
  19. though they are installed. This is mostly useful for testing modules that
  20. have a fallback when a certain dependency module is not installed.
  21. %prep
  22. %setup -q -n Test-Without-Module-%{version}
  23. find . -type f -exec chmod 644 {} \;
  24. sed -i -e 's/\r//' README Changes
  25. %build
  26. %{__perl} Makefile.PL INSTALLDIRS=vendor
  27. make %{?_smp_mflags}
  28. %install
  29. rm -rf %{buildroot}
  30. make pure_install DESTDIR=%{buildroot}
  31. find %{buildroot} -type f -name .packlist -exec rm -f {} \;
  32. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  33. %{_fixperms} %{buildroot}/*
  34. %check
  35. make test
  36. %clean
  37. rm -rf %{buildroot}
  38. %files
  39. %defattr(-,root,root,-)
  40. %doc Changes README
  41. %{perl_vendorlib}/*
  42. %{_mandir}/man3/*
  43. %changelog
  44. * Sat Nov 22 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.18-1
  45. - new upstream release
  46. - built with perl 5.16.3
  47. * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.17-1
  48. - initial build for Vine Linux
  49. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-6
  50. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  51. * Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.17-5
  52. - Perl mass rebuild
  53. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-4
  54. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  55. * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.17-3
  56. - 661697 rebuild for fixing problems with vendorach/lib
  57. * Thu Jul 22 2010 Emmanuel Seyman <emmanuel.seyman@club-internet.fr> - 0.17-2
  58. - Remove executable permissions
  59. - Dos2unix the README and Changes file
  60. - Americanise the summary
  61. * Sun Jun 27 2010 Emmanuel Seyman <emmanuel.seyman@club-internet.fr> 0.17-1
  62. - Specfile autogenerated by cpanspec 1.78.