Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/trace-cmd.git#d67fa86091bc95f3d0b41e523a7bd8991b2fefdd
This commit is contained in:
DistroBaker 2021-04-02 14:40:25 +00:00
parent 499c8a0df1
commit e3cbe62c13
4 changed files with 44 additions and 61 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@
/trace-cmd-v2.7.tar.gz /trace-cmd-v2.7.tar.gz
/trace-cmd-v2.8.3.tar.gz /trace-cmd-v2.8.3.tar.gz
/trace-cmd-v2.9.1.tar.gz /trace-cmd-v2.9.1.tar.gz
/trace-cmd-v2.9.2.tar.gz

View File

@ -1,27 +0,0 @@
From be4884c74355e0b84552e95a5ea2a4a808693acb Mon Sep 17 00:00:00 2001
From: Zamir SUN <sztsian@gmail.com>
Date: Mon, 12 Oct 2020 21:05:29 +0800
Subject: [PATCH] trace-cmd: Temporary move libtraceevent back to
%{_libdir}/trace-cmd
Signed-off-by: Zamir SUN <sztsian@gmail.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index b034042..fc0de09 100644
--- a/Makefile
+++ b/Makefile
@@ -68,7 +68,7 @@ plugin_tracecmd_dir = $(libdir)/trace-cmd/plugins
python_dir ?= $(libdir)/traceevent/python
var_dir = $(HOME)/.trace-cmd/
else
-plugin_traceevent_dir = $(libdir)/traceevent/plugins
+plugin_traceevent_dir = $(libdir)/trace-cmd/plugins
python_dir ?= $(libdir)/trace-cmd/python
PLUGIN_DIR_TRACEEVENT = -DPLUGIN_TRACEEVENT_DIR="$(plugin_traceevent_dir)"
PLUGIN_DIR_TRACECMD = -DPLUGIN_TRACECMD_DIR="$(plugin_tracecmd_dir)"
--
2.26.2

View File

@ -1 +1 @@
SHA512 (trace-cmd-v2.9.1.tar.gz) = 186bfdd8ff1e88e9e6d3ae87b123f049892deaaa8d6a42944b6f8abee6b828946b88774029aa96daf4423a3dfc01b42835508f44f636dd02579ef9a8ef425131 SHA512 (trace-cmd-v2.9.2.tar.gz) = ddb32446a5185ee6414f297de1d48fe39a7141c833a608fd3977dd0efd496bf18b59ea5d064316e7deb86c1cd82f33dcea4c0c145bb31b2473e85593f4d0d461

View File

