[packages/rpm-sequoia] - up to 1.7.0, use openssl as crypto backend
baggins
baggins at pld-linux.org
Thu Feb 6 10:15:36 CET 2025
commit 9be7f085b8f5514b591c3aebf5a8803902d611ce
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu Feb 6 10:05:37 2025 +0100
- up to 1.7.0, use openssl as crypto backend
rpm-sequoia.spec | 11 +++++++----
use-openssl.patch | 11 +++++++++++
2 files changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/rpm-sequoia.spec b/rpm-sequoia.spec
index e92945a..1564a03 100644
--- a/rpm-sequoia.spec
+++ b/rpm-sequoia.spec
@@ -1,15 +1,16 @@
-%define crates_ver 1.4.0
+%define crates_ver 1.7.0
Summary: An OpenPGP backend for rpm using Sequoia PGP
Name: rpm-sequoia
-Version: 1.4.0
+Version: 1.7.0
Release: 1
License: GPL v2+
Group: Libraries
Source0: https://github.com/rpm-software-management/rpm-sequoia/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 90e33d96c834e1cf4ac18dcb508d4ecb
+# Source0-md5: b5ce5f97d776828f8859e21fc69ac43d
Source1: %{name}-crates-%{crates_ver}.tar.xz
-# Source1-md5: b9628f13f5f4a7d78a5aea61cad6bbec
+# Source1-md5: 27e624b42f46a07e3a77d0d94b32a2ba
+Patch0: use-openssl.patch
URL: https://github.com/rpm-software-management/rpm-sequoia
BuildRequires: cargo
BuildRequires: clang
@@ -19,6 +20,7 @@ BuildRequires: rpmbuild(macros) >= 2.011
BuildRequires: rust >= 1.60.0
BuildRequires: tar >= 1:1.22
BuildRequires: xz
+Requires: crypto-policies
ExclusiveArch: %{rust_arches}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -38,6 +40,7 @@ Development files for rpm-sequoia library.
%prep
%setup -q -a1
+%patch -P0 -p1
%{__mv} %{name}-%{crates_ver}/* .
sed -i -e 's/@@VERSION@@/%{version}/' Cargo.lock
diff --git a/use-openssl.patch b/use-openssl.patch
new file mode 100644
index 0000000..0e9bcb1
--- /dev/null
+++ b/use-openssl.patch
@@ -0,0 +1,11 @@
+--- rpm-sequoia-1.7.0/Cargo.toml~ 2024-07-09 10:47:06.000000000 +0200
++++ rpm-sequoia-1.7.0/Cargo.toml 2025-02-06 10:02:49.753329864 +0100
+@@ -43,7 +43,7 @@
+
+ # We explicitly do not want to enable Sequoia's decompression support.
+ # Hence we only select a crypto backend.
+-default = ["crypto-nettle"]
++default = ["crypto-openssl"]
+ crypto-nettle = ["sequoia-openpgp/crypto-nettle"]
+ crypto-rust = ["sequoia-openpgp/crypto-rust"]
+ crypto-cng = ["sequoia-openpgp/crypto-cng"]
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-sequoia.git/commitdiff/9be7f085b8f5514b591c3aebf5a8803902d611ce
More information about the pld-cvs-commit
mailing list