[packages/afflib] - added no-libmd patch (don't try to link libmd, openssl is used anyway); release 2
qboosh
qboosh at pld-linux.org
Mon Apr 26 21:50:57 CEST 2021
commit 64ab5fc640076a22205ba5623b45c8d02b237d7d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Apr 26 21:52:45 2021 +0200
- added no-libmd patch (don't try to link libmd, openssl is used anyway); release 2
afflib-no-libmd.patch | 11 +++++++++++
afflib.spec | 6 +++---
2 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/afflib.spec b/afflib.spec
index e40fc3e..ab46340 100644
--- a/afflib.spec
+++ b/afflib.spec
@@ -14,12 +14,13 @@ Summary: Library to support the Advanced Forensic Format
Summary(pl.UTF-8): Biblioteka do obsługi firmatu plików AFF (Advanced Forensic Format)
Name: afflib
Version: 3.7.19
-Release: 1
+Release: 2
License: BSD with advertising
Group: Libraries
#Source0Download: https://github.com/sshock/AFFLIBv3/releases/
Source0: https://github.com/sshock/AFFLIBv3/archive/v%{version}/AFFLIBv3-%{version}.tar.gz
# Source0-md5: 83b2b89e23090930905547e7e47f9e09
+Patch0: %{name}-no-libmd.patch
Patch1: %{name}-x32-x64.patch
URL: https://github.com/sshock/AFFLIBv3
BuildRequires: autoconf >= 2.50
@@ -32,7 +33,6 @@ BuildRequires: intltool
%if %{with fuse}
BuildRequires: libfuse3-devel
%endif
-BuildRequires: libmd-devel
BuildRequires: libstdc++-devel
BuildRequires: libtool
%if %{with system_lzma}
@@ -73,7 +73,6 @@ Summary: Development files for AFFLIB
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AFFLIB
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: libmd-devel
Requires: openssl-devel
%description devel
@@ -114,6 +113,7 @@ metadanych. Wiązania nie są jeszcze kompletne.
%prep:
%setup -q -n AFFLIBv3-%{version}
+%patch0 -p1
%patch1 -p1
%if %{with system_lzma}
diff --git a/afflib-no-libmd.patch b/afflib-no-libmd.patch
new file mode 100644
index 0000000..56081e1
--- /dev/null
+++ b/afflib-no-libmd.patch
@@ -0,0 +1,11 @@
+--- AFFLIBv3-3.7.19/configure.ac.orig 2021-04-26 21:39:18.218328511 +0200
++++ AFFLIBv3-3.7.19/configure.ac 2021-04-26 21:44:33.326621423 +0200
+@@ -225,8 +225,6 @@
+ AC_CHECK_LIB([crypto],[EVP_get_digestbyname],,
+ AC_MSG_ERROR([OpenSSL developer library 'libssl-dev' or 'openssl-devel' not installed; cannot continue.]))
+
+-AC_CHECK_LIB([md],[MD5]) # if libmd is available, get it
+-
+ AC_CHECK_FUNCS([MD5 SHA1 AES_encrypt RAND_bytes des_read_pw_string EVP_read_pw_string EVP_MD_size])
+ AC_CHECK_FUNCS([PEM_read_bio_RSA_PUBKEY])
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/afflib.git/commitdiff/64ab5fc640076a22205ba5623b45c8d02b237d7d
More information about the pld-cvs-commit
mailing list