perl-File-Tail-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. %define perl_sitelib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
  2. Name: perl-File-Tail
  3. Version: 0.99.3
  4. Release: 2%{?_dist_release}
  5. Summary: Perl extension for reading from continously updated files
  6. Group: Development/Libraries
  7. License: GPL or Artistic
  8. URL: http://search.cpan.org/dist/File-Tail/
  9. Source0: http://www.cpan.org/authors/id/M/MG/MGRABNAR/File-Tail-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildArch: noarch
  12. BuildRequires: perl(Time::HiRes)
  13. #Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  14. Requires: perl >= 1:5.6.0
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. %description
  18. The primary purpose of File::Tail is reading and analysing log files
  19. while they are being written, which is especially useful if you are
  20. monitoring the logging process with a tool like Tobias Oetiker's MRTG.
  21. %description -l ja
  22. File::Tail の主目的は,ログファイルの読み込み,分析です.
  23. 特に Tobias Oetiker の MRTG ようなツールでログを監視するのに有用です.
  24. # Provide perl-specific find-{provides,requires}.
  25. %define __find_provides /usr/lib/rpm/find-provides.perl
  26. %define __find_requires /usr/lib/rpm/find-requires.perl
  27. %prep
  28. %setup -q -n File-Tail-%{version}
  29. %build
  30. CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
  31. make
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  35. make DESTDIR=$RPM_BUILD_ROOT install
  36. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  37. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  38. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  39. sed "s@^$RPM_BUILD_ROOT@@g" |
  40. grep -v ^%{_mandir} |
  41. grep -v perllocal.pod |
  42. grep -v "\.packlist" > %{name}.files
  43. if [ "$(cat %{name}.files)X" = "X" ] ; then
  44. echo "ERROR: EMPTY FILE LIST"
  45. exit -1
  46. fi
  47. %check
  48. make test
  49. %clean
  50. rm -rf $RPM_BUILD_ROOT
  51. %files -f %{name}.files
  52. %defattr(-,root,root,-)
  53. %doc Changes README
  54. %dir %{perl_vendorlib}/File
  55. %{_mandir}/man3/File::Tail.3*
  56. %changelog
  57. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.99.3-2
  58. - rebuild with perl-5.12.3
  59. * Sun Jul 27 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.3-1
  60. - rebuilt with perl 5.10.0
  61. - applied new versioning policy
  62. * Wed Sep 26 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.99.3-0vl3
  63. - changed Group to Development/Libraries
  64. - enable make test
  65. * Sun Jul 16 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.99.3-0vl2
  66. - rebuilt for VineSeed (4.0)
  67. * Fri Jul 7 2006 Takeru INOUE <takeru.inoue@ieee.org>
  68. - 0.99.0vl1
  69. - Add description -l ja
  70. - Build with perl-5.8.2
  71. - Build for Vine 3.2
  72. * Fri Jun 9 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.99.3-5
  73. - Added the requirement perl(:MODULE_COMPAT_x.x.x).
  74. * Mon Feb 20 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.99.3-4
  75. - Rebuild for FC5 (perl 5.8.8).
  76. * Fri Jan 6 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.99.3-3
  77. - Another typo corrected.
  78. * Wed Jan 4 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.99.3-2
  79. - Correction of spelling error in the description.
  80. * Thu Sep 15 2005 Ville Skytt辰 <ville.skytta at iki.fi> - 0.99.3-1
  81. - 0.99.3.
  82. - Specfile cleanups.
  83. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.98-4
  84. - rebuilt
  85. * Sun Feb 8 2004 Ville Skytt辰 <ville.skytta at iki.fi> - 0:0.98-0.fdr.3
  86. - BuildRequire Time::HiRes (bug 731).
  87. - Run tests in the %%check section.
  88. - Reduce directory ownership bloat.
  89. * Mon Nov 17 2003 Ville Skytt辰 <ville.skytta at iki.fi> - 0:0.98-0.fdr.2
  90. - Specfile rewrite.
  91. * Tue Sep 17 2003 Warren Togami <warren@togami.com> - 0.98-0.fdr.1
  92. - Specfile autogenerated.