[packages/libdecaf] Up to 1.0.5
arekm
arekm at pld-linux.org
Thu Nov 26 08:46:56 CET 2026
commit 1eac8dca7f76904f7e4aa24016ad5ef06e2ba7a0
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 26 01:38:41 2026 +0100
Up to 1.0.5
libdecaf-fix-attribute-deprecated-decl.patch | 20 --------------------
libdecaf-fix-declarations.patch | 11 -----------
libdecaf.spec | 24 ++++++++++++------------
3 files changed, 12 insertions(+), 43 deletions(-)
---
diff --git a/libdecaf.spec b/libdecaf.spec
index 00f0dff..81d7fa0 100644
--- a/libdecaf.spec
+++ b/libdecaf.spec
@@ -1,22 +1,19 @@
#
# Conditional build:
%bcond_without static_libs # static library
+%bcond_without tests # unit tests
#
Summary: Elliptic curve library
Summary(pl.UTF-8): Biblioteka krzywych eliptycznych
Name: libdecaf
-Version: 1.0.2
-Release: 2
+Version: 1.0.5
+Release: 1
License: MIT
Group: Libraries
-#Source0: http://downloads.sourceforge.net/ed448goldilocks/%{name}-%{version}.tgz
-# > 1.0.0 releases are tagged in git, but not published - use debian checkout
-Source0: http://deb.debian.org/debian/pool/main/libd/libdecaf/%{name}_%{version}.orig.tar.gz
-# Source0-md5: 50d59a0d1428e91734b2aa7c1e586980
-Patch0: %{name}-fix-attribute-deprecated-decl.patch
-Patch1: %{name}-fix-declarations.patch
+Source0: https://downloads.sourceforge.net/ed448goldilocks/%{name}-%{version}.tgz
+# Source0-md5: 3f0cc17c2ec79a07af1f950ebfcb3388
URL: http://ed448goldilocks.sourceforge.net/
-BuildRequires: cmake >= 3.0
+BuildRequires: cmake >= 3.22
BuildRequires: doxygen
BuildRequires: libstdc++-devel
BuildRequires: python3 >= 1:3.0
@@ -56,17 +53,20 @@ Statyczna biblioteka decaf.
%prep
%setup -q
-%patch -P0 -p1
-%patch -P1 -p1
%build
install -d build
cd build
%cmake .. \
- %{!?with_static_libs:-DENABLE_STATIC=OFF}
+ %{!?with_static_libs:-DENABLE_STATIC=OFF} \
+ -DENABLE_TESTS=%{?with_tests:ON}%{!?with_tests:OFF}
%{__make} -j1
+%if %{with tests}
+ctest -R decaf
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/libdecaf-fix-attribute-deprecated-decl.patch b/libdecaf-fix-attribute-deprecated-decl.patch
deleted file mode 100644
index 1d9e070..0000000
--- a/libdecaf-fix-attribute-deprecated-decl.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- a/src/per_curve/eddsa.tmpl.h
-+++ b/src/per_curve/eddsa.tmpl.h
-@@ -143,7 +143,7 @@
- uint8_t context_len
- ) __attribute__((nonnull(1,2,3))) DECAF_NOINLINE
- #if DECAF_EDDSA_NON_KEYPAIR_API_IS_DEPRECATED
-- __attribute__((deprecated("Passing the pubkey and privkey separately is unsafe",
-+ __attribute__((deprecated("Passing the pubkey and privkey separately is unsafe, use "
- "decaf_ed$(gf_shortname)_keypair_sign")))
- #endif
- ;
-@@ -171,7 +171,7 @@
- uint8_t context_len
- ) __attribute__((nonnull(1,2,3,4))) DECAF_NOINLINE
- #if DECAF_EDDSA_NON_KEYPAIR_API_IS_DEPRECATED
-- __attribute__((deprecated("Passing the pubkey and privkey separately is unsafe",
-+ __attribute__((deprecated("Passing the pubkey and privkey separately is unsafe, use "
- "decaf_ed$(gf_shortname)_keypair_sign_prehash")))
- #endif
- ;
diff --git a/libdecaf-fix-declarations.patch b/libdecaf-fix-declarations.patch
deleted file mode 100644
index 63d937e..0000000
--- a/libdecaf-fix-declarations.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/src/per_field/f_field.tmpl.h
-+++ b/src/per_field/f_field.tmpl.h
-@@ -67,7 +67,7 @@
- mask_t gf_eq (const gf x, const gf y);
- mask_t gf_lobit (const gf x);
-
--void gf_serialize (uint8_t *serial, const gf x);
-+void gf_serialize (uint8_t serial[SER_BYTES], const gf x);
- mask_t gf_deserialize (gf x, const uint8_t serial[SER_BYTES],uint8_t hi_nmask);
-
-
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libdecaf.git/commitdiff/1eac8dca7f76904f7e4aa24016ad5ef06e2ba7a0
More information about the pld-cvs-commit
mailing list