mirror of
https://git.rockylinux.org/staging/src/rocky-release.git
synced 2024-11-25 07:21:23 +00:00
add version code
This commit is contained in:
parent
af9ad915ca
commit
b39e095544
@ -6,10 +6,11 @@
|
||||
%define variant_lowercase server
|
||||
|
||||
# Distribution Name and Version
|
||||
%define distro Rocky Linux
|
||||
%define distro_name Rocky Linux
|
||||
%define distro_code Green Obsidian
|
||||
%define major 8
|
||||
%define minor 4
|
||||
%define rocky_rel 16
|
||||
%define rocky_rel 17
|
||||
%define upstream_rel %{major}.%{minor}
|
||||
|
||||
%define base_release_version %{major}
|
||||
@ -26,7 +27,7 @@
|
||||
Name: rocky-release
|
||||
Version: %{major}.%{minor}
|
||||
Release: %{rocky_rel}.el8
|
||||
Summary: %{distro} release files
|
||||
Summary: %{distro_name} release files
|
||||
License: GPLv2
|
||||
URL: https://rockylinux.org
|
||||
BuildArch: noarch
|
||||
@ -83,10 +84,10 @@ Source1223: Rocky-Devel.repo
|
||||
Source1226: Rocky-Plus.repo
|
||||
|
||||
%description
|
||||
%{distro} release files.
|
||||
%{distro_name} release files.
|
||||
|
||||
%package -n rocky-repos
|
||||
Summary: %{distro} Package Repositories
|
||||
Summary: %{distro_name} Package Repositories
|
||||
License: GPLv2
|
||||
Provides: rocky-repos(%{major}) = %{upstream_rel}
|
||||
Requires: system-release = %{upstream_rel}
|
||||
@ -94,7 +95,7 @@ Requires: rocky-gpg-keys
|
||||
Conflicts: %{name} < 8.0
|
||||
|
||||
%description -n rocky-repos
|
||||
%{distro} package repository files for yum/dnf
|
||||
%{distro_name} package repository files for yum/dnf
|
||||
|
||||
%package -n rocky-gpg-keys
|
||||
Summary: Rocky RPM GPG Keys
|
||||
@ -115,7 +116,7 @@ cp %{SOURCE201} %{SOURCE202} %{SOURCE203} .
|
||||
|
||||
# create /etc/system-release and /etc/redhat-release
|
||||
install -d -m 0755 %{buildroot}%{_sysconfdir}
|
||||
echo "%{distro} release %{version}" > %{buildroot}%{_sysconfdir}/rocky-release
|
||||
echo "%{distro_name} release %{version} (%{distro_code})" > %{buildroot}%{_sysconfdir}/rocky-release
|
||||
echo "Derived from Red Hat Enterprise Linux %{version}" > %{buildroot}%{_sysconfdir}/rocky-release-upstream
|
||||
ln -s rocky-release %{buildroot}%{_sysconfdir}/system-release
|
||||
ln -s rocky-release %{buildroot}%{_sysconfdir}/redhat-release
|
||||
@ -123,19 +124,19 @@ ln -s rocky-release %{buildroot}%{_sysconfdir}/redhat-release
|
||||
# Create the os-release file
|
||||
install -d -m 0755 %{buildroot}%{_prefix}/lib
|
||||
cat > %{buildroot}%{_prefix}/lib/os-release << EOF
|
||||
NAME="%{distro}"
|
||||
VERSION="%{major}.%{minor}"
|
||||
NAME="%{distro_name}"
|
||||
VERSION="%{major}.%{minor} (%{distro_code})"
|
||||
ID="rocky"
|
||||
ID_LIKE="rhel fedora"
|
||||
VERSION_ID="%{major}.%{minor}"
|
||||
VERSION_CODENAME=""
|
||||
PLATFORM_ID="platform:el%{major}"
|
||||
PRETTY_NAME="%{distro} %{major}.%{minor}"
|
||||
ANSI_COLOR="0;31"
|
||||
PRETTY_NAME="%{distro_name} %{major}.%{minor} (%{distro_code})"
|
||||
ANSI_COLOR="0;32"
|
||||
CPE_NAME="cpe:/o:rocky:rocky:%{major}"
|
||||
HOME_URL="https://rockylinux.org/"
|
||||
BUG_REPORT_URL="https://bugs.rockylinux.org/"
|
||||
ROCKY_SUPPORT_PRODUCT="Rocky Linux"
|
||||
ROCKY_SUPPORT_PRODUCT="%{distro_name}"
|
||||
ROCKY_SUPPORT_PRODUCT_VERSION="%{major}"
|
||||
EOF
|
||||
|
||||
@ -227,7 +228,7 @@ install -p -m 0644 %{SOURCE1226} %{buildroot}%{_sysconfdir}/yum.repos.d/
|
||||
|
||||
%changelog
|
||||
* Mon May 24 2021 Louis Abel <label@rockylinux.org> - 8.4-17
|
||||
- Add VERSION_CODENAME
|
||||
- Add a version codename to satisfy vendors
|
||||
|
||||
* Wed May 19 2021 Louis Abel <label@rockylinux.org> - 8.4-16
|
||||
- Remove annoying /etc/issue banner
|
||||
|
Loading…
Reference in New Issue
Block a user