perl-File-Tail-vl.spec 3.7 KB

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