Name: perl-Net-Ping-External
Summary: Cross-platform interface to ICMP "ping" utilities
Version: 0.15
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Net-Ping-External/
Description: Net::Ping::External is a module which interfaces with the "ping" command
on many systems. It presently provides a single function, ping(), that
takes in a hostname and (optionally) a timeout and returns true if the
host is alive, and false otherwise. Unless you have the ability (and
willingness) to run your scripts as the superuser on your system, this
module will probably provide more accurate results than Net::Ping will.
The build was succesful. The following RPMs were generated:
The build was succesful. The following RPMs were generated:
The spec file used by the build system currently has the following contents:
# $Id$
# Authority: shuff
# Upstream: Alexandr Ciornii <alexchorny$gmail,com>
%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)
%define real_name Net-Ping-External
Summary: Cross-platform interface to ICMP "ping" utilities
Name: perl-Net-Ping-External
Version: 0.15
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Net-Ping-External/
Source: http://www.cpan.org/modules/by-module/Net/Net-Ping-External-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
%description
Net::Ping::External is a module which interfaces with the "ping" command
on many systems. It presently provides a single function, ping(), that
takes in a hostname and (optionally) a timeout and returns true if the
host is alive, and false otherwise. Unless you have the ability (and
willingness) to run your scripts as the superuser on your system, this
module will probably provide more accurate results than Net::Ping will.
%prep
%setup -n %{real_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf %{buildroot}
%{__make} pure_install
### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%doc Changes MANIFEST META.yml README
%doc %{_mandir}/man3/Net::Ping::External.3pm*
%dir %{perl_vendorlib}/Net/
%dir %{perl_vendorlib}/Net/Ping/
%{perl_vendorlib}/Net/Ping/External.pm
%changelog
* Mon Jan 18 2016 Dries Verachtert <dries.verachtert@dries.eu> - 0.15-1
- Updated to release 0.15.
* Fri Sep 18 2009 Steve Huff <shuff@vecna.org> - 0.13-1
- Initial package.