From ac47427ea4e008acdbd0fae8cf88a0ec9a387791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sat, 2 Dec 2017 20:57:56 +0100 Subject: [PATCH] RPM: fix tqt3 build on opensuse TW --- redhat/dependencies/tqt3/tqt3-14.0.0.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/redhat/dependencies/tqt3/tqt3-14.0.0.spec b/redhat/dependencies/tqt3/tqt3-14.0.0.spec index b4923bcf2..3902bd64e 100644 --- a/redhat/dependencies/tqt3/tqt3-14.0.0.spec +++ b/redhat/dependencies/tqt3/tqt3-14.0.0.spec @@ -287,6 +287,11 @@ BuildRequires: firebird-devel BuildRequires: %{_lib}fbclient-devel %endif +# NIS support +%if 0%{?suse_version} != 1330 +%define with_nis 1 +%endif + # x86_64 specific stuff %if "%{_lib}" != "lib" %if 0%{?mdkversion} || ( 0%{?mgaversion} && 0%{?mgaversion} <= 2) @@ -1348,7 +1353,7 @@ echo yes | ./configure \ -platform linux-g++ \ %endif \ - -nis \ + %{?with_nis:-nis} %{?!with_nis:-no-nis} \ -no-pch \ -cups \ -stl \