Minor conditional tweaks for ELN

Signed-off-by: Troy Dawson <tdawson@redhat.com>
This commit is contained in:
Troy Dawson 2020-10-21 16:03:26 +00:00
parent 7daeac56f7
commit c14e17f843

View File

@ -173,7 +173,7 @@ export CXXFLAGS="$CFLAGS -std=c++11"
pushd unix/xserver
%if 0%{?fedora} > 32
%if 0%{?fedora} > 32 || 0%{?rhel} >= 9
sed -i 's@TIGERVNC_BUILDDIR=${TIGERVNC_SRCDIR}@TIGERVNC_BUILDDIR=${TIGERVNC_SRCDIR}/%{_target_platform}@g' hw/vnc/Makefile.am
%endif
@ -199,7 +199,7 @@ make %{?_smp_mflags}
popd
# Build icons
%if 0%{?fedora} > 32
%if 0%{?fedora} > 32 || 0%{?rhel} >= 9
pushd %{_target_platform}/media
%else
pushd media
@ -238,7 +238,7 @@ install -m644 tigervnc_$s.png %{buildroot}%{_datadir}/icons/hicolor/${s}x$s/apps
done
popd
%if 0%{?fedora} > 33
%if 0%{?fedora} > 33 || 0%{?rhel} >= 9
# Install a replacement for /usr/bin/vncserver which will tell the user to read the
# HOWTO.md file
cat <<EOF > %{buildroot}/%{_bindir}/vncserver