diff --git a/.cvsignore b/.cvsignore index e69de29..38e4562 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Mon-0.11.tar.gz diff --git a/perl-Mon.spec b/perl-Mon.spec new file mode 100644 index 0000000..dc04f60 --- /dev/null +++ b/perl-Mon.spec @@ -0,0 +1,59 @@ +Name: perl-Mon +Version: 0.11 +Release: 1%{?dist} +Summary: Mon Perl module +License: GPLv2+ +Group: Development/Libraries +URL: http://search.cpan.org/dist/Mon/ +Source0: http://www.cpan.org/authors/id/T/TR/TROCKIJ/Mon-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%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 INSTALLDIRS=vendor +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + + +%check +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc CHANGES COPYING COPYRIGHT monperl.prj README VERSION +%{perl_vendorlib}/* +%{_mandir}/man3/* + + +%changelog +* Sun Jul 13 2008 Lubomir Rintel (Good Data) 0.11-1 +- Specfile autogenerated by cpanspec 1.75. +- Fixed License tag diff --git a/sources b/sources index e69de29..d5e05d1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +762a8c6f845f8f1482a696e6f95f4492 Mon-0.11.tar.gz