From 572d12104f31a5e924d5e5b63783c61f4baa694bc98114960bd3488979b1a8ed Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 7 Dec 2024 12:59:50 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Emulators/wine?expand=0&rev=1162 --- get-sources.sh | 5 ++++- wine.spec | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/get-sources.sh b/get-sources.sh index 701c313..42ddf8e 100644 --- a/get-sources.sh +++ b/get-sources.sh @@ -8,12 +8,15 @@ exit 1; fi VERSION="$1" +# for the rc1 releases we translate 10.0-rc1 to 10.0~rc1 , as 10.0~x is < 10.0 +REALVERSION=`echo $1|sed -e's/-/~/';` echo "++++++++++++++++++++++++++++++++++++++++++++++" echo "patching spec file and downloading the tarball" echo "++++++++++++++++++++++++++++++++++++++++++++++" -sed -i -e 's|Version: .*|Version: '${VERSION}'|g' wine.spec +sed -i -e 's|Version: .*|Version: '${REALVERSION}'|g' wine.spec +sed -i -e 's|downloadver .*|downloadver '${VERSION}'|g' wine.spec osc service mr download_files sed -i -e "s|tags/v.*<|tags/v${VERSION}<|g" _service osc service dr diff --git a/wine.spec b/wine.spec index 39cc57a..8196471 100644 --- a/wine.spec +++ b/wine.spec @@ -36,7 +36,7 @@ %define _lto_cflags %{nil} Name: wine%{psuffix} -%define downloadver 10.0-rc1 +%define downloadver 10.0-rc1 Version: 10.0~rc1 Release: 0 Summary: An MS Windows Emulator