perl-File-Tail-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. %define perl_sitelib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
  2. Name: perl-File-Tail
  3. Version: 0.99.3
  4. Release: 1%{?_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. * Sun Jul 27 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.3-1
  58. - rebuilt with perl 5.10.0
  59. - applied new versioning policy
  60. * Wed Sep 26 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.99.3-0vl3
  61. - changed Group to Development/Libraries
  62. - enable make test
  63. * Sun Jul 16 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.99.3-0vl2
  64. - rebuilt for VineSeed (4.0)
  65. * Fri Jul 7 2006 Takeru INOUE <takeru.inoue@ieee.org>
  66. - 0.99.0vl1
  67. - Add description -l ja
  68. - Build with perl-5.8.2
  69. - Build for Vine 3.2
  70. * Fri Jun 9 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.99.3-5
  71. - Added the requirement perl(:MODULE_COMPAT_x.x.x).
  72. * Mon Feb 20 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.99.3-4
  73. - Rebuild for FC5 (perl 5.8.8).
  74. * Fri Jan 6 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.99.3-3
  75. - Another typo corrected.
  76. * Wed Jan 4 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.99.3-2
  77. - Correction of spelling error in the description.
  78. * Thu Sep 15 2005 Ville Skytt辰 <ville.skytta at iki.fi> - 0.99.3-1
  79. - 0.99.3.
  80. - Specfile cleanups.
  81. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.98-4
  82. - rebuilt
  83. * Sun Feb 8 2004 Ville Skytt辰 <ville.skytta at iki.fi> - 0:0.98-0.fdr.3
  84. - BuildRequire Time::HiRes (bug 731).
  85. - Run tests in the %%check section.
  86. - Reduce directory ownership bloat.
  87. * Mon Nov 17 2003 Ville Skytt辰 <ville.skytta at iki.fi> - 0:0.98-0.fdr.2
  88. - Specfile rewrite.
  89. * Tue Sep 17 2003 Warren Togami <warren@togami.com> - 0.98-0.fdr.1
  90. - Specfile autogenerated.