perl-Log-Dispatch-FileRotate-vl.spec 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. %define pkgname Log-Dispatch-FileRotate
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 1.19
  5. Release: 2%{?_dist_release}
  6. License: Artistic or GPL
  7. Group: Development/Libraries
  8. Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MARKPF/%{pkgname}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildArch: noarch
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. Packager: yasumichi
  14. Summary: Log::Dispatch::FileRotate - Log to files that archive/rotate themselves
  15. #Summary(ja):
  16. # Dependency
  17. Requires: perl
  18. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  19. BuildRequires: perl
  20. %description
  21. This module provides a simple object for logging to files under the
  22. Log::Dispatch::* system, and automatically rotating them according to
  23. different constraints. This is basically a Log::Dispatch::File wrapper
  24. with additions. To that end the arguments
  25. name, min_level, filename and mode
  26. behave the same as Log::Dispatch::File. So see its man page (perldoc
  27. Log::Dispatch::File)
  28. #%%description -l ja
  29. %prep
  30. %setup -q -n Log-Dispatch-FileRotate-1.19
  31. %build
  32. perl Makefile.PL
  33. %{__make}
  34. %install
  35. %{__rm} -rf ${RPM_BUILD_ROOT}
  36. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  37. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  38. sed "s@^$RPM_BUILD_ROOT@@g" |
  39. grep -v ^%{_mandir} |
  40. grep -v perllocal.pod |
  41. grep -v "\.packlist" > %{name}.files
  42. if [ "$(cat %{name}.files)X" = "X" ] ; then
  43. echo "ERROR: EMPTY FILE LIST"
  44. exit -1
  45. fi
  46. # remove unnecessary files.
  47. %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod
  48. find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';'
  49. find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';'
  50. %clean
  51. %{__rm} -rf ${RPM_BUILD_ROOT}
  52. %files -f %{name}.files
  53. %defattr(-,root,root)
  54. %doc Changes README
  55. %changelog
  56. * Mon Jun 30 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.19-2
  57. - rebuild with perl-5.16
  58. * Thu Jan 26 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.19-1
  59. - initial build for Vine Linux