6e56e74
# git tag
cb074fe
#%%global git_commit trace-cmd-v2.6.2
cb074fe
#%%global git_commit 57371aaa2f469d0ba15fd85276deca7bfdd7ce36
1a8acf6
1a8acf6
Name: trace-cmd
6f61bc0
Version: 2.7
a7a457b
Release: 2%{?dist}
1a8acf6
License: GPLv2 and LGPLv2
1a8acf6
Summary: A user interface to Ftrace
1a8acf6
1a8acf6
URL: http://git.kernel.org/?p=linux/kernel/git/rostedt/trace-cmd.git;a=summary
6f61bc0
# If upstream does not provide tarballs, to generate:
1a8acf6
# git clone git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git
1a8acf6
# cd trace-cmd
cb074fe
# git archive --prefix=trace-cmd-%%{version}/ -o trace-cmd-v%%{version}.tar.gz %%{git_commit}
cb074fe
Source0: https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git/snapshot/%{name}-v%{version}.tar.gz
1a8acf6
Source1: kernelshark.desktop
cb074fe
Patch1: 0001-trace-cmd-Figure-out-the-arch-and-install-library-to.patch
a7a457b
Patch2: 0002-trace-cmd-Fix-the-logic-behind-SWIG_DEFINED-in-the-M.patch
1a8acf6
BuildRequires: xmlto
1a8acf6
BuildRequires: asciidoc
1a8acf6
BuildRequires: mlocate
1a8acf6
# needed for the GUI parts
1a8acf6
BuildRequires: libxml2-devel
1a8acf6
BuildRequires: gtk2-devel
1a8acf6
BuildRequires: glib2-devel
1a8acf6
BuildRequires: desktop-file-utils
1a8acf6
1a8acf6
%description
1a8acf6
trace-cmd is a user interface to Ftrace. Instead of needing to use the
1a8acf6
debugfs directly, trace-cmd will handle of setting of options and
1a8acf6
tracers and will record into a data file.
1a8acf6
1a8acf6
%package -n kernelshark
1a8acf6
Summary: GUI analysis for Ftrace data captured by trace-cmd
1a8acf6
Requires: trace-cmd%{_isa} = %{version}-%{release}
1a8acf6
1a8acf6
%description -n kernelshark
1a8acf6
Kernelshark is the GUI frontend for analyzing data produced by
1a8acf6
'trace-cmd extract'
1a8acf6
a7a457b
%package python2
a7a457b
Summary: Python plugin support for trace-cmd
a7a457b
Requires: trace-cmd%{_isa} = %{version}-%{release}
a7a457b
BuildRequires: swig
a7a457b
BuildRequires: python2-devel
a7a457b
a7a457b
%description  python2
a7a457b
Python plugin support for trace-cmd
a7a457b
1a8acf6
%prep
cb074fe
%setup -q -n %{name}-v%{version}
1a8acf6
%patch1 -p1
a7a457b
%patch2 -p1
1a8acf6
1a8acf6
%build
1a8acf6
# MANPAGE_DOCBOOK_XSL define is hack to avoid using locate
1a8acf6
MANPAGE_DOCBOOK_XSL=`rpm -ql docbook-style-xsl | grep manpages/docbook.xsl`
f331d32
make V=1 CFLAGS="%{optflags} -D_GNU_SOURCE" LDFLAGS="%{build_ldflags}" \
a7a457b
  MANPAGE_DOCBOOK_XSL=$MANPAGE_DOCBOOK_XSL prefix=%{_prefix} all doc gui python-plugin
