#
# Conditional build:
-%bcond_without tests # do not perform "make test"
+%bcond_without tests # unit tests
#
-%include /usr/lib/rpm/macros.perl
%define pdir Socket6
%define pnam Socket6
Summary: Socket6 Perl module - IPv6-related part of the C socket.h defines and structure manipulators
Summary(pl.UTF-8): Moduł Perla Socket6 - definicje i operacje na strukturach socket.h związanych z IPv6
Name: perl-Socket6
-Version: 0.23
-Release: 7
+Version: 0.29
+Release: 6
License: BSD-like
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/Socket6/%{pnam}-%{version}.tar.gz
-# Source0-md5: 2c02adb13c449d48d232bb704ddbd492
-Patch0: pod-syntax.patch
-URL: http://search.cpan.org/dist/Socket6/
-BuildRequires: rpm-perlprov >= 4.1-13
+# Source0-md5: dab4b2dcc76f81b8bedea72d8fd1bc28
+URL: https://metacpan.org/dist/Socket6
BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q -n %{pnam}-%{version}
-%patch0 -p1
%build
%{__perl} Makefile.PL \
%doc ChangeLog README
%{perl_vendorarch}/Socket6.pm
%dir %{perl_vendorarch}/auto/Socket6
-%{perl_vendorarch}/auto/Socket6/Socket6.bs
%attr(755,root,root) %{perl_vendorarch}/auto/Socket6/Socket6.so
%{_mandir}/man3/Socket6.3pm*