diff --git a/perl-IO-Socket-INET6.changes b/perl-IO-Socket-INET6.changes index 3e12f81..f6c8c1f 100644 --- a/perl-IO-Socket-INET6.changes +++ b/perl-IO-Socket-INET6.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Jul 19 12:15:39 UTC 2010 - chris@computersalat.de + +- recreated by cpanspec 1.78 + o fix deps + o changed to Build.PL +- noarch pkg +- added bcond_with test + ------------------------------------------------------------------- Fri Jul 16 15:08:28 CEST 2010 - anicka@suse.cz diff --git a/perl-IO-Socket-INET6.spec b/perl-IO-Socket-INET6.spec index aa4adc5..78608ca 100644 --- a/perl-IO-Socket-INET6.spec +++ b/perl-IO-Socket-INET6.spec @@ -17,60 +17,82 @@ # norootforbuild +%bcond_with test Name: perl-IO-Socket-INET6 -BuildRequires: perl-Socket6 +%define cpan_name IO-Socket-INET6 +Summary: Object interface for AF_INET|AF_INET6 domain sockets Version: 2.65 -Release: 1 -Requires: perl = %{perl_version} -Requires: perl-Socket6 -AutoReqProv: on -Url: http://cpan.org/modules/by-module/IO/ -License: Artistic License .. +Release: 2 +License: GPL+ or Artistic Group: Development/Libraries/Perl -Summary: Provides an object interface to creating and using sockets -Source: IO-Socket-INET6-%{version}.tar.bz2 +Url: http://search.cpan.org/dist/IO-Socket-INET6/ +#Source: http://www.cpan.org/modules/by-module/IO/IO-Socket-INET6-%{version}.tar.gz +Source: %{cpan_name}-%{version}.tar.bz2 +BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl(Module::Build) +%if 0%{?suse_version} < 1120 +BuildRequires: perl-macros +%endif +%if %{with test} +BuildRequires: perl(Test::Pod) >= 1.14 +BuildRequires: perl(Test::Pod::Coverage) >= 1.04 +%endif +BuildRequires: perl(Carp) +BuildRequires: perl(Errno) +BuildRequires: perl(Exporter) +BuildRequires: perl(IO::Socket) +BuildRequires: perl(Socket) +BuildRequires: perl(Socket6) >= 0.12 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +Requires: perl = %{perl_version} +Requires: perl(Carp) +Requires: perl(Errno) +Requires: perl(Exporter) +Requires: perl(IO::Socket) +Requires: perl(Socket) +Requires: perl(Socket6) >= 0.12 +Requires: perl(strict) +Requires: perl(warnings) %description IO::Socket::INET6 provides an object interface to creating and using -sockets in both AF_INET|AF_INET6 domain. It is built upon the -IO::Socket interface and inherits all the methods defined by -IO::Socket. - - + sockets in either AF_INET or AF_INET6 domains. It is built upon the + IO::Socket interface and inherits all the methods defined by IO::Socket. Authors: -------- Rafael Martinez Torres -%prep -%setup -n IO-Socket-INET6-%{version} -q +%prep +%setup -q -n %{cpan_name}-%{version} %build -perl Makefile.PL +%{__perl} Build.PL installdirs=vendor +./Build #exclude this test as it needs IPv6 network mv t/io_sock6.t t/io_sock6.tt -make %{?_smp_mflags} + +%if %{with test} %check -#disable test suite as it doesn't work at all without being online +#disable test suite as it doesn't work at all without being online #and our build hosts are completly without network interfaces -#make test +./Build test +%endif %install -make DESTDIR=$RPM_BUILD_ROOT install_vendor -%perl_process_packlist +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +%perl_gen_filelist %clean -rm -rf $RPM_BUILD_ROOT +%{__rm} -rf $RPM_BUILD_ROOT -%files -%defattr(-, root, root) -%doc ChangeLog README MANIFEST -%doc %{_mandir}/man?/* -%{perl_vendorlib}/IO -%{perl_vendorarch}/auto/IO -/var/adm/perl-modules/* +%files -f %{name}.files +%defattr(-,root,root,-) +%doc ChangeLog README %changelog