public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/curl] curl-v8.23.0-3: adapt for https://fedoraproject.org/wiki/Changes/OpensslDeprecateEngine
@ 2026-11-03 12:39 Paul Howarth
  0 siblings, 0 replies; only message in thread
From: Paul Howarth @ 2026-11-03 12:39 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/curl
            Branch : curl-v8.23.0-3
            Commit : 781fa86ead65acd7063f1ae4a061f7d0e0f4f638
            Author : Paul Howarth <paul@city-fan.org>
            Date   : 2024-07-12T08:06:48+01:00
            Stats  : +24/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/curl/c/781fa86ead65acd7063f1ae4a061f7d0e0f4f638?branch=curl-v8.23.0-3

            Log:
            adapt for https://fedoraproject.org/wiki/Changes/OpensslDeprecateEngine

Added build condition for openssl_engine_support, true by default so as to
not change the resulting built package (yet)

- With openssl_engine_support true, BR: openssl-devel-engine
- With openssl_engine_support false, build with -DOPENSSL_NO_ENGINE

---
diff --git a/.gitignore b/.gitignore
index e91a948..cd6f067 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
+/curl-[0-9.]*.tar.lzma
+/curl-[0-9.]*.tar.lzma.asc
 /curl-[0-9.]*.tar.xz
 /curl-[0-9.]*.tar.xz.asc
 /curl-[0-9].[0-9].[0-9]/

diff --git a/curl.spec b/curl.spec
index 8be220b..57d36cb 100644
--- a/curl.spec
+++ b/curl.spec
@@ -1,7 +1,13 @@
+# OpenSSL ENGINE support
+# This is deprecated by OpenSSL since OpenSSL 3.0 and by Fedora since Fedora 41
+# https://fedoraproject.org/wiki/Changes/OpensslDeprecateEngine
+# Change the bcond to 0 to turn off ENGINE support by default
+%bcond openssl_engine_support 1
+
 Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
 Name: curl
 Version: 8.8.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: curl
 Source0: https://curl.se/download/%{name}-%{version}.tar.xz
 Source1: https://curl.se/download/%{name}-%{version}.tar.xz.asc
@@ -49,6 +55,9 @@ BuildRequires: openldap-devel
 BuildRequires: openssh-clients
 BuildRequires: openssh-server
 BuildRequires: openssl-devel
+%if %{with openssl_engine_support}
+BuildRequires:  openssl-devel-engine
+%endif
 BuildRequires: perl-interpreter
 BuildRequires: pkgconfig
 BuildRequires: python-unversioned-command
@@ -125,6 +134,11 @@ BuildRequires: stunnel
 # using an older version of libcurl could result in CURLE_UNKNOWN_OPTION
 Requires: libcurl%{?_isa} >= %{version}-%{release}
 
+# Define OPENSSL_NO_ENGINE to avoid inclusion of <openssl/engine.h>
+%if %{without openssl_engine_support}
+%global _preprocessor_defines %{?_preprocessor_defines} -DOPENSSL_NO_ENGINE
+%endif
+
 # require at least the version of libnghttp2 that we were built against,
 # to ensure that we have the necessary symbols available (#2144277)
 %global libnghttp2_version %(pkg-config --modversion libnghttp2 2>/dev/null || echo 0)
@@ -393,6 +407,13 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
 %{_libdir}/libcurl.so.4.[0-9].[0-9].minimal
 
 %changelog
+* Fri Jul 12 2024 Paul Howarth <paul@city-fan.org> - 8.8.0-2
+- adapt for https://fedoraproject.org/wiki/Changes/OpensslDeprecateEngine
+- added build condition for openssl_engine_support, true by default so as to
+  not change the resulting built package (yet)
+- with openssl_engine_support true, BR: openssl-devel-engine
+- with openssl_engine_support false, build with -DOPENSSL_NO_ENGINE
+
 * Wed May 22 2024 Jan Macku <jamacku@redhat.com> - 8.8.0-1
 - new upstream release
 - drop upstreamed patches

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-03 12:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03 12:39 [rpms/curl] curl-v8.23.0-3: adapt for https://fedoraproject.org/wiki/Changes/OpensslDeprecateEngine Paul Howarth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox