]> granicus.if.org Git - strace/commitdiff
2008-08-28 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Thu, 28 Aug 2008 23:26:21 +0000 (23:26 +0000)
committerRoland McGrath <roland@redhat.com>
Thu, 28 Aug 2008 23:26:21 +0000 (23:26 +0000)
* strace.spec (%ifarch %{strace64_arches}): Use cp -p instead of ln
for %{rhel} < 6.

strace.spec

index 335b26d9342522590332816a0e5879ccc5820875..3dd8f0f43654ead47916066853c7e819e2a85243 100644 (file)
@@ -55,8 +55,15 @@ make DESTDIR=%{buildroot} install
 # 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