0.51 bump

This commit is contained in:
Petr Písař 2021-08-10 14:44:36 +02:00
parent 5f810c784d
commit a33267e926
4 changed files with 12 additions and 61 deletions

1
.gitignore vendored
View File

@ -16,3 +16,4 @@
/Object-Pad-0.47.tar.gz
/Object-Pad-0.48.tar.gz
/Object-Pad-0.50.tar.gz
/Object-Pad-0.51.tar.gz

View File

@ -1,50 +0,0 @@
From 8336fc91d5d4d10ab7b3345724f0f3a1a190292a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Mon, 9 Aug 2021 16:43:26 +0200
Subject: [PATCH] t/99exported-symbols.t: Obtain header file content from
Object::Pad::ExtensionBuilder_data
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The test did not work on installed files because there is no
object_pad.h file:
$ perl t/99exported-symbols.t
ok 1 - No unexpected symbols found in /usr/lib64/perl5/vendor_perl/auto/Object/Pad/Pad.so
Cannot read include/object_pad.h - No such file or directory at t/99exported-symbols.t line 59.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 2 just after 1.
But content of that file is wrapped into
Object::Pad::ExtensionBuilder_data module. This patch changed the test
to inspect Object::Pad::ExtensionBuilder_data.
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
t/99exported-symbols.t | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/t/99exported-symbols.t b/t/99exported-symbols.t
index 8f0e7fb..c8987bc 100644
--- a/t/99exported-symbols.t
+++ b/t/99exported-symbols.t
@@ -54,13 +54,10 @@ ok( !@unexpected_symbols, "No unexpected symbols found in $sofile" ) or
diag( "Symbols found:\n " . join( "\n ", @unexpected_symbols ) );
# Now compare to the #define'd macros in object_pad.h
+require Object::Pad::ExtensionBuilder_data;
my %macros;
{
- open my $fh, "include/object_pad.h" or
- die "Cannot read include/object_pad.h - $!";
-
- while( <$fh> ) {
- chomp;
+ for( split(/\R/, Object::Pad::ExtensionBuilder_data::OBJECT_PAD_H()) ) {
next unless m/^#define (.*?)\(/;
$macros{$1}++;
--
2.31.1

View File

@ -4,16 +4,13 @@
%bcond_without perl_Object_Pad_enables_optional_test
Name: perl-Object-Pad
Version: 0.50
Version: 0.51
Release: 1%{?dist}
Summary: Simple syntax for lexical slot-based objects
License: GPL+ or Artistic
URL: https://metacpan.org/release/Object-Pad
Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Object-Pad-%{version}.tar.gz
Source1: macros.perl-Object-Pad
# Enable t/99exported-symbols.t test to work against an installed code,
# CPAN RT#138634, proposed to an upstream.
Patch0: Object-Pad-0.50-t-99exported-symbols.t-Obtain-header-file-content-fr.patch
BuildRequires: coreutils
BuildRequires: perl-devel
BuildRequires: perl-generators
@ -44,8 +41,6 @@ BuildRequires: perl(XS::Parse::Keyword) >= 0.10
# version specified in lib/Object/Pad.xs
BuildRequires: perl(XS::Parse::Sublike) >= 0.10
# Tests:
# binutils for nm
BuildRequires: binutils
BuildRequires: perl(attributes)
BuildRequires: perl(base)
BuildRequires: perl(Data::Dump)
@ -72,10 +67,12 @@ Requires: perl(XS::Parse::Keyword) >= 0.10
Requires: %{perl_XS_Parse_Keyword_ABI}
%endif
Requires: perl(XS::Parse::Sublike) >= 0.10
# This module maintains an ABI defined in OBJECTPAD_ABIVERSION macro at
# include/object_pad.h and checked at run time against ClassHookFuncs.ver
# This module maintains multiple ABIs. Plugins pin to an ABI with
# OBJECTPAD_ABIVERSION macro defined in include/object_pad.h.
# The ABI range is checked at run time against ClassHookFuncs.ver
# field by ObjectPad_register_slot_attribute().
Provides: perl(:Object_Pad_ABI) = 0.50
Provides: perl(:Object_Pad_ABI) = 0.51
# Filter private modules
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((ARole|BaseClass)\\)
@ -91,9 +88,9 @@ fields.
Summary: Tests for %{name}
BuildArch: noarch
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
# binutils for nm
Requires: binutils
Requires: %{name}-ExtensionBuilder = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl-Test-Harness
Requires: perl(Object::Pad::ExtensionBuilder)
Requires: perl(strict)
Requires: perl(Test::More) >= 0.88
%if %{with perl_Object_Pad_enables_optional_test} && !%{defined perl_bootstrap}
@ -176,6 +173,9 @@ export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print
%{_libexecdir}/%{name}
%changelog
* Tue Aug 10 2021 Petr Pisar <ppisar@redhat.com> - 0.51-1
- 0.51 bump
* Mon Aug 09 2021 Petr Pisar <ppisar@redhat.com> - 0.50-1
- 0.50 bump

View File

@ -1 +1 @@
SHA512 (Object-Pad-0.50.tar.gz) = fc80659472d53d7e3a49b42ab93bab3d626836bef8a385bb8d387c32d35550361ffde8be316506293bc269d3e480062298ae13bbdf3156f985396c1bf4f2368a
SHA512 (Object-Pad-0.51.tar.gz) = 72a527f1bb085fc8869dd08662066118016e9da6df2233d32f616f206e00e42649353a8e0d06a3607481beccb8748baf3aa5a5b17c3ff44f268ca734e72a3e77