[packages/tmux] add bcond for systemd integration (enabled by default)

atler atler at pld-linux.org
Fri Jun 10 13:03:15 CEST 2022


commit 73fd702ddac5492e4b762d2f8ee2f7db7e90dc1f
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Jun 10 12:53:02 2022 +0200

    add bcond for systemd integration (enabled by default)

 tmux.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/tmux.spec b/tmux.spec
index 83e1aff..ee6f82b 100644
--- a/tmux.spec
+++ b/tmux.spec
@@ -1,5 +1,9 @@
 # TODO:
 # - vim doesn't detect filetype
+#
+# Conditional build:
+%bcond_without	systemd		# without system integration
+
 Summary:	tmux - a terminal multiplexer
 Summary(hu.UTF-8):	tmux egy terminál-sokszorozó
 Summary(pl.UTF-8):	tmux - multiplekser terminali
@@ -23,6 +27,7 @@ BuildRequires:	libutempter-devel
 BuildRequires:	ncurses-devel >= 5
 BuildRequires:	pkgconfig
 BuildRequires:	rpmbuild(macros) >= 1.673
+%{?with_systemd:BuildRequires:	systemd-devel}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -76,7 +81,8 @@ Ten pakiet dostarcza bashowe dopełnianie składni dla polecenia tmux.
 %build
 # note: on Linux use plain glibc functions instead of utf8proc
 %configure \
-	CPPFLAGS="%{rpmcppflags} -I/usr/include/ncursesw"
+	CPPFLAGS="%{rpmcppflags} -I/usr/include/ncursesw" \
+	%{__enable_disable systemd}
 
 %{__make}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tmux.git/commitdiff/d0a365e490af6fa259e587202f0beead91ae1f75



More information about the pld-cvs-commit mailing list