|
|
|
@ -1,14 +1,19 @@
|
|
|
|
|
# Perform optinal tests
|
|
|
|
|
%bcond_without perl_Sereal_Decoder_enables_optional_test
|
|
|
|
|
|
|
|
|
|
Name: perl-Sereal-Decoder
|
|
|
|
|
Version: 4.005
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 5.003
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Perl deserialization for Sereal format
|
|
|
|
|
# lib/Sereal/Decoder.pm: GPL+ or Artistic
|
|
|
|
|
# miniz.c: Unlicense (unbundled)
|
|
|
|
|
# snappy: BSD (unbundled)
|
|
|
|
|
# zstd: BSD (unbundled)
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
URL: http://search.cpan.org/dist/Sereal-Decoder/
|
|
|
|
|
Source0: http://www.cpan.org/authors/id/Y/YV/YVES/Sereal-Decoder-%{version}.tar.gz
|
|
|
|
|
## Unbundled:
|
|
|
|
|
# miniz.c: MIT and Unlicense
|
|
|
|
|
# snappy: BSD
|
|
|
|
|
# zstd/decompress/zstd_decompress.c: GPLv2 or BSD
|
|
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
|
|
URL: https://metacpan.org/release/Sereal-Decoder
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/Y/YV/YVES/Sereal-Decoder-%{version}.tar.gz
|
|
|
|
|
# Build
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: csnappy-devel
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
@ -21,14 +26,13 @@ BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
BuildRequires: perl(constant)
|
|
|
|
|
BuildRequires: perl(Devel::CheckLib)
|
|
|
|
|
BuildRequires: perl(Devel::CheckLib) >= 1.16
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.0
|
|
|
|
|
# File::Find not used
|
|
|
|
|
# File::Path not used in inc/Sereal/BuildTools.pm
|
|
|
|
|
# File::Spec not used in inc/Sereal/BuildTools.pm
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
BuildRequires: sed
|
|
|
|
|
# Run-time:
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
@ -53,7 +57,10 @@ BuildRequires: perl(Test::Warn)
|
|
|
|
|
BuildRequires: perl(threads)
|
|
|
|
|
# Time::HiRes not used
|
|
|
|
|
BuildRequires: perl(utf8)
|
|
|
|
|
%if %{with perl_Sereal_Decoder_enables_optional_test}
|
|
|
|
|
# Optional tests:
|
|
|
|
|
BuildRequires: perl(Hash::Util)
|
|
|
|
|
BuildRequires: perl(Test::MemoryGrowth)
|
|
|
|
|
%if !%{defined perl_bootstrap}
|
|
|
|
|
# Some tests require Sereal::Encoder 3.005003, but most of them do not require
|
|
|
|
|
# exact version. Thus do not constrain the version here.
|
|
|
|
@ -62,7 +69,7 @@ BuildRequires: perl(Tie::Array)
|
|
|
|
|
BuildRequires: perl(Tie::Hash)
|
|
|
|
|
BuildRequires: perl(Tie::Scalar)
|
|
|
|
|
%endif
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This library implements a deserializer for an efficient, compact-output,
|
|
|
|
@ -72,38 +79,200 @@ and feature-rich binary protocol called Sereal.
|
|
|
|
|
%setup -q -n Sereal-Decoder-%{version}
|
|
|
|
|
# Remove bundled Perl modules
|
|
|
|
|
rm -r ./inc/Devel
|
|
|
|
|
sed -i -e '/^inc\/Devel\//d' MANIFEST
|
|
|
|
|
perl -i -ne 'print $_ unless m{^inc/Devel/}' MANIFEST
|
|
|
|
|
# Remove bundled csnappy
|
|
|
|
|
rm -r ./snappy
|
|
|
|
|
sed -i -e '/^snappy\//d' MANIFEST
|
|
|
|
|
perl -i -ne 'print $_ unless m{^snappy/}' MANIFEST
|
|
|
|
|
# Remove bundled miniz
|
|
|
|
|
rm miniz.*
|
|
|
|
|
sed -i -e '/^miniz\./d' MANIFEST
|
|
|
|
|
perl -i -ne 'print $_ unless m{^miniz\.}' MANIFEST
|
|
|
|
|
# Remove bundled zstd
|
|
|
|
|
rm -r zstd
|
|
|
|
|
sed -i -e '/^zstd\//d' MANIFEST
|
|
|
|
|
perl -i -ne 'print $_ unless m{^zstd/}' MANIFEST
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
unset DEBUG SEREAL_USE_BUNDLED_LIBS SEREAL_USE_BUNDLED_CSNAPPY \
|
|
|
|
|
SEREAL_USE_BUNDLED_MINIZ SEREAL_USE_BUNDLED_ZSTD
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="%{optflags}"
|
|
|
|
|
%{make_build}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
%{make_install}
|
|
|
|
|
find %{buildroot} -type f -name '*.bs' -empty -delete
|
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc Changes
|
|
|
|
|
%{perl_vendorarch}/auto/*
|
|
|
|
|
%{perl_vendorarch}/Sereal*
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
%{perl_vendorarch}/auto/Sereal/
|
|
|
|
|
%{perl_vendorarch}/Sereal/
|
|
|
|
|
%{_mandir}/man3/Sereal::Decoder.3*
|
|
|
|
|
%{_mandir}/man3/Sereal::Performance.3*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Feb 8 2023 Paul Howarth <paul@city-fan.org> - 5.003-1
|
|
|
|
|
- Update to 5.003 (rhbz#2168015)
|
|
|
|
|
- Update Miniz to 3.0.2, Zstd to 1.5.2 and Devel::CheckLib to 1.16
|
|
|
|
|
(note: in this package we use the system versions of these)
|
|
|
|
|
- Assorted build fixes related to these updates
|
|
|
|
|
- OpenBSD build fixes
|
|
|
|
|
|
|
|
|
|
* Wed Feb 1 2023 Paul Howarth <paul@city-fan.org> - 5.002-1
|
|
|
|
|
- Update to 5.002 (rhbz#2166280)
|
|
|
|
|
- Test compatibility fixes with version 3 and earlier
|
|
|
|
|
- Test compatibility fixes when no perl is already installed
|
|
|
|
|
- Add t/195_backcompat.t to check if the latest decoder will seamlessly
|
|
|
|
|
handle reading output from older versions
|
|
|
|
|
- Ensure that Encoder depends on the correct version of the Decoder
|
|
|
|
|
- Fix up Decoder tests to run on perl 5.8, which has no defined-or
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.001-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Nov 01 2022 Petr Pisar <ppisar@redhat.com> - 5.001-3
|
|
|
|
|
- Finish bootstrapping against miniz-3.0.0 (bug #2137798)
|
|
|
|
|
|
|
|
|
|
* Tue Nov 01 2022 Petr Pisar <ppisar@redhat.com> - 5.001-2
|
|
|
|
|
- Rebuild against miniz-3.0.0 (bug #2137798)
|
|
|
|
|
|
|
|
|
|
* Sun Sep 4 2022 Paul Howarth <paul@city-fan.org> - 5.001-1
|
|
|
|
|
- Update to 5.001
|
|
|
|
|
- First official release of protocol 5
|
|
|
|
|
- Better support for non-standard NV types
|
|
|
|
|
- Support for the new Perl 5.36 bools
|
|
|
|
|
- Use SPDX-format license tag
|
|
|
|
|
|
|
|
|
|
* Thu Jul 28 2022 Paul Howarth <paul@city-fan.org> - 4.025-1
|
|
|
|
|
- Update to 4.025
|
|
|
|
|
- Changes to the FREEZE/THAW mechanism
|
|
|
|
|
- Remove the part that says that FREEZE cannot return a list; it can, and
|
|
|
|
|
we have supported it for a very long time, although I have not checked
|
|
|
|
|
how far back this support goes
|
|
|
|
|
- If you use the FREEZE/THAW API's you should upgrade to this version
|
|
|
|
|
- Test fixes for t/020_sort_keys.t hanging on some perls that do not come
|
|
|
|
|
bundled with Hash::Util
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.023-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 4.023-3
|
|
|
|
|
- Perl 5.36 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 4.023-2
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Feb 20 2022 Paul Howarth <paul@city-fan.org> - 4.023-1
|
|
|
|
|
- Update to 4.023
|
|
|
|
|
- Make it possible to upgrade with passing tests when using
|
|
|
|
|
Sereal::Decoder 4.015-4.019 on threaded debugging perls
|
|
|
|
|
|
|
|
|
|
* Sat Feb 19 2022 Paul Howarth <paul@city-fan.org> - 4.022-1
|
|
|
|
|
- Update to 4.022
|
|
|
|
|
- Better logic to make it possible to upgrade with passing tests when using
|
|
|
|
|
Sereal::Decoder 4.019 on threaded debugging perls
|
|
|
|
|
|
|
|
|
|
* Fri Feb 18 2022 Paul Howarth <paul@city-fan.org> - 4.021-1
|
|
|
|
|
- Update to 4.021
|
|
|
|
|
- Make it possible to upgrade with passing tests when using
|
|
|
|
|
Sereal::Decoder 4.019 on threaded debugging perls
|
|
|
|
|
|
|
|
|
|
* Thu Feb 17 2022 Paul Howarth <paul@city-fan.org> - 4.020-1
|
|
|
|
|
- Update to 4.020
|
|
|
|
|
- Fix "panic: free from wrong pool" errors on threaded builds
|
|
|
|
|
|
|
|
|
|
* Mon Feb 7 2022 Paul Howarth <paul@city-fan.org> - 4.019-1
|
|
|
|
|
- Update to 4.019
|
|
|
|
|
- Fix build issue with latest perl
|
|
|
|
|
- Update bundled zstd to 1.5.1 (note: this package uses system zstd)
|
|
|
|
|
- Fix permissions verbosely
|
|
|
|
|
- Make %%files list more explicit
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.018-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.018-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 4.018-4
|
|
|
|
|
- Perl 5.34 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 4.018-3
|
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.018-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Aug 04 2020 Petr Pisar <ppisar@redhat.com> - 4.018-1
|
|
|
|
|
- 4.018 bump
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.017-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 10 2020 Petr Pisar <ppisar@redhat.com> - 4.017-1
|
|
|
|
|
- 4.017 bump
|
|
|
|
|
|
|
|
|
|
* Wed Jul 08 2020 Petr Pisar <ppisar@redhat.com> - 4.015-1
|
|
|
|
|
- 4.015 bump
|
|
|
|
|
|
|
|
|
|
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 4.014-3
|
|
|
|
|
- Perl 5.32 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 4.014-2
|
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 15 2020 Petr Pisar <ppisar@redhat.com> - 4.014-1
|
|
|
|
|
- 4.014 bump
|
|
|
|
|
|
|
|
|
|
* Thu Jun 11 2020 Petr Pisar <ppisar@redhat.com> - 4.012-1
|
|
|
|
|
- 4.012 bump
|
|
|
|
|
|
|
|
|
|
* Tue Feb 04 2020 Petr Pisar <ppisar@redhat.com> - 4.011-1
|
|
|
|
|
- 4.011 bump
|
|
|
|
|
|
|
|
|
|
* Mon Feb 03 2020 Petr Pisar <ppisar@redhat.com> - 4.009-1
|
|
|
|
|
- 4.009 bump
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Petr Pisar <ppisar@redhat.com> - 4.008-1
|
|
|
|
|
- 4.008 bump
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.007-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.007-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 4.007-5
|
|
|
|
|
- Perl 5.30 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 4.007-4
|
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
|
|
|
|
|
* Wed May 22 2019 Petr Pisar <ppisar@redhat.com> - 4.007-3
|
|
|
|
|
- Finish a bootstrap cycle when rebuild against miniz-2.1.0
|
|
|
|
|
|
|
|
|
|
* Wed May 22 2019 Petr Pisar <ppisar@redhat.com> - 4.007-2
|
|
|
|
|
- Rebuild against miniz-2.1.0
|
|
|
|
|
|
|
|
|
|
* Wed Apr 10 2019 Petr Pisar <ppisar@redhat.com> - 4.007-1
|
|
|
|
|
- 4.007 bump
|
|
|
|
|
|
|
|
|
|
* Tue Apr 09 2019 Petr Pisar <ppisar@redhat.com> - 4.006-1
|
|
|
|
|
- 4.006 bump
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.005-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.005-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 4.005-4
|
|
|
|
|
- Perl 5.28 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 4.005-3
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.005-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|