diff --git a/make.spec b/make.spec index 1a07b3a..4af34e0 100644 --- a/make.spec +++ b/make.spec @@ -5,7 +5,7 @@ Name: make Epoch: 1 Version: 4.3 -Release: 9%{?dist} +Release: 10%{?dist} License: GPLv3+ URL: http://www.gnu.org/software/make/ Source: ftp://ftp.gnu.org/gnu/make/make-%{version}.tar.gz @@ -112,6 +112,15 @@ ln -sf make ${RPM_BUILD_ROOT}/%{_bindir}/gmake ln -sf make.1 ${RPM_BUILD_ROOT}/%{_mandir}/man1/gmake.1 rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir +%if "%{name}" != "make" +install -d -m 755 ${RPM_BUILD_ROOT}/etc/scl/prefixes +dirname %{_prefix} > %{make}.prefix +install -p -m 644 %{make}.prefix ${RPM_BUILD_ROOT}/etc/scl/prefixes/%{make} + +echo "export PATH=%{_prefix}/bin:\$PATH" > enable.scl +install -p -m 755 enable.scl ${RPM_BUILD_ROOT}/%{_prefix}/enable +%endif + %find_lang make %check @@ -126,11 +135,18 @@ echo ============END TESTING=========== %{_mandir}/man*/* %{_infodir}/*.info* %{_includedir}/gnumake.h +%if "%{name}" != "make" +/etc/scl/prefixes/%{make} +%{_prefix}/enable +%endif %files -n %{make}-devel %{_includedir}/gnumake.h %changelog +* Thu Jul 14 2022 DJ Delorie - 1:4.3-10 +- Add SCL compatibility to LTS builds. + * Wed Jun 29 2022 DJ Delorie - 1:4.3-9 - Enable long-term supported builds.