From ecf1402221b536f29a17fe034b5987eb7322b110 Mon Sep 17 00:00:00 2001 From: Mark Mielke Date: Mon, 27 Jul 2020 23:28:35 -0400 Subject: [PATCH] EL 7 tigervnc.spec updates Add missing build requirements: libpng-devel, zlib-devel Remove obsolete build requirements: libXfont-devel Fix unexpected rpm macro expansion `%{VERSION}` which is supposed to be passed through as literal to `rpm -q --qf`. This hasn't caused problems before, but it was found to cause problems when built from EL 8 when it expanded to "1.10.1". --- contrib/packages/rpm/el7/SPECS/tigervnc.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/contrib/packages/rpm/el7/SPECS/tigervnc.spec b/contrib/packages/rpm/el7/SPECS/tigervnc.spec index 21d5bb5f..fa850a2d 100644 --- a/contrib/packages/rpm/el7/SPECS/tigervnc.spec +++ b/contrib/packages/rpm/el7/SPECS/tigervnc.spec @@ -1,6 +1,6 @@ Name: tigervnc Version: @VERSION@ -Release: 5%{?snap:.%{snap}}%{?dist} +Release: 1%{?snap:.%{snap}}%{?dist} Summary: A TigerVNC remote display system Group: User Interface/Desktops @@ -15,13 +15,15 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libX11-devel, automake, autoconf, libtool, gettext, gettext-autopoint BuildRequires: libXext-devel, xorg-x11-server-source, libXi-devel BuildRequires: xorg-x11-xtrans-devel, xorg-x11-util-macros, libXtst-devel -BuildRequires: libdrm-devel, libXt-devel, pixman-devel libXfont-devel +BuildRequires: libdrm-devel, libXt-devel, pixman-devel BuildRequires: libxkbfile-devel, openssl-devel, libpciaccess-devel BuildRequires: mesa-libGL-devel, libXinerama-devel, ImageMagick BuildRequires: freetype-devel, libXdmcp-devel, libXfont2-devel BuildRequires: libXrandr-devel, fltk-devel >= 1.3.3 BuildRequires: libjpeg-turbo-devel, gnutls-devel, pam-devel BuildRequires: systemd, cmake, selinux-policy-devel +BuildRequires: libpng-devel +BuildRequires: zlib-devel Requires(post): coreutils Requires(postun): coreutils @@ -137,7 +139,7 @@ pushd unix/xserver for all in `find . -type f -perm -001`; do chmod -x "$all" done -xserver_patch="../xserver$(rpm -q --qf '%{VERSION}' xorg-x11-server-source | awk -F. '{ print $1 $2 }').patch" +xserver_patch="../xserver$(rpm -q --qf '%%{VERSION}' xorg-x11-server-source | awk -F. '{ print $1 $2 }').patch" patch -p1 -b --suffix .vnc < "$xserver_patch" popd @@ -297,6 +299,9 @@ fi %{_datadir}/selinux/packages/vncsession.pp %changelog +* Mon Jul 27 2020 Mark Mielke 1.10.1-1 +- Update build requirements and fix unexpected rpm macro expansion. + * Mon Feb 11 2019 Mark Mielke 1.9.80-5 - Automatically detect and apply the correct X.org patch. -- 2.39.5