[packages/samba] - bconds for fam, lttng and spotlight

hawk hawk at pld-linux.org
Mon Jan 8 05:11:10 CET 2024


commit a4b168e0e56c6b352a659b97c841343546b8382a
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Mon Jan 8 03:30:05 2024 +0100

    - bconds for fam, lttng and spotlight

 samba.spec | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/samba.spec b/samba.spec
index c2693c9..076f46b 100644
--- a/samba.spec
+++ b/samba.spec
@@ -15,6 +15,9 @@
 %bcond_without	ldap		# LDAP support
 %bcond_without	avahi		# Avahi support
 %bcond_without	dmapi		# DMAPI support
+%bcond_without	fam		# FAM support
+%bcond_without	lttng		# lttng-ust support
+%bcond_without	spotlight	# Spotlight tracker support
 %bcond_without	systemd		# systemd integration
 %bcond_without	winexe		# winexe tool
 %bcond_with	system_heimdal	# Use system Heimdal libraries [since samba 4.4.x build fails with heimdal 1.5.x/7.x]
@@ -88,7 +91,7 @@ BuildRequires:	dbus-devel
 BuildRequires:	docbook-style-xsl-nons
 BuildRequires:	flex
 # just FAM API
-BuildRequires:	gamin-devel
+%{?with_fam:BuildRequires:	gamin-devel}
 BuildRequires:	gettext-tools
 BuildRequires:	glib2-devel >= 2.0
 # new features up to 7.9
@@ -118,7 +121,7 @@ BuildRequires:	libtirpc-devel
 BuildRequires:	libunwind-devel
 BuildRequires:	liburing-devel
 BuildRequires:	libxslt-progs
-BuildRequires:	lttng-ust-devel
+%{?with_lttng:BuildRequires:	lttng-ust-devel}
 BuildRequires:	make >= 1:3.81
 BuildRequires:	ncurses-devel >= 5.2
 BuildRequires:	ncurses-ext-devel >= 5.2
@@ -149,7 +152,7 @@ BuildRequires:	rpmbuild(macros) >= 2.025
 BuildRequires:	sed >= 4.0
 BuildRequires:	subunit-devel
 %{?with_systemd:BuildRequires:	systemd-devel}
-BuildRequires:	tracker-devel >= 2.0
+%{?with_spotlight:BuildRequires:	tracker-devel >= 2.0}
 BuildRequires:	xfsprogs-devel
 BuildRequires:	zlib-devel >= 1.2.3
 %if %{with system_libs}
@@ -631,8 +634,10 @@ CPPFLAGS="${CPPFLAGS:-%rpmcppflags}" \
 	%{?with_ctdb_pcp:--enable-pmda} \
 	--with-automount \
 	--with%{!?with_dmapi:out}-dmapi \
+	--with%{!?with_fam:out}-fam \
 	--with-iconv \
 	--with%{!?with_ldap:out}-ldap \
+	--with%{!?with_lttng:out}-lttng \
 	--with-pam \
 	--with-quotas \
 	--with-regedit \
@@ -651,7 +656,8 @@ CPPFLAGS="${CPPFLAGS:-%rpmcppflags}" \
 	--%{?with_avahi:en}%{!?with_avahi:dis}able-avahi \
 	--enable-cups \
 	%{__enable_disable glusterfs} \
-	--enable-iprint
+	--enable-iprint \
+	%{__enable_disable spotlight}
 
 %{__make} V=1
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/samba.git/commitdiff/a4b168e0e56c6b352a659b97c841343546b8382a



More information about the pld-cvs-commit mailing list