|
|
|
@ -6,14 +6,16 @@
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: perl-Sereal-Encoder
|
|
|
|
|
Version: 4.007
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 4.011
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Perl serialization into Sereal format
|
|
|
|
|
# lib/Sereal/Encoder.pm: GPL+ or Artistic
|
|
|
|
|
# qsort.h: LGPLv2+ (borrowed from glibc)
|
|
|
|
|
# miniz.c: Unlicense (unbundled)
|
|
|
|
|
# snappy: BSD (unbundled)
|
|
|
|
|
# zstd: BSD (unbundled)
|
|
|
|
|
## Unbundled
|
|
|
|
|
# miniz.c: MIT and Unlicense
|
|
|
|
|
# snappy: BSD
|
|
|
|
|
# zstd/zstd/decompress/zstd_decompress.c: GPLv2 or BSD
|
|
|
|
|
# zstd/zstd/decompress/huf_decompress.c: BSD
|
|
|
|
|
# See <https://github.com/Sereal/Sereal/issues/72>
|
|
|
|
|
License: (GPL+ or Artistic) and LGPLv2+
|
|
|
|
|
URL: https://metacpan.org/release/Sereal-Encoder
|
|
|
|
@ -37,7 +39,6 @@ BuildRequires: perl(ExtUtils::MakeMaker) >= 7.0
|
|
|
|
|
# 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)
|
|
|
|
@ -51,6 +52,9 @@ BuildRequires: perl(Devel::Peek)
|
|
|
|
|
BuildRequires: perl(Encode)
|
|
|
|
|
BuildRequires: perl(File::Path)
|
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
# Hash::Util is needed on perl >= 5.25. It's in an eval to proceed to
|
|
|
|
|
# num_buckets() definition with older perls.
|
|
|
|
|
BuildRequires: perl(Hash::Util)
|
|
|
|
|
BuildRequires: perl(integer)
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
BuildRequires: perl(List::Util)
|
|
|
|
@ -84,16 +88,16 @@ serializer using a binary protocol called Sereal.
|
|
|
|
|
%setup -q -n Sereal-Encoder-%{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 \
|
|
|
|
@ -116,6 +120,18 @@ make test
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* 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-2
|
|
|
|
|
- Build-require Hash::Util needed for tests
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
* Fri Apr 26 2019 Petr Pisar <ppisar@redhat.com> - 4.007-2
|
|
|
|
|
- Correct a summary (bug #1703269)
|
|
|
|
|
|
|
|
|
|