perl-IO-Socket-INET6/perl-IO-Socket-INET6.spec
Vítězslav Čížek c6816f3da1 - update to 2.69
* Fix the imports on t/io_multihomed6.t .
    - Fixes https://rt.cpan.org/Ticket/Display.html?id=72769 again.
  * Update the link to the repository in Build.PL.
  * Solved symbol clashes in t/io_multihomed6.t .
    - Fixes https://rt.cpan.org/Ticket/Display.html?id=72769

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-IO-Socket-INET6?expand=0&rev=29
2011-11-30 12:17:22 +00:00

92 lines
2.7 KiB
RPMSpec

#
# spec file for package perl-IO-Socket-INET6
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%bcond_with test
Name: perl-IO-Socket-INET6
Version: 2.69
Release: 1
License: GPL-1.0+ or Artistic-1.0
%define cpan_name IO-Socket-INET6
Summary: Object interface for AF_INET|AF_INET6 domain sockets
Url: http://search.cpan.org/dist/IO-Socket-INET6/
Group: Development/Libraries/Perl
#Source: http://www.cpan.org/modules/by-module/IO/IO-Socket-INET6-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.gz
BuildRequires: perl
BuildRequires: perl(Module::Build)
BuildRequires: perl-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{perl_requires}
%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(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 either AF_INET or AF_INET6 domains. It is built upon the
IO::Socket interface and inherits all the methods defined by IO::Socket.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
perl Build.PL installdirs=vendor
./Build
#exclude this test as it needs IPv6 network
mv t/io_sock6.t t/io_sock6.tt
%if %{with test}
%check
#disable test suite as it doesn't work at all without being online
#and our build hosts are completly without network interfaces
./Build test
%endif
%install
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%clean
rm -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,-)
%doc ChangeLog README
%changelog