rocky-release/SPECS/rocky-release.spec

581 lines
22 KiB
RPMSpec
Raw Normal View History

2022-09-09 07:44:35 +00:00
# Note to packagers/builders:
#
# If you wish to build the LookAhead or Beta variant of this package, make sure
# that you are setting --with=rlbeta or --with=rllookahead on your mock
# command. See the README for more information.
%bcond_with rlbeta
2022-11-11 16:24:46 +00:00
%bcond_with rllookahead
2022-09-09 07:44:35 +00:00
%bcond_with rloverride
2021-04-09 03:50:23 +00:00
%define debug_package %{nil}
# Product information
%define product_family Rocky Linux
%define variant_titlecase Server
%define variant_lowercase server
# Distribution Name and Version
2021-05-25 00:36:03 +00:00
%define distro_name Rocky Linux
2023-06-10 20:43:31 +00:00
%define distro %{distro_name}
2021-05-25 00:36:03 +00:00
%define distro_code Green Obsidian
%define major 8
2023-09-07 19:20:05 +00:00
%define minor 10
2024-04-03 17:58:28 +00:00
%define rocky_rel 1%{?rllh:.%{rllh}}%{!?rllh:.7}
%define upstream_rel %{major}.%{minor}-0.2
2021-07-10 22:01:25 +00:00
%define rpm_license BSD-3-Clause
2022-09-09 07:44:35 +00:00
%define dist .el%{major}
%define home_url https://rockylinux.org/
%define bug_url https://bugs.rockylinux.org/
%define debug_url https://debuginfod.rockylinux.org/
%define dist_vendor RESF
%define contentdir pub/rocky
%define sigcontent pub/sig
%define rlosid rocky
%define os_bug_name Rocky-Linux-%{major}
################################################################################
# Rocky LookAhead Section
#
# Reset defines for LookAhead variant. Default is stable if 0 or undefined.
%if %{with rllookahead}
%define minor 8
%define contentdir pub/rocky-lh
%define rltype -lookahead
%define rlstatement LookAhead
%endif
# End Rocky LookAhead Section
################################################################################
################################################################################
# Rocky Beta Section
#
# Reset defines for Beta variant. Default is stable if 0 or undefined.
# We do NOT override the minor version number here.
%if %{with rlbeta}
%define contentdir pub/rocky-beta
%define rltype -beta
%define rlstatement Beta
%endif
# End Rocky Beta Section
################################################################################
################################################################################
# Rocky Override Section
#
# Resets only the dist tag for the override package. All this does is ensure
# that only the rhel macros and settings are provided - This is useful in the
# case of a build that cannot be properly debranded (eg dotnet).
%if %{with rloverride}
%define dist .el%{major}.override
%define rlosid rhel
%endif
# End Rocky Override Section
################################################################################
2021-04-09 03:50:23 +00:00
%define base_release_version %{major}
%define dist_release_version %{major}
2022-09-09 07:44:35 +00:00
%define full_release_version %{major}.%{minor}
2021-04-09 03:50:23 +00:00
%ifarch ppc64le
%define tuned_profile :server
%endif
# Avoids a weird anaconda problem
%global __requires_exclude_from %{_libexecdir}
2021-02-01 07:12:25 +00:00
2022-09-09 07:44:35 +00:00
# conditional section for future use
Name: rocky-release%{?rltype}
Version: %{full_release_version}
Release: %{rocky_rel}%{dist}
2021-05-25 00:36:03 +00:00
Summary: %{distro_name} release files
2022-09-09 07:44:35 +00:00
Group: System Environment/Base
2021-07-10 22:01:25 +00:00
License: %{rpm_license}
2021-02-01 07:12:25 +00:00
URL: https://rockylinux.org
BuildArch: noarch
2022-09-09 07:44:35 +00:00
# What do we provide? Some of these needs are a necesity (think comps and
# groups) and things like EPEL need it.
2021-04-09 03:52:11 +00:00
Provides: rocky-release = %{version}-%{release}
2022-09-09 07:44:35 +00:00
Provides: rocky-release(upstream) = %{full_release_version}
2023-01-30 00:48:43 +00:00
Provides: redhat-release = %{upstream_rel}
Provides: system-release = %{version}-%{release}
2021-04-09 03:50:23 +00:00
Provides: system-release(releasever) = %{major}
2021-09-13 22:28:39 +00:00
Provides: centos-release = %{version}-%{release}
2022-09-09 07:44:35 +00:00
Provides: centos-release(upstream) = %{full_release_version}
2021-02-01 07:12:25 +00:00
2021-04-09 03:50:23 +00:00
## Required by libdnf
Provides: base-module(platform:el%{major})
## This makes lorax/pungi/anaconda happy
2022-09-09 07:44:35 +00:00
Provides: rocky-release-eula = %{version}-%{release}
2023-01-30 00:48:43 +00:00
Provides: redhat-release-eula = %{upstream_rel}
2022-09-09 07:44:35 +00:00
Provides: centos-release-eula = %{version}-%{release}
2021-02-01 07:12:25 +00:00
2021-04-09 03:50:23 +00:00
# What are our requirements?
2022-10-02 00:37:29 +00:00
Requires: rocky-repos(%{major})
2021-02-01 07:12:25 +00:00
2022-09-09 07:44:35 +00:00
# GPG Keys (100-199)
2021-04-09 03:50:23 +00:00
Source101: RPM-GPG-KEY-rockyofficial
Source102: RPM-GPG-KEY-rockytesting
2021-02-01 07:12:25 +00:00
2022-09-09 07:44:35 +00:00
# Release Sources (200-499)
2021-02-01 07:12:25 +00:00
Source200: EULA
Source201: LICENSE
Source202: Contributors
Source203: COMMUNITY-CHARTER
2022-09-09 07:44:35 +00:00
# !! Stable !!
2021-02-01 07:12:25 +00:00
Source300: 85-display-manager.preset
Source301: 90-default.preset
Source302: 99-default-disable.preset
2021-04-09 03:50:23 +00:00
# Repo Sources
Source1200: Rocky-BaseOS.repo
Source1201: Rocky-AppStream.repo
Source1202: Rocky-PowerTools.repo
Source1203: Rocky-Extras.repo
# Rocky Add-ons
Source1210: Rocky-HighAvailability.repo
2021-05-01 16:44:14 +00:00
Source1211: Rocky-ResilientStorage.repo
2021-05-28 05:29:55 +00:00
Source1212: Rocky-RT.repo
2021-06-30 06:07:04 +00:00
Source1213: Rocky-NFV.repo
2021-04-09 03:50:23 +00:00
# Rocky Special Stuff
Source1220: Rocky-Media.repo
2021-06-25 19:50:09 +00:00
Source1221: Rocky-Debuginfo.repo
2021-04-09 03:50:23 +00:00
Source1222: Rocky-Sources.repo
Source1223: Rocky-Devel.repo
2021-05-05 08:45:26 +00:00
Source1226: Rocky-Plus.repo
2021-05-26 15:09:34 +00:00
Source1300: rocky.1.gz
2021-04-09 03:50:23 +00:00
2024-04-03 17:58:28 +00:00
# 1400 is the root
# 1401-1420 are dedicated to the kernel
# 1421-1440 is dedicated to x86_64
# 1441-1460 is dedicated to aarch64
Source1400: rocky-root-ca.der
Source1401: rockydup1.x509
Source1402: rockykpatch1.x509
Source1403: rockydup1-aarch64.x509
Source1404: rockykpatch1-aarch64.x509
# x86_64
Source1421: rocky-fwupd.cer
Source1422: rocky-grub2.cer
Source1423: rocky-kernel.cer
Source1424: rocky-shim.cer
# aarch64
Source1441: rocky-fwupd-aarch64.cer
Source1442: rocky-grub2-aarch64.cer
Source1443: rocky-kernel-aarch64.cer
Source1444: rocky-shim-aarch64.cer
2023-03-17 22:02:43 +00:00
2021-02-01 07:12:25 +00:00
%description
2021-05-25 00:36:03 +00:00
%{distro_name} release files.
2021-02-01 07:12:25 +00:00
2022-09-09 07:44:35 +00:00
%package -n rocky-repos%{?rltype}
2021-05-25 00:36:03 +00:00
Summary: %{distro_name} Package Repositories
2021-07-10 22:01:25 +00:00
License: %{rpm_license}
2022-09-09 07:44:35 +00:00
Provides: system-repos = %{version}-%{release}
Provides: rocky-repos(%{major}) = %{full_release_version}
Requires: system-release = %{version}-%{release}
Requires: rocky-gpg-keys%{?rltype}
2021-04-09 03:59:11 +00:00
Conflicts: %{name} < 8.0
2021-04-09 03:50:23 +00:00
2022-09-09 07:44:35 +00:00
%description -n rocky-repos%{?rltype}
2021-05-25 00:36:03 +00:00
%{distro_name} package repository files for yum/dnf
2021-04-09 03:50:23 +00:00
2022-09-09 07:44:35 +00:00
%package -n rocky-gpg-keys%{?rltype}
2021-04-09 03:50:23 +00:00
Summary: Rocky RPM GPG Keys
Conflicts: %{name} < 8.0
2022-09-09 07:44:35 +00:00
%description -n rocky-gpg-keys%{?rltype}
2021-04-09 03:50:23 +00:00
This package provides the RPM signature keys for Rocky.
2023-03-17 22:02:43 +00:00
%package -n rocky-sb-certs%{?rltype}
Summary: %{distro_name} public secureboot certificates
Group: System Environment/Base
Provides: system-sb-certs = %{version}-%{release}
%description -n rocky-sb-certs%{?rltype}
This package contains the %{distro_name} secureboot public certificates.
2021-04-09 03:50:23 +00:00
%prep
2022-09-09 07:44:35 +00:00
%if %{with rllookahead} && %{with rlbeta}
echo "!! WARNING !!"
echo "Both LookAhead and Beta were enabled. This is not supported."
echo "As a result: BUILD FAILED."
exit 1
%endif
2021-04-09 03:50:23 +00:00
echo Good.
%build
echo Good.
2021-02-01 07:12:25 +00:00
%install
# copy license and contributors doc here for %%license and %%doc macros
2021-04-25 17:24:34 +00:00
cp %{SOURCE201} %{SOURCE202} %{SOURCE203} .
2021-02-01 07:12:25 +00:00
2022-09-09 07:44:35 +00:00
################################################################################
# system-release data
2021-02-01 07:12:25 +00:00
install -d -m 0755 %{buildroot}%{_sysconfdir}
2022-09-09 07:44:35 +00:00
echo "%{distro_name} release %{full_release_version}%{?rlstatement: %{rlstatement}} (%{distro_code})" > %{buildroot}%{_sysconfdir}/rocky-release
echo "Derived from Red Hat Enterprise Linux %{full_release_version}" > %{buildroot}%{_sysconfdir}/rocky-release-upstream
2021-02-01 07:12:25 +00:00
ln -s rocky-release %{buildroot}%{_sysconfdir}/system-release
ln -s rocky-release %{buildroot}%{_sysconfdir}/redhat-release
2021-09-13 22:28:39 +00:00
ln -s rocky-release %{buildroot}%{_sysconfdir}/centos-release
2021-05-26 03:23:29 +00:00
mkdir -p %{buildroot}%{_mandir}/man1
2021-05-26 03:07:44 +00:00
install -p -m 0644 %{SOURCE1300} %{buildroot}%{_mandir}/man1/
2021-02-01 07:12:25 +00:00
# Create the os-release file
install -d -m 0755 %{buildroot}%{_prefix}/lib
cat > %{buildroot}%{_prefix}/lib/os-release << EOF
2021-05-25 00:36:03 +00:00
NAME="%{distro_name}"
2022-09-09 07:44:35 +00:00
VERSION="%{full_release_version} (%{distro_code})"
ID="%{rlosid}"
2021-09-13 22:28:39 +00:00
ID_LIKE="rhel centos fedora"
2022-09-09 07:44:35 +00:00
VERSION_ID="%{full_release_version}"
2021-02-01 07:12:25 +00:00
PLATFORM_ID="platform:el%{major}"
2022-09-09 07:44:35 +00:00
PRETTY_NAME="%{distro_name} %{full_release_version}%{?rlstatement: %{rlstatement}} (%{distro_code})"
2021-05-25 00:36:03 +00:00
ANSI_COLOR="0;32"
2022-09-09 07:44:35 +00:00
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:%{major}:GA"
HOME_URL="%{home_url}"
BUG_REPORT_URL="%{bug_url}"
2022-12-23 02:26:02 +00:00
SUPPORT_END="2029-05-31"
2022-09-09 07:44:35 +00:00
ROCKY_SUPPORT_PRODUCT="%{os_bug_name}"
ROCKY_SUPPORT_PRODUCT_VERSION="%{full_release_version}%{?rlstatement:-%{rlstatement}}"
2022-03-29 23:58:09 +00:00
REDHAT_SUPPORT_PRODUCT="%{distro_name}"
2022-09-09 07:44:35 +00:00
REDHAT_SUPPORT_PRODUCT_VERSION="%{full_release_version}%{?rlstatement: %{rlstatement}}"
2021-02-01 07:12:25 +00:00
EOF
# Create the symlink for /etc/os-release
ln -s ../usr/lib/os-release %{buildroot}%{_sysconfdir}/os-release
# write cpe to /etc/system/release-cpe
2022-09-09 07:44:35 +00:00
echo "cpe:/o:rocky:rocky:%{major}:GA" > %{buildroot}%{_sysconfdir}/system-release-cpe
2021-02-01 07:12:25 +00:00
# create /etc/issue and /etc/issue.net
2021-05-20 00:06:30 +00:00
echo '\S' > %{buildroot}%{_sysconfdir}/issue
echo 'Kernel \r on an \m' >> %{buildroot}%{_sysconfdir}/issue
cp %{buildroot}%{_sysconfdir}/issue{,.net}
2021-02-01 07:12:25 +00:00
echo >> %{buildroot}%{_sysconfdir}/issue
# set up the dist tag macros
2023-02-01 08:57:45 +00:00
mkdir -p %{buildroot}%{_rpmmacrodir}
cat > %{buildroot}%{_rpmmacrodir}/macros.dist << EOF
2021-02-01 07:12:25 +00:00
# dist macros.
2022-02-14 21:55:42 +00:00
%%__bootstrap ~bootstrap
2021-02-01 07:12:25 +00:00
%%rocky_ver %{major}
%%rocky %{major}
2021-09-13 23:05:19 +00:00
%%centos_ver %{major}
%%centos %{major}
2021-02-01 07:12:25 +00:00
%%rhel %{major}
2022-09-09 07:44:35 +00:00
%%dist %%{!?distprefix0:%%{?distprefix}}%%{expand:%%{lua:for i=0,9999 do print("%%{?distprefix" .. i .."}") end}}.el%{major}%%{?distsuffix}%%{?with_bootstrap:%{__bootstrap}}
2021-02-01 07:12:25 +00:00
%%el%{major} 1
2022-09-09 07:44:35 +00:00
%%dist_vendor %{dist_vendor}
%%dist_name %{distro}
%%dist_home_url %{home_url}
%%dist_bug_report_url %{bug_url}
%%dist_debuginfod_url %{debug_url}
2021-02-01 07:12:25 +00:00
EOF
2021-04-09 18:14:55 +00:00
# Data directory
2021-02-01 07:12:25 +00:00
install -d -m 0755 %{buildroot}%{_datadir}/rocky-release
ln -s rocky-release %{buildroot}%{_datadir}/redhat-release
install -p -m 0644 %{SOURCE200} %{buildroot}%{_datadir}/rocky-release/
2022-09-09 07:44:35 +00:00
# end system-release data
################################################################################
################################################################################
# systemd section
2021-02-01 07:12:25 +00:00
install -d -m 0755 %{buildroot}%{_prefix}/lib/systemd/system-preset/
2021-04-09 03:50:23 +00:00
install -m 0644 %{SOURCE300} %{buildroot}/%{_prefix}/lib/systemd/system-preset/
install -m 0644 %{SOURCE301} %{buildroot}/%{_prefix}/lib/systemd/system-preset/
install -m 0644 %{SOURCE302} %{buildroot}/%{_prefix}/lib/systemd/system-preset/
2023-03-17 22:02:43 +00:00
# systemd section
################################################################################
2021-02-01 07:12:25 +00:00
2023-03-17 22:02:43 +00:00
################################################################################
# start secureboot section
install -d -m 0755 %{buildroot}%{_sysconfdir}/pki/sb-certs/
install -d -m 0755 %{buildroot}%{_datadir}/pki/sb-certs/
# Backported certs for now
install -m 0644 %{SOURCE1400} %{buildroot}%{_datadir}/pki/sb-certs/
install -m 0644 %{SOURCE1401} %{buildroot}%{_datadir}/pki/sb-certs/
install -m 0644 %{SOURCE1402} %{buildroot}%{_datadir}/pki/sb-certs/
install -m 0644 %{SOURCE1403} %{buildroot}%{_datadir}/pki/sb-certs/
2023-04-27 05:33:22 +00:00
install -m 0644 %{SOURCE1404} %{buildroot}%{_datadir}/pki/sb-certs/
2024-04-03 17:58:28 +00:00
install -m 0644 %{SOURCE1421} %{buildroot}%{_datadir}/pki/sb-certs/
install -m 0644 %{SOURCE1422} %{buildroot}%{_datadir}/pki/sb-certs/
install -m 0644 %{SOURCE1423} %{buildroot}%{_datadir}/pki/sb-certs/
install -m 0644 %{SOURCE1424} %{buildroot}%{_datadir}/pki/sb-certs/
install -m 0644 %{SOURCE1441} %{buildroot}%{_datadir}/pki/sb-certs/
install -m 0644 %{SOURCE1442} %{buildroot}%{_datadir}/pki/sb-certs/
install -m 0644 %{SOURCE1443} %{buildroot}%{_datadir}/pki/sb-certs/
install -m 0644 %{SOURCE1444} %{buildroot}%{_datadir}/pki/sb-certs/
2023-11-03 03:00:55 +00:00
2023-03-17 22:02:43 +00:00
# Placeholders
# x86_64
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-root-ca.der %{buildroot}%{_datadir}/pki/sb-certs/secureboot-ca-x86_64.cer
2023-04-25 19:23:02 +00:00
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-kernel.cer %{buildroot}%{_datadir}/pki/sb-certs/secureboot-kernel-x86_64.cer
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-grub2.cer %{buildroot}%{_datadir}/pki/sb-certs/secureboot-grub2-x86_64.cer
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-fwupd.cer %{buildroot}%{_datadir}/pki/sb-certs/secureboot-fwupd-x86_64.cer
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-shim.cer %{buildroot}%{_datadir}/pki/sb-certs/secureboot-shim-x86_64.cer
2023-03-17 22:02:43 +00:00
# aarch64
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-root-ca.der %{buildroot}%{_datadir}/pki/sb-certs/secureboot-ca-aarch64.cer
2023-11-03 03:00:55 +00:00
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-kernel-aarch64.cer %{buildroot}%{_datadir}/pki/sb-certs/secureboot-kernel-aarch64.cer
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-grub2-aarch64.cer %{buildroot}%{_datadir}/pki/sb-certs/secureboot-grub2-aarch64.cer
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-fwupd-aarch64.cer %{buildroot}%{_datadir}/pki/sb-certs/secureboot-fwupd-aarch64.cer
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-shim-aarch64.cer %{buildroot}%{_datadir}/pki/sb-certs/secureboot-shim-aarch64.cer
2023-03-17 22:02:43 +00:00
# ppc64le
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-root-ca.der %{buildroot}%{_datadir}/pki/sb-certs/secureboot-ca-ppc64le.cer
2023-04-25 19:23:02 +00:00
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-kernel.cer %{buildroot}%{_datadir}/pki/sb-certs/secureboot-kernel-ppc64le.cer
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-grub2.cer %{buildroot}%{_datadir}/pki/sb-certs/secureboot-grub2-ppc64le.cer
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-fwupd.cer %{buildroot}%{_datadir}/pki/sb-certs/secureboot-fwupd-ppc64le.cer
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-shim.cer %{buildroot}%{_datadir}/pki/sb-certs/secureboot-shim-ppc64le.cer
2023-03-17 22:02:43 +00:00
# armhfp
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-root-ca.der %{buildroot}%{_datadir}/pki/sb-certs/secureboot-ca-armhfp.cer
2023-04-25 19:23:02 +00:00
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-kernel.cer %{buildroot}%{_datadir}/pki/sb-certs/secureboot-kernel-armhfp.cer
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-grub2.cer %{buildroot}%{_datadir}/pki/sb-certs/secureboot-grub2-armhfp.cer
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-fwupd.cer %{buildroot}%{_datadir}/pki/sb-certs/secureboot-fwupd-armhfp.cer
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/rocky-shim.cer %{buildroot}%{_datadir}/pki/sb-certs/secureboot-shim-armhfp.cer
2023-03-17 22:02:43 +00:00
# symlinks for everybody
for x in $(ls %{buildroot}%{_datadir}/pki/sb-certs); do
ln -sr %{buildroot}%{_datadir}/pki/sb-certs/${x} %{buildroot}%{_sysconfdir}/pki/sb-certs/${x}
done
# end secureboot section
################################################################################
2022-09-09 07:44:35 +00:00
2023-03-17 22:02:43 +00:00
################################################################################
# dnf repo section
2021-04-09 03:50:23 +00:00
install -d -m 0755 %{buildroot}%{_sysconfdir}/yum.repos.d
2021-04-19 03:21:16 +00:00
install -p -m 0644 %{SOURCE1200} %{buildroot}%{_sysconfdir}/yum.repos.d/
install -p -m 0644 %{SOURCE1201} %{buildroot}%{_sysconfdir}/yum.repos.d/
install -p -m 0644 %{SOURCE1202} %{buildroot}%{_sysconfdir}/yum.repos.d/
install -p -m 0644 %{SOURCE1203} %{buildroot}%{_sysconfdir}/yum.repos.d/
install -p -m 0644 %{SOURCE1210} %{buildroot}%{_sysconfdir}/yum.repos.d/
2021-05-01 16:44:14 +00:00
install -p -m 0644 %{SOURCE1211} %{buildroot}%{_sysconfdir}/yum.repos.d/
2021-05-28 05:29:55 +00:00
install -p -m 0644 %{SOURCE1212} %{buildroot}%{_sysconfdir}/yum.repos.d/
2021-06-30 06:07:04 +00:00
install -p -m 0644 %{SOURCE1213} %{buildroot}%{_sysconfdir}/yum.repos.d/
2021-04-19 03:21:16 +00:00
install -p -m 0644 %{SOURCE1220} %{buildroot}%{_sysconfdir}/yum.repos.d/
2021-06-25 19:50:09 +00:00
install -p -m 0644 %{SOURCE1221} %{buildroot}%{_sysconfdir}/yum.repos.d/
2021-04-19 03:21:16 +00:00
install -p -m 0644 %{SOURCE1222} %{buildroot}%{_sysconfdir}/yum.repos.d/
install -p -m 0644 %{SOURCE1223} %{buildroot}%{_sysconfdir}/yum.repos.d/
2021-05-05 08:45:26 +00:00
install -p -m 0644 %{SOURCE1226} %{buildroot}%{_sysconfdir}/yum.repos.d/
2021-02-01 07:12:25 +00:00
2023-03-17 22:02:43 +00:00
# dnf stuff
install -d -m 0755 %{buildroot}%{_sysconfdir}/dnf/vars
echo "%{contentdir}" > %{buildroot}%{_sysconfdir}/dnf/vars/contentdir
echo "%{sigcontent}" > %{buildroot}%{_sysconfdir}/dnf/vars/sigcontentdir
echo "%{?rltype}" > %{buildroot}%{_sysconfdir}/dnf/vars/rltype
echo "%{major}-stream" > %{buildroot}%{_sysconfdir}/dnf/vars/stream
# Copy out GPG keys
install -d -m 0755 %{buildroot}%{_sysconfdir}/pki/rpm-gpg
install -p -m 0644 %{SOURCE101} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/
install -p -m 0644 %{SOURCE102} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/
2024-02-09 22:13:27 +00:00
# symlink 8 key
ln -sr %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial \
%{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-Rocky-8
ln -sr %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-rockytesting \
%{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-Rocky-8-Testing
2023-03-17 22:02:43 +00:00
# end dnf repo section
################################################################################
2021-02-01 07:12:25 +00:00
%files
%license LICENSE
%doc Contributors COMMUNITY-CHARTER
2021-02-01 07:12:25 +00:00
%{_sysconfdir}/redhat-release
2021-09-13 22:28:39 +00:00
%{_sysconfdir}/centos-release
2021-02-01 07:12:25 +00:00
%{_sysconfdir}/system-release
%{_sysconfdir}/rocky-release
%{_sysconfdir}/rocky-release-upstream
%config(noreplace) %{_sysconfdir}/os-release
%config %{_sysconfdir}/system-release-cpe
%config(noreplace) %{_sysconfdir}/issue
%config(noreplace) %{_sysconfdir}/issue.net
2023-02-01 08:57:45 +00:00
%{_rpmmacrodir}/macros.dist
2021-02-01 07:12:25 +00:00
%{_datadir}/redhat-release
%{_datadir}/rocky-release
%{_prefix}/lib/os-release
%{_prefix}/lib/systemd/system-preset/*
2021-05-26 15:09:34 +00:00
%{_mandir}/man1/rocky.1.gz
2021-02-01 07:12:25 +00:00
2022-10-02 00:08:45 +00:00
%files -n rocky-repos%{?rltype}
2021-04-09 03:50:23 +00:00
%license LICENSE
%config(noreplace) %{_sysconfdir}/yum.repos.d/Rocky-*.repo
%config(noreplace) %{_sysconfdir}/dnf/vars/contentdir
2022-05-20 21:42:05 +00:00
%config(noreplace) %{_sysconfdir}/dnf/vars/sigcontentdir
2022-09-09 07:44:35 +00:00
%config(noreplace) %{_sysconfdir}/dnf/vars/rltype
2022-08-30 09:00:40 +00:00
%config(noreplace) %{_sysconfdir}/dnf/vars/stream
2021-04-09 03:50:23 +00:00
2022-10-02 00:08:45 +00:00
%files -n rocky-gpg-keys%{?rltype}
2021-04-09 03:50:23 +00:00
%{_sysconfdir}/pki/rpm-gpg/
2021-02-01 07:12:25 +00:00
2023-03-17 22:02:43 +00:00
%files -n rocky-sb-certs%{?rltype}
# care: resetting symlinks is intended
%dir %{_sysconfdir}/pki/sb-certs
%dir %{_datadir}/pki/sb-certs
%{_sysconfdir}/pki/sb-certs/*
%{_datadir}/pki/sb-certs/*
2021-02-01 07:12:25 +00:00
%changelog
2024-04-03 17:58:28 +00:00
* Wed Apr 03 2024 Louis Abel <label@rockylinux.org> - 8.10-1.7
- Update SB certs
2024-02-09 22:13:27 +00:00
* Fri Feb 09 2024 Louis Abel <label@rockylinux.org> - 8.10-1.6
- Symlink rockyofficial and rockytesting keys
2023-12-22 20:46:14 +00:00
* Fri Dec 22 2023 Louis Abel <label@rockylinux.org> - 8.10-1.5
- Fix debuginfo repo names
2023-11-30 02:54:11 +00:00
* Wed Nov 29 2023 Louis Abel <label@rockylinux.org> - 8.10-1.4
- Update contributors
2023-11-19 22:11:08 +00:00
* Sun Nov 19 2023 Louis Abel <label@rockylinux.org> - 8.10-1.3
- Adjust comments in sources repo
2023-11-03 03:00:55 +00:00
* Thu Nov 02 2023 Louis Abel <label@rockylinux.org> - 8.10-1.2
- Add aarch64 secure boot certificates
2023-09-07 19:20:05 +00:00
* Thu Sep 07 2023 Louis Abel <label@rockylinux.org> - 8.10-1.1
- Bump to 8.10 for lookahead development
2023-06-10 20:43:31 +00:00
* Sat Jun 10 2023 Louis Abel <label@rockylinux.org> - 8.9-1.5
- Define the distro macro
2023-05-17 01:45:10 +00:00
* Tue May 16 2023 Louis Abel <label@rockylinux.org> - 8.9-1.4
- Update gz
2023-04-27 05:33:22 +00:00
* Tue Apr 25 2023 Louis Abel <label@rockylinux.org> - 8.9-1.3
2023-04-25 19:23:02 +00:00
- Update secure boot certificates
2023-03-29 14:44:45 +00:00
* Wed Mar 29 2023 Louis Abel <label@rockylinux.org> - 8.9-1.1
- Bump to 8.9 for lookahead development
2023-03-17 22:12:00 +00:00
* Fri Mar 17 2023 Louis Abel <label@rockylinux.org> - 8.8-1.5
2023-03-17 22:02:43 +00:00
- Backport rocky-sb-certs to Rocky Linux 8
2023-02-01 08:57:45 +00:00
* Wed Jan 01 2023 Louis Abel <label@rockylinux.org> - 8.8-1.3
- Move macros to a proper location
2022-12-23 02:26:02 +00:00
* Thu Dec 22 2022 Louis Abel <label@rockylinux.org> - 8.8-1.2
- Add SUPPORT_END to absolute EOL
2022-10-19 00:47:38 +00:00
* Tue Oct 18 2022 Louis Abel <label@rockylinux.org> - 8.8-1.1
- Bump to 8.8 for lookahead development
* Wed Sep 07 2022 Louis Abel <label@rockylinux.org> - 8.7-1.1
- Branch off and make system-release version use X.Y-A.B
format in attempt to match upstream.
2022-08-30 09:00:40 +00:00
- Add stream dnf var
2022-05-20 17:31:45 +00:00
* Fri May 20 2022 Louis Abel <label@rockylinux.org> - 8.6-3
- Add pub/sig var for dnf
2022-03-29 23:58:09 +00:00
* Tue Mar 29 2022 Louis Abel <label@rockylinux.org> - 8.6-2
2022-03-29 16:54:26 +00:00
- 8.6 prepatory release
2022-03-29 23:58:09 +00:00
- Add REDHAT_SUPPORT_PRODUCT to /etc/os-release
2022-03-29 16:54:26 +00:00
2022-02-14 21:55:42 +00:00
* Mon Feb 14 2022 Louis Abel <label@rockylinux.org> - 8.5-4
- Add bootstrap to macros to match EL9
2021-12-22 02:21:40 +00:00
* Tue Dec 21 2021 Louis Abel <label@rockylinux.org> - 8.5-3
- Add countme=1 to base repositories
2021-12-11 23:59:44 +00:00
* Sat Dec 11 2021 Louis Abel <label@rockylinux.org> - 8.5-2
- Fix CPE to match upstreamed Rocky data
* Tue Oct 05 2021 Louis Abel <label@rockylinux.org> - 8.5-1
- 8.5 prepatory release
2021-09-13 23:05:19 +00:00
* Mon Sep 13 2021 Louis Abel <label@rockylinux.org> - 8.4-35
2021-09-13 22:28:39 +00:00
- Add missing CentOS provides and symlinks
2021-09-13 23:05:19 +00:00
- Add centos macros for some builds to complete successfully without relying
on random patching
2021-09-13 22:28:39 +00:00
2021-09-09 17:20:38 +00:00
* Thu Sep 09 2021 Louis Abel <label@rockylinux.org> - 8.4-33
- Add centos as an id_like to allow current and future SIGs that rely on CentOS
to work properly.
2021-07-10 22:01:25 +00:00
* Wed Jul 07 2021 Louis Abel <label@rockylinux.org> - 8.4-32
2021-07-07 05:04:04 +00:00
- Fix URLs for Plus and NFV
2021-07-10 22:01:25 +00:00
- Use a macro for the license across sub packages
- Fix bogus date in changelog
2021-07-07 05:04:04 +00:00
2021-07-06 05:46:41 +00:00
* Mon Jul 05 2021 Louis Abel <label@rockylinux.org> - 8.4-30
- Fix URLs for debuginfo
2021-07-10 22:01:25 +00:00
* Tue Jun 29 2021 Louis Abel <label@rockylinux.org> - 8.4-29
2021-06-25 07:43:23 +00:00
- Fix URLs
2021-06-25 19:50:09 +00:00
- Added debuginfo
2021-06-30 06:07:04 +00:00
- Added NFV (future state)
2021-06-25 07:43:23 +00:00
2021-06-17 00:12:37 +00:00
* Wed Jun 16 2021 Louis Abel <label@rockylinux.org> - 8.4-25
- Fix up outstanding issues
2021-06-05 15:47:07 +00:00
* Sat Jun 05 2021 Louis Abel <label@rockylinux.org> - 8.4-24
- Change all mirrorlist urls to https
2021-05-28 05:29:55 +00:00
* Tue May 25 2021 Louis Abel <label@rockylinux.org> - 8.4-23
2021-05-25 00:36:03 +00:00
- Add a version codename to satisfy vendors
2021-05-25 01:23:37 +00:00
- Change license
2021-05-28 05:29:55 +00:00
- Fix up /etc/os-release and CPE
2021-05-26 03:07:44 +00:00
- Remove unused infra var
2021-05-28 05:29:55 +00:00
- Change base_release_version to major
2021-05-24 22:19:45 +00:00
2021-05-20 00:06:30 +00:00
* Wed May 19 2021 Louis Abel <label@rockylinux.org> - 8.4-16
- Remove annoying /etc/issue banner
2021-05-08 17:54:40 +00:00
* Sat May 08 2021 Louis Abel <label@rockylinux.org> - 8.4-15
- Release for 8.4
2021-05-05 08:45:26 +00:00
* Wed May 05 2021 Louis Abel <label@rockylinux.org> - 8.3-14
- Add RT, Plus, and NFV repo files
2021-05-03 09:57:38 +00:00
* Mon May 03 2021 Louis Abel <label@rockylinux.org> - 8.3-13
- Add minor version to /etc/os-release to resolve issues
with products that provide the "full version"
2021-05-01 16:44:14 +00:00
* Sat May 01 2021 Louis Abel <label@rockylinux.org> - 8.3-12
- Add resilient storage varient
- Fix vars
2021-04-29 02:48:40 +00:00
* Wed Apr 28 2021 Louis Abel <label@rockylinux.org> - 8.3-11
2021-04-29 01:44:13 +00:00
- Fix repo URL's where needed
- Change contentdir var
2021-04-25 07:17:20 +00:00
* Sun Apr 25 2021 Louis Abel <label@rockylinux.org> - 8.3-9
- Remove and add os-release references
2021-04-19 03:21:16 +00:00
* Sun Apr 18 2021 Louis Abel <label@rockylinux.org> - 8.3-8
- Emphasize that this is not a production ready release
- rpmlint
2021-04-15 04:05:42 +00:00
* Wed Apr 14 2021 Louis Abel <label@rockylinux.org> - 8.3-7
2021-04-15 03:20:30 +00:00
- Fix mantis links
2021-04-09 03:50:23 +00:00
* Thu Apr 08 2021 Louis Abel <label@rockylinux.org> - 8.3-5
- Combine release, repos, and keys together to simplify
2021-03-22 21:49:27 +00:00
* Mon Feb 01 2021 Louis Abel <label@rockylinux.org> - 8.3-4
2021-02-01 07:12:25 +00:00
- Initial Rocky Release 8.3 based on CentOS 8.3
2021-02-22 06:50:05 +00:00
- Keep centos rpm macro to reduce package modification burden
2021-03-22 21:49:27 +00:00
- Update /etc/issue