@ -2,21 +2,23 @@
#%%global git_commit trace-cmd-v2.6.2 #%%global git_commit trace-cmd-v2.6.2
#%%global git_commit 57371aaa2f469d0ba15fd85276deca7bfdd7ce36 #%%global git_commit 57371aaa2f469d0ba15fd85276deca7bfdd7ce36
%global srcversion 2.9.2
Name: trace-cmd Name: trace-cmd
Version: 2.9.1 Version: %{srcversion}
# Note: After libtraceevent separated, remember to bump release to more than 20 to force a kernelshark update Release: 2%{?dist}
Release: 5%{?dist}
License: GPLv2 and LGPLv2 License: GPLv2 and LGPLv2
Summary: A user interface to Ftrace Summary: A user interface to Ftrace
Requires: trace-cmd-libs%{_isa} = %{version}-%{release} Requires: libtracecmd
Requires: libtracefs
Requires: libtraceevent
URL: http://git.kernel.org/?p=linux/kernel/git/rostedt/trace-cmd.git;a=summary URL: http://git.kernel.org/?p=linux/kernel/git/rostedt/trace-cmd.git;a=summary
# If upstream does not provide tarballs, to generate: # If upstream does not provide tarballs, to generate:
# git clone https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git # git clone https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git
# cd trace-cmd # cd trace-cmd
# git archive --prefix=trace-cmd-%%{version}/ -o trace-cmd-v%%{version}.tar.gz %%{git_commit} # git archive --prefix=trace-cmd-%%{version}/ -o trace-cmd-v%%{version}.tar.gz %%{git_commit}
Source0: https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/trace-cmd-v%{version}.tar.gz Source0: https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/trace-cmd-v%{srcversion}.tar.gz
Patch0: 0001-trace-cmd-Temporary-move-libtraceevent-back-to-_libd.patch
BuildRequires: make BuildRequires: make
BuildRequires: gcc BuildRequires: gcc
BuildRequires: xmlto BuildRequires: xmlto
@ -30,6 +32,7 @@ BuildRequires: cmake
BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtbase-devel
BuildRequires: freeglut-devel BuildRequires: freeglut-devel
BuildRequires: json-c-devel BuildRequires: json-c-devel
BuildRequires: libtraceevent-devel
%description %description
trace-cmd is a user interface to Ftrace. Instead of needing to use the trace-cmd is a user interface to Ftrace. Instead of needing to use the
@ -45,22 +48,23 @@ BuildRequires: python3-devel
%description python3 %description python3
Python plugin support for trace-cmd Python plugin support for trace-cmd
%package libs %package -n libtracecmd
Summary: Libraries of trace-cmd Summary: Libraries of trace-cmd
Version: 0
%description libs %description -n libtracecmd
Libraries of trace-cmd The libtracecmd library
%package devel %package -n libtracecmd-devel
Summary: Development headers of trace-cmd-libs Summary: Development files for libtracecmd
Requires: trace-cmd-libs%{_isa} = %{version}-%{release} Version: 0
Requires: libtracecmd%{_isa} = %{version}-%{release}
%description devel %description -n libtracecmd-devel
Development headers of trace-cmd-libs Development files of the libtracecmd library
%prep %prep
%setup -q -n %{name}-v%{version} %autosetup -n %{name}-v%{srcversion}
%patch0 -p1
%build %build
# MANPAGE_DOCBOOK_XSL define is hack to avoid using locate # MANPAGE_DOCBOOK_XSL define is hack to avoid using locate
@ -70,7 +74,7 @@ MANPAGE_DOCBOOK_XSL=`rpm -ql docbook-style-xsl | grep manpages/docbook.xsl`
CFLAGS="%{optflags} -D_GNU_SOURCE" LDFLAGS="%{build_ldflags}" BUILD_TYPE=Release \ CFLAGS="%{optflags} -D_GNU_SOURCE" LDFLAGS="%{build_ldflags}" BUILD_TYPE=Release \
make V=9999999999 MANPAGE_DOCBOOK_XSL=$MANPAGE_DOCBOOK_XSL \ make V=9999999999 MANPAGE_DOCBOOK_XSL=$MANPAGE_DOCBOOK_XSL \
prefix=%{_prefix} libdir=%{_libdir} \ prefix=%{_prefix} libdir=%{_libdir} \
PYTHON_VERS=python3 all doc plugins libs PYTHON_VERS=python3 all_cmd doc libtracecmd.so
for i in python/*.py ; do for i in python/*.py ; do
sed -i 's/env python2/python3/g' $i sed -i 's/env python2/python3/g' $i
done done
@ -80,10 +84,7 @@ make libdir=%{_libdir} prefix=%{_prefix} V=1 DESTDIR=%{buildroot}/ CFLAGS="%{opt
find %{buildroot}%{_mandir} -type f | xargs chmod u-x,g-x,o-x find %{buildroot}%{_mandir} -type f | xargs chmod u-x,g-x,o-x
find %{buildroot}%{_datadir} -type f | xargs chmod u-x,g-x,o-x find %{buildroot}%{_datadir} -type f | xargs chmod u-x,g-x,o-x
find %{buildroot}%{_libdir} -type f -iname "*.so" | xargs chmod 0755 find %{buildroot}%{_libdir} -type f -iname "*.so" | xargs chmod 0755
#sed -i '/Version/d' %{buildroot}/%{_datadir}/applications/kernelshark.desktop
#desktop-file-validate %{buildroot}/%{_datadir}/applications/kernelshark.desktop
mkdir -p %{buildroot}/%{_sysconfdir} mkdir -p %{buildroot}/%{_sysconfdir}
mv %{buildroot}/usr/etc/bash_completion.d %{buildroot}/%{_sysconfdir}/bash_completion.d
%files %files
%doc COPYING COPYING.LIB README %doc COPYING COPYING.LIB README
@ -96,22 +97,30 @@ mv %{buildroot}/usr/etc/bash_completion.d %{buildroot}/%{_sysconfdir}/bash_compl
%doc Documentation/README.PythonPlugin %doc Documentation/README.PythonPlugin
%{_libdir}/%{name}/python/ %{_libdir}/%{name}/python/
%files libs %files -n libtracecmd
%dir %{_libdir}/%{name} %doc COPYING COPYING.LIB README
%dir %{_libdir}/traceevent %{_libdir}/libtracecmd.so.0
%dir %{_libdir}/tracefs %{_libdir}/libtracecmd.so.0.0.1
%dir %{_libdir}/trace-cmd %{_docdir}/libtracecmd-doc
%{_libdir}/trace-cmd/libtracecmd.so %{_mandir}/man3/libtracecmd*
%{_libdir}/trace-cmd/plugins %{_mandir}/man3/tracecmd*
%{_libdir}/traceevent/
%{_libdir}/tracefs/
%files devel %files -n libtracecmd-devel
%{_libdir}/pkgconfig/libtracecmd.pc
%{_libdir}/libtracecmd.so
%{_includedir}/trace-cmd %{_includedir}/trace-cmd
%{_includedir}/traceevent
%{_includedir}/tracefs
%changelog %changelog
* Mon Mar 29 2021 Zamir SUN <sztsian@gmail.com> - 2.9.2-2
- Fix dependency of libtracecmd
- Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1943919
* Fri Mar 26 2021 Zamir SUN <sztsian@gmail.com> - 2.9.2-1
- Update to 2.9.2
* Wed Mar 24 2021 Jerome Marchand <jmarchan@redhat.com> - 2.9.1-6
- Build with external libtraceevent and libtracefs
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.1-5 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild