%define pkg_name Apache-Scoreboard %define pkg_version 0.15 %define rpm_pkg_version 0.15 %define rpm_pkg_release 2.n0i.10 Summary: Perl interface to Apache's ap_scoreboard_image Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/S/ST/STAS/%{pkg_name}-%{pkg_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: apache-devel < 2.0 BuildRequires: perl(Apache) BuildRequires: perl(Apache::Test) BuildRequires: perl(mod_perl) < 1.99 Requires: perl(mod_perl) < 1.99 %global perl_filter_req 'perl\\(Chart::' %description Apache keeps track of server activity in a structure known as the "scoreboard". There is a "slot" in the scoreboard for each child server and its workers (be it threads or processes), containing information such as status, access count, bytes served and cpu time, and much more. This same information is used by mod_status to provide current server statistics in a human readable form. Apache::Scoreboard provides the Perl API to access the scoreboard. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{fix_mod} %{fix_perl_path examples/} %build %{perl_build} %{__make} -C apxs/ %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %{__install} -d -m0755 $RPM_BUILD_ROOT%{_libdir}/apache/ %{__install} -m0755 apxs/mod_scoreboard_send.so $RPM_BUILD_ROOT%{_libdir}/apache/ %{__install} -d -m0755 $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/ %{__cat} << 'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/mod_scoreboard_send.conf LoadModule scoreboard_send_module modules/mod_scoreboard_send.so AddModule mod_scoreboard_send.c EOF %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %config(noreplace) %{_sysconfdir}/httpd/conf.d/mod_scoreboard_send.conf %{_libdir}/apache/* %doc Changes README examples/ %changelog * Thu Jun 14 2007 Marius Feraru - 0.15-2.n0i.10 - spec file (re)created using N0i::CPAN::RPMizer/1.14.9 * Sat Mar 12 2005 Marius FERARU 0.15-1.n0i.9 - version 0.15 * Wed Mar 2 2005 Marius FERARU 0.14-1.n0i.8 - version 0.14 * Mon Jan 24 2005 Marius FERARU 0.13-1.n0i.7 - version 0.13 * Sat Jan 22 2005 Marius FERARU 0.12-1.n0i.6 - version 0.12 * Tue Jan 4 2005 Marius FERARU 0.11-1.n0i.5 - version 0.11 - new upstream maintainer - force dependency on mod_perl 1.x * Sat Jan 24 2004 Marius FERARU 0.10-3.n0i.4 - rebuilt on perl 5.8.3 - skip Chart::PNGgraph dependency * Sat Jan 17 2004 Marius FERARU 0.10-2.n0i.3 - rebuilt on perl 5.8.2 / Fedora 1 Devel (tobe FC2) * Fri Oct 17 2003 Marius FERARU 0.10-1.n0i - added DSO module * Fri Oct 17 2003 Marius FERARU 0.10-0.n0i - version 0.10 - spec file (re?)created using N0i::CPAN::RPMizer/2003101101