Added new field MSVSPHERE_PRETTY_NAME

i9-beta changed/i9/sphere-release-9.2-1.12.el9
Arkady L. Shane 1 year ago
parent f6d094c5c9
commit d35c52af4a
Signed by: tigro
GPG Key ID: 9C7900103E1C4F8B

@ -6,7 +6,7 @@
Name: sphere-release
Version: %{major}.%{minor}
Release: 1.11%{?dist}
Release: 1.12%{?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 <tigro@msvsphere-os.ru> - 9.2-1.12
- Added new field MSVSPHERE_PRETTY_NAME
* Fri Sep 22 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 9.2-1.11
- Fix base urls in repo files

Loading…
Cancel
Save