[packages/sleuthkit] - aff bcond
adamg
adamg at pld-linux.org
Wed Nov 14 08:57:55 CET 2018
commit afd8a789f6f552e5978f6f7c2c9344d4a6239282
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date: Wed Nov 14 08:57:47 2018 +0100
- aff bcond
sleuthkit.spec | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/sleuthkit.spec b/sleuthkit.spec
index 7d9a66c..f8a9af2 100644
--- a/sleuthkit.spec
+++ b/sleuthkit.spec
@@ -1,10 +1,12 @@
#
# TODO:
-# - devel, java, libs and static subpackages
-# - add afflib bcond (and prepare afflib package :)
+# - devel, libs and static subpackages
# - add libvhdi bcond and support
# - add libvmdk bcond and support
#
+# Conditional build:
+%bcond_without aff # Without Advanced Forensic Format (aff) support
+#
Summary: The Sleuth Kit - an forensic toolkit for analyzing file systems and disks
Summary(pl.UTF-8): The Sleuth Kit - zestaw narzędzi wspomagających analizę systemów plików
Name: sleuthkit
@@ -17,6 +19,7 @@ Source0: https://github.com/sleuthkit/sleuthkit/releases/download/%{name}-%{vers
URL: http://www.sleuthkit.org/sleuthkit/
#BuildRequires: autoconf
#BuildRequires: automake
+%{?with_aff:BuildRequires: afflib-devel}
BuildRequires: libewf-devel
BuildRequires: libstdc++-devel
#BuildRequires: libtool
@@ -84,7 +87,7 @@ sed -i -e 's/-static//' {samples,tests,tools/*tools}/Makefile.in
%build
%configure \
- --without-afflib
+ %{!?with_aff:--without-afflib}
sed -i -e 's/^\(LIBS = -lewf\)/\1 -ldl -lpthread/' {tools/autotools,tsk}/Makefile
%{__make}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/sleuthkit.git/commitdiff/afd8a789f6f552e5978f6f7c2c9344d4a6239282
More information about the pld-cvs-commit
mailing list