[packages/perl-Sereal-Encoder] - updated to 5.004, use system csnappy and miniz

qboosh qboosh at pld-linux.org
Thu Jul 4 18:49:30 CEST 2024


commit f223547f07c438c24acc4a93ff15b5e08b2de545
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Jul 4 18:26:28 2024 +0200

    - updated to 5.004, use system csnappy and miniz

 Sereal-Encoder-miniz.patch | 10 ++++++++++
 perl-Sereal-Encoder.spec   | 20 ++++++++++++++++----
 2 files changed, 26 insertions(+), 4 deletions(-)
---
diff --git a/perl-Sereal-Encoder.spec b/perl-Sereal-Encoder.spec
index 7234cd4..698ebb3 100644
--- a/perl-Sereal-Encoder.spec
+++ b/perl-Sereal-Encoder.spec
@@ -8,14 +8,18 @@
 Summary:	Sereal::Encoder - Fast, compact, powerful binary serialization
 Summary(pl.UTF-8):	Sereal::Encoder - szybka, zwarta, potężna serializacja binarna
 Name:		perl-Sereal-Encoder
-Version:	4.025
-Release:	3
+Version:	5.004
+Release:	1
 # same as perl
 License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
 Source0:	https://www.cpan.org/modules/by-authors/id/Y/YV/YVES/Sereal-Encoder-%{version}.tar.gz
-# Source0-md5:	feaedc77816634c6d6681c0b971eceb9
+# Source0-md5:	893cb6672cee5505b897f3361487c158
+Patch0:		Sereal-Encoder-miniz.patch
 URL:		https://metacpan.org/release/Sereal-Encoder
+BuildRequires:	csnappy-devel
+BuildRequires:	miniz-devel
+BuildRequires:	perl-Devel-CheckLib >= 1.16
 BuildRequires:	perl-ExtUtils-MakeMaker >= 7.0
 BuildRequires:	perl-ExtUtils-ParseXS >= 2.21
 BuildRequires:	perl-devel >= 1:5.8.0
@@ -24,7 +28,7 @@ BuildRequires:	rpmbuild(macros) >= 1.745
 BuildRequires:	zstd-devel
 %if %{with tests}
 BuildRequires:	perl-Scalar-List-Utils
-BuildRequires:	perl-Sereal-Decoder >= 4.002
+BuildRequires:	perl-Sereal-Decoder >= %{version}
 BuildRequires:	perl-Test-Deep
 BuildRequires:	perl-Test-Differences
 BuildRequires:	perl-Test-LongString
@@ -63,8 +67,16 @@ repozytorium github <https://github.com/Sereal/Sereal>.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
 
 %build
+%ifarch %{ix86} %{x8664} x32
+export USE_UNALIGNED=yes
+%else
+export USE_UNALIGNED=no
+%endif
+export NO_ASM=no
+
 %{__perl} Makefile.PL \
 	INSTALLDIRS=vendor
 %{__make} -j1 \
diff --git a/Sereal-Encoder-miniz.patch b/Sereal-Encoder-miniz.patch
new file mode 100644
index 0000000..da5bc86
--- /dev/null
+++ b/Sereal-Encoder-miniz.patch
@@ -0,0 +1,10 @@
+--- Sereal-Decoder-5.004/inc/Sereal/BuildTools.pm.orig	2023-04-18 15:53:15.000000000 +0200
++++ Sereal-Decoder-5.004/inc/Sereal/BuildTools.pm	2024-07-04 17:06:40.086357183 +0200
+@@ -108,6 +108,7 @@ sub check_external_libraries {
+            !$ENV{SEREAL_USE_BUNDLED_LIBS}
+         && !$ENV{SEREAL_USE_BUNDLED_MINIZ}
+         && Devel::CheckLib::check_lib(
++            incpath => '/usr/include/miniz',
+             lib    => 'miniz',
+             header => 'miniz.h'
+         ) )
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Sereal-Encoder.git/commitdiff/f223547f07c438c24acc4a93ff15b5e08b2de545



More information about the pld-cvs-commit mailing list