perl-IO-Socket-INET6/perl-IO-Socket-INET6.spec

76 lines
2.1 KiB
RPMSpec

#
# spec file for package perl-IO-Socket-INET6 (Version 2.56)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: perl-IO-Socket-INET6
BuildRequires: perl-Socket6
Version: 2.56
Release: 6
Requires: perl = %{perl_version}
Requires: perl-Socket6
AutoReqProv: on
Url: http://cpan.org/modules/by-module/IO/
License: Artistic License ..
Group: Development/Libraries/Perl
Summary: Provides an object interface to creating and using sockets
Source: IO-Socket-INET6-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
Authors:
--------
Rafael Martinez Torres <rafael.martinez@novagnet.com>
%prep
%setup -n IO-Socket-INET6-%{version} -q
%build
perl Makefile.PL
#exclude this test as it needs IPv6 network
mv t/io_sock6.t t/io_sock6.tt
%check
#disable test suite as it doesn't work at all without being online
#and our build hosts are completly without network interfaces
#make test
%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
%clean
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/*
%changelog