From 1e3a408386f24c2536933f40c07a73796d68659d Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jples...@redhat.com>
Date: Thu, 18 May 2017 10:04:41 +0200
Subject: Fix building on Perl without '.' in @INC (CPAN RT#120713)

---
 ...t-DSA-1.17-Fix-building-on-Perl-without-dot-in-INC.patch |  9 +++++++++
 perl-Crypt-DSA.spec                                         | 13 +++++++++++--
 2 files changed, 20 insertions(+), 2 deletions(-)
 create mode 100644 Crypt-DSA-1.17-Fix-building-on-Perl-without-dot-in-INC.patch

diff --git a/Crypt-DSA-1.17-Fix-building-on-Perl-without-dot-in-INC.patch 
b/Crypt-DSA-1.17-Fix-building-on-Perl-without-dot-in-INC.patch
new file mode 100644
index 0000000..d18f1e5
--- /dev/null
+++ b/Crypt-DSA-1.17-Fix-building-on-Perl-without-dot-in-INC.patch
@@ -0,0 +1,9 @@
+diff -up Crypt-DSA-1.17/Makefile.PL.orig Crypt-DSA-1.17/Makefile.PL
+--- Crypt-DSA-1.17/Makefile.PL.orig    2017-05-18 09:53:29.030866650 +0200
++++ Crypt-DSA-1.17/Makefile.PL 2017-05-18 09:56:49.197977193 +0200
+@@ -1,3 +1,5 @@
++BEGIN { push @INC, '.'; }
++
+ use inc::Module::Install 1.01;
+ 
+ all_from      'lib/Crypt/DSA.pm';
diff --git a/perl-Crypt-DSA.spec b/perl-Crypt-DSA.spec
index 406f031..22f3ca3 100644
--- a/perl-Crypt-DSA.spec
+++ b/perl-Crypt-DSA.spec
@@ -1,14 +1,18 @@
 Summary:       Perl module for DSA signatures and key generation
 Name:          perl-Crypt-DSA
 Version:       1.17
-Release:       17%{?dist}
+Release:       18%{?dist}
 License:       GPL+ or Artistic
 Group:         Development/Libraries
 Url:           http://search.cpan.org/dist/Crypt-DSA/
 Source0:       
http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Crypt-DSA-%{version}.tar.gz
 Patch0:                remove-fallback.patch
+Patch1:         Crypt-DSA-1.17-Fix-building-on-Perl-without-dot-in-INC.patch
 Requires:      perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 BuildArch:     noarch
+BuildRequires: findutils
+BuildRequires: make
+BuildRequires: perl
 BuildRequires: perl-generators
 BuildRequires: perl(Carp)
 BuildRequires: perl(Convert::PEM)
@@ -43,6 +47,8 @@ verification, and key generation.
 # Remove the ability to fall back to the cryptographically-insecure 
Data::Random
 # instead of using /dev/random (#743567, CPAN RT#71421, CVE-2011-3599)
 %patch0 -p1
+# Fix building on Perl without '.' in @INC
+%patch1 -p1
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor
@@ -50,7 +56,7 @@ make %{?_smp_mflags}
 
 %install
 make pure_install DESTDIR=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -type f -name .packlist -delete
 %{_fixperms} %{buildroot}
 
 %check
@@ -69,6 +75,9 @@ make test AUTOMATED_TESTING=1 TEST_FILES="xt/*.t"
 %{_mandir}/man3/Crypt::DSA::Util.3pm*
 
 %changelog
+* Thu May 18 2017 Jitka Plesnikova <jples...@redhat.com> - 1.17-18
+- Fix building on Perl without '.' in @INC
+
 * Sat Feb 11 2017 Fedora Release Engineering <rel...@fedoraproject.org> - 
1.17-17
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
 
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-Crypt-DSA.git/commit/?h=master&id=1e3a408386f24c2536933f40c07a73796d68659d
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to