diff --git a/.cvsignore b/.cvsignore index e69de29..f25d27b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +IO-Interface-0.98.tar.gz diff --git a/perl-IO-Interface.spec b/perl-IO-Interface.spec new file mode 100644 index 0000000..acba1c3 --- /dev/null +++ b/perl-IO-Interface.spec @@ -0,0 +1,58 @@ +Name: perl-IO-Interface +Version: 0.98 +Release: 1%{?dist} +Summary: Perl extension for accessing network card configuration information + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/IO-Interface/ +Source0: http://www.cpan.org/authors/id/L/LD/LDS/IO-Interface-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: perl +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +IO::Interface adds methods to IO::Socket objects that allows them to +be used to retrieve and change information about the network +interfaces on your system. In addition to the object-oriented access +methods, you can use a function-oriented style. + + +%prep +%setup -q -n IO-Interface-%{version} + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + + +%check +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorarch}/IO/ +%{perl_vendorarch}/auto/IO/ +%{_mandir}/man3/*.3* + + +%changelog +* Mon Jan 30 2006 Jose Pedro Oliveira - 0.98-1 +- First build. diff --git a/sources b/sources index e69de29..4c6f8c2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +91d5029a32302aa02414c9c8e3353cec IO-Interface-0.98.tar.gz