Add PATH if prefix != /usr

This commit is contained in:
Ralf Corsepius
2007-05-11 03:04:06 +00:00
parent 08f9722552
commit 206cc90f51
2 changed files with 7 additions and 1 deletions
+3
View File
@@ -1,4 +1,7 @@
%build
%if "%{_prefix}" != "/usr"
export PATH="%{_bindir}:${PATH}"
%endif
mkdir -p build
cd build
+4 -1
View File
@@ -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 ..