|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
%global distro MSVSphere
|
|
|
|
|
# define MSVSphere products
|
|
|
|
|
%global release_name Certified Server ARM Cinnamon KDE XFCE
|
|
|
|
|
%global release_name ARMCertified ServerCertified Server ARM Cinnamon KDE XFCE
|
|
|
|
|
%global major 9
|
|
|
|
|
%global minor 5
|
|
|
|
|
%global eol_date 2032-06-01
|
|
|
|
@ -66,9 +66,9 @@ Source506: msvsphere-nfv.repo
|
|
|
|
|
Source507: msvsphere-highavailability.repo
|
|
|
|
|
Source508: msvsphere-resilientstorage.repo
|
|
|
|
|
Source509: msvsphere-testing.repo
|
|
|
|
|
Source510: msvsphere-certified.repo
|
|
|
|
|
Source511: msvsphere-certified-updates.repo
|
|
|
|
|
Source512: msvsphere-certified-local.repo
|
|
|
|
|
Source510: msvsphere-os.repo
|
|
|
|
|
Source511: msvsphere-updates.repo
|
|
|
|
|
Source512: msvsphere-local.repo
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{distro} release files.
|
|
|
|
@ -91,10 +91,10 @@ Obsoletes: redhat-release-eula < %{version}-%{release}
|
|
|
|
|
Release files common to all Editions and Spins of MSVSphere
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package certified
|
|
|
|
|
Summary: Base package for MSVSphere Certified-specific default configurations
|
|
|
|
|
%package arm-certified
|
|
|
|
|
Summary: Base package for MSVSphere ARM Certified-specific default configurations
|
|
|
|
|
|
|
|
|
|
RemovePathPostfixes: .Certified
|
|
|
|
|
RemovePathPostfixes: .ARMCertified
|
|
|
|
|
Provides: sphere-release-variant = %{version}-%{release}
|
|
|
|
|
Provides: system-release
|
|
|
|
|
Provides: system-release(%{version})
|
|
|
|
@ -105,27 +105,64 @@ Requires: sphere-repos-certified = %{version}-%{release}
|
|
|
|
|
# sphere-release-common Requires: sphere-release-identity, so at least one
|
|
|
|
|
# package must provide it. This Recommends: pulls in
|
|
|
|
|
# sphere-release-identity-certified if nothing else is already doing so.
|
|
|
|
|
Recommends: sphere-release-identity-certified
|
|
|
|
|
Recommends: sphere-release-identity-arm-certified
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description certified
|
|
|
|
|
Provides a base package for MSVSphere Certified-specific configuration files to
|
|
|
|
|
%description arm-certified
|
|
|
|
|
Provides a base package for MSVSphere ARM Certified-specific configuration files to
|
|
|
|
|
depend on.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package identity-certified
|
|
|
|
|
Summary: Package providing the identity for MSVSphere Certified Edition
|
|
|
|
|
%package identity-arm-certified
|
|
|
|
|
Summary: Package providing the identity for MSVSphere ARM Certified Edition
|
|
|
|
|
|
|
|
|
|
RemovePathPostfixes: .Certified
|
|
|
|
|
RemovePathPostfixes: .ARMCertified
|
|
|
|
|
Provides: sphere-release-identity = %{version}-%{release}
|
|
|
|
|
Conflicts: sphere-release-identity
|
|
|
|
|
Requires(meta): sphere-release-certified = %{version}-%{release}
|
|
|
|
|
Requires(meta): sphere-release-arm-certified = %{version}-%{release}
|
|
|
|
|
Requires(pre): /usr/bin/ln
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description identity-certified
|
|
|
|
|
%description identity-arm-certified
|
|
|
|
|
Provides the necessary files for a MSVSphere installation that is identifying
|
|
|
|
|
itself as MSVSphere Certified Edition.
|
|
|
|
|
itself as MSVSphere ARM Certified Edition.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package server-certified
|
|
|
|
|
Summary: Base package for MSVSphere Server Certified-specific default configurations
|
|
|
|
|
|
|
|
|
|
RemovePathPostfixes: .ServerCertified
|
|
|
|
|
Provides: sphere-release-variant = %{version}-%{release}
|
|
|
|
|
Provides: system-release
|
|
|
|
|
Provides: system-release(%{version})
|
|
|
|
|
Provides: base-module(platform:f%{version})
|
|
|
|
|
Requires: sphere-release-common = %{version}-%{release}
|
|
|
|
|
Requires: sphere-repos-certified = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
# sphere-release-common Requires: sphere-release-identity, so at least one
|
|
|
|
|
# package must provide it. This Recommends: pulls in
|
|
|
|
|
# sphere-release-identity-certified if nothing else is already doing so.
|
|
|
|
|
Recommends: sphere-release-identity-server-certified
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description server-certified
|
|
|
|
|
Provides a base package for MSVSphere Server Certified-specific configuration files to
|
|
|
|
|
depend on.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package identity-server-certified
|
|
|
|
|
Summary: Package providing the identity for MSVSphere Server Certified Edition
|
|
|
|
|
|
|
|
|
|
RemovePathPostfixes: .ServerCertified
|
|
|
|
|
Provides: sphere-release-identity = %{version}-%{release}
|
|
|
|
|
Conflicts: sphere-release-identity
|
|
|
|
|
Requires(meta): sphere-release-server-certified = %{version}-%{release}
|
|
|
|
|
Requires(pre): /usr/bin/ln
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description identity-server-certified
|
|
|
|
|
Provides the necessary files for a MSVSphere installation that is identifying
|
|
|
|
|
itself as MSVSphere Server Certified Edition.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package server
|
|
|
|
@ -376,18 +413,23 @@ cp %{SOURCE200} ./docs
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
en_variant=$variant
|
|
|
|
|
if [ "$variant" = "ARM" ]; then
|
|
|
|
|
ru_variant="АРМ"
|
|
|
|
|
elif [ "$variant" = "Server" ]; then
|
|
|
|
|
ru_variant="Сервер"
|
|
|
|
|
elif [ "$variant" = "Certified" ]; then
|
|
|
|
|
ru_variant="Сертифицированная"
|
|
|
|
|
elif [ "$variant" = "ARMCertified" ]; then
|
|
|
|
|
en_variant="ARM Certified"
|
|
|
|
|
ru_variant="АРМ Сертифицированная"
|
|
|
|
|
elif [ "$variant" = "ServerCertified" ]; then
|
|
|
|
|
en_variant="Server Certified"
|
|
|
|
|
ru_variant="Сервер Сертифицированная"
|
|
|
|
|
else
|
|
|
|
|
ru_variant=$variant
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo "%{distro} release %{major}.%{minor}%{?beta: %{beta}} (${en_variant})" > %{buildroot}%{_prefix}/lib/sphere-release.$variant
|
|
|
|
|
|
|
|
|
|
# -------------------------------------------------------------------------
|
|
|
|
|
# Definitions for /etc/os-release and for macros in macros.dist. These
|
|
|
|
|
# macros are useful for spec files where distribution-specific identifiers
|
|
|
|
@ -407,12 +449,12 @@ fi
|
|
|
|
|
|
|
|
|
|
cat > %{buildroot}%{_prefix}/lib/os-release.$variant << EOF
|
|
|
|
|
NAME="%{distro}"
|
|
|
|
|
VERSION="%{major}.%{minor}%{?beta: %{beta}} (${variant})"
|
|
|
|
|
VERSION="%{major}.%{minor}%{?beta: %{beta}} (${en_variant})"
|
|
|
|
|
ID="msvsphere"
|
|
|
|
|
ID_LIKE="rhel centos fedora"
|
|
|
|
|
VERSION_ID="%{major}.%{minor}"
|
|
|
|
|
PLATFORM_ID="platform:el%{major}"
|
|
|
|
|
PRETTY_NAME="%{distro} %{major}.%{minor}%{?beta: %{beta}} ${variant}"
|
|
|
|
|
PRETTY_NAME="%{distro} %{major}.%{minor}%{?beta: %{beta}} ${en_variant}"
|
|
|
|
|
ANSI_COLOR="1;35"
|
|
|
|
|
LOGO="fedora-logo-icon"
|
|
|
|
|
CPE_NAME="cpe:/o:ncsd:msvsphere:%{major}::baseos"
|
|
|
|
@ -424,8 +466,12 @@ BUG_REPORT_URL="%{dist_bug_report_url}"
|
|
|
|
|
MSVSPHERE_MANTISBT_PROJECT="%{distro}-%{major}"
|
|
|
|
|
MSVSPHERE_MANTISBT_PROJECT_VERSION="%{major}.%{minor}"
|
|
|
|
|
MSVSPHERE_PRETTY_NAME="МСВСфера %{major}.%{minor}%{?beta: %{beta}} ${ru_variant}"
|
|
|
|
|
EOF
|
|
|
|
|
if [ "$variant" == "${variant/Certified/}" ]; then
|
|
|
|
|
cat >> %{buildroot}%{_prefix}/lib/os-release.$variant << EOF
|
|
|
|
|
SUPPORT_END=%{eol_date}
|
|
|
|
|
EOF
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
install -d -m 0755 %{buildroot}%{_sysconfdir}
|
|
|
|
@ -572,10 +618,16 @@ fi
|
|
|
|
|
%preun identity-arm
|
|
|
|
|
/usr/bin/rm -f /usr/share/sphere-release/EULA
|
|
|
|
|
|
|
|
|
|
%post identity-certified
|
|
|
|
|
%post identity-arm-certified
|
|
|
|
|
/usr/bin/ln -srf /usr/share/sphere-release/EULA-CERTIFIED /usr/share/sphere-release/EULA
|
|
|
|
|
|
|
|
|
|
%preun identity-certified
|
|
|
|
|
%preun identity-arm-certified
|
|
|
|
|
/usr/bin/rm -f /usr/share/sphere-release/EULA
|
|
|
|
|
|
|
|
|
|
%post identity-server-certified
|
|
|
|
|
/usr/bin/ln -srf /usr/share/sphere-release/EULA-CERTIFIED /usr/share/sphere-release/EULA
|
|
|
|
|
|
|
|
|
|
%preun identity-server-certified
|
|
|
|
|
/usr/bin/rm -f /usr/share/sphere-release/EULA
|
|
|
|
|
|
|
|
|
|
%post identity-server
|
|
|
|
@ -604,10 +656,17 @@ fi
|
|
|
|
|
%{_prefix}/lib/sysctl.d/50-redhat.conf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files certified
|
|
|
|
|
%files identity-certified
|
|
|
|
|
%{_prefix}/lib/os-release.Certified
|
|
|
|
|
%{_prefix}/lib/sphere-release.Certified
|
|
|
|
|
%files arm-certified
|
|
|
|
|
%files identity-arm-certified
|
|
|
|
|
%{_prefix}/lib/os-release.ARMCertified
|
|
|
|
|
%{_prefix}/lib/sphere-release.ARMCertified
|
|
|
|
|
%{_datadir}/sphere-release/EULA-CERTIFIED
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files server-certified
|
|
|
|
|
%files identity-server-certified
|
|
|
|
|
%{_prefix}/lib/os-release.ServerCertified
|
|
|
|
|
%{_prefix}/lib/sphere-release.ServerCertified
|
|
|
|
|
%{_datadir}/sphere-release/EULA-CERTIFIED
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -659,9 +718,9 @@ fi
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/dnf/vars/stream
|
|
|
|
|
|
|
|
|
|
%files -n sphere-repos-certified
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/yum.repos.d/msvsphere-certified.repo
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/yum.repos.d/msvsphere-certified-local.repo
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/yum.repos.d/msvsphere-certified-updates.repo
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/yum.repos.d/msvsphere-os.repo
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/yum.repos.d/msvsphere-local.repo
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/yum.repos.d/msvsphere-updates.repo
|
|
|
|
|
|
|
|
|
|
%files -n sphere-repos-extra
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/yum.repos.d/msvsphere-devel.repo
|
|
|
|
@ -678,6 +737,8 @@ fi
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jan 22 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 9.5-5
|
|
|
|
|
- Added Testing repo and fix path for local updates
|
|
|
|
|
- Added ARM and Server Certified subpackages
|
|
|
|
|
- Update License file for Certified variants
|
|
|
|
|
|
|
|
|
|
* Tue Jan 21 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 9.5-4
|
|
|
|
|
- Fix in requires
|
|
|
|
|