From a8980fc207ab81e1505a086ba7d411221f5fa330 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]>
Date: Mon, 5 Jun 2017 13:10:56 +0200
Subject: Modernize spec file
---
perl-Crypt-SSLeay.spec | 31 ++++++++++++++++---------------
1 file changed, 16 insertions(+), 15 deletions(-)
diff --git a/perl-Crypt-SSLeay.spec b/perl-Crypt-SSLeay.spec
index 19a1cb0..5d771fa 100644
--- a/perl-Crypt-SSLeay.spec
+++ b/perl-Crypt-SSLeay.spec
@@ -1,17 +1,20 @@
# Disable network tests by default
-%bcond_with network_tests
+%bcond_with perl_Crypt_SSLeay_enables_network_test
Name: perl-Crypt-SSLeay
Summary: OpenSSL glue that provides LWP with HTTPS support
Version: 0.72
-Release: 13%{?dist}
+Release: 14%{?dist}
License: Artistic 2.0
-Group: Development/Libraries
Source0:
http://www.cpan.org/authors/id/N/NA/NANIS/Crypt-SSLeay-%{version}.tar.gz
# Adapt to OpenSSL 1.1.0, bug #1383756, CPAN RT#118343
Patch0:
Crypt-SSLeay-0.72-Do-not-use-SSLv2_client_method-with-OpenSSL-1.1.0.patch
Patch1: Crypt-SSLeay-0.72-Fix-building-on-Perl-without-dot-in-INC.patch
URL: http://search.cpan.org/dist/Crypt-SSLeay/
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: gcc
+BuildRequires: make
BuildRequires: openssl-devel
BuildRequires: perl
BuildRequires: perl-devel
@@ -23,6 +26,7 @@ BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Path::Class)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
+BuildRequires: pkgconf-pkg-config
# Run-time:
BuildRequires: /etc/pki/tls/certs/ca-bundle.crt
BuildRequires: perl(Carp)
@@ -39,7 +43,7 @@ BuildRequires: perl(Try::Tiny) >= 0.19
# Optional tests:
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
-%if %{with network_tests}
+%if %{with perl_Crypt_SSLeay_enables_network_test}
# Network tests:
BuildRequires: perl(constant)
BuildRequires: perl(HTTP::Request)
@@ -50,11 +54,6 @@ Requires: perl(:MODULE_COMPAT_%(eval "`perl
-V:version`"; echo $version))
Requires: /etc/pki/tls/certs/ca-bundle.crt
Requires: perl(XSLoader)
-# RPM 4.8 style
-%{?filter_setup:
-%filter_from_provides /^perl(DB)/d
-}
-# RPM 4.9 style
%global __provides_exclude
%{?__provides_exclude:__provides_exclude|}^perl\\(DB\\)
%{?perl_default_filter}
@@ -81,15 +80,14 @@ if pkg-config openssl ; then
export LDFLAGS="$LDFLAGS `pkg-config --libs-only-L openssl`"
fi
-perl Makefile.PL --%{!?with_network_tests:no-}live-tests \
- INC="$INC" LDFLAGS="$LDFLAGS" INSTALLDIRS=vendor OPTIMIZE="%{optflags}" \
- </dev/null
+perl Makefile.PL
--%{!?with_perl_Crypt_SSLeay_enables_network_test:no-}live-tests \
+ INC="$INC" LDFLAGS="$LDFLAGS" INSTALLDIRS=vendor NO_PACKLIST=1 \
+ OPTIMIZE="%{optflags}" </dev/null
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
-find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
+find %{buildroot} -type f -name '*.bs' -a -size 0 -delete
%{_fixperms} %{buildroot}
chmod -R u+w %{buildroot}/*
chmod -R 644 eg/*
@@ -110,6 +108,9 @@ make test
%{_mandir}/man3/Net::SSL.3pm*
%changelog
+* Mon Jun 05 2017 Petr Pisar <[email protected]> - 0.72-14
+- Modernize spec file
+
* Mon Jun 05 2017 Jitka Plesnikova <[email protected]> - 0.72-13
- Perl 5.26 rebuild
@@ -248,7 +249,7 @@ make test
- Autorebuild for GCC 4.3
* Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> -
0.57-5
- - Rebuild for deps
+- Rebuild for deps
* Wed Dec 5 2007 Robin Norwood <[email protected]> - 0.57-4
- Rebuild for new openssl
--
cgit v1.1
https://src.fedoraproject.org/cgit/perl-Crypt-SSLeay.git/commit/?h=master&id=a8980fc207ab81e1505a086ba7d411221f5fa330
_______________________________________________
perl-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]