[521] | 1 | Summary: Object-oriented Perl extension for parsing Apache log files |
---|
| 2 | Name: perl-Apache-ParseLog |
---|
| 3 | Version: 1.02 |
---|
| 4 | Release: 1%{?_dist_release} |
---|
| 5 | License: distributable |
---|
| 6 | Group: Development/Libraries |
---|
| 7 | Source0: http://www.cpan.org/authors/id/A/AK/AKIRA/Apache-ParseLog-%{version}.tar.gz |
---|
| 8 | URL: http://search.cpan.org/search?dist=Apache-ParseLog |
---|
| 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 10 | BuildRequires: perl >= 5.004 |
---|
| 11 | Requires: perl >= 5.004 |
---|
| 12 | BuildArch: noarch |
---|
| 13 | |
---|
| 14 | %description |
---|
| 15 | Apache::ParseLog provides an easy way to parse the Apache log files, |
---|
| 16 | using an object-oriented constructs. The data obtained using this |
---|
| 17 | module are generic enough that it is flexible to use the data for |
---|
| 18 | your own applications, such as CGI, simple text-only report generater, |
---|
| 19 | feeding RDBMS, data for Perl/Tk-based GUI application, etc. |
---|
| 20 | |
---|
| 21 | %prep |
---|
| 22 | %setup -q -n Apache-ParseLog-%{version} |
---|
| 23 | |
---|
| 24 | %build |
---|
| 25 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
| 26 | make |
---|
| 27 | |
---|
| 28 | %clean |
---|
| 29 | rm -rf $RPM_BUILD_ROOT |
---|
| 30 | |
---|
| 31 | %install |
---|
| 32 | rm -rf $RPM_BUILD_ROOT |
---|
| 33 | make DESTDIR=$RPM_BUILD_ROOT pure_install |
---|
| 34 | |
---|
| 35 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
| 36 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
| 37 | grep -v ^%{_mandir} | |
---|
| 38 | grep -v perllocal.pod | |
---|
| 39 | grep -v "\.packlist" > %{name}.files |
---|
| 40 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
| 41 | echo "ERROR: EMPTY FILE LIST" |
---|
| 42 | exit -1 |
---|
| 43 | fi |
---|
| 44 | |
---|
| 45 | #%check |
---|
| 46 | #make test |
---|
| 47 | |
---|
| 48 | %files -f %{name}.files |
---|
| 49 | %defattr(-,root,root) |
---|
| 50 | %doc README Changes HTTPStatusCodes.txt ISO3166CountryCodes.txt t |
---|
| 51 | %{_mandir}/*/* |
---|
| 52 | |
---|
| 53 | %changelog |
---|
| 54 | * Sun Nov 23 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.02-1 |
---|
| 55 | - applied new versioning policy |
---|
| 56 | - rebuilt with perl-5.10.0 |
---|
| 57 | |
---|
| 58 | * Thu Feb 15 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.02-0vl2 |
---|
| 59 | - s/Copyright/License/ |
---|
| 60 | - changed Group to Development/Libraries |
---|
| 61 | |
---|
| 62 | * Tue Apr 30 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.02-0vl1 |
---|
| 63 | - first build for Vine Linux |
---|