perl-Test-MockModule-vl.spec 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. %define pkgname Test-MockModule
  2. Name: perl-%{pkgname}
  3. Version: 0.05
  4. Release: 3%{?_dist_release}
  5. Group: Development/Libraries
  6. License: Artistic or GPL+
  7. URL: http://search.cpan.org/dist/Test-MockModule/
  8. Source0: http://search.cpan.org/CPAN/authors/id/S/SI/SIMONFLK/Test-MockModule-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildArch: noarch
  11. BuildRequires: perl(Test::More)
  12. BuildRequires: perl(Test::Pod)
  13. BuildRequires: perl(Test::Pod::Coverage)
  14. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. Packager: shaolin
  18. Summary: Override subroutines in a module for unit testing
  19. %description
  20. %{summary}.
  21. %prep
  22. %setup -q -n Test-MockModule-%{version}
  23. %build
  24. %{__perl} Makefile.PL INSTALLDIRS=vendor
  25. make
  26. %install
  27. rm -rf ${RPM_BUILD_ROOT}
  28. make pure_install PERL_INSTALL_ROOT=${RPM_BUILD_ROOT}
  29. find ${RPM_BUILD_ROOT} -type f -name .packlist -exec rm -f {} ';'
  30. find ${RPM_BUILD_ROOT} -type d -depth -exec rmdir {} 2>/dev/null ';'
  31. chmod -R u+w ${RPM_BUILD_ROOT}/*
  32. %check
  33. make test
  34. %clean
  35. rm -rf ${RPM_BUILD_ROOT}
  36. %files
  37. %defattr(-,root,root,-)
  38. %doc Changes README
  39. %{perl_vendorlib}/Test/MockModule.pm
  40. %{_mandir}/man3/*.3*
  41. %changelog
  42. * Sat Nov 22 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.05-3
  43. - rebuilt with perl 5.16.3
  44. * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.05-2
  45. - rebuild
  46. * Mon Feb 20 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.05-1
  47. - initial build for Vine Linux
  48. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-9
  49. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  50. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-8
  51. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  52. * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.05-7
  53. - Rebuild for perl 5.10 (again)
  54. * Sun Jan 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-6
  55. - rebuild for new perl
  56. * Sun Aug 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-5
  57. - license tag fix
  58. * Fri Sep 15 2006 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-4
  59. - bump for fc6
  60. * Wed Jul 27 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-3
  61. - add missing BuildRequires
  62. * Fri Jul 8 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-2
  63. - cleanups
  64. * Wed Jul 6 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-1
  65. - Initial package for Fedora Extras