%define upstream_name Net-Interface %define upstream_version 1.012 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 5 Summary: Perl extension to access network interfaces License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name}/ Source0: http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl-devel %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 -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make CFLAGS="%{optflags}" %check %make test %install %{__rm} -rf %{buildroot} %makeinstall_std %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %doc Changes README* META.yml %{_mandir}/man3/* %{perl_vendorarch}/auto/Net %{perl_vendorarch}/Net %changelog * Sun Jan 13 2013 umeabot <umeabot> 1.12.0-5.mga3 + Revision: 370681 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed May 30 2012 jquelin <jquelin> 1.12.0-4.mga3 + Revision: 250991 - rebuild for perl 5.16 * Sun Jun 12 2011 sander85 <sander85> 1.12.0-3.mga2 + Revision: 104838 - Rebuild for perl 5.14 * Sat Jan 22 2011 jquelin <jquelin> 1.12.0-2.mga1 + Revision: 30912 - mageia rebuild - imported package perl-Net-Interface