-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlttng-tools.spec
239 lines (188 loc) · 7.76 KB
/
lttng-tools.spec
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
Name: lttng-tools
Version: 2.10.0
Release: 1%{?dist}
License: GPLv2 and LGPLv2
URL: http://lttng.org
Group: Development/Tools
Summary: LTTng control and utility programs
Source0: http://lttng.org/files/lttng-tools/%{name}-%{version}.tar.bz2
Source1: lttng-sessiond.service
BuildRequires: libuuid-devel popt-devel libtool systemd-units
BuildRequires: lttng-ust-devel >= 2.10.0
BuildRequires: userspace-rcu-devel >= 0.8.0
BuildRequires: libxml2-devel >= 2.7.6
BuildRequires: autoconf automake libtool
# For check
#BuildRequires: perl-Test-Harness procps-ng
Requires(pre): shadow-utils
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
#GCC crash when building this package on arm with hardening activated (See bug 987192).
%ifnarch %{arm}
%global _hardened_build 1
%endif
%description
This package provides the unified interface to control both the LTTng kernel
and userspace (UST) tracers.
%package -n %{name}-devel
Summary: LTTng control and utility library (development files)
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description -n %{name}-devel
This package provides the development files to
implement trace control in external applications
%prep
%setup -q
%build
# Reinitialize libtool with the fedora version to remove Rpath
autoreconf -vif
touch doc/man/*.1 doc/man/*.3 doc/man/*.8
%configure --disable-static
make %{?_smp_mflags} V=1
%check
#make check
%install
make DESTDIR=%{buildroot} install
rm -vf %{buildroot}%{_libdir}/*.la
install -D -m644 %{SOURCE1} %{buildroot}%{_unitdir}/lttng-sessiond.service
# Install upstream bash auto completion for lttng
install -D -m644 extras/lttng-bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/lttng
%pre
getent group tracing >/dev/null || groupadd -r tracing
exit 0
%post
/sbin/ldconfig
%systemd_post lttng-sessiond.service
%preun
%systemd_preun lttng-sessiond.service
%postun
/sbin/ldconfig
%systemd_postun_with_restart lttng-sessiond.service
%files
%dir %{_libdir}/lttng
%dir %{_libdir}/lttng/libexec
%{_bindir}/lttng
%{_bindir}/lttng-crash
%{_bindir}/lttng-sessiond
%{_bindir}/lttng-relayd
%{_libdir}/lttng/libexec/lttng-consumerd
%{_libdir}/*.so.*
%{_mandir}/man1/lttng.1.gz
%{_mandir}/man1/lttng-add-context.1.gz
%{_mandir}/man1/lttng-crash.1.gz
%{_mandir}/man1/lttng-create.1.gz
%{_mandir}/man1/lttng-destroy.1.gz
%{_mandir}/man1/lttng-disable-channel.1.gz
%{_mandir}/man1/lttng-disable-event.1.gz
%{_mandir}/man1/lttng-enable-channel.1.gz
%{_mandir}/man1/lttng-enable-event.1.gz
%{_mandir}/man1/lttng-help.1.gz
%{_mandir}/man1/lttng-list.1.gz
%{_mandir}/man1/lttng-load.1.gz
%{_mandir}/man1/lttng-metadata.1.gz
%{_mandir}/man1/lttng-regenerate.1.gz
%{_mandir}/man1/lttng-save.1.gz
%{_mandir}/man1/lttng-set-session.1.gz
%{_mandir}/man1/lttng-snapshot.1.gz
%{_mandir}/man1/lttng-start.1.gz
%{_mandir}/man1/lttng-status.1.gz
%{_mandir}/man1/lttng-stop.1.gz
%{_mandir}/man1/lttng-track.1.gz
%{_mandir}/man1/lttng-untrack.1.gz
%{_mandir}/man1/lttng-version.1.gz
%{_mandir}/man1/lttng-view.1.gz
%{_mandir}/man8/lttng-relayd.8.gz
%{_mandir}/man8/lttng-sessiond.8.gz
%{_defaultdocdir}/%{name}/LICENSE
%{_defaultdocdir}/%{name}/README.md
%{_defaultdocdir}/%{name}/ChangeLog
%{_defaultdocdir}/%{name}/live-reading-howto.txt
%{_defaultdocdir}/%{name}/quickstart.txt
%{_defaultdocdir}/%{name}/snapshot-howto.txt
%{_defaultdocdir}/%{name}/streaming-howto.txt
%{_unitdir}/lttng-sessiond.service
%{_sysconfdir}/bash_completion.d/
%{_datadir}/xml/lttng/session.xsd
%files -n %{name}-devel
%{_mandir}/man3/lttng-health-check.3.gz
%{_defaultdocdir}/%{name}/python-howto.txt
%{_defaultdocdir}/%{name}/live-reading-protocol.txt
%{_defaultdocdir}/%{name}/valgrind-howto.txt
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/lttng-ctl.pc
%changelog
* Thu Aug 17 2017 Dan Horák <dan[at]danny.cz> - 2.10.0-2
- drop the s390(x) build workaround
* Wed Aug 02 2017 Michael Jeanson <[email protected]> - 2.10.0-1
- New upstream release
* Wed Jul 26 2017 Fedora Release Engineering <[email protected]> - 2.9.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Thu Jun 22 2017 Michael Jeanson <[email protected]> - 2.9.5-1
- New upstream release
* Wed Mar 01 2017 Michael Jeanson <[email protected]> - 2.9.4-1
- New upstream release
* Fri Feb 10 2017 Fedora Release Engineering <[email protected]> - 2.9.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Jan 09 2017 Michael Jeanson <[email protected]> - 2.9.3-1
- New upstream release
* Thu Dec 01 2016 Michael Jeanson <[email protected]> - 2.9.0-1
- New upstream release
- Drop asciidoc and xmlto from build deps
* Tue Oct 11 2016 Michael Jeanson <[email protected]> - 2.8.2-1
- New upstream release
- Add asciidoc and xmlto to build deps
* Fri Aug 05 2016 Michael Jeanson <[email protected]> - 2.8.1-1
- New upstream release
* Wed Jun 22 2016 Michael Jeanson <[email protected]> - 2.8.0-1
- New upstream release
* Thu Feb 04 2016 Fedora Release Engineering <[email protected]> - 2.6.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Thu Jul 23 2015 Michael Jeanson <[email protected]> - 2.6.0-1
- New upstream release
- Add mi string declaration as extern patch
* Wed Jun 17 2015 Fedora Release Engineering <[email protected]> - 2.5.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Mon Nov 03 2014 Suchakra Sharma <[email protected]> - 2.5.1-1
- New upstream release
- Update URL
- Update some BuildRequires
- Add session.xsd file to package
* Tue Oct 21 2014 Dan Horák <dan[at]danny.cz> - 2.4.1-4
- add build workaround for s390(x)
* Sun Aug 17 2014 Fedora Release Engineering <[email protected]> - 2.4.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <[email protected]> - 2.4.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Tue May 20 2014 Yannick Brosseau <[email protected]> - 2.4.1-1
- New upstream release
* Sat Feb 22 2014 Yannick Brosseau <[email protected]> - 2.3.0-3
- Rebuilt for URCU soname bump
* Tue Sep 24 2013 Yannick Brosseau <[email protected]> - 2.3.0-2
- Disable hardening flags on arm, since it does not build with them
* Fri Sep 20 2013 Yannick Brosseau <[email protected]> - 2.3.0-1
- New upstream release
* Sat Aug 03 2013 Fedora Release Engineering <[email protected]> - 2.2.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Tue Jul 23 2013 Yannick Brosseau <[email protected]> - 2.2.3-1
- New upstream bugfix version
* Mon Jul 22 2013 Yannick Brosseau <[email protected]> - 2.2.2-1
- New upstream bugfix version
* Tue Jul 16 2013 Yannick Brosseau <[email protected]> - 2.2.1-1
- New upstream version
* Fri May 17 2013 Yannick Brosseau <[email protected]> - 2.1.1-2
- Add hardening option (#955452)
- Use new systemd-rpm macros (#850195)
* Tue Feb 26 2013 Yannick Brosseau <[email protected]> - 2.1.1-1
- New upstream version
* Thu Feb 14 2013 Fedora Release Engineering <[email protected]> - 2.0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Tue Oct 23 2012 Yannick Brosseau <[email protected]> - 2.0.4-1
- New upstream version
* Thu Jul 19 2012 Fedora Release Engineering <[email protected]> - 2.0.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sat Jul 07 2012 Yannick Brosseau <[email protected]> - 2.0.3-1
- New upstream version and updates from review comments
* Tue Jun 19 2012 Yannick Brosseau <[email protected]> - 2.0.2-1
- New package, inspired by the one from OpenSuse