Use RPM_BUILD_ROOT directly instead of passing it as an argument
This commit is contained in:
parent
ed9755f4a4
commit
a9457917b1
4
mpi.attr
4
mpi.attr
@ -1,5 +1,5 @@
|
||||
%__mpi_provides %{_rpmconfigdir}/mpi.prov %{buildroot} %{?__filter_GLIBC_PRIVATE:--filter-private}
|
||||
%__mpi_requires %{_rpmconfigdir}/mpi.req %{buildroot} %{?__filter_GLIBC_PRIVATE:--filter-private}
|
||||
%__mpi_provides %{_rpmconfigdir}/mpi.prov %{?__filter_GLIBC_PRIVATE:--filter-private}
|
||||
%__mpi_requires %{_rpmconfigdir}/mpi.req %{?__filter_GLIBC_PRIVATE:--filter-private}
|
||||
%__mpi_path ^%{_prefix}/lib(64)?/.*$
|
||||
%__mpi_magic ^(setuid )?(setgid )?(sticky )?ELF (32|64)-bit.*$
|
||||
%__mpi_flags exeonly,magic_and_path
|
||||
|
2
mpi.prov
2
mpi.prov
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
# First argument is buildroot
|
||||
buildroot="$1"
|
||||
buildroot="$RPM_BUILD_ROOT"
|
||||
if [ ! -d "$buildroot" ]; then
|
||||
>&2 echo "Invalid buildroot"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user