#
# Conditional build:
-# _with_tests - perform "make test" - needs network connection
+%bcond_with tests # perform "make test" - needs network connection
#
%include /usr/lib/rpm/macros.perl
%define pdir IO
%define pnam Socket-SSL
-Summary: IO::Socket::SSL -- Nearly transparent SSL encapsulation for IO::Socket::INET
-Summary(pl): IO::Socket::SSL -- prawie przezroczysta obudowa SSL dla IO::Socket::INET
+Summary: IO::Socket::SSL - nearly transparent SSL encapsulation for IO::Socket::INET
+Summary(pl): IO::Socket::SSL - prawie przezroczysta obudowa SSL dla IO::Socket::INET
Name: perl-IO-Socket-SSL
-Version: 0.92
-Release: 2
+Version: 0.95
+Release: 1
Epoch: 1
-License: GPL
+# same as perl
+License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: perl >= 5.6
+# Source0-md5: 4eaf9bc8a44a3e98132f2c551b17f95d
BuildRequires: perl-Net-SSLeay
+BuildRequires: perl-devel >= 5.6
BuildRequires: rpm-perlprov >= 4.1-13
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%build
%{__perl} Makefile.PL \
- INSTALLDIRS=vendor
+ INSTALLDIRS=vendor
%{__make}
-%{?_with_tests:%{__make} test}
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
install example/* util/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}