Inhibit installing dependencies from CPAN

epel9
Petr Písař 4 years ago
parent 0bbdeb06e7
commit dc2980626f

@ -0,0 +1,31 @@
From 29c290200108cf185fcbc06f5870e6a1c6b8dc66 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Thu, 27 Aug 2020 09:38:03 +0200
Subject: [PATCH] Inhibit installing dependencies from CPAN
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
When boostrapping Perl, MRO::Compat is not available and Makefile.PL
attempts to install this unneeded dependency from CPAN.
https://bugzilla.redhat.com/show_bug.cgi?id=1873016
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
Makefile.PL | 2 --
1 file changed, 2 deletions(-)
diff --git a/Makefile.PL b/Makefile.PL
index 3c947e3..4326d66 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -40,6 +40,4 @@ test_requires "Storable" => '0'; # for cloning in tests
tests_recursive 't';
-auto_install();
-
WriteAll();
--
2.25.4

@ -1,10 +1,12 @@
Name: perl-SQL-Abstract-Classic Name: perl-SQL-Abstract-Classic
Version: 1.91 Version: 1.91
Release: 3%{?dist} Release: 4%{?dist}
Summary: Generate SQL from Perl data structures Summary: Generate SQL from Perl data structures
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/SQL-Abstract-Classic/ URL: https://metacpan.org/release/SQL-Abstract-Classic/
Source0: https://cpan.metacpan.org/authors/id/R/RI/RIBASUSHI/SQL-Abstract-Classic-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/R/RI/RIBASUSHI/SQL-Abstract-Classic-%{version}.tar.gz
# Inhibit installing dependencies from CPAN, bug #1873016
Patch0: SQL-Abstract-Classic-1.91-Inhibit-installing-dependencies-from-CPAN.patch
BuildArch: noarch BuildArch: noarch
# Build # Build
BuildRequires: coreutils BuildRequires: coreutils
@ -12,7 +14,6 @@ BuildRequires: perl-generators
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5.6.0 BuildRequires: perl(:VERSION) >= 5.6.0
BuildRequires: perl(inc::Module::Install) >= 1.06 BuildRequires: perl(inc::Module::Install) >= 1.06
BuildRequires: perl(Module::Install::AutoInstall)
BuildRequires: perl(Module::Install::Makefile) BuildRequires: perl(Module::Install::Makefile)
BuildRequires: perl(Module::Install::Metadata) BuildRequires: perl(Module::Install::Metadata)
BuildRequires: perl(Module::Install::WriteAll) BuildRequires: perl(Module::Install::WriteAll)
@ -49,6 +50,7 @@ interface. So, I set out to create an abstract SQL generation module.
%prep %prep
%setup -q -n SQL-Abstract-Classic-%{version} %setup -q -n SQL-Abstract-Classic-%{version}
%patch0 -p1
# Remove bundled libraries # Remove bundled libraries
rm -r inc rm -r inc
sed -i -e '/^inc\// d' MANIFEST sed -i -e '/^inc\// d' MANIFEST
@ -70,6 +72,9 @@ make test
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Thu Aug 27 2020 Petr Pisar <ppisar@redhat.com> - 1.91-4
- Inhibit installing dependencies from CPAN (bug #1873016)
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.91-3 * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.91-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

Loading…
Cancel
Save