1a8acf6
1a8acf6
1a8acf6
%install
a7a457b
make V=1 DESTDIR=%{buildroot}/ prefix=%{_prefix} install install_doc install_gui install_python
1a8acf6
find %{buildroot}%{_mandir} -type f | xargs chmod u-x,g-x,o-x
1a8acf6
find %{buildroot}%{_datadir} -type f | xargs chmod u-x,g-x,o-x
f114a4e
find %{buildroot}%{_libdir} -type f -iname "*.so" | xargs chmod 0755
1a8acf6
install -dm 755 %{buildroot}/%{_datadir}/applications
1a8acf6
install -pm 644 %{SOURCE1} %{buildroot}/%{_datadir}/applications/kernelshark.desktop
1a8acf6
desktop-file-validate %{buildroot}/%{_datadir}/applications/kernelshark.desktop
1a8acf6
1a8acf6
%files
1a8acf6
%doc COPYING COPYING.LIB README
1a8acf6
%{_bindir}/trace-cmd
a7a457b
%dir %{_libdir}/%{name}
a7a457b
%dir %{_libdir}/%{name}/plugins
a7a457b
%{_libdir}/%{name}/plugins/plugin_blk.so
a7a457b
%{_libdir}/%{name}/plugins/plugin_cfg80211.so
a7a457b
%{_libdir}/%{name}/plugins/plugin_function.so
a7a457b
%{_libdir}/%{name}/plugins/plugin_hrtimer.so
a7a457b
%{_libdir}/%{name}/plugins/plugin_jbd2.so
a7a457b
%{_libdir}/%{name}/plugins/plugin_kmem.so
a7a457b
%{_libdir}/%{name}/plugins/plugin_kvm.so
a7a457b
%{_libdir}/%{name}/plugins/plugin_mac80211.so
a7a457b
%{_libdir}/%{name}/plugins/plugin_sched_switch.so
a7a457b
%{_libdir}/%{name}/plugins/plugin_scsi.so
a7a457b
%{_libdir}/%{name}/plugins/plugin_tlb.so
a7a457b
%{_libdir}/%{name}/plugins/plugin_xen.so
1a8acf6
%{_mandir}/man1/*
1a8acf6
%{_mandir}/man5/*
1a8acf6
1a8acf6
%files -n kernelshark
1a8acf6
%{_bindir}/trace-view
1a8acf6
%{_bindir}/trace-graph
1a8acf6
%{_bindir}/kernelshark
1a8acf6
%{_datadir}/kernelshark
1a8acf6
%{_datadir}/applications/kernelshark.desktop
1418c1b
%{_sysconfdir}/bash_completion.d/trace-cmd.bash
1a8acf6
a7a457b
%files python2
a7a457b
%doc Documentation/README.PythonPlugin
a7a457b
%{_libdir}/%{name}/plugins/plugin_python.so
a7a457b
%{_libdir}/%{name}/python/
a7a457b
a7a457b
1a8acf6
1a8acf6
%changelog
a7a457b
* Fri Mar 02 2018 Zamir SUN <sztsian@gmail.com> - 2.7-2
a7a457b
- Add python plugins
a7a457b
6f61bc0
* Fri Mar 02 2018 Zamir SUN <sztsian@gmail.com> - 2.7-1
6f61bc0
- Update to 2.7
6f61bc0
- Remove Groups tag
6f61bc0
f331d32
* Fri Feb 23 2018 Florian Weimer <fweimer@redhat.com> - 2.6.2-3
f331d32
- Use LDFLAGS from redhat-rpm-config
f331d32
6d5a580
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.2-2
6d5a580
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6d5a580
cb074fe
* Sat Nov 11 2017 Zamir SUN <zsun@fedoraproject.org> - 2.6.2-1
cb074fe
- Rebase to 2.6.2.
cb074fe
8ba13d1
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-3
8ba13d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
8ba13d1
07a41b8
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-2
07a41b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
07a41b8
3ab7115
* Tue May 23 2017 Zamir SUN <zsun@fedoraproject.org> - 2.6.1-1
dfd620c
- Rebase to 2.6.1.
dfd620c
1418c1b
* Thu Mar 30 2017 Zamir SUN <zsun@fedoraproject.org> - 2.6-4.20170330git013205
1418c1b
- Rebase to newest upstream version to include various bug fixes.
1418c1b
e1b080c
* Mon Mar 27 2017 Zamir SUN <zsun@fedoraproject.org> - 2.6-4
e1b080c
- Fix bz1389219 segmentation fault in trace-cmd snapshot
e1b080c
5c93b8f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6-3
5c93b8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5c93b8f
f114a4e
* Wed Oct 19 2016 Zamir SUN <zsun@fedoraproject.org> - 2.6-2
f114a4e
- Add bz1386451-trace-cmd-record-crash-f-before-e.patch
f114a4e
- Fix rpmlint error unstripped-binary-or-object
f114a4e
- Resolves: rhbz#1386451
f114a4e
4440f91
* Thu Aug 18 2016 Jon Stanley <jonstanley@gmail.com> - 2.6-1
4440f91
- Upgrade to uptream 2.6
4440f91
- Rebase distro patch
4440f91
- Resolves: rhbz#1365951
4440f91
29cb4fc
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-7
29cb4fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
29cb4fc
fae6c7b
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-6
fae6c7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fae6c7b
7de4d22
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-5
7de4d22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7de4d22
7c7574e
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-4
7c7574e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7c7574e
e5be2ce
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-3
e5be2ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e5be2ce
6e5f2c5
* Wed Jul 24 2013 Jon Stanley <jonstanley@gmail.com> - 2.2.1-2
6e5f2c5
- Remove addition to %%files - not needed with Makefile patch
6e5f2c5
Dwight Engen 99a0d5c
* Tue Jul 23 2013 Dwight Engen <dwight.engen@oracle.com> - 2.2.1-1
Dwight Engen 99a0d5c
- Update to 2.2.1
Dwight Engen 99a0d5c
6e56e74
* Wed Feb 13 2013 Jon Stanley <jonstanley@gmail.com> - 2.1.0-1
6e56e74
- Update to latest upstream
6e56e74
1a8acf6
* Thu Sep 13 2012 Jon Stanley <jonstanley@gmail.com> - 1.2-4.20120606git8266dff
1a8acf6
- Remove %%defattr
1a8acf6
1a8acf6
* Thu Sep 06 2012 Jon Stanley <jonstanley@gmail.com> - 1.2-3.20120606git8266dff
1a8acf6
- More review fixups
1a8acf6
1a8acf6
* Tue Aug 28 2012 Jon Stanley <jonstanley@gmail.com> - 1.2-2.20120606git8266dff
1a8acf6
- Rebase to git snapshot so it builds
1a8acf6
- Fix license tag per review
1a8acf6
- Move plugin dir per review
1a8acf6
1a8acf6
* Mon Aug 27 2012 Jon Stanley <jonstanley@gmail.com> - 1.2-1
1a8acf6
- Rebase to 1.2
1a8acf6
- Makefile now supports CFLAGS, drop patch
1a8acf6
1a8acf6
* Sat Feb 19 2011 Jon Stanley <jonstanley@gmail.com> - 1.0.5-1
1a8acf6
- Rebase to 1.0.5
1a8acf6
- Add Makefile patch to support passing RPM_OPT_FLAGS
1a8acf6
- Add kernelshark subpackage
1a8acf6
- Initial Fedora version
1a8acf6
1a8acf6
* Mon Jul 5 2010 John Kacur <jkacur@redhat.com> - 1.0.4-7
1a8acf6
- Rebasing to trace-cmd-1.0.4
1a8acf6
1a8acf6
* Wed Jun 16 2010 John Kacur <jkacur@redhat.com>
1a8acf6
- Rebasing to trace-cmd-1.0.2
1a8acf6
- Added parse-events-Do-not-fail-on-FORMAT-TOO-BIG-event-err.patch
1a8acf6
- Added trace-cmd-Prevent-latency-tracer-plugins-from-doing-.patch
1a8acf6
- Added trace-cmd-Prevent-print_graph_duration-buffer-overfl.patch
1a8acf6
1a8acf6
* Wed Jun 9 2010 John Kacur <jkacur@redhat.com>
1a8acf6
- Added trace-cmd-Makefile-EXTRAVERSION-should-be-set-withou.patch
1a8acf6
- Added trace-cmd-Makefile-use-a-substitution-reference.patch
1a8acf6
- add-DESTDIR-to-make.patch
1a8acf6
- Related: rhbz599507
1a8acf6
1a8acf6
* Fri Jun 4 2010 John Kacur <jkacur@redhat.com>
1a8acf6
- Updating to trace-cmd-1.0.1
1a8acf6
- Related: rhbz599507
1a8acf6
1a8acf6
* Wed Apr 21 2010 John Kacur <jkacur@redhat.com>
1a8acf6
- Using trick from William Cohen to avoid the "locate" problem.
1a8acf6
1a8acf6
* Fri Apr 16 2010 John Kacur <jkacur@redhat.com>
1a8acf6
- Update the source to the 1.0.0 version
1a8acf6
- Many fixes to the spec file.
1a8acf6
1a8acf6
* Mon Apr 12 2010 William Cohen <wcohen@redhat.com>
1a8acf6
- Include manpages in the package.
1a8acf6
1a8acf6
* Fri Apr 9 2010 John Kacur <jkacur@redhat.com>
1a8acf6
- disabled #patch01
1a8acf6
- Updated the trace-cmd source
1a8acf6
- Changed version to 0.7.0
1a8acf6
- Added bogus patch to satisfy rpm requirements
1a8acf6
- Related:bz519630
1a8acf6
1a8acf6
* Mon Mar 15 2010 John Kacur <jkacur@redhat.com>
1a8acf6
- disabled trace-cmd_rusage.patch
1a8acf6
- Updated the trace-cmd source
1a8acf6
- Related:bz519630
1a8acf6
1a8acf6
* Fri Nov 16 2007 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.0-1%{?dist}
1a8acf6
- Initial packaging
1a8acf6
- Added a patch to display rusage information