]>
Commit | Line | Data |
---|---|---|
ad796f31 JB |
1 | Summary: LTTng Trace Control |
2 | Summary(pl.UTF-8): Sterowanie śledzeniem LTTng | |
3 | Name: lttng-tools | |
425eb721 JB |
4 | Version: 2.13.1 |
5 | Release: 1 | |
ad796f31 JB |
6 | License: LGPL v2.1+ (library), GPL v2 (tools) |
7 | Group: Libraries | |
fbe4cb32 | 8 | Source0: https://lttng.org/files/lttng-tools/%{name}-%{version}.tar.bz2 |
425eb721 | 9 | # Source0-md5: aca6cf483f2957c1111cd24babb4a75c |
ad796f31 | 10 | Patch0: %{name}-python.patch |
ea3cd7d6 | 11 | Patch1: x32.patch |
8d5a47de | 12 | Patch2: %{name}-swig-crash.patch |
fbe4cb32 | 13 | URL: https://lttng.org/ |
47dd30ab | 14 | BuildRequires: asciidoc |
56d3cfd0 | 15 | BuildRequires: autoconf >= 2.64 |
579feef0 | 16 | BuildRequires: automake >= 1:1.12 |
47dd30ab JB |
17 | # for builds from git |
18 | #BuildRequires: bison >= 2.4 | |
19 | #BuildRequires: flex >= 2.5.35 | |
3e574660 | 20 | BuildRequires: kmod-devel |
23bda949 JB |
21 | # for tests only |
22 | #BuildRequires: libpfm-devel | |
ad796f31 JB |
23 | BuildRequires: libtool >= 2:2.2 |
24 | BuildRequires: libuuid-devel | |
785f143c | 25 | BuildRequires: libxml2-devel >= 1:2.7.6 |
579feef0 | 26 | BuildRequires: lttng-ust-devel >= 2.12 |
ad796f31 | 27 | BuildRequires: popt-devel >= 1.13 |
56d3cfd0 | 28 | BuildRequires: python3-devel >= 1:3.2 |
ad796f31 JB |
29 | BuildRequires: rpmbuild(macros) >= 1.219 |
30 | BuildRequires: swig-python >= 2.0.0 | |
425eb721 | 31 | BuildRequires: userspace-rcu-devel >= 0.13 |
47dd30ab | 32 | BuildRequires: xmlto |
42c1ac0a | 33 | #BuildRequires: jdk java-lttng-ust # used for tests only |
785f143c | 34 | Requires: libxml2 >= 1:2.7.6 |
579feef0 | 35 | Requires: lttng-ust >= 2.12 |
ad796f31 | 36 | Requires: popt >= 1.13 |
425eb721 | 37 | Requires: userspace-rcu >= 0.13 |
ad796f31 JB |
38 | Requires: uname(release) >= 2.6.27 |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
56d3cfd0 JB |
41 | # non-function symbol rcu_reader_memb |
42 | %define skip_post_check_so liblttng-ctl.so.* | |
43 | ||
ad796f31 JB |
44 | %description |
45 | LTTng Trace Control library and utilities. | |
46 | ||
47 | %description -l pl.UTF-8 | |
48 | Biblioteka i narzędzia do sterowania śledzeniem LTTng. | |
49 | ||
50 | %package devel | |
51 | Summary: Header files for LTTng control library | |
52 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki sterującej LTTng | |
53 | Group: Development/Libraries | |
54 | Requires: %{name} = %{version}-%{release} | |
3e574660 | 55 | Requires: kmod-devel |
ad796f31 | 56 | Requires: libuuid-devel |
785f143c | 57 | Requires: libxml2-devel >= 1:2.7.6 |
ad796f31 | 58 | Requires: popt-devel >= 1.13 |
425eb721 | 59 | Requires: userspace-rcu-devel >= 0.13 |
ad796f31 JB |
60 | |
61 | %description devel | |
62 | Header files for LTTng control library. | |
63 | ||
64 | %description devel -l pl.UTF-8 | |
65 | Pliki nagłówkowe biblioteki sterującej LTTng. | |
66 | ||
67 | %package static | |
68 | Summary: Static LTTng control library | |
69 | Summary(pl.UTF-8): Statyczna biblioteka sterująca LTTng | |
70 | Group: Development/Libraries | |
71 | Requires: %{name}-devel = %{version}-%{release} | |
72 | ||
73 | %description static | |
74 | Static LTTng control library. | |
75 | ||
76 | %description static -l pl.UTF-8 | |
77 | Statyczna biblioteka sterująca LTTng. | |
78 | ||
56d3cfd0 JB |
79 | %package -n python3-lttng |
80 | Summary: Python 3 binding for LTTng | |
81 | Summary(pl.UTF-8): Wiązanie Pythona 3 do LTTng | |
ad796f31 JB |
82 | Group: Libraries/Python |
83 | Requires: %{name} = %{version}-%{release} | |
56d3cfd0 | 84 | Obsoletes: python-lttng < 2.7.0 |
ad796f31 | 85 | |
56d3cfd0 JB |
86 | %description -n python3-lttng |
87 | Python 3 binding for LTTng. | |
ad796f31 | 88 | |
56d3cfd0 JB |
89 | %description -n python3-lttng -l pl.UTF-8 |
90 | Wiązanie Pythona 3 do LTTng. | |
ad796f31 JB |
91 | |
92 | %prep | |
93 | %setup -q | |
94 | %patch0 -p1 | |
ea3cd7d6 | 95 | %patch1 -p1 |
8d5a47de | 96 | %patch2 -p1 |
ad796f31 JB |
97 | |
98 | %build | |
99 | %{__libtoolize} | |
100 | %{__aclocal} -I config | |
101 | %{__autoconf} | |
102 | %{__autoheader} | |
103 | %{__automake} | |
104 | # NOTE: DON'T replace /usr/lib* with %{_libdir} in configure options! | |
105 | %configure \ | |
87cbe23e JB |
106 | am_cv_python_pyexecdir=%{py3_sitedir} \ |
107 | am_cv_python_pythondir=%{py3_sitescriptdir} \ | |
ad796f31 JB |
108 | --disable-silent-rules \ |
109 | --enable-python-bindings \ | |
110 | --with-babeltrace-bin=/usr/bin/babeltrace \ | |
579feef0 | 111 | --with-babeltrace2-bin=/usr/bin/babeltrace2 \ |
ea3cd7d6 JR |
112 | %ifnarch x32 |
113 | --with-consumerd32-bin=/usr/libx32/lttng/libexec/lttng-consumerd \ | |
114 | --with-consumerd32-libdir=/usr/libx32 \ | |
115 | %endif | |
116 | %ifnarch alpha ia64 x32 | |
ad796f31 JB |
117 | --with-consumerd32-bin=/usr/lib/lttng/libexec/lttng-consumerd \ |
118 | --with-consumerd32-libdir=/usr/lib \ | |
119 | %endif | |
120 | %ifarch %{ix86} %{x8664} ppc ppc64 s390 s390x sparc sparcv9 sparc64 | |
121 | --with-consumerd64-bin=/usr/lib64/lttng/libexec/lttng-consumerd \ | |
122 | --with-consumerd64-libdir=/usr/lib64 \ | |
123 | %endif | |
124 | --with-lttv-gui-bin=/usr/bin/lttv-gui | |
125 | ||
126 | %{__make} | |
127 | ||
128 | %install | |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | ||
131 | %{__make} install \ | |
132 | DESTDIR=$RPM_BUILD_ROOT | |
133 | ||
134 | # library *.la kept - missing Requires.private | |
135 | ||
56d3cfd0 | 136 | %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/_lttng.{la,a} |
ad796f31 JB |
137 | %py_postclean |
138 | ||
139 | # packaged as %doc | |
140 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/lttng-tools | |
141 | ||
142 | %clean | |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
145 | %post -p /sbin/ldconfig | |
146 | %postun -p /sbin/ldconfig | |
147 | ||
148 | %files | |
149 | %defattr(644,root,root,755) | |
425eb721 | 150 | %doc ChangeLog LICENSE README.adoc doc/{live-reading-{howto,protocol},quickstart,relayd-architecture,snapshot-howto,streaming-howto}.txt |
ad796f31 | 151 | %attr(755,root,root) %{_bindir}/lttng |
56d3cfd0 | 152 | %attr(755,root,root) %{_bindir}/lttng-crash |
ad796f31 JB |
153 | %attr(755,root,root) %{_bindir}/lttng-relayd |
154 | %attr(755,root,root) %{_bindir}/lttng-sessiond | |
155 | %attr(755,root,root) %{_libdir}/liblttng-ctl.so.*.*.* | |
156 | %attr(755,root,root) %ghost %{_libdir}/liblttng-ctl.so.0 | |
157 | %dir %{_libdir}/lttng | |
158 | %dir %{_libdir}/lttng/libexec | |
159 | %attr(755,root,root) %{_libdir}/lttng/libexec/lttng-consumerd | |
785f143c | 160 | %{_datadir}/xml/lttng |
ad796f31 | 161 | %{_mandir}/man1/lttng.1* |
4b5f7edd | 162 | %{_mandir}/man1/lttng-add-context.1* |
425eb721 | 163 | %{_mandir}/man1/lttng-add-trigger.1* |
579feef0 | 164 | %{_mandir}/man1/lttng-clear.1* |
56d3cfd0 | 165 | %{_mandir}/man1/lttng-crash.1* |
4b5f7edd JB |
166 | %{_mandir}/man1/lttng-create.1* |
167 | %{_mandir}/man1/lttng-destroy.1* | |
168 | %{_mandir}/man1/lttng-disable-channel.1* | |
169 | %{_mandir}/man1/lttng-disable-event.1* | |
596bcc61 | 170 | %{_mandir}/man1/lttng-disable-rotation.1* |
4b5f7edd JB |
171 | %{_mandir}/man1/lttng-enable-channel.1* |
172 | %{_mandir}/man1/lttng-enable-event.1* | |
596bcc61 | 173 | %{_mandir}/man1/lttng-enable-rotation.1* |
4b5f7edd JB |
174 | %{_mandir}/man1/lttng-help.1* |
175 | %{_mandir}/man1/lttng-list.1* | |
425eb721 | 176 | %{_mandir}/man1/lttng-list-triggers.1* |
4b5f7edd JB |
177 | %{_mandir}/man1/lttng-load.1* |
178 | %{_mandir}/man1/lttng-metadata.1* | |
47dd30ab | 179 | %{_mandir}/man1/lttng-regenerate.1* |
425eb721 | 180 | %{_mandir}/man1/lttng-remove-trigger.1* |
596bcc61 | 181 | %{_mandir}/man1/lttng-rotate.1* |
4b5f7edd JB |
182 | %{_mandir}/man1/lttng-save.1* |
183 | %{_mandir}/man1/lttng-set-session.1* | |
184 | %{_mandir}/man1/lttng-snapshot.1* | |
185 | %{_mandir}/man1/lttng-start.1* | |
186 | %{_mandir}/man1/lttng-status.1* | |
187 | %{_mandir}/man1/lttng-stop.1* | |
188 | %{_mandir}/man1/lttng-track.1* | |
189 | %{_mandir}/man1/lttng-untrack.1* | |
190 | %{_mandir}/man1/lttng-version.1* | |
191 | %{_mandir}/man1/lttng-view.1* | |
425eb721 JB |
192 | %{_mandir}/man7/lttng-concepts.7* |
193 | %{_mandir}/man7/lttng-event-rule.7* | |
ad796f31 JB |
194 | %{_mandir}/man8/lttng-relayd.8* |
195 | %{_mandir}/man8/lttng-sessiond.8* | |
196 | ||
197 | %files devel | |
198 | %defattr(644,root,root,755) | |
199 | %attr(755,root,root) %{_libdir}/liblttng-ctl.so | |
200 | %{_libdir}/liblttng-ctl.la | |
41c5fe90 JB |
201 | %{_includedir}/lttng/action |
202 | %{_includedir}/lttng/condition | |
203 | %{_includedir}/lttng/notification | |
204 | %{_includedir}/lttng/trigger | |
785f143c | 205 | %{_includedir}/lttng/channel.h |
579feef0 JB |
206 | %{_includedir}/lttng/clear.h |
207 | %{_includedir}/lttng/clear-handle.h | |
785f143c | 208 | %{_includedir}/lttng/constant.h |
596bcc61 | 209 | %{_includedir}/lttng/destruction-handle.h |
785f143c | 210 | %{_includedir}/lttng/domain.h |
41c5fe90 | 211 | %{_includedir}/lttng/endpoint.h |
425eb721 | 212 | %{_includedir}/lttng/error-query.h |
785f143c | 213 | %{_includedir}/lttng/event.h |
425eb721 JB |
214 | %{_includedir}/lttng/event-expr.h |
215 | %{_includedir}/lttng/event-field-value.h | |
216 | %{_includedir}/lttng/event-rule | |
785f143c | 217 | %{_includedir}/lttng/handle.h |
42c1ac0a | 218 | %{_includedir}/lttng/health.h |
425eb721 | 219 | %{_includedir}/lttng/kernel-probe.h |
785f143c | 220 | %{_includedir}/lttng/load.h |
596bcc61 | 221 | %{_includedir}/lttng/location.h |
425eb721 | 222 | %{_includedir}/lttng/log-level-rule.h |
ad796f31 JB |
223 | %{_includedir}/lttng/lttng.h |
224 | %{_includedir}/lttng/lttng-error.h | |
596bcc61 | 225 | %{_includedir}/lttng/rotation.h |
785f143c JB |
226 | %{_includedir}/lttng/save.h |
227 | %{_includedir}/lttng/session.h | |
596bcc61 | 228 | %{_includedir}/lttng/session-descriptor.h |
29c7206a | 229 | %{_includedir}/lttng/snapshot.h |
579feef0 | 230 | %{_includedir}/lttng/tracker.h |
596bcc61 | 231 | %{_includedir}/lttng/userspace-probe.h |
ad796f31 | 232 | %{_pkgconfigdir}/lttng-ctl.pc |
4b5f7edd | 233 | %{_mandir}/man3/lttng-health-check.3* |
ad796f31 JB |
234 | |
235 | %files static | |
236 | %defattr(644,root,root,755) | |
237 | %{_libdir}/liblttng-ctl.a | |
238 | ||
56d3cfd0 | 239 | %files -n python3-lttng |
ad796f31 JB |
240 | %defattr(644,root,root,755) |
241 | %doc doc/python-howto.txt | |
56d3cfd0 JB |
242 | %attr(755,root,root) %{py3_sitedir}/_lttng.so |
243 | %{py3_sitescriptdir}/lttng.py | |
244 | %{py3_sitescriptdir}/__pycache__/lttng.cpython-*.py[co] |