!31 upgrade version to 6.1
From: @zhujinSuperKey Reviewed-by: @SuperSix173 Signed-off-by: @SuperSix173
This commit is contained in:
commit
4ffc3a44f5
Binary file not shown.
BIN
strace-6.1.tar.xz
Normal file
BIN
strace-6.1.tar.xz
Normal file
Binary file not shown.
53
strace.spec
53
strace.spec
@ -1,8 +1,6 @@
|
|||||||
#needsrootforbuild
|
|
||||||
# This spec file is from upstream.
|
|
||||||
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: 5.14
|
Version: 6.1
|
||||||
Release: 1
|
Release: 1
|
||||||
# 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+
|
||||||
@ -17,7 +15,7 @@ BuildRequires: xz
|
|||||||
%else
|
%else
|
||||||
Source: strace-%{version}.tar.gz
|
Source: strace-%{version}.tar.gz
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: gcc gzip
|
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
|
%if 0%{?fedora} >= 18 || 0%{?centos} >= 6 || 0%{?rhel} >= 8 || 0%{?suse_version} >= 1200 || 0%{?openEuler} >= 1
|
||||||
@ -38,6 +36,12 @@ BuildRequires: pkgconfig(bluez)
|
|||||||
%{?!buildroot:BuildRoot: %_tmppath/buildroot-%name-%version-%release}
|
%{?!buildroot:BuildRoot: %_tmppath/buildroot-%name-%version-%release}
|
||||||
%define maybe_use_defattr %{?suse_version:%%defattr(-,root,root)}
|
%define maybe_use_defattr %{?suse_version:%%defattr(-,root,root)}
|
||||||
|
|
||||||
|
# Fallback definitions for make_build/make_install macros
|
||||||
|
%{?!__make: %global __make %_bindir/make}
|
||||||
|
%{?!__install: %global __install %_bindir/install}
|
||||||
|
%{?!make_build: %global make_build %__make %{?_smp_mflags}}
|
||||||
|
%{?!make_install: %global make_install %__make install DESTDIR="%{?buildroot}"}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The strace program intercepts and records the system calls called and
|
The strace program intercepts and records the system calls called and
|
||||||
received by a running process. Strace can print a record of each
|
received by a running process. Strace can print a record of each
|
||||||
@ -49,10 +53,11 @@ Install strace if you need a tool to track the system calls made and
|
|||||||
received by a process.
|
received by a process.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%setup -q
|
||||||
echo -n %version-%release > .tarball-version
|
echo -n %version-%release > .tarball-version
|
||||||
echo -n 2020 > .year
|
echo -n 2022 > .year
|
||||||
echo -n 2020-04-06 > .strace.1.in.date
|
echo -n 2022-10-16 > doc/.strace.1.in.date
|
||||||
|
echo -n 2022-01-01 > doc/.strace-log-merge.1.in.date
|
||||||
|
|
||||||
%build
|
%build
|
||||||
echo 'BEGIN OF BUILD ENVIRONMENT INFORMATION'
|
echo 'BEGIN OF BUILD ENVIRONMENT INFORMATION'
|
||||||
@ -68,13 +73,10 @@ echo 'END OF BUILD ENVIRONMENT INFORMATION'
|
|||||||
|
|
||||||
CFLAGS_FOR_BUILD="$RPM_OPT_FLAGS"; export CFLAGS_FOR_BUILD
|
CFLAGS_FOR_BUILD="$RPM_OPT_FLAGS"; export CFLAGS_FOR_BUILD
|
||||||
%configure --enable-mpers=check
|
%configure --enable-mpers=check
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=%{buildroot} install
|
%make_install
|
||||||
|
|
||||||
# remove unpackaged files from the buildroot
|
|
||||||
rm -f %{buildroot}%{_bindir}/strace-graph
|
|
||||||
|
|
||||||
# some say uncompressed changelog files are too big
|
# some say uncompressed changelog files are too big
|
||||||
for f in ChangeLog ChangeLog-CVS; do
|
for f in ChangeLog ChangeLog-CVS; do
|
||||||
@ -83,15 +85,21 @@ done
|
|||||||
wait
|
wait
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# testcases which read /dev/full will fail because /dev/full is rw--w--w-- and
|
#width=$(echo __LONG_WIDTH__ |%__cc -E -P -)
|
||||||
# needsrootforbuild cannot take affect
|
#skip_32bit=0
|
||||||
#%{buildroot}%{_bindir}/strace -V
|
#%if 0%{?fedora} >= 35 || 0%{?rhel} > 9
|
||||||
#make %{?_smp_mflags} -k check VERBOSE=1
|
#skip_32bit=1
|
||||||
#echo 'BEGIN OF TEST SUITE INFORMATION'
|
#%endif
|
||||||
#tail -n 99999 -- tests*/test-suite.log tests*/ksysent.gen.log
|
|
||||||
#find tests* -type f -name '*.log' -print0 |
|
#if [ "${width}" != 32 ] || [ "${skip_32bit}" != 1 ]; then
|
||||||
# xargs -r0 grep -H '^KERNEL BUG:' -- ||:
|
# %{buildroot}%{_bindir}/strace -V
|
||||||
#echo 'END OF TEST SUITE INFORMATION'
|
# %make_build -k check VERBOSE=1
|
||||||
|
# echo 'BEGIN OF TEST SUITE INFORMATION'
|
||||||
|
# tail -n 99999 -- tests*/test-suite.log tests*/ksysent.gen.log
|
||||||
|
# find tests* -type f -name '*.log' -print0 |
|
||||||
|
# xargs -r0 grep -H '^KERNEL BUG:' -- ||:
|
||||||
|
# echo 'END OF TEST SUITE INFORMATION'
|
||||||
|
#fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%maybe_use_defattr
|
%maybe_use_defattr
|
||||||
@ -101,6 +109,9 @@ wait
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Feb 3 2023 zhujin <zhujin18@huawei.com> - 6.1-1
|
||||||
|
- update to 6.1
|
||||||
|
|
||||||
* Mon Nov 29 2021 zhouwenpei <zhouwenpei1@huawei.com> - 5.14-1
|
* Mon Nov 29 2021 zhouwenpei <zhouwenpei1@huawei.com> - 5.14-1
|
||||||
- update to 5.14
|
- update to 5.14
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user