Add SCL compatibility to LTS builds.
Adds basic compatibility without needing the full SCL toolchain.
This commit is contained in:
parent
b3884b6199
commit
7a05dfee17
18
make.spec
18
make.spec
@ -5,7 +5,7 @@
|
|||||||
Name: make
|
Name: make
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 4.3
|
Version: 4.3
|
||||||
Release: 9%{?dist}
|
Release: 10%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: http://www.gnu.org/software/make/
|
URL: http://www.gnu.org/software/make/
|
||||||
Source: ftp://ftp.gnu.org/gnu/make/make-%{version}.tar.gz
|
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
|
ln -sf make.1 ${RPM_BUILD_ROOT}/%{_mandir}/man1/gmake.1
|
||||||
rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
|
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
|
%find_lang make
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -126,11 +135,18 @@ echo ============END TESTING===========
|
|||||||
%{_mandir}/man*/*
|
%{_mandir}/man*/*
|
||||||
%{_infodir}/*.info*
|
%{_infodir}/*.info*
|
||||||
%{_includedir}/gnumake.h
|
%{_includedir}/gnumake.h
|
||||||
|
%if "%{name}" != "make"
|
||||||
|
/etc/scl/prefixes/%{make}
|
||||||
|
%{_prefix}/enable
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n %{make}-devel
|
%files -n %{make}-devel
|
||||||
%{_includedir}/gnumake.h
|
%{_includedir}/gnumake.h
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 14 2022 DJ Delorie <dj@redhat.com> - 1:4.3-10
|
||||||
|
- Add SCL compatibility to LTS builds.
|
||||||
|
|
||||||
* Wed Jun 29 2022 DJ Delorie <dj@redhat.com> - 1:4.3-9
|
* Wed Jun 29 2022 DJ Delorie <dj@redhat.com> - 1:4.3-9
|
||||||
- Enable long-term supported builds.
|
- Enable long-term supported builds.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user