Blame SPECS/kernelshark.spec

357084
Name: kernelshark
357084
Version: 1.2
462765
Release: 9%{?dist}
357084
Epoch: 1
357084
357084
# As of 1.1, only kernelshark.cpp, kshark-record.cpp and examples are GPL-2.0. The rest of kernel-shark is LGPL-2.1.
357084
# See SPDX identifier for most accurate info
357084
License: GPLv2 and LGPLv2
357084
Summary: GUI analysis for Ftrace data captured by trace-cmd
357084
357084
URL: https://kernelshark.org
357084
Source0: https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/trace-cmd-kernelshark-v%{version}.tar.gz
357084
Source1: %{name}.appdata.xml
357084
Patch0: 0001-Do-not-install-trace-cmd-when-only-building-kernelsh.patch
357084
357084
BuildRequires: cmake 
357084
BuildRequires: desktop-file-utils
357084
BuildRequires: doxygen
357084
BuildRequires: gcc
357084
BuildRequires: gcc-c++
357084
BuildRequires: graphviz
357084
BuildRequires: libappstream-glib
357084
BuildRequires: pkgconf
357084
BuildRequires: pkgconfig(glut)
357084
BuildRequires: pkgconfig(json-c)
357084
BuildRequires: pkgconfig(libxml-2.0)
357084
BuildRequires: pkgconfig(Qt5Core)
357084
BuildRequires: libtracecmd
357084
BuildRequires: libtracecmd-devel
357084
BuildRequires: xmlto
357084
BuildRequires: make
357084
Requires: polkit
357084
357084
357084
%description
357084
KernelShark is a front end reader of trace-cmd output. "trace-cmd
357084
record" and "trace-cmd extract" create a trace.dat (trace-cmd.dat)
357084
file. kernelshark can read this file and produce a graph and list
357084
view of its data. 
357084
357084
%prep
357084
%autosetup -n trace-cmd-%{name}-v%{version}
357084
357084
%build
357084
# MANPAGE_DOCBOOK_XSL define is hack to avoid using locate
357084
# -z muldefs to workaround the enforcing multi definition check of gcc10.
357084
#   and it need to be removed once upstream fixed the variable name
357084
# Do not use parallel compile because it makes compiling fail
357084
MANPAGE_DOCBOOK_XSL=`rpm -ql docbook-style-xsl | grep manpages/docbook.xsl`
357084
CFLAGS="%{optflags} -D_GNU_SOURCE" LDFLAGS="%{build_ldflags} -z muldefs" BUILD_TYPE=Release \
357084
  make -p V=9999999999 MANPAGE_DOCBOOK_XSL=$MANPAGE_DOCBOOK_XSL \
357084
  prefix=%{_prefix} libdir=%{_libdir} gui
357084
357084
%install
357084
make libdir=%{_libdir} prefix=%{_prefix} V=1 DESTDIR=%{buildroot}/ CFLAGS="%{optflags} -D_GNU_SOURCE" LDFLAGS="%{build_ldflags} -z muldefs " BUILD_TYPE=Release install_gui
357084
find %{buildroot}%{_datadir} -type f | xargs chmod u-x,g-x,o-x
357084
find %{buildroot}%{_libdir} -type f -iname "*.so" | xargs chmod 0755
357084
sed -i '/Version/d' %{buildroot}/%{_datadir}/applications/kernelshark.desktop
357084
desktop-file-validate %{buildroot}/%{_datadir}/applications/kernelshark.desktop
357084
mkdir -p %{buildroot}%{_metainfodir}/
357084
cp %{SOURCE1} %{buildroot}%{_metainfodir}/
357084
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdata.xml
357084
357084
%files
357084
%license COPYING
357084
%doc COPYING.LIB README
357084
%{_bindir}/kernelshark
357084
%{_bindir}/kshark-record
357084
%{_bindir}/kshark-su-record
357084
%dir %{_libdir}/kernelshark
357084
%{_libdir}/kernelshark/*
357084
%{_datadir}/applications/kernelshark.desktop
357084
%dir %{_datadir}/icons/kernelshark
357084
%{_datadir}/icons/kernelshark/*
357084
%{_datadir}/polkit-1/actions/org.freedesktop.kshark-record.policy
357084
%{_metainfodir}/%{name}.appdata.xml
357084
357084
%changelog
462765
* Mon Nov 22 2021 Jerome Marchand <jmarchan@redhat.com> - 1:1.2-9
462765
- Rebuild with latest json-c
462765
357084
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com>
357084
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
357084
  Related: rhbz#1991688
357084
357084
* Mon May 03 21 Jerome Marchand <jmarchan@redhat.com> - 1:1.2-7
357084
- libtracecmd is a subpackage of trace-cmd for now
357084
357084
* Thu Apr 22 2021 Jerome Marchand <jmarchan@redhat.com> - 1:1.2-6
357084
- libtracecmd is not yet available on c9s/el9
357084
357084
* Mon Apr 19 2021 Jerome Marchand <jmarchan@redhat.com> - 1:1.2-5
357084
- Rebuild with external tracing libs
357084
- Misc cleanup
357084
357084
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1:1.2-4
357084
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
357084
357084
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.2-3
357084
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
357084
357084
* Sat Jan 09 2021 Zamir SUN <sztsian@gmail.coom> - 1.2-2
357084
- Bump epoch to allow updating.
357084
357084
* Mon Oct 12 2020 Zamir SUN <sztsian@gmail.com> - 1.2-1
357084
- Update to 1.2
357084
- Uses trace event plugins from old trace-cmd dir
357084
357084
* Thu Sep 24 2020 Zamir SUN <sztsian@gmail.com> - 1.1-1
357084
- Package kernelshark in a standalone package with 1.1
357084