forked from pool/libp11
Accepting request 1091085 from home:dimstar:Factory
- Add support for openSSL 3.1: + Add libp11-openssl-3.1.patch: handle openSSL 3.1 the same as 3.0 + Add libtool BuildRequires and call autoreconf: abobe patch touches the build system. OBS-URL: https://build.opensuse.org/request/show/1091085 OBS-URL: https://build.opensuse.org/package/show/security:chipcard/libp11?expand=0&rev=38
This commit is contained in:
parent
22b132330b
commit
eafc07399a
1
baselibs.conf
Normal file
1
baselibs.conf
Normal file
@ -0,0 +1 @@
|
||||
libp11-3
|
13
libp11-openssl-3.1.patch
Normal file
13
libp11-openssl-3.1.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: libp11-0.4.12/configure.ac
|
||||
===================================================================
|
||||
--- libp11-0.4.12.orig/configure.ac
|
||||
+++ libp11-0.4.12/configure.ac
|
||||
@@ -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.1.*|3.0.*) # 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
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 6 12:24:11 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Add support for openSSL 3.1:
|
||||
+ Add libp11-openssl-3.1.patch: handle openSSL 3.1 the same as 3.0
|
||||
+ Add libtool BuildRequires and call autoreconf: abobe patch
|
||||
touches the build system.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 6 10:41:29 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
|
@ -35,7 +35,9 @@ Source0: https://github.com/OpenSC/libp11/releases/download/%{name}-%{ver
|
||||
Source1: https://github.com/OpenSC/libp11/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz.asc
|
||||
Source2: %{name}.keyring
|
||||
Source3: %{name}-rpmlintrc
|
||||
Patch0: libp11-openssl-3.1.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libtool
|
||||
BuildRequires: p11-kit-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(openssl)
|
||||
@ -103,11 +105,12 @@ thus is "derived from the RSA Security Inc. PKCS #11 Cryptographic
|
||||
Token Interface (Cryptoki)".
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -p1
|
||||
# Since the library name changes based on used openssl, we have to create baselibs.conf dynamically
|
||||
echo %{libname} > %{_sourcedir}/baselibs.conf
|
||||
|
||||
%build
|
||||
autoreconf -fiv
|
||||
%configure \
|
||||
--disable-static \
|
||||
--disable-silent-rules \
|
||||
|
Loading…
Reference in New Issue
Block a user