Files
libtracecmd/libtracecmd.spec
Dirk Mueller 48b180fa47 - update to 1.5.1:
* Fix free_zpage() offset accounting. The read_zpage() subtracted
    the offset from the file start to find where to get the
    compressed data, but the free_zpage() did not, and would fail to
    find and free the passed in zpage.
  * Have function_graph plugin break apart functions that migrate
    between CPUs from entry to exit even if there is no event in
    between.
  * Fix iterators for when there's CPUs with no data. It was using
    the total number of CPUs to iterate the cpu_data[] array, that
    only contains CPUs with content.
  * Fix iterator with respect to function_graph handle that may do
    a peek of the next event to know if it should merge the entry
    and exit events of a function.
  * Some other small fixes and clean ups
  * tracecmd_iterate_events_reverse(): Will iterate events in the
    trace.dat file from the last event to the first.
  * tracecmd_iterate_reset(): Reset the iterator to restart from the
    beginning.
  * Fix meson build
  * Have callbacks exit out of iterator as the man page for
    tracecmd_iterate_events() says it should.
  * Have tracecmd_iterate_events() start where it left off
  * Speed up freeing the zpages by using an rbtree instead of a flat
    link

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtracecmd?expand=0&rev=21
2024-01-29 22:09:01 +00:00

89 lines
2.3 KiB
RPMSpec

#
# spec file for package libtracecmd
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: libtracecmd
%define lname libtracecmd1
Version: 1.5.1
Release: 0
Summary: Library for creating and reading trace-cmd data files
License: LGPL-2.1-only
Group: Development/Libraries/C and C++
URL: https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git
Source: https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/trace-cmd-libtracecmd-%version.tar.gz
BuildRequires: asciidoc
BuildRequires: fdupes
BuildRequires: libtraceevent-devel
BuildRequires: libtracefs-devel >= 1.6
BuildRequires: libzstd-devel
BuildRequires: meson
BuildRequires: source-highlight
BuildRequires: xmlto
%description
Library for creating and reading trace-cmd data files
%package -n %lname
Summary: Library for creating and reading trace-cmd data files
Group: System/Libraries
%description -n %lname
Library for creating and reading trace-cmd data files
%package devel
Summary: Development files for libtracecmd
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
Development files of the libtracecmd library
%prep
%autosetup -p1 -n trace-cmd-libtracecmd-%version
%build
cd lib
%meson \
--default-library=shared \
-Dhtmldir="%_docdir/%name"
%meson_build
%meson_build docs
%install
cd lib
%meson_install
%fdupes %buildroot/%_prefix
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%_libdir/libtracecmd.so.1*
%license COPYING.LIB
%files devel
%_includedir/trace-cmd
%_libdir/libtracecmd.so
%_libdir/pkgconfig/*.pc
%_mandir/man*/*
%_docdir/libtracecmd
%license COPYING.LIB
%doc README
%changelog