aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-10-05 12:51:58 -0700
committerBrian Behlendorf <[email protected]>2009-10-05 12:51:58 -0700
commitf44078fad5a941f2489ce0bbb8ed2c521f13f26e (patch)
treefb30e8397af210aba7e45cf99818334b12425619
parent39ab544079015f2b7ad854ef9c8815290d971f17 (diff)
Remove usage of the __id_u macro for portability.
This macro was removed from the default RPM macro file. Interestly, some of the arch specific macro's add it back it based on your distro but it should not be counted on. However, __id still exists and its command line args have historically been fairly stable so we will directly use %{__id} -un to get the user name.
-rw-r--r--spl-modules.spec.in2
-rw-r--r--spl.spec.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/spl-modules.spec.in b/spl-modules.spec.in
index 7740d9422..0c3dd10a9 100644
--- a/spl-modules.spec.in
+++ b/spl-modules.spec.in
@@ -168,7 +168,7 @@ Version: %{version}
Release: %{release}
License: @LICENSE@
URL: git://eris.llnl.gov/spl.git
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id} -un)
Source: @PACKAGE@-%{version}.tar.gz
Requires: %{requires}
BuildRequires: %{kdevpkg}
diff --git a/spl.spec.in b/spl.spec.in
index 34207f626..fcb3dcfc8 100644
--- a/spl.spec.in
+++ b/spl.spec.in
@@ -10,7 +10,7 @@ Version: %{version}
Release: %{release}
License: @LICENSE@
URL: git://eris.llnl.gov/spl.git
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id} -un)
Source: %{name}-%{version}.tar.gz
%description