Skip to content

Commit

Permalink
nx-libs.spec: fix TIRPC usage on *SuSE 15.3+.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ionic committed Feb 23, 2023
1 parent ec4f09a commit b536e9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nx-libs.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit b536e9f

Please sign in to comment.