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

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


commit 1bb5f074eb1e20c5c01d8c838ace8f787939ff7c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Jul 4 18:25:58 2024 +0200

    - updated to 5.004, use system csnappy and miniz

 Sereal-Decoder-miniz.patch | 10 ++++++++++
 perl-Sereal-Decoder.spec   | 21 +++++++++++++++++----
 2 files changed, 27 insertions(+), 4 deletions(-)
---
diff --git a/perl-Sereal-Decoder.spec b/perl-Sereal-Decoder.spec
index 1524f2e..9ce5b9f 100644
--- a/perl-Sereal-Decoder.spec
+++ b/perl-Sereal-Decoder.spec
@@ -7,14 +7,18 @@
 Summary:	Sereal::Decoder - Fast, compact, powerful binary deserialization
 Summary(pl.UTF-8):	Sereal::Decoder - szybka, zwarta, potężna deserializacja binarna
 Name:		perl-Sereal-Decoder
-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-Decoder-%{version}.tar.gz
-# Source0-md5:	c18bb9ddf44d44d47b1baa0aefa344a3
-URL:		https://metacpan.org/release/Sereal-Decoder
+# Source0-md5:	87f2a3bb8e04609670b496a7bf952ff6
+Patch0:		Sereal-Decoder-miniz.patch
+URL:		https://metacpan.org/dist/Sereal-Decoder
+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
@@ -65,8 +69,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 \
@@ -77,6 +89,7 @@ repozytorium github <https://github.com/Sereal/Sereal>.
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 %{__make} pure_install \
 	DESTDIR=$RPM_BUILD_ROOT
 
diff --git a/Sereal-Decoder-miniz.patch b/Sereal-Decoder-miniz.patch
new file mode 100644
index 0000000..da5bc86
--- /dev/null
+++ b/Sereal-Decoder-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-Decoder.git/commitdiff/1bb5f074eb1e20c5c01d8c838ace8f787939ff7c



More information about the pld-cvs-commit mailing list