Debrand for AlmaLinux

This commit is contained in:
Andrew Lukoshko 2024-08-08 16:04:59 +00:00
parent 1e95f86926
commit 95295e2263
3 changed files with 27 additions and 23 deletions

View File

@ -451,14 +451,14 @@ Summary: The Linux kernel
%define with_selftests 0 %define with_selftests 0
%endif %endif
%ifnarch noarch %ifnarch aarch64
%define with_kernel_abi_stablelists 0 %define with_kernel_abi_stablelists 0
%endif %endif
# Overrides for generic default options # Overrides for generic default options
# only package docs noarch # only package docs noarch
%ifnarch noarch %ifnarch aarch64
%define with_doc 0 %define with_doc 0
%define doc_build_fail true %define doc_build_fail true
%endif %endif
@ -925,13 +925,13 @@ Source86: dracut-virt.conf
Source87: flavors Source87: flavors
Source100: rheldup3.x509 Source100: almalinuxdup1.x509
Source101: rhelkpatch1.x509 Source101: almalinuxkpatch1.x509
Source102: nvidiagpuoot001.x509 Source102: nvidiagpuoot001.x509
Source103: rhelimaca1.x509 Source103: almalinuximaca1.x509
Source104: rhelima.x509 Source104: almalinuxima.x509
Source105: rhelima_centos.x509 Source105: almalinuxima.x509
Source106: fedoraimaca.x509 Source106: almalinuxima.x509
%if 0%{?fedora}%{?eln} %if 0%{?fedora}%{?eln}
%define ima_ca_cert %{SOURCE106} %define ima_ca_cert %{SOURCE106}
@ -1303,11 +1303,12 @@ Summary: gcov graph and source files for coverage data collection.\
%{nil} %{nil}
%package -n %{package_name}-abi-stablelists %package -n %{package_name}-abi-stablelists
Summary: The Red Hat Enterprise Linux kernel ABI symbol stablelists Summary: The AlmaLinux kernel ABI symbol stablelists
BuildArch: noarch
AutoReqProv: no AutoReqProv: no
%description -n %{package_name}-abi-stablelists %description -n %{package_name}-abi-stablelists
The kABI package contains information pertaining to the Red Hat Enterprise The kABI package contains information pertaining to the AlmaLinux
Linux kernel ABI, including lists of kernel symbols that are needed by kernel ABI, including lists of kernel symbols that are needed by
external Linux kernel modules, and a yum plugin to aid enforcement. external Linux kernel modules, and a yum plugin to aid enforcement.
%if %{with_kabidw_base} %if %{with_kabidw_base}
@ -1316,8 +1317,8 @@ Summary: The baseline dataset for kABI verification using DWARF data
Group: System Environment/Kernel Group: System Environment/Kernel
AutoReqProv: no AutoReqProv: no
%description kernel-kabidw-base-internal %description kernel-kabidw-base-internal
The package contains data describing the current ABI of the Red Hat Enterprise The package contains data describing the current ABI of the AlmaLinux
Linux kernel, suitable for the kabi-dw tool. kernel, suitable for the kabi-dw tool.
%endif %endif
# #
@ -1416,7 +1417,7 @@ Requires: kernel%{?1:-%{1}}-modules-core-uname-r = %{KVERREL}%{uname_suffix %{?1
AutoReq: no\ AutoReq: no\
AutoProv: yes\ AutoProv: yes\
%description %{?1:%{1}-}modules-internal\ %description %{?1:%{1}-}modules-internal\
This package provides kernel modules for the %{?2:%{2} }kernel package for Red Hat internal usage.\ This package provides kernel modules for the %{?2:%{2} }kernel package for AlmaLinux internal usage.\
%{nil} %{nil}
# #
@ -1592,7 +1593,7 @@ Requires: kernel%{?1:-%{1}}-modules-core-uname-r = %{KVERREL}%{uname_suffix %{?1
AutoReq: no\ AutoReq: no\
AutoProv: yes\ AutoProv: yes\
%description %{?1:%{1}-}modules-partner\ %description %{?1:%{1}-}modules-partner\
This package provides kernel modules for the %{?2:%{2} }kernel package for Red Hat partners usage.\ This package provides kernel modules for the %{?2:%{2} }kernel package for AlmaLinux partners usage.\
%{nil} %{nil}
# Now, each variant package. # Now, each variant package.
@ -1948,7 +1949,7 @@ done
%if 0%{?rhel} %if 0%{?rhel}
%{log_msg "Adjust FIPS module name for RHEL"} %{log_msg "Adjust FIPS module name for RHEL"}
for i in *.config; do for i in *.config; do
sed -i 's/CONFIG_CRYPTO_FIPS_NAME=.*/CONFIG_CRYPTO_FIPS_NAME="Red Hat Enterprise Linux %{rhel} - Kernel Cryptographic API"/' $i sed -i 's/CONFIG_CRYPTO_FIPS_NAME=.*/CONFIG_CRYPTO_FIPS_NAME="AlmaLinux %{rhel} - Kernel Cryptographic API"/' $i
done done
%endif %endif
@ -2586,14 +2587,17 @@ BuildKernel() {
# RHEL/CentOS specific .SBAT entries # RHEL/CentOS specific .SBAT entries
%if 0%{?centos} %if 0%{?centos}
SBATsuffix="centos" SBATsuffix="rhel"
%else %else
SBATsuffix="rhel" SBATsuffix="rhel"
%endif %endif
SBAT=$(cat <<- EOF SBAT=$(cat <<- EOF
linux,1,Red Hat,linux,$KernelVer,mailto:secalert@redhat.com linux,1,Red Hat,linux,$KernelVer,mailto:secalert@redhat.com
linux,1,AlmaLinux,linux,$KernelVer,mailto:security@almalinux.org
linux.$SBATsuffix,1,Red Hat,linux,$KernelVer,mailto:secalert@redhat.com linux.$SBATsuffix,1,Red Hat,linux,$KernelVer,mailto:secalert@redhat.com
linux.almalinux,1,AlmaLinux,linux,$KernelVer,mailto:security@almalinux.org
kernel-uki-virt.$SBATsuffix,1,Red Hat,kernel-uki-virt,$KernelVer,mailto:secalert@redhat.com kernel-uki-virt.$SBATsuffix,1,Red Hat,kernel-uki-virt,$KernelVer,mailto:secalert@redhat.com
kernel-uki-virt,almalinux,1,AlmaLinux,kernel-uki-virt,$KernelVer,mailto:security@almalinux.org
EOF EOF
) )

View File

@ -5,9 +5,9 @@ prompt = no
x509_extensions = myexts x509_extensions = myexts
[ req_distinguished_name ] [ req_distinguished_name ]
O = The CentOS Project O = AlmaLinux
CN = CentOS Stream kernel signing key CN = AlmaLinux kernel signing key
emailAddress = security@centos.org emailAddress = security@almalinux.org
[ myexts ] [ myexts ]
basicConstraints=critical,CA:FALSE basicConstraints=critical,CA:FALSE

View File

@ -5,9 +5,9 @@ prompt = no
x509_extensions = myexts x509_extensions = myexts
[ req_distinguished_name ] [ req_distinguished_name ]
O = Red Hat O = AlmaLinux
CN = Red Hat Enterprise Linux kernel signing key CN = AlmaLinux kernel signing key
emailAddress = secalert@redhat.com emailAddress = security@almalinux.org
[ myexts ] [ myexts ]
basicConstraints=critical,CA:FALSE basicConstraints=critical,CA:FALSE