From ed030a19c92c5ea904d778b75a34b1c735fbadb6 Mon Sep 17 00:00:00 2001
From: Emmanuel Seyman <emmanuel(a)seyman.fr>
Date: Mon, 20 Mar 2017 19:36:49 +0100
Subject: Remove cache.t as it requires network access
---
perl-HTTP-Cache-Transparent.spec | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/perl-HTTP-Cache-Transparent.spec b/perl-HTTP-Cache-Transparent.spec
index e414d0f..c181458 100644
--- a/perl-HTTP-Cache-Transparent.spec
+++ b/perl-HTTP-Cache-Transparent.spec
@@ -8,8 +8,9 @@ URL:
http://search.cpan.org/dist/HTTP-Cache-Transparent/
Source0:
http://search.cpan.org/CPAN/authors/id/M/MA/MATTIASH/HTTP-Cache-Transpare...
BuildArch: noarch
+BuildRequires: make
BuildRequires: perl-generators
-BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
BuildRequires: perl(Test::Pod) >= 1.00
@@ -28,16 +29,18 @@ thus persistent between invocations.
%prep
%setup -q -n HTTP-Cache-Transparent-%{version}
+# cache.t requires network access which we don't have in koji
+rm t/cache.t
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%install
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+%{_fixperms} $RPM_BUILD_ROOT/*
%check
@@ -53,6 +56,8 @@ make test
%changelog
* Sun Mar 19 2017 Emmanuel Seyman <emmanuel(a)seyman.fr> - 1.3-1
- Update to 1.3
+- Remove cache.t as it requires network access
+- Pass NO_PACKLIST=1 to Makefile.PL
* Thu Mar 09 2017 Emmanuel Seyman <emmanuel(a)seyman.fr> - 1.2-1
- Update to 1.2
--
cgit v1.1
https://src.fedoraproject.org/cgit/perl-HTTP-Cache-Transparent.git/commit...