]> git.pld-linux.org Git - packages/sleuthkit.git/commitdiff
- aff bcond
authorAdam Gołębiowski <adamg@pld-linux.org>
Wed, 14 Nov 2018 07:57:47 +0000 (08:57 +0100)
committerAdam Gołębiowski <adamg@pld-linux.org>
Wed, 14 Nov 2018 07:57:47 +0000 (08:57 +0100)
sleuthkit.spec

index 7d9a66cc37777bd0f194837e89bf59e29150bc33..f8a9af2b25c34fd9792c67fe8817d6cf41906f63 100644 (file)
@@ -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}
This page took 0.097302 seconds and 4 git commands to generate.