1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
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 <microseyuyu@gmail.com> - 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.
|