perl-Test-MockModule-vl.spec 2.4 KB

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