2008-08-28 Roland McGrath <roland@redhat.com>
* strace.spec (%ifarch %{strace64_arches}): Use cp -p instead of ln
for %{rhel} < 6.
diff --git a/strace.spec b/strace.spec
index 335b26d..3dd8f0f 100644
--- a/strace.spec
+++ b/strace.spec
@@ -55,8 +55,15 @@
# remove unpackaged files from the buildroot
rm -f %{buildroot}%{_bindir}/strace-graph
+%define copy64 ln
+%if 0%{?rhel}
+%if 0%{?rhel} < 6
+%endif
+%define copy64 cp -p
+%endif
+
%ifarch %{strace64_arches}
-ln %{buildroot}%{_bindir}/strace %{buildroot}%{_bindir}/strace64
+%{copy64} %{buildroot}%{_bindir}/strace %{buildroot}%{_bindir}/strace64
%endif
%clean