# $Id$ # Authority: dries # Upstream: Jerrad Pierce %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib) %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch) %define real_name Net-Interface Summary: Access network interfaces Name: perl-Net-Interface Version: 0.08 Release: 1 License: Artistic/GPL Group: Applications/CPAN URL: http://search.cpan.org/dist/Net-Interface/ Source: http://www.cpan.org/modules/by-module/Net/Net-Interface-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: perl BuildRequires: perl(ExtUtils::MakeMaker) %description Net::Interface is designed to make the use of ifconfig(1) and friends unnecessary from within Perl. It provides methods to get at set all the attributes of an interface, and even create new logical or physical interfaces (if your O/S supports it). %prep %setup -n %{real_name}-%{version} %build CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" %{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}" %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 README %doc %{_mandir}/man3/*.3pm* %dir %{perl_vendorarch}/Net/ %{perl_vendorarch}/Net/Interface.pm %dir %{perl_vendorarch}/auto/Net/ %{perl_vendorarch}/auto/Net/Interface/ %changelog * Fri Jun 2 2006 Dries Verachtert - 0.08-1 - Updated to release 0.08. * Sun Mar 26 2006 Dries Verachtert - 0.06-1 - Updated to release 0.06. * Sat Apr 9 2005 Dries Verachtert - 0.04_2-1 - Initial package.