trace-cmd/trace-cmd.spec

110 lines
3.7 KiB
RPMSpec
Raw Normal View History

2020-10-29 19:30:03 +08:00
Name: trace-cmd
Version: 2.9.2
2024-04-01 16:38:28 +08:00
Release: 9
2020-10-29 19:30:03 +08:00
Summary: A front-end for Ftrace
License: GPLv2 and LGPLv2
URL: http://git.kernel.org/?p=linux/kernel/git/rostedt/trace-cmd.git;a=summary
Source0: https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git/snapshot/%{name}-v%{version}.tar.gz
Source1: kernelshark.desktop
Patch0001: backport-trace-cmd-report-Fix-typos-in-error-messages.patch
Patch0002: backport-trace-cmd-library-Fix-version-string-memory-leak.patch
Patch0003: backport-trace-cmd-library-Fixed-a-memory-leak-on-input-handl.patch
2024-04-01 16:38:28 +08:00
Patch0004: backport-Remove-unneeded-multiply-in-events-timesta.patch
Patch0005: backport-Changing-default-install-path-of-plugins.patch
Patch0006: backport-Fix-broken-profile-command.patch
2022-07-30 17:54:23 +08:00
BuildRequires: gcc xmlto asciidoc mlocate libxml2-devel chrpath
BuildRequires: gtk2-devel glib2-devel desktop-file-utils libtraceevent-devel
2020-10-29 19:30:03 +08:00
Provides: kernelshark
Obsoletes: kernelshark
2019-12-14 21:40:24 +08:00
%description
This package is a user-space front-end command-line tool for Ftrace.
%package_help
%prep
%autosetup -n %{name}-v%{version} -p1
%build
MANPAGE_DOCBOOK_XSL=`rpm -ql docbook-style-xsl | grep manpages/docbook.xsl`
make V=1 MANPAGE_DOCBOOK_XSL=$MANPAGE_DOCBOOK_XSL prefix=%{_prefix} all doc
2019-12-14 21:40:24 +08:00
%install
make V=1 DESTDIR=$RPM_BUILD_ROOT/ prefix=%{_prefix} install install_doc
2019-12-14 21:40:24 +08:00
find $RPM_BUILD_ROOT%{_mandir} -type f | xargs chmod u-x,g-x,o-x
find $RPM_BUILD_ROOT%{_datadir} -type f | xargs chmod u-x,g-x,o-x
install -d -m 755 $RPM_BUILD_ROOT/%{_datadir}/applications
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_datadir}/applications/kernelshark.desktop
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/kernelshark.desktop
2022-07-30 17:54:23 +08:00
chrpath -d $RPM_BUILD_ROOT%{_bindir}/trace-cmd
mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
echo "%{_bindir}/%{name}" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
2019-12-14 21:40:24 +08:00
%pre
%preun
%post
/sbin/ldconfig
2019-12-14 21:40:24 +08:00
%postun
/sbin/ldconfig
2019-12-14 21:40:24 +08:00
%files
%defattr(-,root,root)
%license COPYING COPYING.LIB
%doc README
%{_bindir}/trace-cmd
%{_datadir}/applications/kernelshark.desktop
%{_sysconfdir}/bash_completion.d/trace-cmd.bash
%{_docdir}/libtracecmd-doc/libtracecmd-files.html
%{_docdir}/libtracecmd-doc/libtracecmd-instances.html
%{_docdir}/libtracecmd-doc/libtracecmd-peer.html
%{_docdir}/libtracecmd-doc/libtracecmd-record.html
%{_docdir}/libtracecmd-doc/libtracecmd.html
2022-07-30 17:54:23 +08:00
%config(noreplace) /etc/ld.so.conf.d/*
2019-12-14 21:40:24 +08:00
%files help
%{_mandir}/man1/*
%{_mandir}/man3/*
2019-12-14 21:40:24 +08:00
%{_mandir}/man5/*
%changelog
2024-04-01 16:38:28 +08:00
* Mon Jan 09 2023 Bolehu <heyaohua@xfusion.com> - 2.9.2-9
- Fix broken profile command
* Sat Jan 07 2023 Bolehu <heyaohua@xfusion.com> - 2.9.2-8
- Changing default install path of plugins
* Sat Jan 07 2023 Bolehu <heyaohua@xfusion.com> - 2.9.2-7
- Remove unneeded multiply in events timestamp reading
* Fri Jan 06 2023 Bolehu <heyaohua@xfusion.com> - 2.9.2-6
- trace-cmd library: Fixed a memory leak on input handler close
* Fri Jan 06 2023 Bolehu <heyaohua@xfusion.com> - 2.9.2-5
- trace-cmd library: Fix version string memory leak
* Fri Jan 06 2023 Bolehu <heyaohua@xfusion.com> - 2.9.2-4
- trace-cmd report: Fix typos in error messages
* Tue Dec 06 2022 yaoxin <yaoxin30@h-partners.com> - 2.9.2-3
- Add /sbin/ldconfig to post and postun
2022-07-30 17:54:23 +08:00
* Sat Jul 30 2022 caodongxia <caodongxia@h-hpartners.com> - 2.9.2-2
- Del rpath in some binaries.
* Tue Jan 18 2022 houyingchao <houyingchao@huawei.com> - 2.9.2-1
- Upgrade to 2.9.2 version
* Fri Jul 30 2021 Guoxiaoqi <guoxiaoqi2@huawei.com> - 2.7-6
2021-07-30 14:48:22 +08:00
- Fix build with gcc-10
2020-10-29 19:30:03 +08:00
* Wed Oct 28 2020 Anan Fu <fuanan3@huawei.com> - 2.7-5
- disable python2
2019-12-14 21:40:24 +08:00
* Wed Nov 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.7-4
- Package init