]> granicus.if.org Git - strace/commitdiff
strace.spec.in: add support for old distros that cannot handle .tar.xz
authorEugene Syromyatnikov <evgsyr@gmail.com>
Wed, 21 Sep 2016 00:23:57 +0000 (03:23 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 22 Oct 2019 17:44:08 +0000 (17:44 +0000)
strace.spec.in

index b5905147819d4b0e902b390911b81e02923e5681..f8a2545940051f44d065626e3d1d8e4c2bf77ab1 100644 (file)
@@ -12,7 +12,12 @@ License: LGPL-2.1+ and GPL-2.0+
 Group: Development%{?suse_version:/Tools}/Debuggers
 %endif
 URL: https://strace.io
+%if 0%{?fedora} >= 12 || 0%{?centos} >= 6 || 0%{?rhel} >= 6 || 0%{?suse_version} >= 1200
 Source: https://strace.io/files/%{version}/strace-%{version}.tar.xz
+BuildRequires: xz
+%else
+Source: strace-%{version}.tar.gz
+%endif
 BuildRequires: gcc gzip
 
 # Install Bluetooth headers for AF_BLUETOOTH sockets decoding.