perl-Mon/perl-Mon.spec

65 lines
2.0 KiB
RPMSpec
Raw Permalink Normal View History

%define PERL_VERSION %(eval `perl -V:version`; echo $version)
Name: perl-Mon
Version: 0.11
Release: 5mamba
Summary: A Perl5 module for interfacing with the Mon system monitoring package
Group: Development/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
Source: http://www.cpan.org/authors/id/T/TR/TROCKIJ/Mon-%{version}.tar.gz
URL: https://www.cpan.org/
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-Convert-BER
BuildRequires: perl-devel
## AUTOBUILDREQ-END
Requires: perl >= %PERL_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
%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
* Thu May 20 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.11-5mamba
- fixed maintainer
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.11-4mamba
- automatic rebuild by autodist
* Wed Jun 25 2008 Tiziana Ferro <tiziana.ferro@email.it> 0.11-3mamba
- update specfile macros
- update Vendor, Distribution, mantainer
* Tue Feb 01 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 0.11-2qilnx
- make a less strict perl version check (>=)
* Fri Apr 30 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 0.11-1qilnx
- First build