epel9
Petr Písař 6 years ago
parent fef12be4d4
commit 572d689b2e

1
.gitignore vendored

@ -9,3 +9,4 @@
/Inline-C-0.77.tar.gz
/Inline-C-0.78.tar.gz
/Inline-C-0.80.tar.gz
/Inline-C-0.81.tar.gz

@ -1,44 +0,0 @@
From 6f8b68c71fb57393cdd0b789dc68ae9c7d0c1d34 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Tue, 30 Apr 2019 15:32:43 +0200
Subject: [PATCH] test: Adjust excpected number of lines in log to
Inline-0.82_001
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This Inline change:
commit 13fd62a675c9de3c1fdb734898a689155647c5b1 (HEAD, origin/config-accum)
Author: Ed J <mohawk2@users.noreply.github.com>
Date: Tue Apr 2 18:37:12 2019 +0100
merge per-language config, not overwrite
available in Inline-0.82_001 changed log file content and Inline-C 09parser.t
test started to fail. This patch adjust the test to pass with old and new Inline.
https://github.com/ingydotnet/inline-c-pm/issues/88
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
t/09parser.t | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/t/09parser.t b/t/09parser.t
index 28b2148..0c94bf9 100644
--- a/t/09parser.t
+++ b/t/09parser.t
@@ -177,7 +177,9 @@ is ($res, $prod, "Returned product");
chomp (my @p = do { local @ARGV = "$TestInlineSetup::DIR/parser_id"; <> });
-is (scalar @p, 21, "Match number of lines in log");
+my $expected_log_lines = 13;
+$expected_log_lines += 8 if $Inline::VERSION < 0.82_001;
+is (scalar @p, $expected_log_lines, "Match number of lines in log");
TODO: {
local $TODO = 'Until pegex is default';
--
2.20.1

@ -1,13 +1,10 @@
Name: perl-Inline-C
Version: 0.80
Release: 2%{?dist}
Version: 0.81
Release: 1%{?dist}
Summary: Write Perl subroutines in C
License: GPL+ or Artistic
URL: https://metacpan.org/release/Inline-C
Source0: https://cpan.metacpan.org/authors/id/T/TI/TINITA/Inline-C-%{version}.tar.gz
# Adjust a test to changes in Inline-C-0.82_001, proposed to upstream,
# <https://github.com/ingydotnet/inline-c-pm/issues/88>
Patch0: Inline-C-0.80-test-Adjust-excpected-number-of-lines-in-log-to-Inli.patch
BuildArch: noarch
# Build
BuildRequires: make
@ -30,7 +27,7 @@ BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Spec) >= 0.8
BuildRequires: perl(FindBin)
BuildRequires: perl(if)
BuildRequires: perl(Inline) >= 0.81
BuildRequires: perl(Inline) >= 0.83
# Inline::Filters and Inline::Struct are optional and introduce circular deps
BuildRequires: perl(Parse::RecDescent) >= 1.967009
BuildRequires: perl(Pegex::Base)
@ -63,7 +60,7 @@ Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
Requires: perl(Fcntl)
Requires: perl(FindBin)
Requires: perl(File::Spec) >= 0.8
Requires: perl(Inline) >= 0.81
Requires: perl(Inline) >= 0.83
Requires: perl(Parse::RecDescent) >= 1.967009
Requires: perl(Time::HiRes)
# Split from Inline in 0.58
@ -78,7 +75,6 @@ each language has its own support module.
%prep
%setup -q -n Inline-C-%{version}
%patch0 -p1
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="%{optflags}"
@ -102,6 +98,9 @@ make test
%{_mandir}/man3/*
%changelog
* Mon May 13 2019 Petr Pisar <ppisar@redhat.com> - 0.81-1
- 0.81 bump
* Tue Apr 30 2019 Petr Pisar <ppisar@redhat.com> - 0.80-2
- Adjust a test to changes in Inline-C-0.82_001

@ -1 +1 @@
SHA512 (Inline-C-0.80.tar.gz) = f68eb9478374ef13a6eb0be6c5adc12ba9c052834ef45db6acc0c794ac295d5b47ffda57dd4d0b15345be96aa21ccaab8bf7e2be0ac0bc4cef73be782a346cf0
SHA512 (Inline-C-0.81.tar.gz) = c3d0d669c26017b4b63cc101377d067438c31fc5d1e6187d01194f70158049e386683b792716aad58772eae839512ecaefd4b3ac7a2377dd1404a651c24b2277

Loading…
Cancel
Save