%define PERL_VERSION %(eval `perl -V:version`; echo $version) Name: perl-Mon Version: 0.11 Release: 4mamba Summary: A Perl5 module for interfacing with the Mon system monitoring package Group: Development/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Tiziana Ferro Source: http://www.cpan.org/authors/id/T/TR/TROCKIJ/Mon-%{version}.tar.gz URL: http://www.cpan.org License: GPL BuildRoot: %{_tmppath}/perl-root Requires: perl >= %PERL_VERSION ## AUTOBUILDREQ-BEGIN BuildRequires: perl-Convert-BER BuildRequires: perl-devel >= %PERL_VERSION ## AUTOBUILDREQ-END %description This is the Perl5 module for interfacing with the Mon system monitoring package. Currently only the client interface is implemented, but more things like special logging routines and persistent monitors are being considered. %prep %setup -q -n Mon-%{version} %build perl Makefile.PL %make %make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %make pure_install DESTDIR=%{buildroot} %define PERL_SITEARCH %(eval `perl -V:sitearch`; echo $sitearch) cat $RPM_BUILD_ROOT%PERL_SITEARCH/auto/Mon/.packlist | \ sed "s@$RPM_BUILD_ROOT@@g;s@.*/man/.*@&.gz@g" | \ sort -u > .packlist rm -f $RPM_BUILD_ROOT%PERL_SITEARCH/auto/Mon/.packlist %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" rm -f .packlist %files -f .packlist %defattr(-,root,root) %changelog * Wed Nov 05 2008 Silvan Calarco 0.11-4mamba - automatic rebuild by autodist * Wed Jun 25 2008 Tiziana Ferro 0.11-3mamba - update specfile macros - update Vendor, Distribution, mantainer * Tue Feb 01 2005 Silvan Calarco 0.11-2qilnx - make a less strict perl version check (>=) * Fri Apr 30 2004 Silvan Calarco 0.11-1qilnx - First build