perl-Log-Log4perl-vl.spec 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. %define pkgname Log-Log4perl
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 1.49
  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. #global __requires_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(Log::Dispatch
  20. %description
  21. Log::Log4perl lets you remote-control and fine-tune the logging
  22. behaviour of your system from the outside. It implements the widely
  23. popular (Java-based) Log4j logging package in pure Perl.
  24. For a detailed tutorial on Log::Log4perl usage, please read
  25. http://www.perl.com/pub/a/2002/09/11/log4perl.html
  26. %description -l ja
  27. Log::Log4perl により、外部からシステムのログ取得を遠隔操作および微調整できま
  28. す。広く普及された (Java ベースの) Log4j ロギングパッケージを純粋な Perl で
  29. 実装しています。
  30. Log::Log4perl の使い方に関するより詳細なチュートリアルは、
  31. http://www.perl.com/pub/a/2002/09/11/log4perl.html
  32. を読んでください。
  33. %prep
  34. %setup -q -n %{pkgname}-%{version}
  35. %build
  36. perl Makefile.PL
  37. %{__make}
  38. %install
  39. %{__rm} -rf ${RPM_BUILD_ROOT}
  40. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  41. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  42. sed "s@^$RPM_BUILD_ROOT@@g" |
  43. grep -v ^%{_mandir} |
  44. grep -v perllocal.pod |
  45. grep -v "\.packlist" > %{name}.files
  46. if [ "$(cat %{name}.files)X" = "X" ] ; then
  47. echo "ERROR: EMPTY FILE LIST"
  48. exit -1
  49. fi
  50. # remove unnecessary files.
  51. %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod
  52. find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';'
  53. find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';'
  54. %clean
  55. %{__rm} -rf ${RPM_BUILD_ROOT}
  56. %files -f %{name}.files
  57. %defattr(-,root,root)
  58. %license LICENSE
  59. %doc Changes README
  60. %changelog
  61. * Sat May 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.49-1
  62. - new upstream release.
  63. - rebuilt with perl-5.26.
  64. * Mon Jun 30 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.44-1
  65. - update to 1.44
  66. * Wed Feb 22 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.35-1
  67. - initial build for Vine Linux