From 34e8105aa9eaba826895dc021f19baf7dc45dca2 Mon Sep 17 00:00:00 2001 From: tigro Date: Tue, 10 Oct 2023 16:02:12 +0300 Subject: [PATCH] Added new field MSVSPHERE_PRETTY_NAME --- SPECS/sphere-release.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/SPECS/sphere-release.spec b/SPECS/sphere-release.spec index 368256e..4a3d09a 100644 --- a/SPECS/sphere-release.spec +++ b/SPECS/sphere-release.spec @@ -6,7 +6,7 @@ Name: sphere-release Version: %{major}.%{minor} -Release: 0.1%{?dist} +Release: 0.2%{?dist} Summary: %{distro} release files License: GPLv2 URL: https://msvsphere-os.ru @@ -325,6 +325,14 @@ install -d -m 0755 %{buildroot}%{_prefix}/lib for variant in %{release_name}; do echo "%{distro} release %{major}.%{minor}%{?beta: %{beta}} (${variant})" > %{buildroot}%{_prefix}/lib/sphere-release.$variant +if [ "$variant" = "ARM" ]; then + ru_variant="АРМ" +elif [ "$variant" = "Server" ]; then + ru_variant="Сервер" +else + ru_variant=$variant +fi + cat > %{buildroot}%{_prefix}/lib/os-release.$variant << EOF NAME="%{distro}" VERSION="%{major}.%{minor}%{?beta: %{beta}} (${variant})" @@ -344,6 +352,7 @@ VENDOR_NAME="LLC NCSD" MSVSPHERE_MANTISBT_PROJECT="%{distro}-%{major}" MSVSPHERE_MANTISBT_PROJECT_VERSION="%{major}.%{minor}" +MSVSPHERE_PRETTY_NAME="МСВСфера %{major}.%{minor}%{?beta: %{beta}} ${ru_variant}" REDHAT_SUPPORT_PRODUCT="%{distro}" REDHAT_SUPPORT_PRODUCT_VERSION="%{major}.%{minor}%{?beta: %{beta}}" EOF @@ -531,6 +540,9 @@ install -p -m 0644 %{SOURCE100} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/ %changelog +* Tue Oct 10 2023 Arkady L. Shane - 9.2-0.2 +- Added new field MSVSPHERE_PRETTY_NAME + * Mon Oct 9 2023 Arkady L. Shane - 9.3-0.1 - Rebuilt for MSVSphere 9.3