summaryrefslogtreecommitdiff
path: root/strace.spec.in
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2016-09-21 03:23:57 +0300
committerDmitry V. Levin <ldv@altlinux.org>2019-10-22 17:44:08 +0000
commitbb9ad19b0a7aa32f02024c38c6d4f55154ac3fbb (patch)
treeecf9b10d4077aece647c96c90f1d92fd4b82f7ab /strace.spec.in
parent3c57c523cd0c99bfec20338a8fd7ba76f476bc40 (diff)
downloadstrace-bb9ad19b0a7aa32f02024c38c6d4f55154ac3fbb.tar.gz
strace.spec.in: add support for old distros that cannot handle .tar.xz
Diffstat (limited to 'strace.spec.in')
-rw-r--r--strace.spec.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/strace.spec.in b/strace.spec.in
index b59051478..f8a254594 100644
--- a/strace.spec.in
+++ b/strace.spec.in
@@ -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.