|
@@ -1,25 +1,27 @@
|
|
# -*- coding: utf-8 -*-
|
|
# -*- coding: utf-8 -*-
|
|
|
|
+# Disable network tests by default
|
|
|
|
+%bcond_with network_tests
|
|
|
|
+
|
|
%define origname Crypt-SSLeay
|
|
%define origname Crypt-SSLeay
|
|
|
|
|
|
Name: perl-Crypt-SSLeay
|
|
Name: perl-Crypt-SSLeay
|
|
Summary: OpenSSL glue that provides LWP https support
|
|
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
|
|
License: GPL or Artistic
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/Crypt-SSLeay/
|
|
URL: http://search.cpan.org/dist/Crypt-SSLeay/
|
|
|
|
|
|
Source0: http://www.cpan.org/authors/id/D/DL/DLAND/%{origname}-%{version}.tar.gz
|
|
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
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
-BuildRequires: perl(URI)
|
|
|
|
|
|
+BuildRequires: perl(Path::Class)
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
|
|
|
+BuildRequires: perl(Try::Tiny)
|
|
|
|
+BuildRequires: perl(URI)
|
|
BuildRequires: perl-libwww-perl
|
|
BuildRequires: perl-libwww-perl
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
Requires: openssl
|
|
Requires: openssl
|
|
@@ -41,9 +43,6 @@ necessary SSL glue for that module to work.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n %{origname}-%{version}
|
|
%setup -q -n %{origname}-%{version}
|
|
-%patch1 -p1 -b .cryptdef
|
|
|
|
-%patch2 -p1
|
|
|
|
-%patch3 -p1 -b .make
|
|
|
|
|
|
|
|
# Filter unwanted Provides:
|
|
# Filter unwanted Provides:
|
|
cat << EOF > %{name}-prov
|
|
cat << EOF > %{name}-prov
|
|
@@ -62,8 +61,9 @@ if pkg-config openssl ; then
|
|
export LDFLAGS="$LDFLAGS `pkg-config --libs-only-L openssl`"
|
|
export LDFLAGS="$LDFLAGS `pkg-config --libs-only-L openssl`"
|
|
fi
|
|
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}
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
@@ -87,7 +87,7 @@ make test
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc README Changes eg/* certs/*
|
|
|
|
|
|
+%doc Changes eg/* certs/*
|
|
%{perl_vendorarch}/auto/Crypt/
|
|
%{perl_vendorarch}/auto/Crypt/
|
|
%{perl_vendorarch}/Crypt/
|
|
%{perl_vendorarch}/Crypt/
|
|
%{perl_vendorarch}/Net/
|
|
%{perl_vendorarch}/Net/
|
|
@@ -95,6 +95,11 @@ make test
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%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
|
|
* Sun Dec 21 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.57-3
|
|
- rebuilt with perl 5.16.3
|
|
- rebuilt with perl 5.16.3
|
|
|
|
|