import kernelshark-1.2-10.el9

This commit is contained in:
CentOS Sources 2023-05-09 05:20:57 +00:00 committed by Stepan Oksanichenko
parent 79567d7a27
commit c35f76dcc6

View File

@ -1,6 +1,6 @@
Name: kernelshark
Version: 1.2
Release: 9%{?dist}
Release: 10%{?dist}
Epoch: 1
# 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.
@ -29,6 +29,7 @@ BuildRequires: libtracecmd
BuildRequires: libtracecmd-devel
BuildRequires: xmlto
BuildRequires: make
BuildRequires: asciidoc
Requires: polkit
@ -49,10 +50,10 @@ view of its data.
MANPAGE_DOCBOOK_XSL=`rpm -ql docbook-style-xsl | grep manpages/docbook.xsl`
CFLAGS="%{optflags} -D_GNU_SOURCE" LDFLAGS="%{build_ldflags} -z muldefs" BUILD_TYPE=Release \
make -p V=9999999999 MANPAGE_DOCBOOK_XSL=$MANPAGE_DOCBOOK_XSL \
prefix=%{_prefix} libdir=%{_libdir} gui
prefix=%{_prefix} libdir=%{_libdir} gui doc_gui
%install
make libdir=%{_libdir} prefix=%{_prefix} V=1 DESTDIR=%{buildroot}/ CFLAGS="%{optflags} -D_GNU_SOURCE" LDFLAGS="%{build_ldflags} -z muldefs " BUILD_TYPE=Release install_gui
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
find %{buildroot}%{_datadir} -type f | xargs chmod u-x,g-x,o-x
find %{buildroot}%{_libdir} -type f -iname "*.so" | xargs chmod 0755
sed -i '/Version/d' %{buildroot}/%{_datadir}/applications/kernelshark.desktop
@ -74,8 +75,14 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdat
%{_datadir}/icons/kernelshark/*
%{_datadir}/polkit-1/actions/org.freedesktop.kshark-record.policy
%{_metainfodir}/%{name}.appdata.xml
%docdir %{_datadir}/%{name}/html
%{_datadir}/%{name}/html/*
%{_mandir}/man1/*
%changelog
* Mon Dec 12 2022 Jerome Marchand <jmarchan@redhat.com> - 1:1.2-10
- Add html documentation and man page
* Mon Nov 22 2021 Jerome Marchand <jmarchan@redhat.com> - 1:1.2-9
- Rebuild with latest json-c