%define upstream_name Apache2-ShowStatus %define upstream_version 0.02 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 1 Summary: Apache2::ShowStatus - if you want to know what your Apache processes are doing License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Apache2/%{upstream_name}-%{upstream_version}.tar.bz2 BuildRequires: perl(Sys::Proctitle) BuildRequires: apache-mod_perl BuildRequires: apache-mod_perl-devel BuildRequires: perl(Apache::Test) >= 1.25 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} %description This module provides a "PerlInitHandler" that sets the apache's process title to "httpd: ".$r->the_request The process title is automagically reset when the request is over. Thus, "top" & Co shows what requests are currently active. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make make test %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc Changes README %{perl_vendorlib}/Apache2/ShowStatus.pm %{_mandir}/*/* %changelog * Wed Jul 29 2009 Jérôme Quelin <jquelin@mandriva.org> 0.20.0-1mdv2010.0 + Revision: 402972 - rebuild using %%perl_convert_version * Wed Jul 23 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.02-6mdv2009.0 + Revision: 241145 - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Wed May 09 2007 Oden Eriksson <oeriksson@mandriva.com> 0.02-4mdv2008.0 + Revision: 25445 - rebuild * Thu Apr 27 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.02-3mdk - Fix SPEC according to Perl Policy - BuildRequires - Source URL * Fri Sep 30 2005 Nicolas Lécureuil <neoclust@mandriva.org> 0.02-2mdk - Buildrequires fix * Fri Jul 15 2005 Oden Eriksson <oeriksson@mandriva.com> 0.02-1mdk - initial Mandriva package