[packages/libircclient] - fix openssl detection in configure (handle openssl-1.1) - release 2

adamg adamg at pld-linux.org
Tue Sep 25 00:34:31 CEST 2018


commit 932ca9c957cae45092061d589b673c47ff00b0c7
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Tue Sep 25 00:33:10 2018 +0200

    - fix openssl detection in configure (handle openssl-1.1)
    - release 2

 libircclient-openssl-1.1.patch | 11 +++++++++++
 libircclient.spec              |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/libircclient.spec b/libircclient.spec
index 936d625..1bf2684 100644
--- a/libircclient.spec
+++ b/libircclient.spec
@@ -1,7 +1,7 @@
 Summary:	Small but extremely powerful library which implements the IRC protocol
 Name:		libircclient
 Version:	1.6
-Release:	5
+Release:	2
 License:	LGPL
 Group:		Libraries
 Source0:	http://downloads.sourceforge.net/libircclient/%{name}-%{version}.tar.gz
@@ -9,6 +9,7 @@ Source0:	http://downloads.sourceforge.net/libircclient/%{name}-%{version}.tar.gz
 Patch0:		opt.patch
 Patch1:		soname.patch
 Patch2:		install.patch
+Patch3:		%{name}-openssl-1.1.patch
 URL:		http://www.ulduzsoft.com/libircclient/
 BuildRequires:	openssl-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -49,6 +50,7 @@ Statyczna biblioteka %{name}.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__autoconf}
diff --git a/libircclient-openssl-1.1.patch b/libircclient-openssl-1.1.patch
new file mode 100644
index 0000000..6f8c347
--- /dev/null
+++ b/libircclient-openssl-1.1.patch
@@ -0,0 +1,11 @@
+--- libircclient-1.6/configure.in~	2018-09-25 00:24:26.957726909 +0200
++++ libircclient-1.6/configure.in	2018-09-25 00:30:27.513160280 +0200
+@@ -101,7 +101,7 @@
+ 
+ if test "$use_openssl" = "yes"; then
+ 	AC_CHECK_LIB(crypto, [CRYPTO_new_ex_data], [], [AC_MSG_ERROR([OpenSSL not found])])
+-	AC_CHECK_LIB(ssl,    [SSL_library_init], [], [AC_MSG_ERROR([OpenSSL not found])])
++	AC_CHECK_LIB(ssl,    [SSL_CTX_new], [], [AC_MSG_ERROR([OpenSSL not found])])
+ 	AC_CHECK_HEADER([openssl/ssl.h], [], [AC_MSG_ERROR([OpenSSL headers not found; did you install the -dev package?])])
+ 	CFLAGS="$CFLAGS -DENABLE_SSL"
+ fi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libircclient.git/commitdiff/932ca9c957cae45092061d589b673c47ff00b0c7



More information about the pld-cvs-commit mailing list