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