%define pkg_name Net-Ping %define pkg_version 2.33 %define rpm_pkg_version 2.33 %define rpm_pkg_release 1.n0i.3 Summary: TCP, UDP, or ICMP ping Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Epoch: 0 Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/B/BB/BBB/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Socket) %{!?_without_test:BuildRequires: perl(Test)} %description This module contains methods to test the reachability of remote hosts on a network. A ping object is first created with optional parameters, a variable number of hosts may be pinged multiple times and then the connection is closed. %prep %setup -q -n %{pkg_name}-%{pkg_version} %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc Changes README %changelog * Sun Aug 12 2007 Marius Feraru - 0:2.33-1.n0i.3 - version 2.33 * Wed Aug 01 2007 Marius Feraru - 0:2.32-1.n0i.2 - version 2.32 * Thu May 31 2007 Marius Feraru - 0:2.31-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.14.8 - version 2.31