From a9457917b1a04ba4b68678676689194fa907abd9 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Thu, 12 May 2016 13:16:33 +0200 Subject: [PATCH] Use RPM_BUILD_ROOT directly instead of passing it as an argument --- mpi.attr | 4 ++-- mpi.prov | 2 +- mpi.req | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mpi.attr b/mpi.attr index a172b0f..03ea6af 100644 --- a/mpi.attr +++ b/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 diff --git a/mpi.prov b/mpi.prov index 80baf7e..10946e1 100755 --- a/mpi.prov +++ b/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 diff --git a/mpi.req b/mpi.req index 0275b43..e510eeb 100755 --- a/mpi.req +++ b/mpi.req @@ -22,7 +22,7 @@ # First argument is buildroot -buildroot="$1" +buildroot="$RPM_BUILD_ROOT" if [ ! -d "$buildroot" ]; then >&2 echo "Invalid buildroot" exit 1