[packages/beecrypt] Rel 9

arekm arekm at pld-linux.org
Wed May 20 12:12:27 CEST 2026


commit f10de49fa7d2250712a9fd712286920438b94a68
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed May 20 12:11:54 2026 +0200

    Rel 9

 beecrypt-blockmode-endianness.patch | 10 ++++++++++
 beecrypt-python-tp_free.patch       | 22 ++++++++++++++++++++++
 beecrypt.spec                       |  7 ++++++-
 3 files changed, 38 insertions(+), 1 deletion(-)
---
diff --git a/beecrypt.spec b/beecrypt.spec
index 95a5de3..d21bbfd 100644
--- a/beecrypt.spec
+++ b/beecrypt.spec
@@ -11,7 +11,7 @@ Summary:	The BeeCrypt Cryptography Library
 Summary(pl.UTF-8):	Biblioteka kryptograficzna BeeCrypt
 Name:		beecrypt
 Version:	4.2.1
-Release:	8
+Release:	9
 Epoch:		2
 License:	LGPL v2.1+
 Group:		Libraries
@@ -20,6 +20,8 @@ Source0:	http://dl.sourceforge.net/project/beecrypt/beecrypt/%{version}/%{name}-
 Patch0:		%{name}-ac.patch
 Patch1:		%{name}-ac_python.patch
 Patch2:		%{name}-armv8.patch
+Patch3:		%{name}-blockmode-endianness.patch
+Patch4:		%{name}-python-tp_free.patch
 URL:		http://sourceforge.net/projects/beecrypt/
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
@@ -144,6 +146,8 @@ bibliotekę BeeCrytp.
 %patch -P0 -p1
 %patch -P1 -p1
 %patch -P2 -p1
+%patch -P3 -p1
+%patch -P4 -p1
 
 # --with-cplusplus or building (even empty) *.cxx into libbeecrypt
 # makes it (and thus rpm) depending on libstdc++ which is unacceptable
@@ -156,6 +160,7 @@ bibliotekę BeeCrytp.
 %{__autoheader}
 %{__automake}
 %configure \
+	%{?with_python:PYTHON=%{__python}} \
 	--disable-openmp \
 	%{?with_javac:ac_cv_have_gcj=no} \
 	%{!?with_static_libs:--disable-static} \
diff --git a/beecrypt-blockmode-endianness.patch b/beecrypt-blockmode-endianness.patch
new file mode 100644
index 0000000..feed410
--- /dev/null
+++ b/beecrypt-blockmode-endianness.patch
@@ -0,0 +1,10 @@
+--- beecrypt-4.2.1/blockmode.c.orig	2009-07-12 00:00:00.000000000 +0000
++++ beecrypt-4.2.1/blockmode.c	2026-05-20 00:00:00.000000000 +0000
+@@ -30,6 +30,7 @@
+ #endif
+
+ #include "beecrypt/blockmode.h"
++#include "beecrypt/endianness.h"
+
+ int blockEncryptECB(const blockCipher* bc, blockCipherParam* bp, uint32_t* dst, const uint32_t* src, unsigned int nblocks)
+ {
diff --git a/beecrypt-python-tp_free.patch b/beecrypt-python-tp_free.patch
new file mode 100644
index 0000000..31deb85
--- /dev/null
+++ b/beecrypt-python-tp_free.patch
@@ -0,0 +1,22 @@
+--- beecrypt-4.2.1/python/rng-py.c.orig
++++ beecrypt-4.2.1/python/rng-py.c
+@@ -319,7 +319,7 @@
+ 	(initproc) rng_init,		/* tp_init */
+ 	(allocfunc) rng_alloc,		/* tp_alloc */
+ 	(newfunc) rng_new,		/* tp_new */
+-	(destructor) rng_free,		/* tp_free */
++	(freefunc) rng_free,		/* tp_free */
+ 	0,				/* tp_is_gc */
+ #endif
+ };
+--- beecrypt-4.2.1/python/mpw-py.c.orig
++++ beecrypt-4.2.1/python/mpw-py.c
+@@ -2338,7 +2338,7 @@
+ 	0,				/* tp_init */
+ 	0,				/* tp_alloc */
+ 	(newfunc) mpw_new,		/* tp_new */
+-	(destructor) mpw_free,		/* tp_free */
++	(freefunc) mpw_free,		/* tp_free */
+ 	0,				/* tp_is_gc */
+ };
+ /*@=fullinitblock@*/
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/beecrypt.git/commitdiff/f10de49fa7d2250712a9fd712286920438b94a68



More information about the pld-cvs-commit mailing list