From 2733aab94d0639cd6bcc0fff3d3bcbbe831e1b8b Mon Sep 17 00:00:00 2001
From: Denis Fateyev <de...@fateyev.com>
Date: Mon, 29 Feb 2016 20:53:29 +0600
Subject: perl-Net-SSLGlue: adjust epel dependencies

---
 perl-Net-SSLGlue.spec | 24 +++++++++++-------------
 1 file changed, 11 insertions(+), 13 deletions(-)

diff --git a/perl-Net-SSLGlue.spec b/perl-Net-SSLGlue.spec
index 929f526..6023b42 100644
--- a/perl-Net-SSLGlue.spec
+++ b/perl-Net-SSLGlue.spec
@@ -1,6 +1,6 @@
 Name:           perl-Net-SSLGlue
 Version:        1.055
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Add/extend SSL support for common perl modules
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -11,7 +11,6 @@ Source0:        
http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/Net-SSLGlue-%{
 # Only minimal test which doesnt requires Internet connexion
 Patch0:         perl-Net-SSLGlue-test.patch
 
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(IO::Socket::SSL) >= 1.19
@@ -22,16 +21,19 @@ BuildRequires:  perl(Net::SMTP)
 BuildRequires:  perl(strict)
 BuildRequires:  perl(warnings)
 
-Requires:       perl(LWP::UserAgent) >= 6.06
-Requires:       perl(LWP::Protocol::https) >= 6.06
+Requires:       perl(LWP::UserAgent) >= 5.822
+Requires:       perl(LWP::Protocol::https) >= 5.822
 Requires:       perl(Net::FTP)
 Requires:       perl(Net::FTP::dataconn)
 
+# perl-libwww-perl in el6 haven't got ssl support by default
+%{?el6:Requires: perl(IO::Socket::SSL) >= 1.19}
+
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
 
 %{?perl_default_filter}
-%global __requires_exclude 
%{?__requires_exclude:%__requires_exclude|}^perl\\(IO::Socket::SSL\\)$
-%global __requires_exclude %__requires_exclude|^perl\\(LWP::UserAgent\\)$
+# el6 filter doesn't work as expected with %__requires_exclude
+%global __requires_exclude 
^perl\\(IO::Socket::SSL\\)$|^perl\\(LWP::UserAgent\\)$
 
 
 %description
@@ -59,8 +61,6 @@ make %{?_smp_mflags}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
 make pure_install DESTDIR=$RPM_BUILD_ROOT
 
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
@@ -73,18 +73,16 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 
2>/dev/null \;
 make test
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
-%defattr(-,root,root,-)
 %doc COPYRIGHT README Changes examples
 %{perl_vendorlib}/Net
 %{_mandir}/man3/Net*
 
 
 %changelog
+* Mon Feb 29 2016 Denis Fateyev <de...@fateyev.com> - 1.055-3
+- Spec cleanup, fix package epel dependencies.
+
 * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 
1.055-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Net-SSLGlue.git/commit/?h=epel7&id=2733aab94d0639cd6bcc0fff3d3bcbbe831e1b8b
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to