diff --git a/libewf-20201230-openssl-3.patch b/libewf-20201230-openssl-3.patch new file mode 100644 index 0000000..b29c28b --- /dev/null +++ b/libewf-20201230-openssl-3.patch @@ -0,0 +1,36 @@ +From 033ea5b4e5f8f1248f74a2ec61fc1be183c6c46b Mon Sep 17 00:00:00 2001 +From: Joachim Metz +Date: Thu, 18 Nov 2021 06:51:25 +0100 +Subject: [PATCH] Changes for building with OpenSSL 3 #164 + +--- + ewftools/ewftools_output.c | 12 +++++++++++- + 1 file changed, 11 insertions(+), 1 deletion(-) + +diff --git a/ewftools/ewftools_output.c b/ewftools/ewftools_output.c +index 07ef5e24..07312055 100644 +--- a/ewftools/ewftools_output.c ++++ b/ewftools/ewftools_output.c +@@ -238,11 +238,21 @@ void ewftools_output_version_detailed_fprint( + LIBHMAC_VERSION_STRING ); + + #if defined( HAVE_LIBCRYPTO ) ++#if defined( SHLIB_VERSION_NUMBER ) + fprintf( + stream, + " (libcrypto %s)", + SHLIB_VERSION_NUMBER ); +-#endif ++ ++#elif defined( OPENSSL_VERSION_MAJOR ) && defined( OPENSSL_VERSION_MINOR ) ++ fprintf( ++ stream, ++ " (libcrypto %d.%d)", ++ OPENSSL_VERSION_MAJOR, ++ OPENSSL_VERSION_MINOR ); ++ ++#endif /* defined( SHLIB_VERSION_NUMBER ) */ ++#endif /* defined( HAVE_LIBCRYPTO ) */ + #endif /* defined( HAVE_LIBHMAC ) || defined( HAVE_LOCAL_LIBHMAC ) */ + + #if defined( HAVE_LIBODRAW ) || defined( HAVE_LOCAL_LIBODRAW ) diff --git a/libewf.spec b/libewf.spec index 4733a06..0e0c044 100644 --- a/libewf.spec +++ b/libewf.spec @@ -1,15 +1,22 @@ Name: libewf -Version: 20140608 +Version: 20201230 Release: 1mamba Summary: A library to access the Expert Witness Compression Format (EWF) Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: https://code.google.com/p/libewf -Source: https://53efc0a7187d0baa489ee347026b8278fe4020f6.googledrive.com/host/0B3fBvzttpiiSMTdoaVExWWNsRjg/libewf-%{version}.tar.gz +URL: https://code.google.com/archive/p/libewf +Source: https://github.com/libyal/libewf/releases/download/%{version}/libewf-experimental-%{version}.tar.gz +Patch0: libewf-20201230-openssl-3.patch License: BSD -BuildRoot: %{_tmppath}/%{name}-%{version}-root +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libbzip2-devel +BuildRequires: libfuse-devel +BuildRequires: libopenssl-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END %description libewf is a library to access the Expert Witness Compression Format (EWF). @@ -21,7 +28,7 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel libewf is a library to access the Expert Witness Compression Format (EWF). -This package contains static libraries and header files need for development. +This package contains static libraries and header files needed for development. %package -n ewf-tools Summary: Tools for the Expert Witness Compression Format (EWF) @@ -31,8 +38,11 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n ewf-tools Tools using Libewf for support of the Expert Witness Compression Format (EWF), it support both the SMART format (EWF-S01) and the EnCase format (EWF-E01). +%debug_package + %prep %setup -q +%patch0 -p1 -b .openssl-3 %build %configure @@ -82,6 +92,9 @@ Tools using Libewf for support of the Expert Witness Compression Format (EWF), i %{_mandir}/man1/ewfverify.1* %changelog +* Sun Dec 26 2021 Silvan Calarco 20201230-1mamba +- update to 20201230 + * Thu Sep 18 2014 Silvan Calarco 20140608-1mamba - update to 20140608