[packages/afflib] - fuse, python, s3, system_lzma, qemu bconds - BR: libmd-devel, readline-devel, rpmbuild(macros) >=

adamg adamg at pld-linux.org
Thu Nov 15 07:37:40 CET 2018


commit 6779d2db4ba38de2df1f9427b95bc9e7627cd9fc
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Thu Nov 15 07:29:25 2018 +0100

    - fuse, python, s3, system_lzma, qemu bconds
    - BR: libmd-devel, readline-devel, rpmbuild(macros) >= 1.527
    - fuse bcond BR: libfuse3-devel

 afflib.spec | 36 +++++++++++++++++++++++++++++-------
 1 file changed, 29 insertions(+), 7 deletions(-)
---
diff --git a/afflib.spec b/afflib.spec
index 02c3f47..a9eeb0b 100644
--- a/afflib.spec
+++ b/afflib.spec
@@ -1,7 +1,13 @@
 # TODO:
-# - python, amazon s3, lzma, fuse, qemu bconds
 # - build against system lzma if possible
 #
+# Conditional build:
+%bcond_without	fuse		# without FUSE support
+%bcond_without	python		# without Python support
+%bcond_without	system_lzma	# disable building against system lzma, prefer local copy
+%bcond_without	s3		# without Amazon S3
+%bcond_without	qemu		# without QEMU support
+#
 Summary:	Library to support the Advanced Forensic Format
 Name:		afflib
 Version:	3.7.16
@@ -14,15 +20,25 @@ Patch0:		Sanity-check-size-passed-to-malloc.patch
 URL:		https://github.com/sshock/AFFLIBv3
 BuildRequires:	autoconf
 BuildRequires:	automake
+%if %{with s3}
 BuildRequires:	curl-devel
 BuildRequires:	expat-devel
+%endif
 BuildRequires:	intltool
+%if %{with fuse}
+BuildRequires:	libfuse3-devel
+%endif
+BuildRequires:	libmd-devel
 BuildRequires:	libstdc++-devel
 BuildRequires:	libtool
+%if %{with system_lzma}
 BuildRequires:	lzma-devel
+%endif
 BuildRequires:	ncurses-devel
 BuildRequires:	openssl-devel
 BuildRequires:	python-devel
+BuildRequires:	readline-devel
+BuildRequires:	rpmbuild(macros) >= 1.527
 BuildRequires:	zlib-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -52,11 +68,13 @@ developing applications that use %{name}.
 %setup -q -n AFFLIBv3-%{version}
 %patch0 -p1
 
-# prevent internal lzma to be built - testing
-#rm -rf lzma443
-
-#fix spurious permissions with lzma443
-find lzma443 -type f -exec chmod 0644 {} ';'
+%if %{with system_lzma}
+	# prevent internal lzma to be built - testing
+	#rm -rf lzma443
+%else
+	#fix spurious permissions with lzma443
+	find lzma443 -type f -exec chmod 0644 {} ';'
+%endif
 
 %build
 %{__libtoolize}
@@ -64,7 +82,11 @@ find lzma443 -type f -exec chmod 0644 {} ';'
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+	%{__enable_disable fuse} \
+	%{__enable_disable python} \
+	%{__enable_disable s3} \
+	%{__enable_disable qemu}
 
 %{__make}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/afflib.git/commitdiff/4742426706c64ac8ad9511d6d56373dab8104a34



More information about the pld-cvs-commit mailing list