Compare commits

..

No commits in common. "c8" and "c9-beta" have entirely different histories.
c8 ... c9-beta

4 changed files with 121 additions and 14 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/YAML-LibYAML-0.70.tar.gz
SOURCES/YAML-LibYAML-0.82.tar.gz

View File

@ -1 +1 @@
6b3211de4382b43a06a6941ec8321c2fbefa03bf SOURCES/YAML-LibYAML-0.70.tar.gz
92ba858a2594e7e18472cc03e91b12dc921810a9 SOURCES/YAML-LibYAML-0.82.tar.gz

View File

@ -0,0 +1,12 @@
diff -up YAML-LibYAML-0.79/LibYAML/Makefile.PL.orig YAML-LibYAML-0.79/LibYAML/Makefile.PL
--- YAML-LibYAML-0.79/LibYAML/Makefile.PL.orig 2019-06-11 21:35:34.000000000 +0200
+++ YAML-LibYAML-0.79/LibYAML/Makefile.PL 2019-06-12 08:53:09.437296055 +0200
@@ -25,7 +25,7 @@ WriteMakefile(
# CCFLAGS => '-pedantic -Wall',
# CCFLAGS => '-Wall',
DEFINE => $DEFINE,
- LIBS => [''], # e.g., '-lm'
+ LIBS => ['-lyaml'], # e.g., '-lm'
INC => '-I.',
OBJECT => $obj_files,
ABSTRACT_FROM => 'lib/YAML/XS/LibYAML.pm',

View File

@ -7,23 +7,27 @@
Name: perl-YAML-LibYAML
Epoch: 1
Version: 0.70
Release: 1%{?dist}
Version: 0.82
Release: 6%{?dist}
Summary: Perl YAML Serialization using XS and libyaml
License: GPL+ or Artistic
URL: https://metacpan.org/release/YAML-LibYAML
Source0: https://cpan.metacpan.org/authors/id/T/TI/TINITA/YAML-LibYAML-%{version}.tar.gz
Source0: https://cpan.metacpan.org/modules/by-module/YAML/YAML-LibYAML-%{version}.tar.gz
Patch0: YAML-LibYAML-0.79-Unbundled-libyaml.patch
# Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: gcc
BuildRequires: make
BuildRequires: libyaml >= 0.2.4
BuildRequires: libyaml-devel >= 0.2.4
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: sed
# Module
BuildRequires: perl(B::Deparse)
@ -63,12 +67,7 @@ BuildRequires: perl(Path::Class)
# Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(B::Deparse)
# libyaml is tweaked and bundled
# https://github.com/ingydotnet/yaml-libyaml-pm/issues/49
# version number determined by comparing commits in upstream repo:
# https://bitbucket.org/xi/libyaml/commits/branch/default
Provides: bundled(libyaml) = 0.1.7
Requires: libyaml >= 0.2.4
# Avoid provides for perl shared objects
%{?perl_default_filter}
@ -80,13 +79,22 @@ bound to Python and was later bound to Ruby.
%prep
%setup -q -n YAML-LibYAML-%{version}
# Unbundled libyaml, the source files are the same as in libyaml-0.2.4
# It was determined by comparing commits in upstream repo:
# https://github.com/yaml/libyaml/
%patch0 -p1 -b .orig
for file in api.c dumper.c emitter.c loader.c parser.c reader.c scanner.c \
writer.c yaml.h yaml_private.h; do
rm LibYAML/$file
sed -i -e "/^LibYAML\/$file/d" MANIFEST
done
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1
make %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
make pure_install DESTDIR=%{buildroot}
%{make_install}
find %{buildroot} -type f -name '*.bs' -empty -delete
%{_fixperms} -c %{buildroot}
@ -103,6 +111,93 @@ make test
%{_mandir}/man3/YAML::XS::LibYAML.3*
%changelog
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1:0.82-6
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1:0.82-5
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.82-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.82-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.82-2
- Perl 5.32 rebuild
* Sun May 3 2020 Paul Howarth <paul@city-fan.org> - 1:0.82-1
- Update to 0.82
- Updated libyaml sources to 0.2.4; changes affecting YAML::XS are:
- Output '...' at the stream end after a block scalar with trailing empty
lines
- Accept '%%YAML 1.2' directives (they are ignored and do not change
behaviour though)
* Tue Jan 28 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.81-1
- Update to 0.81
- Breaking Change: Set $YAML::XS::LoadBlessed default to false to make it
more secure
* Thu Aug 22 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.80-1
- Update to 0.80
- Fix memory leak when loading invalid YAML
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.79-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Wed Jun 12 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.79-1
- Update to 0.79
- Support aliasing scalars resolved as null or booleans
- Add YAML::XS::LibYAML::libyaml_version()
- Support standard !!int/!!float tags instead of dying
- Unbundled libyaml, it is identical with upstream 0.2.2
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.78-2
- Perl 5.30 rebuild
* Sun May 19 2019 Paul Howarth <paul@city-fan.org> - 1:0.78-1
- Update to 0.78
- Fix double free/core dump when Dump()ing binary data (GH#91)
- Update config.h from libyaml
- Modernize spec using %%{make_build} and %%{make_install}
* Tue Apr 16 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.77-1
- Update to 0.77
- Update libyaml to version 0.2.2 - Most important change for users is that
plain urls in flow style can be parsed now
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.76-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Jan 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.76-1
- Update to 0.76
- Add $Indent - number of spaces when dumping
- Fix typo and links in docs
* Sat Nov 3 2018 Paul Howarth <paul@city-fan.org> - 1:0.75-1
- Update to 0.75
- Implement $LoadCode
* Mon Sep 3 2018 Paul Howarth <paul@city-fan.org> - 1:0.74-1
- Update to 0.74
- Fix tests on older perls
- Support back to perl 5.8.1
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.72-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Mon Jul 09 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.72-1
- Update to 0.72
- Update to libyaml 0.2.1 - It's forbidden now to escape single
quotes inside double quotes
- When disabling $LoadBlessed, return scalars not refs
- Save anchors also for blessed scalars
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.70-2
- Perl 5.28 rebuild
* Sun Jun 10 2018 Paul Howarth <paul@city-fan.org> - 1:0.70-1
- Update to 0.70
- Fix format specifier/argument mismatch (GH#79)