%define pkg_name libnet %define pkg_version 1.22 %define rpm_pkg_version 1.22 %define rpm_pkg_release 1.n0i.5 Summary: Network protocols API 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/G/GB/GBARR/%{pkg_name}-%{pkg_version}.tar.gz Source1: perl-libnet.cfg BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(IO::Socket) >= 1.05 BuildRequires: perl(Socket) >= 1.3 %global perl_filter_req 'Mac::InternetConfig' %description libnet is a collection of Perl modules which provides a simple and consistent programming interface (API) to the client side of various protocols used in the internet community. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{fix_perl_path demos/} %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %{__install} -m 0644 -D %{SOURCE1} $RPM_BUILD_ROOT%{perl_vendorlib}/Net/libnet.cfg %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc Changes demos/ README %changelog * Sun Aug 26 2007 Marius Feraru - 0:1.22-1.n0i.5 - version 1.22 * Tue May 22 2007 Marius Feraru - 0:1.21-1.n0i.4 - spec file (re)created using N0i::CPAN::RPMizer v1.14.7 - version 1.21 * Fri Apr 30 2004 Marius Feraru 0:1.18-1.n0i.3 - automatic rebuild * Wed Apr 21 2004 Marius Feraru 0:1.18-1.n0i.2 - automatic rebuild * Sat Apr 03 2004 Marius Feraru 0:1.18-1.n0i.1 - version 1.18 - spec file (re?)created using N0i::CPAN::RPMizer/1.18