mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-26 18:53:10 +08:00
Add PATH if prefix != /usr
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
%build
|
||||
%if "%{_prefix}" != "/usr"
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%endif
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%if "%{_prefix}" != "/usr"
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%endif
|
||||
cd build
|
||||
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
cd ..
|
||||
|
||||
|
||||
Reference in New Issue
Block a user