|
|
|
@ -1,35 +1,37 @@
|
|
|
|
|
%global distro MSVSphere
|
|
|
|
|
%global release_name Inferit
|
|
|
|
|
%global major 9
|
|
|
|
|
%global minor 2
|
|
|
|
|
%global major 10
|
|
|
|
|
%global minor 0
|
|
|
|
|
|
|
|
|
|
Name: sphere-release
|
|
|
|
|
Name: sphere-release-el
|
|
|
|
|
Epoch: 10
|
|
|
|
|
Version: %{major}.%{minor}
|
|
|
|
|
Release: 1.0%{?dist}
|
|
|
|
|
Summary: %{distro} release files
|
|
|
|
|
License: GPLv2
|
|
|
|
|
URL: https://msvsphere.ru
|
|
|
|
|
|
|
|
|
|
Provides: centos-release = %{version}-%{release}
|
|
|
|
|
Provides: sphere-release = %{epoch}:%{version}-%{release}
|
|
|
|
|
Provides: centos-release = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
# Required for a lorax run (to generate install media)
|
|
|
|
|
Requires: sphere-repos = %{version}-%{release}
|
|
|
|
|
Requires: sphere-repos-el = %{epoch}:%{version}-%{release}
|
|
|
|
|
Provides: centos-release-eula
|
|
|
|
|
Provides: redhat-release-eula
|
|
|
|
|
|
|
|
|
|
# required by epel-release
|
|
|
|
|
Provides: redhat-release = %{version}-%{release}
|
|
|
|
|
Provides: redhat-release = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
# required by dnf
|
|
|
|
|
# https://github.com/rpm-software-management/dnf/blob/4.2.23/dnf/const.py.in#L26
|
|
|
|
|
Provides: system-release = %{version}-%{release}
|
|
|
|
|
Provides: system-release = %{epoch}:%{version}-%{release}
|
|
|
|
|
Provides: system-release(releasever) = %{major}
|
|
|
|
|
|
|
|
|
|
# required by libdnf
|
|
|
|
|
# https://github.com/rpm-software-management/libdnf/blob/0.48.0/libdnf/module/ModulePackage.cpp#L472
|
|
|
|
|
Provides: base-module(platform:el%{major})
|
|
|
|
|
|
|
|
|
|
Source100: RPM-GPG-KEY-MSVSphere-9
|
|
|
|
|
Source100: RPM-GPG-KEY-MSVSphere-10
|
|
|
|
|
|
|
|
|
|
Source200: LICENSE
|
|
|
|
|
Source201: EULA
|
|
|
|
@ -59,29 +61,32 @@ Source503: msvsphere-extras.repo
|
|
|
|
|
%{distro} release files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n sphere-sb-certs
|
|
|
|
|
%package -n sphere-sb-certs-el
|
|
|
|
|
Summary: %{distro} public secureboot certificates
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
Provides: system-sb-certs = %{version}-%{release}
|
|
|
|
|
Provides: redhat-sb-certs = %{version}-%{release}
|
|
|
|
|
Provides: sphere-sb-serts = %{epoch}:%{version}-%{release}
|
|
|
|
|
Provides: system-sb-certs = %{epoch}:%{version}-%{release}
|
|
|
|
|
Provides: redhat-sb-certs = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n sphere-sb-certs
|
|
|
|
|
%description -n sphere-sb-certs-el
|
|
|
|
|
%{distro} secureboot certificates.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n sphere-repos
|
|
|
|
|
%package -n sphere-repos-el
|
|
|
|
|
Summary: %{distro} package repositories
|
|
|
|
|
Requires: sphere-release = %{version}-%{release}
|
|
|
|
|
Requires: sphere-gpg-keys = %{version}-%{release}
|
|
|
|
|
Provides: sphere-repos = %{epoch}:%{version}-%{release}
|
|
|
|
|
Requires: sphere-release-el = %{epoch}:%{version}-%{release}
|
|
|
|
|
Requires: sphere-gpg-keys-el = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n sphere-repos
|
|
|
|
|
%description -n sphere-repos-el
|
|
|
|
|
This package provides the package repository files for %{distro}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n sphere-gpg-keys
|
|
|
|
|
%package -n sphere-gpg-keys-el
|
|
|
|
|
Summary: %{distro} RPM keys
|
|
|
|
|
Provides: sphere-gpg-keys = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n sphere-gpg-keys
|
|
|
|
|
%description -n sphere-gpg-keys-el
|
|
|
|
|
This package provides the RPM signature keys for %{distro}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -100,8 +105,8 @@ install -d -m 0755 %{buildroot}%{_prefix}/lib
|
|
|
|
|
cat > %{buildroot}%{_prefix}/lib/os-release << EOF
|
|
|
|
|
NAME="%{distro}"
|
|
|
|
|
VERSION="%{major}.%{minor}%{?beta: %{beta}} (%{release_name})"
|
|
|
|
|
ID="msvsphere"
|
|
|
|
|
ID_LIKE="rhel centos fedora"
|
|
|
|
|
ID="rhel"
|
|
|
|
|
ID_LIKE="fedora"
|
|
|
|
|
VERSION_ID="%{major}.%{minor}"
|
|
|
|
|
PLATFORM_ID="platform:el%{major}"
|
|
|
|
|
PRETTY_NAME="%{distro} %{major}.%{minor}%{?beta: %{beta}} (%{release_name})"
|
|
|
|
@ -219,7 +224,7 @@ install -p -m 0644 %{SOURCE100} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/
|
|
|
|
|
%{_prefix}/lib/systemd/user-preset/*
|
|
|
|
|
%{_prefix}/lib/sysctl.d/50-redhat.conf
|
|
|
|
|
|
|
|
|
|
%files -n sphere-sb-certs
|
|
|
|
|
%files -n sphere-sb-certs-el
|
|
|
|
|
# Note to future packagers:
|
|
|
|
|
# resetting the symlinks in /etc/pki/sb-certs on upgrade is the intended behavior here
|
|
|
|
|
%dir %{_sysconfdir}/pki/sb-certs
|
|
|
|
@ -227,18 +232,24 @@ install -p -m 0644 %{SOURCE100} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/
|
|
|
|
|
%{_sysconfdir}/pki/sb-certs/*.cer
|
|
|
|
|
%{_datadir}/pki/sb-certs/*.cer
|
|
|
|
|
|
|
|
|
|
%files -n sphere-repos
|
|
|
|
|
%files -n sphere-repos-el
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/yum.repos.d/msvsphere-baseos.repo
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/yum.repos.d/msvsphere-appstream.repo
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/yum.repos.d/msvsphere-crb.repo
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/yum.repos.d/msvsphere-extras.repo
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/dnf/vars/stream
|
|
|
|
|
|
|
|
|
|
%files -n sphere-gpg-keys
|
|
|
|
|
%files -n sphere-gpg-keys-el
|
|
|
|
|
%{_sysconfdir}/pki/rpm-gpg
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Dec 18 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 10.0-1.0
|
|
|
|
|
- Update for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Wed May 31 2023 Eugene Zamriy <ezamriy@msvsphere.ru> - 9.2-1.0
|
|
|
|
|
- Created sphere-release-el package for EL-compatible builds like dotnet
|
|
|
|
|
|
|
|
|
|
* Thu May 25 2023 Sergey Cherevko <s.cherevko@msvsphere.ru> - 9.2-1.0
|
|
|
|
|
- Update to MSVSphere 9.2
|
|
|
|
|
|
|
|
|
|