Blame libtracecmd.spec

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