public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/tigervnc] f43: Use _vpath_builddir instead of __cmake_builddir
@ 2026-06-18 11:02 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-06-18 11:02 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/tigervnc
            Branch : f43
            Commit : f8607ba8eecded7e842b61a7915a341eed7b1b5b
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-04-29T14:59:57-04:00
            Stats  : +2/-8 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/tigervnc/c/f8607ba8eecded7e842b61a7915a341eed7b1b5b?branch=f43

            Log:
            Use _vpath_builddir instead of __cmake_builddir

This is compatible back to at least RHEL 9.  (The spec already uses other
features which are incompatible with RHEL 8.)

---
diff --git a/tigervnc.spec b/tigervnc.spec
index ea16e58..740569d 100644
--- a/tigervnc.spec
+++ b/tigervnc.spec
@@ -257,12 +257,6 @@ export CFLAGS="$RPM_OPT_FLAGS -fpic"
 %endif
 export CXXFLAGS="$CFLAGS -std=c++11"
 
-%if 0%{?fedora} >= 35 || 0%{?rhel} >= 10
-%define __cmake_builddir %{_target_platform}
-
-mkdir -p %{__cmake_builddir}
-%endif
-
 %cmake -DCMAKE_INSTALL_UNITDIR=%{_unitdir}
 
 %cmake_build
@@ -285,7 +279,7 @@ autoreconf -fiv
         --disable-devel-docs \
         --disable-selective-werror
 
-make TIGERVNC_BUILDDIR="`pwd`/../../%{__cmake_builddir}" %{?_smp_mflags}
+make TIGERVNC_BUILDDIR="`pwd`/../../%{_vpath_builddir}" %{?_smp_mflags}
 popd
 %endif
 
@@ -301,7 +295,7 @@ rm -f %{buildroot}%{_docdir}/%{name}-%{version}/{README.rst,LICENCE.TXT}
 
 %if %{with xserver}
 pushd unix/xserver/hw/vnc
-%make_install TIGERVNC_BUILDDIR="`pwd`/../../../../%{__cmake_builddir}"
+%make_install TIGERVNC_BUILDDIR="`pwd`/../../../../%{_vpath_builddir}"
 popd
 
 # Install systemd unit file

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-18 11:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-18 11:02 [rpms/tigervnc] f43: Use _vpath_builddir instead of __cmake_builddir Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox