From 28d03353b77fb902e8f3eb012de53f0c70ebe727 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Wed, 30 Sep 2015 13:14:33 +0200
Subject: Do not auto_install run-time only dependencies

Auto_installing File::Slurp poinsons build system that tries to
install into site directory then.
---
 ...Disable-installing-dependencies-from-CPAN.patch | 30 ++++++++++++++++++++++
 perl-Makefile-Parser.spec                          |  8 +++++-
 2 files changed, 37 insertions(+), 1 deletion(-)
 create mode 100644 
Makefile-Parser-0.216-Disable-installing-dependencies-from-CPAN.patch

diff --git 
a/Makefile-Parser-0.216-Disable-installing-dependencies-from-CPAN.patch 
b/Makefile-Parser-0.216-Disable-installing-dependencies-from-CPAN.patch
new file mode 100644
index 0000000..f725bcc
--- /dev/null
+++ b/Makefile-Parser-0.216-Disable-installing-dependencies-from-CPAN.patch
@@ -0,0 +1,30 @@
+From 1f8065f3ec5963bc7450a415c316c90c74f0f82c Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
+Date: Wed, 30 Sep 2015 13:11:10 +0200
+Subject: [PATCH] Disable installing dependencies from CPAN
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+File::Slurp is not needed at tests, yet auto_install will install it
+from CPAN because it's a run-time dependency.
+
+Signed-off-by: Petr Písař <ppi...@redhat.com>
+---
+ Makefile.PL | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 89401ed..d54fc37 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -28,6 +28,5 @@ build_requires  ('IPC::Run3' => '0.036');
+ 
+ use_test_base;
+ 
+-auto_install;
+ WriteAll;
+ 
+-- 
+2.4.3
+
diff --git a/perl-Makefile-Parser.spec b/perl-Makefile-Parser.spec
index f956ea9..c0224f6 100644
--- a/perl-Makefile-Parser.spec
+++ b/perl-Makefile-Parser.spec
@@ -1,6 +1,6 @@
 Name:           perl-Makefile-Parser
 Version:        0.216
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Simple parser for Makefiles
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -12,6 +12,8 @@ Patch0:         
Makefile-Parser-0.216-make-4.0-compatibility.patch
 Patch1:         Makefile-Parser-0.216-Remove-use-lib.patch
 # Do not use /usr/bin/env, CPAN RT#107237
 Patch2:         Makefile-Parser-0.216-Do-not-use-usr-bin-env.patch
+# Do not auto_install run-time only dependencies
+Patch3:         
Makefile-Parser-0.216-Disable-installing-dependencies-from-CPAN.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  coreutils
@@ -79,6 +81,7 @@ satisfactory for this purpose, so I decided to build one of 
my own.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 # Remove bundled modules
 rm -r ./inc
 sed -i -e '/^inc\//d' MANIFEST
@@ -118,6 +121,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/plmake
 
 %changelog
+* Wed Sep 30 2015 Petr Pisar <ppi...@redhat.com> - 0.216-2
+- Do not auto_install run-time only dependencies
+
 * Tue Sep 22 2015 Petr Pisar <ppi...@redhat.com> - 0.216-1
 - 2.016 bump
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Makefile-Parser.git/commit/?h=f22&id=28d03353b77fb902e8f3eb012de53f0c70ebe727
--
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