aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2023-02-23 14:29:38 +0100
committerMihai Moldovan <ionic@ionic.de>2023-02-23 14:29:38 +0100
commitb536e9f91f6c9cc851610943cd8e87dbf1f5f80c (patch)
tree4987cfa1d9ad691752d1baea9f9ea968d949d9f2
parentec4f09addbe4c65362dd6f542ad171bde14ce890 (diff)
downloadnx-libs-b536e9f91f6c9cc851610943cd8e87dbf1f5f80c.tar.gz
nx-libs-b536e9f91f6c9cc851610943cd8e87dbf1f5f80c.tar.bz2
nx-libs-b536e9f91f6c9cc851610943cd8e87dbf1f5f80c.zip
nx-libs.spec: fix TIRPC usage on *SuSE 15.3+.
-rw-r--r--nx-libs.spec4
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-libs.spec b/nx-libs.spec
index 86099de51..086602ee9 100644
--- a/nx-libs.spec
+++ b/nx-libs.spec
@@ -130,7 +130,7 @@ BuildRequires: xorg-x11-proto-devel
BuildRequires: zlib-devel
# RPC headers. Fedora 28+ and OpenSuSE Tumbleweed phased them out of glibc, like upstream did.
-%if 0%{?fedora} > 27 || 0%{?suse_version} > 1500
+%if 0%{?fedora} > 27 || ( 0%{?suse_version} && ( 0%{?suse_version} > 1500 || 0%{?sle_version} > 150200 ) )
BuildRequires: libtirpc-devel
%endif
@@ -439,7 +439,7 @@ LOCAL_LDFLAGS="%{__global_ldflags}"
CDEBUGFLAGS="%{?__global_cppflags} %{?__global_cflags} %{?optflags}"
IMAKE_DEFINES=''
FORCE_TIRPC='NO'
-%if 0%{?fedora} > 27 || 0%{?suse_version} > 1500
+%if 0%{?fedora} > 27 || ( 0%{?suse_version} && ( 0%{?suse_version} > 1500 || 0%{?sle_version} > 150200 ) )
FORCE_TIRPC='YES'
%endif
IMAKE_DEFINES="-DUseTIRPC=${FORCE_TIRPC}"