#11 universal runtime_id
Merged 2 years ago by omajid. Opened 2 years ago by tdawson.
rpms/ tdawson/dotnet3.1 master  into  master

file modified
+1 -9
@@ -61,15 +61,7 @@ 

  %global runtime_arch arm64

  %endif

  

- %if 0%{?fedora}

- %global runtime_id fedora.%{fedora}-%{runtime_arch}

- %else

- %if 0%{?centos}

- %global runtime_id centos.%{centos}-%{runtime_arch}

- %else

- %global runtime_id rhel.%{rhel}-%{runtime_arch}

- %endif

- %endif

+ %{!?runtime_id:%global runtime_id %(. /etc/os-release ; echo "$ID.$VERSION_ID")-%{runtime_arch}}

  

  Name:           dotnet3.1

  Version:        %{sdk_rpm_version}

Generate runtime_id the same way that it does in the various build scripts.
This simplifies the spec file and makes it more portable.

Signed-off-by: Troy Dawson tdawson@redhat.com

Pull-Request has been merged by omajid

2 years ago