[dd_rescue: 1/4] Use mktemp based BuildRoot

Hans Ulrich Niedermann ndim at fedoraproject.org
Sun May 20 13:03:44 UTC 2012


commit 9128218f99993465701b736d1bc31dbce7175c65
Author: Hans Ulrich Niedermann <hun at n-dimensional.de>
Date:   Sun May 20 14:55:46 2012 +0200

    Use mktemp based BuildRoot
    
    Useful for builds outside the standard Fedora build environment.

 dd_rescue.spec |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/dd_rescue.spec b/dd_rescue.spec
index 2f6f981..4bc7d08 100644
--- a/dd_rescue.spec
+++ b/dd_rescue.spec
@@ -10,7 +10,7 @@ License:        GPL+
 URL:            http://www.garloff.de/kurt/linux/ddrescue/
 Source0:        http://www.garloff.de/kurt/linux/ddrescue/dd_rescue-%{version}.tar.gz
 Source1:        http://www.kalysto.org/pkg/dd_rhelp-%{rhelp_version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 %description
 ddrescue is a utility similar to the system utility "dd" which copies


More information about the scm-commits mailing list