perl-Test-MockModule-vl.spec 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. %define pkgname Test-MockModule
  2. Name: perl-%{pkgname}
  3. Version: 0.170.0
  4. Release: 1%{?_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-v%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildArch: noarch
  11. BuildRequires: perl-Module-Build
  12. BuildRequires: perl(strict)
  13. BuildRequires: perl(warnings)
  14. # Run-time:
  15. BuildRequires: perl(Carp)
  16. BuildRequires: perl(Scalar::Util)
  17. BuildRequires: perl(SUPER)
  18. BuildRequires: perl(vars)
  19. # Tests:
  20. BuildRequires: perl(lib)
  21. BuildRequires: perl(Test::More)
  22. BuildRequires: perl(Test::Warnings)
  23. #if %{with perl_Test_MockModule_enables_optional_test}
  24. # Optional tests:
  25. BuildRequires: perl(Test::Pod)
  26. BuildRequires: perl(Test::Pod::Coverage)
  27. #endif
  28. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  29. Vendor: Project Vine
  30. Distribution: Vine Linux
  31. Packager: shaolin
  32. Summary: Override subroutines in a module for unit testing
  33. %description
  34. %{summary}.
  35. %prep
  36. %setup -q -n Test-MockModule-v%{version}
  37. %build
  38. %{__perl} Build.PL installdirs=vendor
  39. ./Build
  40. %install
  41. ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
  42. chmod -R u+w $RPM_BUILD_ROOT/*
  43. %check
  44. ./Build test
  45. %files
  46. %doc Changes README.md
  47. %license LICENSE
  48. %{perl_vendorlib}/Test
  49. %{_mandir}/man3/*.3*
  50. %changelog
  51. * Sun May 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.170.0-1
  52. - new upstream release.
  53. - rebuilt with perl-5.26.
  54. * Sat Nov 22 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.05-3
  55. - rebuilt with perl 5.16.3
  56. * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.05-2
  57. - rebuild
  58. * Mon Feb 20 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.05-1
  59. - initial build for Vine Linux
  60. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-9
  61. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  62. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-8
  63. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  64. * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.05-7
  65. - Rebuild for perl 5.10 (again)
  66. * Sun Jan 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-6
  67. - rebuild for new perl
  68. * Sun Aug 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-5
  69. - license tag fix
  70. * Fri Sep 15 2006 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-4
  71. - bump for fc6
  72. * Wed Jul 27 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-3
  73. - add missing BuildRequires
  74. * Fri Jul 8 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-2
  75. - cleanups
  76. * Wed Jul 6 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.05-1
  77. - Initial package for Fedora Extras