On 02-11-2024 14:55, Martin Gansser wrote:
this is the content  of cli/get-version.sh

#!/bin/bash
# SPDX-FileCopyrightText: tuberry
# SPDX-License-Identifier: GPL-3.0-or-later

RET=$(curl -sSf https://extensions.gnome.org/extension/"$EGO"/ | grep data-svm | sed 
-e 's/.*: //; s/}}"//') # | xargs -I{} expr {} + 1)
echo "${RET:?'ERROR: Failed to fetch version, build with -Dversion option to 
skip'}"

solved the problem by adding -Dversion to the build section:

%build
%meson \
     -Dtarget=system  \
     -Dversion=47
%meson_build

You might want to use `-Dversion=%{version}` or you'll be bitten when the version in the spec file is bumped.

-- Sandro

--
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to