perl-Test-UseAllModules-vl.spec 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. %define pkgname Test-UseAllModules
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 0.17
  5. Release: 1%{?_dist_release}
  6. Summary: do use_ok() for all the MANIFESTed modules
  7. #Summary(ja): ここに日本語で概要を記述してください
  8. License: Artistic or GPL
  9. Group: Development/Libraries
  10. Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/%{pkgname}-%{version}.tar.gz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildArch: noarch
  13. BuildRequires: perl(ExtUtils::MakeMaker)
  14. BuildRequires: perl(Test::Builder)
  15. BuildRequires: perl(Test::More)
  16. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. Packager: yasumichi
  20. %description
  21. I'm sick of writing 00_load.t (or something like that) that'll do use_ok()
  22. for every module I write. I'm sicker of updating 00_load.t when I add
  23. another file to the distro. This module reads MANIFEST to find modules to be
  24. tested and does use_ok() for each of them. Now all you have to do is update
  25. MANIFEST. You don't have to modify the test any more (hopefully).
  26. #%%description -l ja
  27. #ここに日本語で詳細を記述してください。
  28. %prep
  29. %setup -q -n Test-UseAllModules-%{version}
  30. %build
  31. perl Makefile.PL INSTALLDIRS=vendor
  32. make %{?_smp_mflags}
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. make pure_install DESTDIR=$RPM_BUILD_ROOT
  36. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  37. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} ';' 2>/dev/null
  38. %{_fixperms} $RPM_BUILD_ROOT
  39. %clean
  40. rm -rf $RPM_BUILD_ROOT
  41. %check
  42. make test
  43. %files
  44. %defattr(-,root,root)
  45. %doc Changes README
  46. %dir %{perl_vendorlib}/Test
  47. %{perl_vendorlib}/Test/*
  48. %{_mandir}/*/*
  49. %changelog
  50. * Tue Nov 25 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.17-1
  51. - updated to 0.17
  52. - built with perl 5.16.3
  53. - installed module to vendor_perl
  54. - added BuildArch: noarch
  55. - added BR
  56. * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.13-1
  57. - initial build for Vine Linux