Use RPM_BUILD_ROOT directly instead of passing it as an argument

This commit is contained in:
Sandro Mani 2016-05-12 13:16:33 +02:00
parent ed9755f4a4
commit a9457917b1
3 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
%__mpi_provides %{_rpmconfigdir}/mpi.prov %{buildroot} %{?__filter_GLIBC_PRIVATE:--filter-private} %__mpi_provides %{_rpmconfigdir}/mpi.prov %{?__filter_GLIBC_PRIVATE:--filter-private}
%__mpi_requires %{_rpmconfigdir}/mpi.req %{buildroot} %{?__filter_GLIBC_PRIVATE:--filter-private} %__mpi_requires %{_rpmconfigdir}/mpi.req %{?__filter_GLIBC_PRIVATE:--filter-private}
%__mpi_path ^%{_prefix}/lib(64)?/.*$ %__mpi_path ^%{_prefix}/lib(64)?/.*$
%__mpi_magic ^(setuid )?(setgid )?(sticky )?ELF (32|64)-bit.*$ %__mpi_magic ^(setuid )?(setgid )?(sticky )?ELF (32|64)-bit.*$
%__mpi_flags exeonly,magic_and_path %__mpi_flags exeonly,magic_and_path

View File

@ -22,7 +22,7 @@
# First argument is buildroot # First argument is buildroot
buildroot="$1" buildroot="$RPM_BUILD_ROOT"
if [ ! -d "$buildroot" ]; then if [ ! -d "$buildroot" ]; then
>&2 echo "Invalid buildroot" >&2 echo "Invalid buildroot"
exit 1 exit 1

View File

@ -22,7 +22,7 @@
# First argument is buildroot # First argument is buildroot
buildroot="$1" buildroot="$RPM_BUILD_ROOT"
if [ ! -d "$buildroot" ]; then if [ ! -d "$buildroot" ]; then
>&2 echo "Invalid buildroot" >&2 echo "Invalid buildroot"
exit 1 exit 1