From bfaf3371a27fc0349fe85ee7459a2a165d03ba2f Mon Sep 17 00:00:00 2001 From: Bill Melvin Date: Thu, 18 Jul 2024 12:44:53 -0400 Subject: [PATCH] honor cli definition of libwrap and systemd --- tacacs.spec | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/tacacs.spec b/tacacs.spec index 260e6b4..1b6ec13 100644 --- a/tacacs.spec +++ b/tacacs.spec @@ -2,23 +2,31 @@ %global debug_package %{nil} # tcp_wrappers do not exist on stock EL8/EL9 -%define libwrap 0 -%define systemd 0 -%if 0%{?el6} -%define libwrap 1 -%endif -%if 0%{?el7} -%define libwrap 1 -%endif -%if 0%{?el8} -%define systemd 1 -%endif -%if 0%{?el9} -%define systemd 1 +# allow commandline overrides +%if 0%{?libwrap:1} +%else + %define libwrap 0 + %if 0%{?el6} + %define libwrap 1 + %endif + %if 0%{?el7} + %define libwrap 1 + %endif %endif +%if 0%{?systemd:1} +%else + %define systemd 0 + %if 0%{?el8} + %define systemd 1 + %endif + %if 0%{?el9} + %define systemd 1 + %endif +%endif + Summary: TACACS+ Daemon Name: tacacs Group: Networking/Servers