From 767a66a3509e10f2e20135b076b42c2bc5766b36 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 23 May 2024 20:49:47 +0700 Subject: [PATCH] revision not detected unless we ignore all spaces --- packaging/rpm/xpra.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/rpm/xpra.spec b/packaging/rpm/xpra.spec index 7ebea5784a..1fc99b6c51 100644 --- a/packaging/rpm/xpra.spec +++ b/packaging/rpm/xpra.spec @@ -59,7 +59,7 @@ Packager: Antoine Martin Vendor: https://xpra.org/ Source: https://xpra.org/src/xpra-%{version}.tar.xz #grab the full revision number from the source archive's src_info.py file: -%define revision_no %(tar -OJxf %{SOURCE0} xpra-%{version}/xpra/src_info.py | grep -e "^REVISION=" | awk -F= '{print ".r"$2}' 2> /dev/null) +%define revision_no %(tar -OJxf %{SOURCE0} xpra-%{version}/xpra/src_info.py | sed 's/ //g' | grep -e "^REVISION=" | awk -F= '{print ".r"$2}' 2> /dev/null) %{!?nvidia_codecs: %define nvidia_codecs %(pkg-config --exists cuda && echo 1)} #Fedora 38+ cannot build the cuda kernels: %if 0%{?fedora}>=38