3 Commits

4 changed files with 25 additions and 3 deletions

12
README.md Normal file
View File

@@ -0,0 +1,12 @@
## Build Results
Current state of perl in openSUSE:Factory is
![Factory build results](https://br.opensuse.org/status/openSUSE:Factory/perl-YAML-Syck/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-YAML-Syck)

View File

@@ -22,7 +22,8 @@ summary: Perl YAML loader and dumper
#license: SUSE-NonFree
#skip_noarch: 1
custom_build: |-
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags} -DI_STDLIB -DI_STRING"
# https://github.com/cpan-authors/YAML-Syck/issues/61
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags} -DI_STDLIB -DI_STRING -std=gnu11"
make %{?_smp_mflags}
#custom_test: |-
#startserver && make test

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu May 29 12:36:00 UTC 2025 - pgajdos@suse.com
- -std=gnu11 to build with gcc15
- modified sources
% cpanspec.yml
-------------------------------------------------------------------
Tue Oct 27 03:09:42 UTC 2020 - Tina Müller <timueller+perl@suse.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-YAML-Syck
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +26,7 @@ Group: Development/Libraries/Perl
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
@@ -46,7 +47,8 @@ backward-compatibility with 'YAML.pm'.
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags} -DI_STDLIB -DI_STRING"
# https://github.com/cpan-authors/YAML-Syck/issues/61
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags} -DI_STDLIB -DI_STRING -std=gnu11"
make %{?_smp_mflags}
%check