Blame SPECS/kernelshark.spec

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