From c992ef8dbca16661c078156c5017fc9af215c4d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]>
Date: Thu, 15 Oct 2015 14:51:56 +0200
Subject: Specify all dependencies

---
 ...nd-Module-Install-only-supports-5.005-bug.patch | 32 ++++++++++++++++++++++
 perl-LWP-Authen-Wsse.spec                          | 30 ++++++++++++++++++--
 2 files changed, 59 insertions(+), 3 deletions(-)
 create mode 100644 
LWP-Authen-Wsse-0.05-Work-around-Module-Install-only-supports-5.005-bug.patch

diff --git 
a/LWP-Authen-Wsse-0.05-Work-around-Module-Install-only-supports-5.005-bug.patch 
b/LWP-Authen-Wsse-0.05-Work-around-Module-Install-only-supports-5.005-bug.patch
new file mode 100644
index 0000000..127f0e5
--- /dev/null
+++ 
b/LWP-Authen-Wsse-0.05-Work-around-Module-Install-only-supports-5.005-bug.patch
@@ -0,0 +1,32 @@
+From 15714690400a82f2f7bf5b2c63f8be6450b55833 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]>
+Date: Thu, 15 Oct 2015 14:47:48 +0200
+Subject: [PATCH] Work around "Module::Install only supports 5.005" bug
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Having "use 5.004" triggers bug in Module::Install resulting in error:
+
+Module::Install only supports 5.005 or newer (use ExtUtils::MakeMaker)
+
+CPAN RT#58518
+
+Signed-off-by: Petr Písař <[email protected]>
+---
+ lib/LWP/Authen/Wsse.pm | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/lib/LWP/Authen/Wsse.pm b/lib/LWP/Authen/Wsse.pm
+index a5d9046..3eb25e5 100644
+--- a/lib/LWP/Authen/Wsse.pm
++++ b/lib/LWP/Authen/Wsse.pm
+@@ -1,5 +1,4 @@
+ package LWP::Authen::Wsse;
+-use 5.004;
+ use strict;
+ use warnings;
+ use English qw( -no_match_vars );
+-- 
+2.4.3
+
diff --git a/perl-LWP-Authen-Wsse.spec b/perl-LWP-Authen-Wsse.spec
index 9b2a961..f49af8f 100644
--- a/perl-LWP-Authen-Wsse.spec
+++ b/perl-LWP-Authen-Wsse.spec
@@ -1,18 +1,35 @@
 Name:           perl-LWP-Authen-Wsse
 Version:        0.05
-Release:        20%{?dist}
+Release:        21%{?dist}
 Summary:        Library for enabling X-WSSE authentication in LWP
 
 Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/LWP-Authen-Wsse
 Source0:        
http://search.cpan.org/CPAN/authors/id/A/AU/AUTRIJUS/LWP-Authen-Wsse-%{version}.tar.gz
+# Make system Module::Install to work with this package, CPAN RT#58518
+Patch0:         
LWP-Authen-Wsse-0.05-Work-around-Module-Install-only-supports-5.005-bug.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 BuildRequires:  perl
-BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:  perl(Digest::SHA1) perl(MIME::Base64)
+BuildRequires:  coreutils
+BuildRequires:  findutils
+BuildRequires:  make
+BuildRequires:  perl
+BuildRequires:  perl(inc::Module::Install)
+BuildRequires:  perl(Module::Install::Metadata)
+BuildRequires:  perl(Module::Install::WriteAll)
+BuildRequires:  perl(strict)
+BuildRequires:  sed
+# Run-time:
+BuildRequires:  perl(constant)
+BuildRequires:  perl(Digest::SHA1)
+BuildRequires:  perl(English)
+BuildRequires:  perl(MIME::Base64)
+BuildRequires:  perl(warnings)
+# Tests:
+BuildRequires:  perl(Test)
 Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
@@ -22,6 +39,10 @@ Authentication API.
 
 %prep
 %setup -q -n LWP-Authen-Wsse-%{version}
+%patch0 -p1
+# Remove bundles modules
+rm -rf inc
+sed -i -e '/^inc\//d' MANIFEST
 
 
 %build
@@ -53,6 +74,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Thu Oct 15 2015 Petr Pisar <[email protected]> - 0.05-21
+- Specify all dependencies
+
 * Thu Jun 18 2015 Fedora Release Engineering <[email protected]> 
- 0.05-20
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v0.11.2


        
http://pkgs.fedoraproject.org/cgit/perl-LWP-Authen-Wsse.git/commit/?h=master&id=c992ef8dbca16661c078156c5017fc9af215c4d3
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to