Blame libtracecmd.spec

b641be
#
b641be
# spec file for package libtracecmd
b641be
#
b641be
# Copyright (c) 2022 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
b641be
Version:        1.1.3
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
b641be
Source0:        trace-cmd-libtracecmd-%{version}.tar.gz
b641be
Patch1:		0001-build-Only-consider-libtracecmd-documentation.patch
b641be
Patch2:         0002-trace-cmd-library-Fix-decleration-of-msg_lseek.patch
b641be
BuildRequires:  libzstd-devel
b641be
BuildRequires:  asciidoc
b641be
BuildRequires:  libtraceevent-devel
b641be
BuildRequires:  libtracefs-devel
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++
b641be
Requires:       %{lname} = %{version}
b641be
b641be
%description devel
b641be
Development files of the libtracecmd library
b641be
b641be
%prep
b641be
%autosetup -p1 -n trace-cmd-libtracecmd-%{version}
b641be
b641be
%build
b641be
make -j1 V=1 prefix=%{_prefix} libdir=%{_libdir} libs
b641be
make -j1 V=1 MANPAGE_DOCBOOK_XSL=%{_datadir}/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl doc
b641be
b641be
%install
b641be
make -j1 V=1 DESTDIR=%buildroot \
b641be
     libdir=%{_libdir} prefix=%{_prefix} \
b641be
     pkgconfig_dir=%{_libdir}/pkgconfig \
b641be
     htmldir=%{_docdir}/libtracecmd pdfdir=%{_docdir}/libtracecmd \
b641be
     install_libs install_doc
b641be
b641be
%post -n %{lname} -p /sbin/ldconfig
b641be
%postun -n %{lname} -p /sbin/ldconfig
b641be
b641be
%files -n %{lname}
b641be
%{_libdir}/libtracecmd.so.1*
b641be
%license COPYING.LIB
b641be
b641be
%files devel
b641be
%{_includedir}/trace-cmd
b641be
%{_libdir}/libtracecmd.so
b641be
%{_libdir}/pkgconfig/*.pc
b641be
%{_mandir}/man3/*
b641be
%{_docdir}/libtracecmd
b641be
%license COPYING.LIB
b641be
%doc README
b641be
b641be
%changelog