perl-Log-Log4perl-vl.spec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. %define pkgname Log-Log4perl
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 1.35
  5. Release: 1%{?_dist_release}
  6. License: Artistic or GPL
  7. Group: Development/Libraries
  8. Source0: http://search.cpan.org/CPAN/authors/id/M/MS/MSCHILLI/%{pkgname}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. Packager: yasumichi
  13. Summary: Log::Log4perl - Log4j implementation for Perl
  14. Summary(ja): Log::Log4perl - Perl 向け Log4j 実装
  15. # Dependency
  16. Requires: perl
  17. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  18. BuildRequires: perl
  19. %description
  20. Log::Log4perl lets you remote-control and fine-tune the logging
  21. behaviour of your system from the outside. It implements the widely
  22. popular (Java-based) Log4j logging package in pure Perl.
  23. For a detailed tutorial on Log::Log4perl usage, please read
  24. http://www.perl.com/pub/a/2002/09/11/log4perl.html
  25. %description -l ja
  26. Log::Log4perl により、外部からシステムのログ取得を遠隔操作および微調整できま
  27. す。広く普及された (Java ベースの) Log4j ロギングパッケージを純粋な Perl で
  28. 実装しています。
  29. Log::Log4perl の使い方に関するより詳細なチュートリアルは、
  30. http://www.perl.com/pub/a/2002/09/11/log4perl.html
  31. を読んでください。
  32. %prep
  33. %setup -q -n Log-Log4perl-1.35
  34. %build
  35. perl Makefile.PL
  36. %{__make}
  37. %install
  38. %{__rm} -rf ${RPM_BUILD_ROOT}
  39. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  40. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  41. sed "s@^$RPM_BUILD_ROOT@@g" |
  42. grep -v ^%{_mandir} |
  43. grep -v perllocal.pod |
  44. grep -v "\.packlist" > %{name}.files
  45. if [ "$(cat %{name}.files)X" = "X" ] ; then
  46. echo "ERROR: EMPTY FILE LIST"
  47. exit -1
  48. fi
  49. # remove unnecessary files.
  50. %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod
  51. find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';'
  52. find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';'
  53. %clean
  54. %{__rm} -rf ${RPM_BUILD_ROOT}
  55. %files -f %{name}.files
  56. %defattr(-,root,root)
  57. %doc Changes LICENSE README
  58. %changelog
  59. * Wed Feb 22 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.35-1
  60. - initial build for Vine Linux