From 0d91d603d903ded9b11aecef450e59f3c4229cd7 Mon Sep 17 00:00:00 2001 From: xzyang Date: Mon, 20 Dec 2021 10:53:34 +0000 Subject: [PATCH] build: fix sdk suffix for Anolis OS Signed-off-by: yangxiaoxuan@openanolis.org --- dotnet5.0.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dotnet5.0.spec b/dotnet5.0.spec index 91a0802..ceb4626 100644 --- a/dotnet5.0.spec +++ b/dotnet5.0.spec @@ -1,3 +1,5 @@ +%define anolis_os_version %(source /etc/os-release; echo ${VERSION}) +%define anolis_release .0.1 %bcond_with bootstrap # Avoid provides/requires from private libraries @@ -52,11 +54,12 @@ %global runtime_arch arm64 %endif +%global runtime_id anolis.%{anolis_os_version}-%{runtime_arch} %{!?runtime_id:%global runtime_id %(. /etc/os-release ; echo "${ID}.${VERSION_ID%%.*}")-%{runtime_arch}} Name: dotnet5.0 Version: %{sdk_rpm_version} -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} Summary: .NET Runtime and SDK License: MIT and ASL 2.0 and BSD and LGPLv2+ and CC-BY and CC0 and MS-PL and EPL-1.0 and GPL+ and GPLv2 and ISC and OFL and zlib URL: https://github.com/dotnet/ @@ -516,6 +519,9 @@ rm -rf %{buildroot}%{_libdir}/dotnet/packs/NETStandard.Library.Ref/2.1.0 %changelog +* Thu Feb 10 2022 Ma Hailiang - 5.0.211-1.0.1 +- Fix sdk suffix for Anolis OS + * Fri Jan 28 2022 Omair Majid - 5.0.211-1 - Update to .NET SDK 5.0.211 and Runtime 5.0.14 - Resolves: RHBZ#2047767 -- Gitee