8
0

3 Commits

5 changed files with 4 additions and 38 deletions

View File

@@ -1,12 +0,0 @@
## Build Results
Current state of perl in openSUSE:Factory is
![Factory build results](https://br.opensuse.org/status/openSUSE:Factory/perl-Bit-Vector/standard)
The current state of perl in the devel project build (devel:languages:perl)
![Devel project build results](https://br.opensuse.org/status/devel:languages:perl/perl-Bit-Vector)

View File

@@ -5,8 +5,7 @@
# - source1
# - source2
patches:
Bit-Vector-7.1.diff:
perl-Bit-Vector-gcc15.patch: build with gcc15, sent to STBEY@cpan.org
Bit-Vector-7.1.diff:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-

View File

@@ -1,13 +0,0 @@
Index: ToolBox.h
===================================================================
--- ToolBox.h.orig
+++ ToolBox.h
@@ -85,7 +85,7 @@ typedef Z_longword *Z_longwordp
#undef TRUE
#define TRUE (0==0)
-#ifdef __cplusplus
+#if defined(__cplusplus) || (__STDC_VERSION__ >= 202311L)
typedef bool boolean;
#else
#ifdef MACOS_TRADITIONAL

View File

@@ -1,10 +1,3 @@
-------------------------------------------------------------------
Tue Apr 15 13:31:05 UTC 2025 - pgajdos@suse.com
- added patches [bsc#1241940]:
fix build with gcc15, sent to STBEY@cpan.org
* perl-Bit-Vector-gcc15.patch
-------------------------------------------------------------------
Thu Feb 6 22:16:07 UTC 2025 - Tina Müller <tina.mueller@suse.com>

View File

@@ -28,10 +28,7 @@ Summary: Bit::Vector Perl module
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/S/ST/STBEY/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
Patch0: Bit-Vector-7.1.diff
# build with gcc15, sent to STBEY@cpan.org
Patch1: perl-Bit-Vector-gcc15.patch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Carp::Clan) >= 5.300
@@ -47,7 +44,9 @@ Provides: perl(Bit::Vector::String) = %{version}
%description
%prep
%autosetup -p0 -n %{cpan_name}-%{cpan_version}
%autosetup -n %{cpan_name}-%{cpan_version} -N
%patch -P0
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"