!83 remove redundant judgments
From: @SuperSix173 Reviewed-by: @wangbin224 Signed-off-by: @wangbin224
This commit is contained in:
commit
2548cb66e1
19
strace.spec
19
strace.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: Tracks and displays system calls associated with a running process
|
Summary: Tracks and displays system calls associated with a running process
|
||||||
Name: strace
|
Name: strace
|
||||||
Version: 6.6
|
Version: 6.6
|
||||||
Release: 1
|
Release: 2
|
||||||
# The test suite is GPLv2+, all the rest is LGPLv2.1+.
|
# The test suite is GPLv2+, all the rest is LGPLv2.1+.
|
||||||
License: LGPL-2.1+ and GPL-2.0+
|
License: LGPL-2.1+ and GPL-2.0+
|
||||||
# Some distros require Group tag to be present,
|
# Some distros require Group tag to be present,
|
||||||
@ -9,28 +9,16 @@ License: LGPL-2.1+ and GPL-2.0+
|
|||||||
# some do not care about Group tag at all,
|
# some do not care about Group tag at all,
|
||||||
# and we have to cater for all of them.
|
# and we have to cater for all of them.
|
||||||
URL: https://strace.io
|
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
|
Source: https://strace.io/files/%{version}/strace-%{version}.tar.xz
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
%else
|
|
||||||
Source: strace-%{version}.tar.gz
|
|
||||||
%endif
|
|
||||||
BuildRequires: gcc gzip make
|
BuildRequires: gcc gzip make
|
||||||
|
|
||||||
# Install Bluetooth headers for AF_BLUETOOTH sockets decoding.
|
# 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)
|
BuildRequires: pkgconfig(bluez)
|
||||||
%endif
|
|
||||||
|
|
||||||
# Install elfutils-devel or libdw-devel to enable strace -k option.
|
# Install elfutils-devel or libdw-devel to enable strace -k option.
|
||||||
# Install binutils-devel to enable symbol demangling.
|
# Install binutils-devel to enable symbol demangling.
|
||||||
%if 0%{?fedora} >= 20 || 0%{?centos} >= 6 || 0%{?rhel} >= 6 || 0%{?openEuler} >= 1
|
BuildRequires: elfutils-devel binutils-devel
|
||||||
%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}
|
|
||||||
|
|
||||||
# OBS compatibility
|
# OBS compatibility
|
||||||
%{?!buildroot:BuildRoot: %_tmppath/buildroot-%name-%version-%release}
|
%{?!buildroot:BuildRoot: %_tmppath/buildroot-%name-%version-%release}
|
||||||
@ -112,6 +100,9 @@ wait
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Feb 28 2024 liuchao <liuchao173@huawei.com> - 6.6-2
|
||||||
|
- remove redundant judgments
|
||||||
|
|
||||||
* Fri Jan 19 2024 liuchao <liuchao173@huawei.com> - 6.6-1
|
* Fri Jan 19 2024 liuchao <liuchao173@huawei.com> - 6.6-1
|
||||||
- update to 6.6 to fix compile error with kernel 6.6
|
- update to 6.6 to fix compile error with kernel 6.6
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user