Bump epoch, fix requires

This commit is contained in:
eabdullin 2022-05-18 18:58:59 +03:00
parent 345d2b962f
commit b403d96416

View File

@ -6,26 +6,26 @@
%global beta Beta
Name: almalinux-release
Epoch: 1
Epoch: 2
Version: %{major}.%{minor}
Release: 3%{?dist}
Summary: %{distro} release files
License: GPLv2
URL: https://almalinux.org
# BuildArch: noarch
Provides: centos-release = %{version}-%{release}
Provides: centos-release = %{epoch}:%{version}-%{release}
# Required for a lorax run (to generate install media)
Requires: almalinux-repos = %{version}-%{release}
Requires: almalinux-repos = %{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
@ -57,13 +57,13 @@ Source600: RPM-GPG-KEY-AlmaLinux-9
%package -n almalinux-sb-certs
Summary: %{distro} public secureboot certificates
Group: System Environment/Base
Provides: system-sb-certs = %{version}-%{release}
Provides: redhat-sb-certs = %{version}-%{release}
Provides: system-sb-certs = %{epoch}:%{version}-%{release}
Provides: redhat-sb-certs = %{epoch}:%{version}-%{release}
%package -n almalinux-repos
Summary: %{distro} package repositories
Requires: almalinux-release = %{version}-%{release}
Requires: almalinux-gpg-keys = %{version}-%{release}
Requires: almalinux-release = %{epoch}:%{version}-%{release}
Requires: almalinux-gpg-keys = %{epoch}:%{version}-%{release}
%package -n almalinux-gpg-keys
Summary: %{distro} RPM keys
@ -98,8 +98,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="almalinux"
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})"