From a799fc660b579bf0931b0e4a9c31253035fb35b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com> Date: Mon, 4 Jul 2016 15:51:38 +0200 Subject: Disable Test::Kwalitee::Extra subtests that need Internet
--- ...req_matches_use-Test-Kwalitee-Extra-subte.patch | 29 ++++++++++++++++++++++ perl-XML-LibXML.spec | 3 +++ 2 files changed, 32 insertions(+) create mode 100644 XML-LibXML-2.0126-Disable-prereq_matches_use-Test-Kwalitee-Extra-subte.patch diff --git a/XML-LibXML-2.0126-Disable-prereq_matches_use-Test-Kwalitee-Extra-subte.patch b/XML-LibXML-2.0126-Disable-prereq_matches_use-Test-Kwalitee-Extra-subte.patch new file mode 100644 index 0000000..d421cfc --- /dev/null +++ b/XML-LibXML-2.0126-Disable-prereq_matches_use-Test-Kwalitee-Extra-subte.patch @@ -0,0 +1,29 @@ +From 28d50e7cbbe1953da4a26bb213805ab9e1762de9 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com> +Date: Mon, 4 Jul 2016 15:43:30 +0200 +Subject: [PATCH] Disable prereq_matches_use Test::Kwalitee::Extra subtest +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The prereq_matches_use subtest requires network access to +<https://metacpan.org/>. + +Signed-off-by: Petr Písař <ppi...@redhat.com> +--- + t/release-kwalitee.t | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/t/release-kwalitee.t b/t/release-kwalitee.t +index 47b8d6e..06ea857 100644 +--- a/t/release-kwalitee.t ++++ b/t/release-kwalitee.t +@@ -7,4 +7,4 @@ use Test::More; # needed to provide plan. + eval { require Test::Kwalitee::Extra }; + plan skip_all => "Test::Kwalitee::Extra required for testing kwalitee: $@" if $@; + +-eval "use Test::Kwalitee::Extra"; ++eval "use Test::Kwalitee::Extra qw(!prereq_matches_use)"; +-- +2.5.5 + diff --git a/perl-XML-LibXML.spec b/perl-XML-LibXML.spec index 99bf359..74ad3d9 100644 --- a/perl-XML-LibXML.spec +++ b/perl-XML-LibXML.spec @@ -15,6 +15,8 @@ Group: Development/Libraries License: (GPL+ or Artistic) and MIT URL: http://search.cpan.org/dist/XML-LibXML/ Source0: http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/XML-LibXML-%{version}.tar.gz +# Disable Test::Kwalitee::Extra subtests that need Internet, CPAN RT#115859 +Patch0: XML-LibXML-2.0126-Disable-prereq_matches_use-Test-Kwalitee-Extra-subte.patch BuildRequires: coreutils BuildRequires: findutils BuildRequires: glibc-common @@ -94,6 +96,7 @@ validating XML parser and the high performance DOM implementation. %prep %setup -q -n XML-LibXML-%{version} +%patch0 -p1 chmod -x *.c for i in Changes; do /usr/bin/iconv -f iso8859-1 -t utf-8 $i > $i.conv && /bin/mv -f $i.conv $i -- cgit v0.12 http://pkgs.fedoraproject.org/cgit/perl-XML-LibXML.git/commit/?h=master&id=a799fc660b579bf0931b0e4a9c31253035fb35b6 -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@lists.fedoraproject.org https://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org