From b57ef8018e3ebc53bca381fb04af5eeb8faa282a Mon Sep 17 00:00:00 2001 From: SuperSix173 Date: Wed, 28 Feb 2024 10:35:31 +0800 Subject: [PATCH] remove redundant judgments Signed-off-by: SuperSix173 --- strace.spec | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/strace.spec b/strace.spec index e70483e..df74d92 100644 --- a/strace.spec +++ b/strace.spec @@ -3,7 +3,7 @@ Summary: Tracks and displays system calls associated with a running process Name: strace Version: 5.6 -Release: 3 +Release: 4 # The test suite is GPLv2+, all the rest is LGPLv2.1+. License: LGPL-2.0+ and GPL-2.0 # Some distros require Group tag to be present, @@ -11,18 +11,12 @@ License: LGPL-2.0+ and GPL-2.0 # some do not care about Group tag at all, # and we have to cater for all of them. URL: https://strace.io -%if 0%{?fedora} >= 12 || 0%{?centos} >= 6 || 0%{?rhel} >= 6 || 0%{?suse_version} >= 1200 || 0%{?openEuler} >= 1 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. -%if 0%{?fedora} >= 18 || 0%{?centos} >= 6 || 0%{?rhel} >= 8 || 0%{?suse_version} >= 1200 || 0%{?openEuler} >= 1 BuildRequires: pkgconfig(bluez) -%endif Patch: 0000-strace-fix-failed-tests.patch Patch: 0001-io_uring-Remove-struct-io_cqring_offsets-compile-tim.patch @@ -31,13 +25,7 @@ Patch: 0003-build-regenerate-build-deps.patch # Install elfutils-devel or libdw-devel to enable strace -k option. # Install binutils-devel to enable symbol demangling. -%if 0%{?fedora} >= 20 || 0%{?centos} >= 6 || 0%{?rhel} >= 6 || 0%{?openEuler} >= 1 -%define buildrequires_stacktrace BuildRequires: elfutils-devel binutils-devel -%endif -%if 0%{?suse_version} >= 1100 -%define buildrequires_stacktrace BuildRequires: libdw-devel binutils-devel -%endif -%{?buildrequires_stacktrace} +BuildRequires: elfutils-devel binutils-devel # OBS compatibility %{?!buildroot:BuildRoot: %_tmppath/buildroot-%name-%version-%release} @@ -95,6 +83,9 @@ wait %{_mandir}/man1/* %changelog +* Wed Feb 28 2024 liuchao - 5.6-4 +- remove redundant judgments + * Sun Oct 16 2022 Weifeng Su - 5.6-3 - disable the test -- Gitee