Compare commits

...

1 Commits
i9 ... i9-el

Author SHA1 Message Date
Eugene Zamriy 91595253bc
sphere-release-el-9.2-1.0.el9 internal package
2 years ago

@ -3,26 +3,28 @@
%global major 9
%global minor 2
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
@ -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,21 @@ 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 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

Loading…
Cancel
Save