--- /dev/null
+--- libp11-0.4.12/configure.ac.orig 2022-07-15 21:56:04.000000000 +0200
++++ libp11-0.4.12/configure.ac 2023-05-29 19:58:08.260502411 +0200
+@@ -33,7 +33,7 @@ AC_C_BIGENDIAN
+ # issues with applications linking to new openssl, old libp11, and vice versa
+ case "`$PKG_CONFIG --modversion --silence-errors libcrypto || \
+ $PKG_CONFIG --modversion openssl`" in
+- 3.0.*) # Predicted engines directory prefix for OpenSSL 3.x
++ 3.*.*) # Predicted engines directory prefix for OpenSSL 3.x
+ LIBP11_LT_OLDEST="3"
+ debian_ssl_prefix="openssl-3.0.0";;
+ 1.1.*) # Predicted engines directory prefix for OpenSSL 1.1.x
Summary: Layer on top of PKCS#11 API to make using PKCS#11 implementations easier
Summary(pl.UTF-8): Warstwa powyżej API PKCS#11 ułatwiająca używanie implementacji PKCS#11
Name: libp11
-Version: 0.4.11
-Release: 2
+Version: 0.4.12
+Release: 1
License: LGPL v2.1+
Group: Libraries
#Source0Download: https://github.com/OpenSC/libp11/releases
Source0: https://github.com/OpenSC/libp11/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 8b907abd572b0eb8e63413549f68dbe1
+# Source0-md5: 2ec3c29523cc06ec60166b320c489c63
+Patch0: %{name}-openssl3.patch
URL: https://github.com/OpenSC/libp11
BuildRequires: doxygen
BuildRequires: openssl-devel >= 3.0.0
%prep
%setup -q
+%patch0 -p1
%build
%configure \