mirror of
https://git.rockylinux.org/staging/src/rocky-release.git
synced 2024-11-24 15:11:22 +00:00
lookahead testing
This commit is contained in:
parent
9e254fc9bb
commit
c5c7de6566
@ -20,7 +20,9 @@
|
|||||||
# Rocky LookAhead Section
|
# Rocky LookAhead Section
|
||||||
#
|
#
|
||||||
# Note to Packagers/Builders: If you wish to enable this, rllh should be
|
# Note to Packagers/Builders: If you wish to enable this, rllh should be
|
||||||
# defined as "lookahead"
|
# set to a number greater than 0. There is a chance
|
||||||
|
# that rllh could be used as a way to define what
|
||||||
|
# the "internal" version of lookahead is.
|
||||||
# Check for lookahead and reset defines - This ensures a "lookahead" system
|
# Check for lookahead and reset defines - This ensures a "lookahead" system
|
||||||
# will contact the mirrors or set the baseurl to properly use Rocky LookAhead,
|
# will contact the mirrors or set the baseurl to properly use Rocky LookAhead,
|
||||||
# otherwise, the default is "stable"
|
# otherwise, the default is "stable"
|
||||||
@ -28,7 +30,8 @@
|
|||||||
%define minor 1
|
%define minor 1
|
||||||
%define contentdir pub/rocky-lh
|
%define contentdir pub/rocky-lh
|
||||||
%define rltype lookahead
|
%define rltype lookahead
|
||||||
%define rlstatement " (LookAhead) "
|
%define rlpkg -lookahead
|
||||||
|
%define rlstatement (LookAhead)
|
||||||
%endif
|
%endif
|
||||||
# End Rocky LookAhead Section
|
# End Rocky LookAhead Section
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -46,7 +49,7 @@
|
|||||||
|
|
||||||
# conditional section for future use
|
# conditional section for future use
|
||||||
|
|
||||||
Name: rocky-release%{?rllh:-lookahead}
|
Name: rocky-release%{?rlpkg}
|
||||||
Version: %{major}.%{minor}
|
Version: %{major}.%{minor}
|
||||||
Release: %{rocky_rel}.el%{major}
|
Release: %{rocky_rel}.el%{major}
|
||||||
Summary: %{distro_name} release files
|
Summary: %{distro_name} release files
|
||||||
@ -117,7 +120,7 @@ Source1300: rocky.1.gz
|
|||||||
%description
|
%description
|
||||||
%{distro_name} release files.
|
%{distro_name} release files.
|
||||||
|
|
||||||
%package -n rocky-repos%{?rllh:-lookahead}
|
%package -n rocky-repos%{?rlpkg}
|
||||||
Summary: %{distro_name} Package Repositories
|
Summary: %{distro_name} Package Repositories
|
||||||
License: %{rpm_license}
|
License: %{rpm_license}
|
||||||
Provides: rocky-repos(%{major}) = %{full_release_version}
|
Provides: rocky-repos(%{major}) = %{full_release_version}
|
||||||
@ -125,22 +128,22 @@ Requires: system-release = %{full_release_version}
|
|||||||
Requires: rocky-gpg-keys
|
Requires: rocky-gpg-keys
|
||||||
Conflicts: %{name} < 8.0
|
Conflicts: %{name} < 8.0
|
||||||
|
|
||||||
%description -n rocky-repos%{?rllh:-lookahead}
|
%description -n rocky-repos%{?rlpkg}
|
||||||
%{distro_name} package repository files for yum/dnf
|
%{distro_name} package repository files for yum/dnf
|
||||||
|
|
||||||
%package -n rocky-gpg-keys%{?rllh:-lookahead}
|
%package -n rocky-gpg-keys%{?rlpkg}
|
||||||
Summary: Rocky RPM GPG Keys
|
Summary: Rocky RPM GPG Keys
|
||||||
Conflicts: %{name} < 8.0
|
Conflicts: %{name} < 8.0
|
||||||
|
|
||||||
%description -n rocky-gpg-keys%{?rllh:-lookahead}
|
%description -n rocky-gpg-keys%{?rlpkg}
|
||||||
This package provides the RPM signature keys for Rocky.
|
This package provides the RPM signature keys for Rocky.
|
||||||
|
|
||||||
%package -n rocky-sb-certs%{?rllh:-lookahead}
|
%package -n rocky-sb-certs%{?rlpkg}
|
||||||
Summary: %{distro_name} public secureboot certificates
|
Summary: %{distro_name} public secureboot certificates
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Provides: system-sb-certs = %{version}-%{release}
|
Provides: system-sb-certs = %{version}-%{release}
|
||||||
|
|
||||||
%description -n rocky-sb-certs%{?rllh:-lookahead}
|
%description -n rocky-sb-certs%{?rlpkg}
|
||||||
This package contains the %{distro_name} secureboot public certificates.
|
This package contains the %{distro_name} secureboot public certificates.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -157,7 +160,7 @@ cp %{SOURCE201} %{SOURCE202} %{SOURCE203} ./docs
|
|||||||
################################################################################
|
################################################################################
|
||||||
# system-release data
|
# system-release data
|
||||||
install -d -m 0755 %{buildroot}%{_sysconfdir}
|
install -d -m 0755 %{buildroot}%{_sysconfdir}
|
||||||
echo "%{distro_name} release %{version} (%{distro_code})%{?rlstatement}" > %{buildroot}%{_sysconfdir}/rocky-release
|
echo "%{distro_name} release %{version} (%{distro_code})%{?rlstatement: %{rlstatement}}" > %{buildroot}%{_sysconfdir}/rocky-release
|
||||||
echo "Derived from Red Hat Enterprise Linux %{version}" > %{buildroot}%{_sysconfdir}/rocky-release-upstream
|
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}/system-release
|
||||||
ln -s rocky-release %{buildroot}%{_sysconfdir}/redhat-release
|
ln -s rocky-release %{buildroot}%{_sysconfdir}/redhat-release
|
||||||
@ -174,7 +177,7 @@ ID="rocky"
|
|||||||
ID_LIKE="rhel centos fedora"
|
ID_LIKE="rhel centos fedora"
|
||||||
VERSION_ID="%{full_release_version}"
|
VERSION_ID="%{full_release_version}"
|
||||||
PLATFORM_ID="platform:el%{major}"
|
PLATFORM_ID="platform:el%{major}"
|
||||||
PRETTY_NAME="%{distro_name} %{full_release_version} (%{distro_code})%{?rlstatement}"
|
PRETTY_NAME="%{distro_name} %{full_release_version} (%{distro_code})%{?rlstatement: %{rlstatement}}"
|
||||||
ANSI_COLOR="0;32"
|
ANSI_COLOR="0;32"
|
||||||
CPE_NAME="cpe:/o:rocky:rocky:%{full_release_version}:GA"
|
CPE_NAME="cpe:/o:rocky:rocky:%{full_release_version}:GA"
|
||||||
HOME_URL="https://rockylinux.org/"
|
HOME_URL="https://rockylinux.org/"
|
||||||
@ -316,16 +319,16 @@ install -p -m 0644 %{SOURCE102} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/
|
|||||||
%{_prefix}/lib/sysctl.d/50-redhat.conf
|
%{_prefix}/lib/sysctl.d/50-redhat.conf
|
||||||
%{_mandir}/man1/rocky.1.gz
|
%{_mandir}/man1/rocky.1.gz
|
||||||
|
|
||||||
%files -n rocky-repos
|
%files -n rocky-repos%{?rlpkg}
|
||||||
%license docs/LICENSE
|
%license docs/LICENSE
|
||||||
%config(noreplace) %{_sysconfdir}/yum.repos.d/Rocky-*.repo
|
%config(noreplace) %{_sysconfdir}/yum.repos.d/Rocky-*.repo
|
||||||
%config(noreplace) %{_sysconfdir}/dnf/vars/contentdir
|
%config(noreplace) %{_sysconfdir}/dnf/vars/contentdir
|
||||||
%config(noreplace) %{_sysconfdir}/dnf/vars/rltype
|
%config(noreplace) %{_sysconfdir}/dnf/vars/rltype
|
||||||
|
|
||||||
%files -n rocky-gpg-keys
|
%files -n rocky-gpg-keys%{?rlpkg}
|
||||||
%{_sysconfdir}/pki/rpm-gpg/
|
%{_sysconfdir}/pki/rpm-gpg/
|
||||||
|
|
||||||
%files -n rocky-sb-certs
|
%files -n rocky-sb-certs%{?rlpkg}
|
||||||
# care: resetting symlinks is intended
|
# care: resetting symlinks is intended
|
||||||
%dir %{_sysconfdir}/pki/sb-certs
|
%dir %{_sysconfdir}/pki/sb-certs
|
||||||
%dir %{_datadir}/pki/sb-certs
|
%dir %{_datadir}/pki/sb-certs
|
||||||
@ -333,9 +336,10 @@ install -p -m 0644 %{SOURCE102} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/
|
|||||||
%{_datadir}/pki/sb-certs/*.crt
|
%{_datadir}/pki/sb-certs/*.crt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sun Nov 28 2021 Louis Abel <label@rockylinux.org> - 9.0-1.2
|
* Mon Nov 29 2021 Louis Abel <label@rockylinux.org> - 9.0-1.2
|
||||||
- Sync with upstream
|
- Sync with upstream
|
||||||
- Adding conditionals section for future use
|
- Adding conditionals section for future use
|
||||||
|
- Add direct LookAhead support
|
||||||
|
|
||||||
* Mon Nov 01 2021 Louis Abel <label@rockylinux.org> - 9.0-1.1
|
* Mon Nov 01 2021 Louis Abel <label@rockylinux.org> - 9.0-1.1
|
||||||
- Change everything to baseurl for now
|
- Change everything to baseurl for now
|
||||||
|
Loading…
Reference in New Issue
Block a user