From 6a53bdee0a21ed4c7400273731022bc17b1229eb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Thu, 15 Oct 2015 09:35:40 +0200
Subject: Specify all dependencies

---
 ...installing-missing-dependencies-from-CPAN.patch | 28 +++++++++++++++++++
 perl-PerlIO-via-dynamic.spec                       | 31 +++++++++++++++++++---
 2 files changed, 56 insertions(+), 3 deletions(-)
 create mode 100644 
PerlIO-via-dynamic-0.14-Disable-installing-missing-dependencies-from-CPAN.patch

diff --git 
a/PerlIO-via-dynamic-0.14-Disable-installing-missing-dependencies-from-CPAN.patch
 
b/PerlIO-via-dynamic-0.14-Disable-installing-missing-dependencies-from-CPAN.patch
new file mode 100644
index 0000000..8c73756
--- /dev/null
+++ 
b/PerlIO-via-dynamic-0.14-Disable-installing-missing-dependencies-from-CPAN.patch
@@ -0,0 +1,28 @@
+From 8de0306d699b6e6396cc5e4b8d3bf1dd36f30d18 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
+Date: Thu, 15 Oct 2015 09:28:14 +0200
+Subject: [PATCH] Disable installing missing dependencies from CPAN
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Petr Písař <ppi...@redhat.com>
+---
+ Makefile.PL | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index a795dcf..6ee6649 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -10,7 +10,4 @@ license              ('perl');
+ version_from  ('dynamic.pm');
+ requires        ('Internals') if $] == 5.010000;
+ 
+-include('ExtUtils::AutoInstall');
+-auto_install();
+-
+ WriteAll( sign => 1 );
+-- 
+2.4.3
+
diff --git a/perl-PerlIO-via-dynamic.spec b/perl-PerlIO-via-dynamic.spec
index 2d5cb3b..993da38 100644
--- a/perl-PerlIO-via-dynamic.spec
+++ b/perl-PerlIO-via-dynamic.spec
@@ -1,15 +1,33 @@
 Name:           perl-PerlIO-via-dynamic
 Version:        0.14
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        Dynamic PerlIO layers
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/PerlIO-via-dynamic/
 Source0:        
http://www.cpan.org/modules/by-module/PerlIO/PerlIO-via-dynamic-%{version}.tar.gz
+# Do not download sources from the Internet
+Patch0:         
PerlIO-via-dynamic-0.14-Disable-installing-missing-dependencies-from-CPAN.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
-BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:  perl(Module::Install)
+BuildRequires:  coreutils
+BuildRequires:  findutils
+BuildRequires:  make
+BuildRequires:  perl
+BuildRequires:  perl(inc::Module::Install)
+# Module::Install::AutoInstall disabled
+BuildRequires:  perl(Module::Install::Metadata)
+BuildRequires:  perl(Module::Install::WriteAll)
+BuildRequires:  sed
+# Run-time:
+# Internals not used with recent Perl
+BuildRequires:  perl(IO::Handle)
+BuildRequires:  perl(Scalar::Util)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(Symbol)
+# Tests:
+BuildRequires:  perl(File::Temp)
+BuildRequires:  perl(Test)
 BuildRequires:  perl(Test::More)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
 
@@ -20,6 +38,10 @@ use this module as via layer directly (ie :via(dynamic)).
 
 %prep
 %setup -q -n PerlIO-via-dynamic-%{version}
+%patch0 -p1
+# Remove bundled modules
+rm -rf inc
+sed -i -e '/^inc\//d' MANIFEST
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -48,6 +70,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/*
 
 %changelog
+* Thu Oct 15 2015 Petr Pisar <ppi...@redhat.com> - 0.14-9
+- Specify all dependencies
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
- 0.14-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v0.11.2


        
http://pkgs.fedoraproject.org/cgit/perl-PerlIO-via-dynamic.git/commit/?h=master&id=6a53bdee0a21ed4c7400273731022bc17b1229eb
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to