diff --git a/README.md b/README.md index 2c6744d..f0d141e 100644 --- a/README.md +++ b/README.md @@ -8,15 +8,15 @@ This package produces multiple variants of `rocky-release`: * LookAhead: All packages appended with `-lookahead` * Beta: All packages appended with `-Beta` -* If `rllh` or `rlbeta` are set to a number higher than 0, those variants are built -* If `rllh` and `rlbeta` are set at the same time higher than 0, build will fail. +* If `--with=rllookahead` or `--with=rlbeta` are set in mock, those variants are built +* If both are set the same time, build will fail -When `rllh` is set the minor version will typically be `y+1`. So if the current +When `--with=rllookahead` is set the minor version will typically be `y+1`. So if the current stable is `X.0`, the next would be `X.1`. -For pre-releases/beta, both packages should produce `X.0` until changed in the spec. +For pre-releases/beta, both packages should produce `X.Y` until changed in the spec. -The `rllh` macro may be versioned out for future use. +The `rllh` macro may be versioned out for future use. It does not have to be explicitly set. A `rllh_minor` macro may be introduced in the future. diff --git a/SPECS/rocky-release.spec b/SPECS/rocky-release.spec index ff1b27f..958c14f 100644 --- a/SPECS/rocky-release.spec +++ b/SPECS/rocky-release.spec @@ -1,8 +1,12 @@ # Note to packagers/builders: # -# If you wish to build the LookAhead variant of this package, ensure that the -# rllh macro is set either in your build or in the build system. Please see -# the git repository readme for more information. +# If you wish to build the LookAhead or Beta variant of this package, sure +# that you are setting --with=rlbeta or --with=rllookahead on your mock +# command. See the README for more information. + +%bcond_with rlbeta +%bcond_with rllookahead +%bcond_with rloverride %define debug_package %{nil} @@ -29,7 +33,7 @@ # Rocky LookAhead Section # # Reset defines for LookAhead variant. Default is stable if 0 or undefined. -%if 0%{?rllh} +%if %{with rllookahead} %define minor 1 %define contentdir pub/rocky-lh %define rltype lookahead @@ -44,7 +48,7 @@ # # Reset defines for Beta variant. Default is stable if 0 or undefined. # We do NOT override the minor version number here. -%if 0%{?rlbeta} +%if %{with rlbeta} %define contentdir pub/rocky-beta %define rltype beta %define rlpkg -beta @@ -178,7 +182,7 @@ Provides: system-sb-certs = %{version}-%{release} This package contains the %{distro_name} secureboot public certificates. %prep -%if 0%{?rllh} && 0%{?rlbeta} +%if %{with rllookahead} && %{with rlbeta} echo "!! WARNING !!" echo "Both LookAhead and Beta were enabled. This is not supported." echo "As a result: BUILD FAILED." @@ -353,7 +357,7 @@ install -p -m 0644 %{SOURCE102} %{buildroot}%{_sysconfdir}/pki/rpm-gpg/ ################################################################################ # lookahead overrides # TODO: Is there a cleaner way? -%if 0%{?rllh} +%if %{with rllookahead} install -m 0644 %{SOURCE400} %{buildroot}/%{_prefix}/lib/systemd/system-preset/85-display-manager.preset install -m 0644 %{SOURCE401} %{buildroot}/%{_prefix}/lib/systemd/system-preset/90-default.preset install -m 0644 %{SOURCE402} %{buildroot}/%{_prefix}/lib/systemd/system-preset/90-default-user.preset