Name: lttng-tools Version: 2.13.8 Release: 1%{?dist} Summary: LTTng control and management tools License: GPL-2.0-only URL: https://lttng.org/ Source0: https://lttng.org/files/lttng-tools/lttng-tools-%{version}.tar.gz BuildRequires: gcc, make, autoconf, automake, libtool, pkgconfig, bison, flex BuildRequires: libxml2-devel, asciidoc, xmlto, liburcu-devel, numactl-devel, lttng-ust-devel, liburcu, babeltrace2, libtool-ltdl-devel, popt-devel, popt Requires: liburcu, numactl, babeltrace2, lttng-ust %define _libexecdir %{_libdir}/lttng/libexec %global debug_package %{nil} %description The LTTng-tools package provides control and management tools for the Linux Trace Toolkit Next Generation (LTTng). It allows users to start, stop, and manage tracing sessions. %package devel Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} %description devel Development headers and libraries for %{name}. %package doc Summary: Documentation for %{name} BuildArch: noarch %description doc This package contains documentation files for %{name}. %prep %setup -q -n lttng-tools-%{version} %build CFLAGS="%{optflags} -fPIE" CXXFLAGS="%{optflags} -fPIE" LDFLAGS="-pie" export CFLAGS CXXFLAGS LDFLAGS ./bootstrap %configure --prefix=%{_prefix} --libdir=%{_libdir} --libexecdir=%{_libexecdir} --docdir=%{_docdir}/lttng-tools --disable-static --disable-tests make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} || true find %{buildroot} -name '*.la' -delete %files %{_bindir}/lttng %{_bindir}/lttng-crash %{_bindir}/lttng-relayd %{_bindir}/lttng-sessiond %{_libdir}/liblttng-ctl.so* %{_libdir}/pkgconfig/lttng-ctl.pc %{_libexecdir}/* %{_mandir}/man1/lttng*.1.gz %{_mandir}/man3/lttng-*.3.gz %{_mandir}/man7/lttng-*.7.gz %{_mandir}/man8/lttng-*.8.gz %{_datadir}/xml/lttng/session.xsd %files devel %{_includedir}/lttng/*.h %{_includedir}/lttng/action/*.h %{_includedir}/lttng/condition/*.h %{_includedir}/lttng/event-rule/*.h %{_includedir}/lttng/notification/*.h %{_includedir}/lttng/trigger/*.h %{_libdir}/pkgconfig/lttng-ctl.pc %{_libdir}/liblttng-ctl.so %files doc %doc %{_docdir}/lttng-tools/LICENSE %doc %{_docdir}/lttng-tools/ChangeLog %doc %{_docdir}/lttng-tools/README.adoc %doc %{_docdir}/lttng-tools/live-reading-howto.txt %doc %{_docdir}/lttng-tools/live-reading-protocol.txt %doc %{_docdir}/lttng-tools/python-howto.txt %doc %{_docdir}/lttng-tools/quickstart.txt %doc %{_docdir}/lttng-tools/snapshot-howto.txt %doc %{_docdir}/lttng-tools/streaming-howto.txt %doc %{_docdir}/lttng-tools/valgrind-howto.txt %changelog * Wed Jan 03 2024 Sebastian - 2.13.8-1 - Added proper file paths for binaries, headers, man pages, and documentation. - Fixed incorrect references to doc files. - Ensured devel package is correctly defined.