!10 Fix ewfoutput to compile with openssl-3.x

From: @caodongxia 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2023-02-04 00:53:38 +00:00 committed by Gitee
commit 7293c0702c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,19 @@
diff --git a/ewftools/ewfoutput.c b/ewftools/ewfoutput.c
index 80ae16a..1d2c97f 100644
--- a/ewftools/ewfoutput.c
+++ b/ewftools/ewfoutput.c
@@ -197,9 +197,13 @@ void ewfoutput_version_detailed_fprint(
fprintf(
stream,
" (libcrypto %s)",
+#if defined ( OPENSSL_FULL_VERSION_STR )
+ OPENSSL_FULL_VERSION_STR );
+#else
SHLIB_VERSION_NUMBER );
#endif
#endif
+#endif
#if defined( HAVE_LIBODRAW ) || defined( HAVE_LOCAL_LIBODRAW )
fprintf(

View File

@ -1,10 +1,11 @@
Name: libewf
Version: 20140608
Release: 15
Release: 16
Summary: Library to access the Expert Witness Compression Format (EWF)
License: LGPLv3+
URL: http://sourceforge.net/projects/libewf/
Source0: https://github.com/ArchAssault-Project/libewf/archive/v.20140608.tar.gz
Patch0: libewf-ewfoutput-openssl3.patch
BuildRequires: gcc-c++ fuse-devel libuuid-devel openssl-devel zlib-devel
%description
@ -78,6 +79,9 @@ sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
%{_mandir}/man3/*.gz
%changelog
* Fri Feb 3 2023 caodongxia <caodongxia@h-partners.com> - 20140608-16
- Fix ewfoutput to compile with openssl-3.x
* Mon Oct 26 2020 leiju <leiju4@huawei.com> - 20140608-15
- Remove BuildRequires python2-devel and Requires python2-fuse