Browse Source

perl-Crypt-SSLeay-0.72-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@10262 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 8 years ago
parent
commit
40d514675a
1 changed files with 17 additions and 12 deletions
  1. 17 12
      p/perl-Crypt-SSLeay/perl-Crypt-SSLeay-vl.spec

+ 17 - 12
p/perl-Crypt-SSLeay/perl-Crypt-SSLeay-vl.spec

@@ -1,25 +1,27 @@
 # -*- coding: utf-8 -*- 
+# Disable network tests by default
+%bcond_with network_tests
+
 %define origname Crypt-SSLeay
 
 Name:           perl-Crypt-SSLeay
 Summary:        OpenSSL glue that provides LWP https support
-Version:        0.57
-Release:        3%{?_dist_release}
+Version:        0.72
+Release:        1%{?_dist_release}
 
 License:	GPL or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Crypt-SSLeay/
 
 Source0:        http://www.cpan.org/authors/id/D/DL/DLAND/%{origname}-%{version}.tar.gz
-Patch1:         perl-Crypt-SSLeay-cryptdef.patch
-Patch2:         perl-Crypt-SSLeay-0.57-live-tests.patch
-Patch3:		perl-Crypt-SSLeay-Makefile_ssl1.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires:  openssl-devel
 BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:  perl(URI)
+BuildRequires:  perl(Path::Class)
 BuildRequires:  perl(Test::Pod::Coverage)
+BuildRequires:  perl(Try::Tiny)
+BuildRequires:  perl(URI)
 BuildRequires:  perl-libwww-perl
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 Requires:       openssl
@@ -41,9 +43,6 @@ necessary SSL glue for that module to work.
 
 %prep
 %setup -q -n %{origname}-%{version} 
-%patch1 -p1 -b .cryptdef
-%patch2 -p1
-%patch3 -p1 -b .make
 
 # Filter unwanted Provides:
 cat << EOF > %{name}-prov
@@ -62,8 +61,9 @@ if pkg-config openssl ; then
   export LDFLAGS="$LDFLAGS `pkg-config --libs-only-L openssl`"
 fi
 
-%{__perl} Makefile.PL --default --no-live-tests INC="$INC" \
-          LDFLAGS="$LDFLAGS" INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+%{__perl} Makefile.PL --%{!?with_network_tests:no-}live-tests \
+    INC="$INC" LDFLAGS="$LDFLAGS" INSTALLDIRS=vendor OPTIMIZE="%{optflags}" \
+    </dev/null
 make %{?_smp_mflags}
 
 
@@ -87,7 +87,7 @@ make test
 
 %files
 %defattr(-,root,root,-)
-%doc README Changes eg/* certs/*
+%doc Changes eg/* certs/*
 %{perl_vendorarch}/auto/Crypt/
 %{perl_vendorarch}/Crypt/
 %{perl_vendorarch}/Net/
@@ -95,6 +95,11 @@ make test
 
 
 %changelog
+* Mon May  9 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.72-1
+- new upstream release.
+- removed all patches (fixed in upstream).
+- added BR:perl(Path::Class) and BR:perl(Try::Tiny).
+
 * Sun Dec 21 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.57-3
 - rebuilt with perl 5.16.3