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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. Name: perl-Test-Without-Module
  2. Version: 0.17
  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-%(%{__id_u} -n)
  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 MANIFEST.skip README
  41. %{perl_vendorlib}/*
  42. %{_mandir}/man3/*
  43. %changelog
  44. * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.17-1
  45. - initial build for Vine Linux
  46. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-6
  47. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  48. * Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.17-5
  49. - Perl mass rebuild
  50. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-4
  51. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  52. * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.17-3
  53. - 661697 rebuild for fixing problems with vendorach/lib
  54. * Thu Jul 22 2010 Emmanuel Seyman <emmanuel.seyman@club-internet.fr> - 0.17-2
  55. - Remove executable permissions
  56. - Dos2unix the README and Changes file
  57. - Americanise the summary
  58. * Sun Jun 27 2010 Emmanuel Seyman <emmanuel.seyman@club-internet.fr> 0.17-1
  59. - Specfile autogenerated by cpanspec 1.78.