%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-IO-Interface Version: 1.09 Release: 1mamba Summary: IO::Interface - adds object-methods to IO::Socket Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://www.cpan.org/ Source: http://www.cpan.org/authors/id/L/LD/LDS/IO-Interface-%{version}.tar.gz License: GPL, Artistic ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libperl BuildRequires: perl-devel ## AUTOBUILDREQ-END BuildRequires: perl-devel >= %perl_major_ver Requires: perl >= %perl_major_ver %description IO::Interface adds object-methods to IO::Socket objects to allow them to get and set operational characteristics of network interface cards, such as IP addresses, net masks, and so forth. It is useful for identifying runtime characteristics of cards, such as broadcast addresses, and finding interfaces that satisfy certain criteria, such as the ability to multicast. %prep %setup -q -n IO-Interface-%{version} %build %{__perl} Build.PL installdirs=vendor ./Build ./Build test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" ./Build install --destdir=%{buildroot} packlist=`find %{buildroot} -name .packlist` [ -z "$packlist" ] && exit 1 || cat $packlist | \ sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ sort -u > .packlist && rm $packlist strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` for dir in `find %{buildroot} -type d | grep $strid`; do echo "%dir ${dir#%buildroot}" >> .packlist done find %{buildroot} -name *.so -exec chmod u+w {} \; %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" rm -f .packlist %files -f .packlist %defattr(-,root,root) %changelog * Sat Mar 11 2023 Automatic Build System 1.09-1mamba - automatic version update by autodist * Sun Jun 15 2014 Automatic Build System 1.07-1mamba - automatic update by autodist * Tue Jul 26 2011 Automatic Build System 1.06-1mamba - automatic version update by autodist * Fri Feb 06 2009 Silvan Calarco 1.05-1mamba - automatic update by autodist * Wed Nov 05 2008 Silvan Calarco 1.03-2mamba - automatic rebuild by autodist * Thu Oct 11 2007 Silvan Calarco 1.03-1mamba - package created by autospec