perl-Log-Dump-vl.spec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. %define pkgname Log-Dump
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 0.14
  5. Release: 1%{?_dist_release}
  6. Summary: simple logger mainly for debugging
  7. Summary(ja): 主にデバッグのための簡単なロガー
  8. License: Artistic or GPL
  9. Group: Development/Libraries
  10. URL: http://search.cpan.org/dist/Log-Dump/
  11. Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/%{pkgname}-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildArch: noarch
  14. # Dependency
  15. BuildRequires: perl(ExtUtils::MakeMaker::CPANfile) >= 0.06
  16. BuildRequires: perl(IO::Capture)
  17. BuildRequires: perl(Test::More) >= 0.98
  18. BuildRequires: perl(Test::UseAllModules) >= 0.09
  19. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. Packager: yasumichi
  23. %description
  24. Log::Dump is a simple logger mix-in mainly for debugging. This installs five
  25. methods into a caller (the class that used Log::Dump) via Sub::Install. The
  26. point is you don't need to load extra dumper modules or you don't need to
  27. concatenate messages. Just log things and they will be dumped (and
  28. concatenated if necessary) to stderr, and to a file if you prefer. Also, you
  29. can use these logging methods as class methods or object methods (though
  30. usually you don't want to mix them, especially when you're doing something
  31. special).
  32. #%%description -l ja
  33. %prep
  34. %setup -q -n Log-Dump-%{version}
  35. %build
  36. perl Makefile.PL INSTALLDIRS=vendor
  37. make %{?_smp_mflags}
  38. %install
  39. rm -rf $RPM_BUILD_ROOT
  40. make pure_install DESTDIR=$RPM_BUILD_ROOT
  41. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
  42. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
  43. %{_fixperms} $RPM_BUILD_ROOT/*
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %files
  47. %defattr(-,root,root)
  48. %doc Changes README
  49. %{perl_vendorlib}/Log/*
  50. %{_mandir}/*/*
  51. %changelog
  52. * Sun Dec 7 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.14-1
  53. - updated to 0.14
  54. - moved to noarch
  55. - added BuildRequires: perl(ExtUtils::MakeMaker::CPANfile), perl(IO::Capture), perl(Test::More) and perl(Test::UseAllModules)
  56. * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.09-1
  57. - initial build for Vine Linux