!86 [sync] PR-84: remove redundant judgments

From: @openeuler-sync-bot 
Reviewed-by: @yang_yanchao 
Signed-off-by: @yang_yanchao
This commit is contained in:
openeuler-ci-bot 2024-02-28 03:56:50 +00:00 committed by Gitee
commit f154ccd1f7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3,7 +3,7 @@
Summary: Tracks and displays system calls associated with a running process
Name: strace
Version: 5.14
Release: 4
Release: 5
# The test suite is GPLv2+, all the rest is LGPLv2.1+.
License: LGPL-2.1+ and GPL-2.0+
# Some distros require Group tag to be present,
@ -11,12 +11,8 @@ License: LGPL-2.1+ 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
%ifarch sw_64
Patch1: strace-5.14-sw.patch
%endif
@ -25,19 +21,11 @@ Patch3: strace-5.14-solve-ilp32-strace-build-error.patch
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
# 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}
@ -106,6 +94,9 @@ wait
%{_mandir}/man1/*
%changelog
* Wed Feb 28 2024 liuchao <liuchao173@huawei.com> - 5.14-5
- remove redundant judgments
* Tue Apr 4 2023 chenzanyu <chenzanyu@huawei.com> - 5.14-4
- solve ilp32 strace build error