From b82daf4cf94117fe37b965a0cab8009d01dea2c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 14 Nov 2017 14:03:31 +0100 Subject: [PATCH] 4.004 bump --- .gitignore | 1 + perl-Sereal-Encoder.spec | 45 ++++++++++++++++++++++++++++------------ sources | 2 +- 3 files changed, 34 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 01f56d3..6b9cc7d 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /Sereal-Encoder-3.009.tar.gz /Sereal-Encoder-3.014.tar.gz /Sereal-Encoder-3.015.tar.gz +/Sereal-Encoder-4.004.tar.gz diff --git a/perl-Sereal-Encoder.spec b/perl-Sereal-Encoder.spec index 8de9403..67cba73 100644 --- a/perl-Sereal-Encoder.spec +++ b/perl-Sereal-Encoder.spec @@ -1,31 +1,39 @@ +# Run optional tests +%bcond_with perl_Sereal_Encoder_enables_optional_test + Name: perl-Sereal-Encoder -Version: 3.015 -Release: 5%{?dist} +Version: 4.004 +Release: 1%{?dist} Summary: Perl serialization into Serial format # lib/Sereal/Encoder.pm: GPL+ or Artistic # qsort.h: LGPLv2+ (borrowed from glibc) # miniz.c: Unlicense (unbundled) # snappy: BSD (unbundled) +# zstd: BSD (unbundled) # See License: (GPL+ or Artistic) and LGPLv2+ -Group: Development/Libraries URL: http://search.cpan.org/dist/Sereal-Encoder/ Source0: http://www.cpan.org/authors/id/Y/YV/YVES/Sereal-Encoder-%{version}.tar.gz +BuildRequires: coreutils BuildRequires: csnappy-devel +BuildRequires: findutils BuildRequires: gcc +BuildRequires: libzstd-devel +BuildRequires: make BuildRequires: miniz-devel -BuildRequires: perl-interpreter BuildRequires: perl-devel BuildRequires: perl-generators +BuildRequires: perl-interpreter BuildRequires: perl(Config) BuildRequires: perl(constant) BuildRequires: perl(Devel::CheckLib) BuildRequires: perl(ExtUtils::MakeMaker) >= 7.0 -BuildRequires: perl(File::Find) -BuildRequires: perl(File::Path) -BuildRequires: perl(File::Spec) +# 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) @@ -37,12 +45,14 @@ BuildRequires: perl(Cwd) BuildRequires: perl(Data::Dumper) BuildRequires: perl(Devel::Peek) BuildRequires: perl(Encode) +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec) BuildRequires: perl(integer) BuildRequires: perl(lib) BuildRequires: perl(List::Util) BuildRequires: perl(overload) BuildRequires: perl(Scalar::Util) -BuildRequires: perl(Sereal::Decoder) >= 3.00 +BuildRequires: perl(Sereal::Decoder) >= 4.002 BuildRequires: perl(Storable) BuildRequires: perl(Test::LongString) BuildRequires: perl(Test::More) >= 0.88 @@ -55,9 +65,11 @@ BuildRequires: perl(Tie::Scalar) # Time::HiRes not used BuildRequires: perl(utf8) BuildRequires: perl(version) +%if %{with perl_Sereal_Encoder_enables_optional_test} # Optional tests: BuildRequires: perl(Test::Deep) >= 0.110 BuildRequires: perl(Test::Deep::NoTest) +%endif Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description @@ -68,21 +80,25 @@ serializer using a binary protocol called Sereal. %setup -q -n Sereal-Encoder-%{version} # Remove bundled Perl modules rm -r ./inc/Devel -sed -i -s '/^inc\/Devel/d' MANIFEST +sed -i -e '/^inc\/Devel\//d' MANIFEST # Remove bundled csnappy rm -r ./snappy -sed -i -s '/^snappy/d' MANIFEST +sed -i -e '/^snappy\//d' MANIFEST # Remove bundled miniz rm miniz.* -sed -i -s '/^miniz\./d' MANIFEST +sed -i -e '/^miniz\./d' MANIFEST +# Remove bundled zstd +rm -r zstd +sed -i -e '/^zstd\//d' MANIFEST %build -perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +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} %install make pure_install DESTDIR=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -delete find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete %{_fixperms} $RPM_BUILD_ROOT/* @@ -96,6 +112,9 @@ make test %{_mandir}/man3/* %changelog +* Tue Nov 14 2017 Petr Pisar - 4.004-1 +- 4.004 bump + * Thu Aug 03 2017 Fedora Release Engineering - 3.015-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild diff --git a/sources b/sources index 6dfdc84..54bb264 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -78428860e055561e371e3292093c1fc5 Sereal-Encoder-3.015.tar.gz +SHA512 (Sereal-Encoder-4.004.tar.gz) = 5658348128409cec08c01ed216a22edc1c3cbf8a3eab0574378960211fd38a210dc06160c6fc2836a6d53ae4953b14040c579290cbf43de6d3f68bca13e5c7e2