]>
Commit | Line | Data |
---|---|---|
0f887b7f | 1 | %{!?with_sqlite: %global with_sqlite 0%{?fedora} >= 17 || 0%{?rhel} >= 7} |
0dfed9e3 FCE |
2 | # prefer prebuilt docs |
3 | %{!?with_docs: %global with_docs 0} | |
6706593f | 4 | %{!?with_htmldocs: %global with_htmldocs 0} |
f7420048 | 5 | %{!?with_monitor: %global with_monitor 1} |
8d238932 | 6 | # crash is not available |
f082df49 | 7 | %ifarch ppc ppc64 %{sparc} %{mips} |
8d238932 LB |
8 | %{!?with_crash: %global with_crash 0} |
9 | %else | |
38105915 | 10 | %{!?with_crash: %global with_crash 1} |
8d238932 | 11 | %endif |
11059140 RM |
12 | %{!?with_rpm: %global with_rpm 1} |
13 | %{!?with_bundled_elfutils: %global with_bundled_elfutils 0} | |
e050d62f | 14 | %{!?elfutils_version: %global elfutils_version 0.142} |
11059140 | 15 | %{!?pie_supported: %global pie_supported 1} |
11059140 | 16 | %{!?with_boost: %global with_boost 0} |
80cc0577 | 17 | %ifarch %{ix86} x86_64 ppc ppc64 ppc64le aarch64 |
a40f6057 | 18 | %{!?with_dyninst: %global with_dyninst 0%{?fedora} >= 18 || 0%{?rhel} >= 7} |
605083f9 WC |
19 | %else |
20 | %{!?with_dyninst: %global with_dyninst 0} | |
21 | %endif | |
748e425b | 22 | %{!?with_bpf: %global with_bpf 0%{?fedora} >= 22 || 0%{?rhel} >= 8} |
515f4553 | 23 | %{!?with_systemd: %global with_systemd 0%{?fedora} >= 19 || 0%{?rhel} >= 7} |
7f6c7a0b FCE |
24 | %{!?with_emacsvim: %global with_emacsvim 0%{?fedora} >= 19 || 0%{?rhel} >= 7} |
25 | %{!?with_java: %global with_java 0%{?fedora} >= 19 || 0%{?rhel} >= 7} | |
765a5d60 JL |
26 | %{!?with_virthost: %global with_virthost 0%{?fedora} >= 19 || 0%{?rhel} >= 7} |
27 | %{!?with_virtguest: %global with_virtguest 1} | |
b8d6168f | 28 | %{!?with_dracut: %global with_dracut 0%{?fedora} >= 19 || 0%{?rhel} >= 6} |
25c72c50 DS |
29 | %ifarch x86_64 |
30 | %{!?with_mokutil: %global with_mokutil 0%{?fedora} >= 18 || 0%{?rhel} >= 7} | |
9a9a6ff8 | 31 | %{!?with_openssl: %global with_openssl 0%{?fedora} >= 18 || 0%{?rhel} >= 7} |
25c72c50 DS |
32 | %else |
33 | %{!?with_mokutil: %global with_mokutil 0} | |
9a9a6ff8 | 34 | %{!?with_openssl: %global with_openssl 0} |
25c72c50 | 35 | %endif |
d0eeef5f | 36 | %{!?with_pyparsing: %global with_pyparsing 0%{?fedora} >= 18 || 0%{?rhel} >= 7} |
d6145cec | 37 | %{!?with_python3: %global with_python3 0%{?fedora} >= 23 || 0%{?rhel} > 7} |
470a81c8 PV |
38 | %{!?with_python2_probes: %global with_python2_probes (0%{?fedora} <= 28 && 0%{?rhel} <= 7)} |
39 | %{!?with_python3_probes: %global with_python3_probes (0%{?fedora} >= 23 || 0%{?rhel} > 7)} | |
696a4ac1 | 40 | %{!?with_httpd: %global with_httpd 0} |
5c076da1 | 41 | %{!?with_specific_python: %global with_specific_python 0%{?fedora} >= 31} |
1074f79d | 42 | |
f082df49 PR |
43 | # Virt is supported on these arches, even on el7, but it's not in core EL7 |
44 | %if 0%{?rhel} <= 7 | |
b61a4d61 | 45 | %ifarch ppc64le aarch64 |
662747f9 BB |
46 | %global with_virthost 0 |
47 | %endif | |
f082df49 | 48 | %endif |
662747f9 | 49 | |
4a618408 JL |
50 | %if 0%{?fedora} >= 18 || 0%{?rhel} >= 6 |
51 | %define initdir %{_initddir} | |
52 | %else # RHEL5 doesn't know _initddir | |
53 | %define initdir %{_initrddir} | |
54 | %endif | |
55 | ||
765a5d60 | 56 | %if %{with_virtguest} |
ce532fda JL |
57 | %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7 |
58 | %define udevrulesdir /usr/lib/udev/rules.d | |
765a5d60 | 59 | %else |
ce532fda JL |
60 | %if 0%{?rhel} >= 6 |
61 | %define udevrulesdir /lib/udev/rules.d | |
62 | %else # RHEL5 | |
63 | %define udevrulesdir /etc/udev/rules.d | |
64 | %endif | |
765a5d60 JL |
65 | %endif |
66 | %endif | |
67 | ||
b8d6168f MC |
68 | %if 0%{?fedora} >= 19 || 0%{?rhel} >= 7 |
69 | %define dracutstap %{_prefix}/lib/dracut/modules.d/99stap | |
70 | %else | |
71 | %define dracutstap %{_prefix}/share/dracut/modules.d/99stap | |
72 | %endif | |
73 | ||
1d4d806c | 74 | %if 0%{?rhel} == 6 || 0%{?rhel} == 7 |
b8d6168f MC |
75 | %define dracutbindir /sbin |
76 | %else | |
77 | %define dracutbindir %{_bindir} | |
78 | %endif | |
6a06bc73 | 79 | |
9297d41f MC |
80 | %if 0%{?rhel} == 6 |
81 | %{!?_rpmmacrodir: %define _rpmmacrodir /etc/rpm/} | |
82 | %else | |
83 | %{!?_rpmmacrodir: %define _rpmmacrodir %{_rpmconfigdir}/macros.d} | |
84 | %endif | |
85 | ||
e4f9f015 | 86 | # To avoid testsuite/*/*.stp has shebang which doesn't start with '/' |
3b029fcc | 87 | %define __brp_mangle_shebangs_exclude_from .stp$ |
e4f9f015 | 88 | |
a2c9eba7 | 89 | Name: systemtap |
ae73b6de | 90 | Version: 4.2 |
72652d5d | 91 | Release: 1%{?release_override}%{?dist} |
59b30bda | 92 | # for version, see also configure.ac |
016a35ea FCE |
93 | |
94 | ||
95 | # Packaging abstract: | |
96 | # | |
97 | # systemtap empty req:-client req:-devel | |
98 | # systemtap-server /usr/bin/stap-server*, req:-devel | |
99 | # systemtap-devel /usr/bin/stap, runtime, tapset, req:kernel-devel | |
4b682f2a | 100 | # systemtap-runtime /usr/bin/staprun, /usr/bin/stapsh, /usr/bin/stapdyn |
016a35ea | 101 | # systemtap-client /usr/bin/stap, samples, docs, tapset(bonus), req:-runtime |
6a06bc73 | 102 | # systemtap-initscript /etc/init.d/systemtap, dracut module, req:systemtap |
016a35ea FCE |
103 | # systemtap-sdt-devel /usr/include/sys/sdt.h /usr/bin/dtrace |
104 | # systemtap-testsuite /usr/share/systemtap/testsuite*, req:systemtap, req:sdt-devel | |
36cfba7c | 105 | # systemtap-runtime-java libHelperSDT.so, HelperSDT.jar, stapbm, req:-runtime |
765a5d60 JL |
106 | # systemtap-runtime-virthost /usr/bin/stapvirt, req:libvirt req:libxml2 |
107 | # systemtap-runtime-virtguest udev rules, init scripts/systemd service, req:-runtime | |
30354895 DS |
108 | # systemtap-runtime-python2 HelperSDT python2 module, req:-runtime |
109 | # systemtap-runtime-python3 HelperSDT python3 module, req:-runtime | |
016a35ea FCE |
110 | # |
111 | # Typical scenarios: | |
112 | # | |
113 | # stap-client: systemtap-client | |
114 | # stap-server: systemtap-server | |
115 | # local user: systemtap | |
116 | # | |
117 | # Unusual scenarios: | |
1553f7e3 | 118 | # |
016a35ea FCE |
119 | # intermediary stap-client for --remote: systemtap-client (-runtime unused) |
120 | # intermediary stap-server for --use-server: systemtap-server (-devel unused) | |
121 | ||
122 | Summary: Programmable system-wide instrumentation system | |
6a1cd8a7 | 123 | License: GPLv2+ |
a2c9eba7 | 124 | URL: http://sourceware.org/systemtap/ |
60e99141 | 125 | Source: ftp://sourceware.org/pub/systemtap/releases/systemtap-%{version}.tar.gz |
a2c9eba7 | 126 | |
016a35ea | 127 | # Build* |
4c895683 | 128 | BuildRequires: gcc-c++ |
b8550627 | 129 | BuildRequires: cpio |
48fa6b5e | 130 | BuildRequires: gettext-devel |
756c7cf2 FCE |
131 | BuildRequires: pkgconfig(nss) |
132 | BuildRequires: pkgconfig(avahi-client) | |
5ecd6999 | 133 | %if %{with_dyninst} |
80cc0577 | 134 | BuildRequires: dyninst-devel >= 10.1 |
756c7cf2 | 135 | BuildRequires: pkgconfig(libselinux) |
5ecd6999 | 136 | %endif |
a87d23e3 | 137 | %if %{with_sqlite} |
572f73b5 | 138 | BuildRequires: sqlite-devel > 3.7 |
d8c3d602 | 139 | %endif |
f7420048 | 140 | %if %{with_monitor} |
756c7cf2 FCE |
141 | BuildRequires: pkgconfig(json-c) |
142 | BuildRequires: pkgconfig(ncurses) | |
f7420048 | 143 | %endif |
10a7ba12 IZ |
144 | %if %{with_systemd} |
145 | BuildRequires: systemd | |
146 | %endif | |
469c1a1b FCE |
147 | # Needed for libstd++ < 4.0, without <tr1/memory> |
148 | %if %{with_boost} | |
149 | BuildRequires: boost-devel | |
150 | %endif | |
a87d23e3 | 151 | %if %{with_crash} |
d2995e6f | 152 | BuildRequires: crash-devel zlib-devel |
1e0716d3 | 153 | %endif |
2ed04863 | 154 | %if %{with_rpm} |
71302939 | 155 | BuildRequires: rpm-devel |
2ed04863 | 156 | %endif |
a87d23e3 | 157 | %if %{with_bundled_elfutils} |
7d838f63 MH |
158 | Source1: elfutils-%{elfutils_version}.tar.gz |
159 | Patch1: elfutils-portability.patch | |
d79591b3 | 160 | BuildRequires: m4 |
11059140 | 161 | %global setup_elfutils -a1 |
a2c9eba7 RM |
162 | %else |
163 | BuildRequires: elfutils-devel >= %{elfutils_version} | |
7d838f63 | 164 | %endif |
465e8fbf | 165 | %if %{with_docs} |
7012fdd5 | 166 | BuildRequires: /usr/bin/latex /usr/bin/dvips /usr/bin/ps2pdf |
eb8eb9bc | 167 | %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7 |
2ed848e0 | 168 | BuildRequires: tex(fullpage.sty) tex(fancybox.sty) tex(bchr7t.tfm) tex(graphicx.sty) |
eb8eb9bc | 169 | %endif |
7b19719f FCE |
170 | # For the html.sty mentioned in the .tex files, even though latex2html is |
171 | # not run during the build, only during manual scripts/update-docs runs: | |
172 | BuildRequires: latex2html | |
6706593f | 173 | %if %{with_htmldocs} |
6275c8d7 DS |
174 | # On F10, xmlto's pdf support was broken off into a sub-package, |
175 | # called 'xmlto-tex'. To avoid a specific F10 BuildReq, we'll do a | |
176 | # file-based buildreq on '/usr/share/xmlto/format/fo/pdf'. | |
177 | BuildRequires: xmlto /usr/share/xmlto/format/fo/pdf | |
465e8fbf | 178 | %endif |
6706593f | 179 | %endif |
65635f34 FCE |
180 | %if %{with_emacsvim} |
181 | BuildRequires: emacs | |
182 | %endif | |
fd05c448 | 183 | %if %{with_java} |
36cfba7c | 184 | BuildRequires: jpackage-utils java-devel |
fd05c448 | 185 | %endif |
765a5d60 | 186 | %if %{with_virthost} |
756c7cf2 FCE |
187 | # BuildRequires: libvirt-devel >= 1.0.2 |
188 | BuildRequires: pkgconfig(libvirt) | |
189 | BuildRequires: pkgconfig(libxml-2.0) | |
765a5d60 | 190 | %endif |
16314eed DS |
191 | BuildRequires: readline-devel |
192 | %if 0%{?rhel} <= 5 | |
756c7cf2 | 193 | BuildRequires: pkgconfig(ncurses) |
16314eed | 194 | %endif |
30354895 | 195 | %if %{with_python2_probes} |
f312f87e | 196 | BuildRequires: python2-devel |
09cd42d2 | 197 | %if 0%{?fedora} >= 1 |
f312f87e | 198 | BuildRequires: python2-setuptools |
09cd42d2 MC |
199 | %else |
200 | BuildRequires: python-setuptools | |
201 | %endif | |
30354895 DS |
202 | %endif |
203 | %if %{with_python3_probes} | |
204 | BuildRequires: python3-devel | |
c11fe12e | 205 | BuildRequires: python3-setuptools |
30354895 | 206 | %endif |
5c076da1 WC |
207 | %if %{with_specific_python} |
208 | BuildRequires: /usr/bin/pathfix.py | |
209 | %endif | |
14df5fde | 210 | |
696a4ac1 DS |
211 | %if %{with_httpd} |
212 | BuildRequires: libmicrohttpd-devel | |
213 | BuildRequires: libuuid-devel | |
214 | %endif | |
215 | ||
016a35ea FCE |
216 | # Install requirements |
217 | Requires: systemtap-client = %{version}-%{release} | |
218 | Requires: systemtap-devel = %{version}-%{release} | |
219 | ||
7d838f63 | 220 | %description |
f89ff3e2 | 221 | SystemTap is an instrumentation system for systems running Linux. |
016a35ea FCE |
222 | Developers can write instrumentation scripts to collect data on |
223 | the operation of the system. The base systemtap package contains/requires | |
224 | the components needed to locally develop and execute systemtap scripts. | |
225 | ||
226 | # ------------------------------------------------------------------------ | |
227 | ||
228 | %package server | |
229 | Summary: Instrumentation System Server | |
016a35ea FCE |
230 | License: GPLv2+ |
231 | URL: http://sourceware.org/systemtap/ | |
232 | Requires: systemtap-devel = %{version}-%{release} | |
7915b4f7 FCE |
233 | Conflicts: systemtap-devel < %{version}-%{release} |
234 | Conflicts: systemtap-runtime < %{version}-%{release} | |
235 | Conflicts: systemtap-client < %{version}-%{release} | |
4d589cc1 | 236 | Requires: nss coreutils |
016a35ea FCE |
237 | Requires: zip unzip |
238 | Requires(pre): shadow-utils | |
016a35ea | 239 | BuildRequires: nss-devel avahi-devel |
9a9a6ff8 DS |
240 | %if %{with_openssl} |
241 | Requires: openssl | |
242 | %endif | |
10a7ba12 IZ |
243 | %if %{with_systemd} |
244 | Requires: systemd | |
68708800 | 245 | %else |
f082df49 PR |
246 | Requires(post): chkconfig |
247 | Requires(preun): chkconfig | |
68708800 SM |
248 | Requires(preun): initscripts |
249 | Requires(postun): initscripts | |
10a7ba12 | 250 | %endif |
016a35ea FCE |
251 | |
252 | %description server | |
253 | This is the remote script compilation server component of systemtap. | |
254 | It announces itself to nearby clients with avahi (if available), and | |
255 | compiles systemtap scripts to kernel objects on their demand. | |
256 | ||
257 | ||
258 | %package devel | |
259 | Summary: Programmable system-wide instrumentation system - development headers, tools | |
016a35ea FCE |
260 | License: GPLv2+ |
261 | URL: http://sourceware.org/systemtap/ | |
ec3b46eb FCE |
262 | |
263 | %if 0%{?rhel} >= 8 || 0%{?fedora} >= 20 | |
8bb72aa6 FCE |
264 | Recommends: (kernel-debug-devel if kernel-debug) |
265 | Recommends: (kernel-devel if kernel) | |
ec3b46eb | 266 | %else |
19eace0c | 267 | Requires: kernel-devel-uname-r |
ec3b46eb FCE |
268 | %endif |
269 | ||
4c895683 | 270 | Requires: gcc make |
7915b4f7 FCE |
271 | Conflicts: systemtap-client < %{version}-%{release} |
272 | Conflicts: systemtap-server < %{version}-%{release} | |
273 | Conflicts: systemtap-runtime < %{version}-%{release} | |
016a35ea FCE |
274 | # Suggest: kernel-debuginfo |
275 | ||
276 | %description devel | |
277 | This package contains the components needed to compile a systemtap | |
278 | script from source form into executable (.ko) forms. It may be | |
279 | installed on a self-contained developer workstation (along with the | |
280 | systemtap-client and systemtap-runtime packages), or on a dedicated | |
281 | remote server (alongside the systemtap-server package). It includes | |
282 | a copy of the standard tapset library and the runtime library C files. | |
283 | ||
7d838f63 | 284 | |
a63a95dc | 285 | %package runtime |
016a35ea | 286 | Summary: Programmable system-wide instrumentation system - runtime |
6a1cd8a7 | 287 | License: GPLv2+ |
a63a95dc | 288 | URL: http://sourceware.org/systemtap/ |
378a5245 | 289 | Requires(pre): shadow-utils |
7915b4f7 FCE |
290 | Conflicts: systemtap-devel < %{version}-%{release} |
291 | Conflicts: systemtap-server < %{version}-%{release} | |
292 | Conflicts: systemtap-client < %{version}-%{release} | |
a63a95dc DS |
293 | |
294 | %description runtime | |
016a35ea FCE |
295 | SystemTap runtime contains the components needed to execute |
296 | a systemtap script that was already compiled into a module | |
297 | using a local or remote systemtap-devel installation. | |
a63a95dc | 298 | |
016a35ea FCE |
299 | |
300 | %package client | |
301 | Summary: Programmable system-wide instrumentation system - client | |
8f3c45cc FCE |
302 | License: GPLv2+ |
303 | URL: http://sourceware.org/systemtap/ | |
016a35ea FCE |
304 | Requires: zip unzip |
305 | Requires: systemtap-runtime = %{version}-%{release} | |
306 | Requires: coreutils grep sed unzip zip | |
307 | Requires: openssh-clients | |
7915b4f7 FCE |
308 | Conflicts: systemtap-devel < %{version}-%{release} |
309 | Conflicts: systemtap-server < %{version}-%{release} | |
310 | Conflicts: systemtap-runtime < %{version}-%{release} | |
25c72c50 DS |
311 | %if %{with_mokutil} |
312 | Requires: mokutil | |
313 | %endif | |
8f3c45cc | 314 | |
016a35ea | 315 | %description client |
1553f7e3 LB |
316 | This package contains/requires the components needed to develop |
317 | systemtap scripts, and compile them using a local systemtap-devel | |
016a35ea FCE |
318 | or a remote systemtap-server installation, then run them using a |
319 | local or remote systemtap-runtime. It includes script samples and | |
320 | documentation, and a copy of the tapset library for reference. | |
8f3c45cc | 321 | |
016a35ea FCE |
322 | |
323 | %package initscript | |
324 | Summary: Systemtap Initscripts | |
d9d14e20 DB |
325 | License: GPLv2+ |
326 | URL: http://sourceware.org/systemtap/ | |
ad12652e | 327 | Requires: systemtap = %{version}-%{release} |
68708800 SM |
328 | %if %{with_systemd} |
329 | Requires: systemd | |
330 | %else | |
f082df49 PR |
331 | Requires(post): chkconfig |
332 | Requires(preun): chkconfig | |
e2a741be DB |
333 | Requires(preun): initscripts |
334 | Requires(postun): initscripts | |
68708800 | 335 | %endif |
d9d14e20 | 336 | |
016a35ea | 337 | %description initscript |
6a06bc73 JL |
338 | This package includes a SysVinit script to launch selected systemtap |
339 | scripts at system startup, along with a dracut module for early | |
340 | boot-time probing if supported. | |
016a35ea | 341 | |
d9d14e20 | 342 | |
b899aa79 SC |
343 | %package sdt-devel |
344 | Summary: Static probe support tools | |
920b103a | 345 | License: GPLv2+ and Public Domain |
b899aa79 | 346 | URL: http://sourceware.org/systemtap/ |
d0eeef5f | 347 | %if %{with_pyparsing} |
0a742545 FCE |
348 | %if %{with_python3} |
349 | Requires: python3-pyparsing | |
350 | %else | |
089afb20 MC |
351 | %if 0%{?rhel} >= 7 |
352 | Requires: pyparsing | |
353 | %else | |
f312f87e | 354 | Requires: python2-pyparsing |
d0eeef5f | 355 | %endif |
0a742545 | 356 | %endif |
089afb20 | 357 | %endif |
b899aa79 SC |
358 | |
359 | %description sdt-devel | |
016a35ea FCE |
360 | This package includes the <sys/sdt.h> header file used for static |
361 | instrumentation compiled into userspace programs and libraries, along | |
362 | with the optional dtrace-compatibility preprocessor to process related | |
363 | .d files into tracing-macro-laden .h headers. | |
b899aa79 | 364 | |
016a35ea FCE |
365 | |
366 | %package testsuite | |
367 | Summary: Instrumentation System Testsuite | |
9a8d8be3 MH |
368 | License: GPLv2+ |
369 | URL: http://sourceware.org/systemtap/ | |
016a35ea FCE |
370 | Requires: systemtap = %{version}-%{release} |
371 | Requires: systemtap-sdt-devel = %{version}-%{release} | |
d6d8634e | 372 | Requires: systemtap-server = %{version}-%{release} |
cf638735 | 373 | Requires: dejagnu which elfutils grep nc |
4c895683 | 374 | Requires: gcc gcc-c++ make glibc-devel |
c157d058 DS |
375 | # testsuite/systemtap.base/ptrace.exp needs strace |
376 | Requires: strace | |
9564c81a DS |
377 | # testsuite/systemtap.base/ipaddr.exp needs nc. Unfortunately, the rpm |
378 | # that provides nc has changed over time (from 'nc' to | |
379 | # 'nmap-ncat'). So, we'll do a file-based require. | |
380 | Requires: /usr/bin/nc | |
70afe224 | 381 | %ifnarch ia64 ppc64le aarch64 |
9d0b65fe FCE |
382 | %if 0%{?fedora} >= 21 || 0%{?rhel} >= 8 |
383 | # no prelink | |
384 | %else | |
cf638735 SC |
385 | Requires: prelink |
386 | %endif | |
9d0b65fe | 387 | %endif |
d6d8634e DS |
388 | # testsuite/systemtap.server/client.exp needs avahi |
389 | Requires: avahi | |
390 | %if %{with_crash} | |
391 | # testsuite/systemtap.base/crash.exp needs crash | |
392 | Requires: crash | |
393 | %endif | |
eaa3bf2e FCE |
394 | %if %{with_java} |
395 | Requires: systemtap-runtime-java = %{version}-%{release} | |
396 | %endif | |
30354895 DS |
397 | %if %{with_python2_probes} |
398 | Requires: systemtap-runtime-python2 = %{version}-%{release} | |
399 | %endif | |
400 | %if %{with_python3_probes} | |
401 | Requires: systemtap-runtime-python3 = %{version}-%{release} | |
402 | %endif | |
07547775 | 403 | %ifarch x86_64 |
e2d574cc | 404 | Requires: /usr/lib/libc.so |
b9770214 FCE |
405 | # ... and /usr/lib/libgcc_s.so.* |
406 | # ... and /usr/lib/libstdc++.so.* | |
4c895683 | 407 | %endif |
574cf27a SC |
408 | %if 0%{?fedora} >= 18 |
409 | Requires: stress | |
410 | %endif | |
6965b69a DS |
411 | # The following "meta" files for the systemtap examples run "perf": |
412 | # testsuite/systemtap.examples/hw_watch_addr.meta | |
413 | # testsuite/systemtap.examples/memory/hw_watch_sym.meta | |
414 | Requires: perf | |
016a35ea FCE |
415 | |
416 | %description testsuite | |
417 | This package includes the dejagnu-based systemtap stress self-testing | |
418 | suite. This may be used by system administrators to thoroughly check | |
419 | systemtap on the current system. | |
9a8d8be3 | 420 | |
9a8d8be3 | 421 | |
36cfba7c SM |
422 | %if %{with_java} |
423 | %package runtime-java | |
424 | Summary: Systemtap Java Runtime Support | |
36cfba7c SM |
425 | License: GPLv2+ |
426 | URL: http://sourceware.org/systemtap/ | |
427 | Requires: systemtap-runtime = %{version}-%{release} | |
d885563b | 428 | Requires: byteman > 2.0 |
0973594b | 429 | Requires: iproute |
16bf9d37 | 430 | Requires: java-devel |
36cfba7c SM |
431 | |
432 | %description runtime-java | |
433 | This package includes support files needed to run systemtap scripts | |
4d9ce48c | 434 | that probe Java processes running on the OpenJDK runtimes using Byteman. |
36cfba7c SM |
435 | %endif |
436 | ||
30354895 DS |
437 | %if %{with_python2_probes} |
438 | %package runtime-python2 | |
439 | Summary: Systemtap Python 2 Runtime Support | |
30354895 DS |
440 | License: GPLv2+ |
441 | URL: http://sourceware.org/systemtap/ | |
442 | Requires: systemtap-runtime = %{version}-%{release} | |
443 | ||
444 | %description runtime-python2 | |
445 | This package includes support files needed to run systemtap scripts | |
446 | that probe python 2 processes. | |
447 | %endif | |
448 | ||
449 | %if %{with_python3_probes} | |
450 | %package runtime-python3 | |
451 | Summary: Systemtap Python 3 Runtime Support | |
30354895 DS |
452 | License: GPLv2+ |
453 | URL: http://sourceware.org/systemtap/ | |
454 | Requires: systemtap-runtime = %{version}-%{release} | |
455 | ||
470a81c8 PV |
456 | %if ! (%{with_python2_probes}) |
457 | # Provide an clean upgrade path when the python2 package is removed | |
458 | Obsoletes: %{name}-runtime-python2 < %{version}-%{release} | |
459 | %endif | |
460 | ||
30354895 DS |
461 | %description runtime-python3 |
462 | This package includes support files needed to run systemtap scripts | |
463 | that probe python 3 processes. | |
464 | %endif | |
465 | ||
09bb4384 | 466 | %if %{with_python3} |
b8550627 | 467 | %package exporter |
09bb4384 | 468 | Summary: Systemtap-prometheus interoperation mechanism |
09bb4384 AM |
469 | License: GPLv2+ |
470 | URL: http://sourceware.org/systemtap/ | |
471 | Requires: systemtap-runtime = %{version}-%{release} | |
472 | ||
b8550627 | 473 | %description exporter |
09bb4384 AM |
474 | This package includes files for a systemd service that manages |
475 | systemtap sessions and relays prometheus metrics from the sessions | |
476 | to remote requesters on demand. | |
477 | %endif | |
478 | ||
765a5d60 JL |
479 | %if %{with_virthost} |
480 | %package runtime-virthost | |
481 | Summary: Systemtap Cross-VM Instrumentation - host | |
765a5d60 JL |
482 | License: GPLv2+ |
483 | URL: http://sourceware.org/systemtap/ | |
484 | Requires: libvirt >= 1.0.2 | |
485 | Requires: libxml2 | |
486 | ||
487 | %description runtime-virthost | |
488 | This package includes the components required to run systemtap scripts | |
489 | inside a libvirt-managed domain from the host without using a network | |
490 | connection. | |
491 | %endif | |
492 | ||
493 | %if %{with_virtguest} | |
494 | %package runtime-virtguest | |
495 | Summary: Systemtap Cross-VM Instrumentation - guest | |
765a5d60 JL |
496 | License: GPLv2+ |
497 | URL: http://sourceware.org/systemtap/ | |
498 | Requires: systemtap-runtime = %{version}-%{release} | |
499 | %if %{with_systemd} | |
500 | Requires(post): findutils coreutils | |
501 | Requires(preun): grep coreutils | |
502 | Requires(postun): grep coreutils | |
503 | %else | |
504 | Requires(post): chkconfig initscripts | |
505 | Requires(preun): chkconfig initscripts | |
506 | Requires(postun): initscripts | |
507 | %endif | |
508 | ||
509 | %description runtime-virtguest | |
510 | This package installs the services necessary on a virtual machine for a | |
511 | systemtap-runtime-virthost machine to execute systemtap scripts. | |
512 | %endif | |
36cfba7c | 513 | |
016a35ea FCE |
514 | # ------------------------------------------------------------------------ |
515 | ||
7d838f63 | 516 | %prep |
a2c9eba7 RM |
517 | %setup -q %{?setup_elfutils} |
518 | ||
a87d23e3 | 519 | %if %{with_bundled_elfutils} |
7d838f63 MH |
520 | cd elfutils-%{elfutils_version} |
521 | %patch1 -p1 | |
a2c9eba7 RM |
522 | sleep 1 |
523 | find . \( -name Makefile.in -o -name aclocal.m4 \) -print | xargs touch | |
524 | sleep 1 | |
525 | find . \( -name configure -o -name config.h.in \) -print | xargs touch | |
7d838f63 MH |
526 | cd .. |
527 | %endif | |
528 | ||
529 | %build | |
a2c9eba7 | 530 | |
a87d23e3 | 531 | %if %{with_bundled_elfutils} |
7d838f63 | 532 | # Build our own copy of elfutils. |
11059140 | 533 | %global elfutils_config --with-elfutils=elfutils-%{elfutils_version} |
a2c9eba7 RM |
534 | |
535 | # We have to prevent the standard dependency generation from identifying | |
536 | # our private elfutils libraries in our provides and requires. | |
11059140 RM |
537 | %global _use_internal_dependency_generator 0 |
538 | %global filter_eulibs() /bin/sh -c "%{1} | sed '/libelf/d;/libdw/d;/libebl/d'" | |
539 | %global __find_provides %{filter_eulibs /usr/lib/rpm/find-provides} | |
540 | %global __find_requires %{filter_eulibs /usr/lib/rpm/find-requires} | |
4dbd685d RM |
541 | |
542 | # This will be needed for running stap when not installed, for the test suite. | |
11059140 | 543 | %global elfutils_mflags LD_LIBRARY_PATH=`pwd`/lib-elfutils |
7d838f63 MH |
544 | %endif |
545 | ||
5ecd6999 JS |
546 | # Enable/disable the dyninst pure-userspace backend |
547 | %if %{with_dyninst} | |
548 | %global dyninst_config --with-dyninst | |
549 | %else | |
550 | %global dyninst_config --without-dyninst | |
551 | %endif | |
552 | ||
9921a199 | 553 | # Enable/disable the sqlite coverage testing support |
a87d23e3 | 554 | %if %{with_sqlite} |
11059140 | 555 | %global sqlite_config --enable-sqlite |
9921a199 | 556 | %else |
11059140 | 557 | %global sqlite_config --disable-sqlite |
d8c3d602 WC |
558 | %endif |
559 | ||
a87d23e3 DS |
560 | # Enable/disable the crash extension |
561 | %if %{with_crash} | |
11059140 | 562 | %global crash_config --enable-crash |
a87d23e3 | 563 | %else |
11059140 | 564 | %global crash_config --disable-crash |
a87d23e3 DS |
565 | %endif |
566 | ||
2ed04863 WC |
567 | # Enable/disable the code to find and suggest needed rpms |
568 | %if %{with_rpm} | |
11059140 | 569 | %global rpm_config --with-rpm |
2ed04863 | 570 | %else |
11059140 | 571 | %global rpm_config --without-rpm |
2ed04863 WC |
572 | %endif |
573 | ||
465e8fbf | 574 | %if %{with_docs} |
6706593f FL |
575 | %if %{with_htmldocs} |
576 | %global docs_config --enable-docs --enable-htmldocs | |
577 | %else | |
578 | %global docs_config --enable-docs --disable-htmldocs | |
579 | %endif | |
465e8fbf | 580 | %else |
0dfed9e3 | 581 | %global docs_config --enable-docs=prebuilt |
465e8fbf FCE |
582 | %endif |
583 | ||
e1e3ba36 RA |
584 | # Enable pie as configure defaults to disabling it |
585 | %if %{pie_supported} | |
11059140 | 586 | %global pie_config --enable-pie |
e1e3ba36 | 587 | %else |
11059140 | 588 | %global pie_config --disable-pie |
e1e3ba36 | 589 | %endif |
465e8fbf | 590 | |
53ade4da | 591 | |
fd05c448 | 592 | %if %{with_java} |
26703c63 | 593 | %global java_config --with-java=%{_jvmdir}/java |
fd05c448 | 594 | %else |
26703c63 | 595 | %global java_config --without-java |
fd05c448 | 596 | %endif |
465e8fbf | 597 | |
30354895 DS |
598 | %if %{with_python3} |
599 | %global python3_config --with-python3 | |
600 | %else | |
601 | %global python3_config --without-python3 | |
602 | %endif | |
603 | %if %{with_python2_probes} | |
604 | %global python2_probes_config --with-python2-probes | |
605 | %else | |
606 | %global python2_probes_config --without-python2-probes | |
607 | %endif | |
608 | %if %{with_python3_probes} | |
609 | %global python3_probes_config --with-python3-probes | |
610 | %else | |
611 | %global python3_probes_config --without-python3-probes | |
612 | %endif | |
613 | ||
b0c670f4 FCE |
614 | %if %{with_virthost} |
615 | %global virt_config --enable-virt | |
616 | %else | |
617 | %global virt_config --disable-virt | |
618 | %endif | |
619 | ||
2323b028 | 620 | %if %{with_dracut} |
b8d6168f | 621 | %global dracut_config --with-dracutstap=%{dracutstap} --with-dracutbindir=%{dracutbindir} |
2323b028 | 622 | %else |
b68f9f67 | 623 | %global dracut_config %{nil} |
2323b028 FCE |
624 | %endif |
625 | ||
696a4ac1 DS |
626 | %if %{with_httpd} |
627 | %global httpd_config --enable-httpd | |
628 | %else | |
629 | %global httpd_config --disable-httpd | |
630 | %endif | |
631 | ||
d4b69c1e FCE |
632 | %if %{with_bpf} |
633 | %global bpf_config --with-bpf | |
634 | %else | |
635 | %global bpf_config --without-bpf | |
636 | %endif | |
637 | ||
74bf7577 FCE |
638 | # We don't ship compileworthy python code, just oddball samples |
639 | %global py_auto_byte_compile 0 | |
0a742545 | 640 | |
d4b69c1e | 641 | %configure %{?elfutils_config} %{dyninst_config} %{sqlite_config} %{crash_config} %{docs_config} %{pie_config} %{rpm_config} %{java_config} %{virt_config} %{dracut_config} %{python3_config} %{python2_probes_config} %{python3_probes_config} %{httpd_config} %{bpf_config} --disable-silent-rules --with-extra-version="rpm %{version}-%{release}" |
a2c9eba7 | 642 | make %{?_smp_mflags} |
2a4b42eb | 643 | |
65635f34 FCE |
644 | %if %{with_emacsvim} |
645 | %{_emacs_bytecompile} emacs/systemtap-mode.el | |
646 | %endif | |
647 | ||
ec4d1558 | 648 | %install |
ec4d1558 | 649 | make DESTDIR=$RPM_BUILD_ROOT install |
9564097a | 650 | %find_lang %{name} |
d679d193 MC |
651 | for dir in $(ls -1d $RPM_BUILD_ROOT%{_mandir}/{??,??_??}) ; do |
652 | dir=$(echo $dir | sed -e "s|^$RPM_BUILD_ROOT||") | |
653 | lang=$(basename $dir) | |
654 | echo "%%lang($lang) $dir/man*/*" >> %{name}.lang | |
655 | done | |
ec4d1558 | 656 | |
2cd5c938 | 657 | ln -s %{_datadir}/systemtap/examples |
ec4d1558 | 658 | |
5c5f2389 | 659 | # Fix paths in the example scripts. |
2cd5c938 | 660 | find $RPM_BUILD_ROOT%{_datadir}/systemtap/examples -type f -name '*.stp' -print0 | xargs -0 sed -i -r -e '1s@^#!.+stap@#!%{_bindir}/stap@' |
7d838f63 | 661 | |
414e04de DS |
662 | # To make rpmlint happy, remove any .gitignore files in the testsuite. |
663 | find testsuite -type f -name '.gitignore' -print0 | xargs -0 rm -f | |
664 | ||
b7565b41 | 665 | # Because "make install" may install staprun with whatever mode, the |
98aab489 DS |
666 | # post-processing programs rpmbuild runs won't be able to read it. |
667 | # So, we change permissions so that they can read it. We'll set the | |
b7565b41 | 668 | # permissions back to 04110 in the %files section below. |
98aab489 DS |
669 | chmod 755 $RPM_BUILD_ROOT%{_bindir}/staprun |
670 | ||
cd4d1d39 WC |
671 | #install the useful stap-prep script |
672 | install -c -m 755 stap-prep $RPM_BUILD_ROOT%{_bindir}/stap-prep | |
673 | ||
8f3c45cc FCE |
674 | # Copy over the testsuite |
675 | cp -rp testsuite $RPM_BUILD_ROOT%{_datadir}/systemtap | |
676 | ||
7fe437e6 | 677 | # We want the manuals in the special doc dir, not the generic doc install dir. |
c256c4a6 MW |
678 | # We build it in place and then move it away so it doesn't get installed |
679 | # twice. rpm can specify itself where the (versioned) docs go with the | |
680 | # %doc directive. | |
7fe437e6 MW |
681 | mkdir docs.installed |
682 | mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/*.pdf docs.installed/ | |
0dfed9e3 | 683 | %if %{with_docs} |
6706593f | 684 | %if %{with_htmldocs} |
5bfd7a37 | 685 | mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/tapsets docs.installed/ |
53ade4da MW |
686 | mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/SystemTap_Beginners_Guide docs.installed/ |
687 | %endif | |
6706593f | 688 | %endif |
7fe437e6 | 689 | |
e914597c FCE |
690 | install -D -m 644 macros.systemtap $RPM_BUILD_ROOT%{_rpmmacrodir}/macros.systemtap |
691 | ||
e58423f4 LB |
692 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/stap-server |
693 | mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/stap-server | |
8689b446 | 694 | mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/stap-server/.systemtap |
e58423f4 LB |
695 | mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/stap-server |
696 | touch $RPM_BUILD_ROOT%{_localstatedir}/log/stap-server/log | |
697 | mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/systemtap | |
89abe8f9 | 698 | mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/systemtap |
c1fc8157 LB |
699 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d |
700 | install -m 644 initscript/logrotate.stap-server $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/stap-server | |
68708800 SM |
701 | |
702 | # If using systemd systemtap.service file, retain the old init script in %{_libexecdir} as a helper. | |
703 | %if %{with_systemd} | |
704 | mkdir -p $RPM_BUILD_ROOT%{_unitdir} | |
705 | touch $RPM_BUILD_ROOT%{_unitdir}/systemtap.service | |
706 | install -m 644 initscript/systemtap.service $RPM_BUILD_ROOT%{_unitdir}/systemtap.service | |
707 | mkdir -p $RPM_BUILD_ROOT%{_sbindir} | |
708 | install -m 755 initscript/systemtap $RPM_BUILD_ROOT%{_sbindir}/systemtap-service | |
709 | %else | |
4a618408 JL |
710 | mkdir -p $RPM_BUILD_ROOT%{initdir} |
711 | install -m 755 initscript/systemtap $RPM_BUILD_ROOT%{initdir} | |
68708800 SM |
712 | mkdir -p $RPM_BUILD_ROOT%{_sbindir} |
713 | ln -sf %{initdir}/systemtap $RPM_BUILD_ROOT%{_sbindir}/systemtap-service | |
714 | # TODO CHECK CORRECTNESS: symlink %{_sbindir}/systemtap-service to %{initdir}/systemtap | |
715 | %endif | |
716 | ||
4c3b0da5 LB |
717 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap |
718 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/conf.d | |
719 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/script.d | |
720 | install -m 644 initscript/config.systemtap $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/config | |
68708800 | 721 | |
7fe42498 | 722 | %if %{with_systemd} |
c1fc8157 LB |
723 | mkdir -p $RPM_BUILD_ROOT%{_unitdir} |
724 | touch $RPM_BUILD_ROOT%{_unitdir}/stap-server.service | |
725 | install -m 644 stap-server.service $RPM_BUILD_ROOT%{_unitdir}/stap-server.service | |
752358d4 FCE |
726 | mkdir -p $RPM_BUILD_ROOT%{_tmpfilesdir} |
727 | install -m 644 stap-server.conf $RPM_BUILD_ROOT%{_tmpfilesdir}/stap-server.conf | |
e58423f4 | 728 | %else |
4a618408 | 729 | install -m 755 initscript/stap-server $RPM_BUILD_ROOT%{initdir} |
2f78bee0 | 730 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/stap-server/conf.d |
c982e923 | 731 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig |
e2a741be | 732 | install -m 644 initscript/config.stap-server $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/stap-server |
e58423f4 | 733 | %endif |
9a8d8be3 | 734 | |
65635f34 FCE |
735 | %if %{with_emacsvim} |
736 | mkdir -p $RPM_BUILD_ROOT%{_emacs_sitelispdir} | |
737 | install -p -m 644 emacs/systemtap-mode.el* $RPM_BUILD_ROOT%{_emacs_sitelispdir} | |
738 | mkdir -p $RPM_BUILD_ROOT%{_emacs_sitestartdir} | |
739 | install -p -m 644 emacs/systemtap-init.el $RPM_BUILD_ROOT%{_emacs_sitestartdir}/systemtap-init.el | |
e42fca4e FCE |
740 | for subdir in ftdetect ftplugin indent syntax |
741 | do | |
742 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/$subdir | |
743 | install -p -m 644 vim/$subdir/*.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/$subdir | |
744 | done | |
65635f34 FCE |
745 | %endif |
746 | ||
765a5d60 JL |
747 | %if %{with_virtguest} |
748 | mkdir -p $RPM_BUILD_ROOT%{udevrulesdir} | |
749 | %if %{with_systemd} | |
750 | install -p -m 644 staprun/guest/99-stapsh.rules $RPM_BUILD_ROOT%{udevrulesdir} | |
751 | mkdir -p $RPM_BUILD_ROOT%{_unitdir} | |
752 | install -p -m 644 staprun/guest/stapsh@.service $RPM_BUILD_ROOT%{_unitdir} | |
753 | %else | |
754 | install -p -m 644 staprun/guest/99-stapsh-init.rules $RPM_BUILD_ROOT%{udevrulesdir} | |
755 | install -p -m 755 staprun/guest/stapshd $RPM_BUILD_ROOT%{initdir} | |
756 | mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/systemtap | |
757 | install -p -m 755 staprun/guest/stapsh-daemon $RPM_BUILD_ROOT%{_libexecdir}/systemtap | |
758 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/modules | |
759 | # Technically, this is only needed for RHEL5, in which the MODULE_ALIAS is missing, but | |
760 | # it does no harm in RHEL6 as well | |
761 | install -p -m 755 staprun/guest/virtio_console.modules $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/modules | |
762 | %endif | |
763 | %endif | |
65635f34 | 764 | |
6a06bc73 JL |
765 | %if %{with_dracut} |
766 | mkdir -p $RPM_BUILD_ROOT%{dracutstap} | |
767 | install -p -m 755 initscript/99stap/module-setup.sh $RPM_BUILD_ROOT%{dracutstap} | |
b8d6168f MC |
768 | install -p -m 755 initscript/99stap/install $RPM_BUILD_ROOT%{dracutstap} |
769 | install -p -m 755 initscript/99stap/check $RPM_BUILD_ROOT%{dracutstap} | |
6a06bc73 JL |
770 | install -p -m 755 initscript/99stap/start-staprun.sh $RPM_BUILD_ROOT%{dracutstap} |
771 | touch $RPM_BUILD_ROOT%{dracutstap}/params.conf | |
772 | %endif | |
773 | ||
5c076da1 WC |
774 | %if %{with_specific_python} |
775 | # Some files got ambiguous python shebangs, we fix them after everything else is done | |
776 | pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{python3_sitearch} %{buildroot}%{_bindir}/* | |
777 | %endif | |
778 | ||
378a5245 | 779 | %pre runtime |
f90ca309 DW |
780 | getent group stapusr >/dev/null || groupadd -f -g 156 -r stapusr |
781 | getent group stapsys >/dev/null || groupadd -f -g 157 -r stapsys | |
782 | getent group stapdev >/dev/null || groupadd -f -g 158 -r stapdev | |
efc4bf9a | 783 | exit 0 |
98aab489 | 784 | |
7433d0cf | 785 | %pre server |
f90ca309 | 786 | getent group stap-server >/dev/null || groupadd -f -g 155 -r stap-server |
2648a9b4 | 787 | getent passwd stap-server >/dev/null || \ |
7734bd4f FCE |
788 | useradd -c "Systemtap Compile Server" -u 155 -g stap-server -d %{_localstatedir}/lib/stap-server -r -s /sbin/nologin stap-server 2>/dev/null || \ |
789 | useradd -c "Systemtap Compile Server" -g stap-server -d %{_localstatedir}/lib/stap-server -r -s /sbin/nologin stap-server | |
8689b446 | 790 | |
5c84a24f DS |
791 | %pre testsuite |
792 | getent passwd stapusr >/dev/null || \ | |
793 | useradd -c "Systemtap 'stapusr' User" -g stapusr -r -s /sbin/nologin stapusr | |
794 | getent passwd stapsys >/dev/null || \ | |
795 | useradd -c "Systemtap 'stapsys' User" -g stapsys -G stapusr -r -s /sbin/nologin stapsys | |
796 | getent passwd stapdev >/dev/null || \ | |
797 | useradd -c "Systemtap 'stapdev' User" -g stapdev -G stapusr -r -s /sbin/nologin stapdev | |
798 | exit 0 | |
799 | ||
8689b446 FCE |
800 | %post server |
801 | ||
4cf2b709 FCE |
802 | # We have some duplication between the %files listings for the |
803 | # ~stap-server directories and the explicit mkdir/chown/chmod bits | |
804 | # here. Part of the reason may be that a preexisting stap-server | |
805 | # account may well be placed somewhere other than | |
806 | # %{_localstatedir}/lib/stap-server, but we'd like their permissions | |
807 | # set similarly. | |
808 | ||
809 | test -e ~stap-server && chmod 750 ~stap-server | |
878b2f3f CM |
810 | |
811 | if [ ! -f ~stap-server/.systemtap/rc ]; then | |
812 | mkdir -p ~stap-server/.systemtap | |
813 | chown stap-server:stap-server ~stap-server/.systemtap | |
86298f09 | 814 | # PR16276: guess at a reasonable number for a default --rlimit-nproc |
3c4476ac FCE |
815 | numcpu=`/usr/bin/getconf _NPROCESSORS_ONLN` |
816 | if [ -z "$numcpu" -o "$numcpu" -lt 1 ]; then numcpu=1; fi | |
817 | nproc=`expr $numcpu \* 30` | |
818 | echo "--rlimit-as=614400000 --rlimit-cpu=60 --rlimit-nproc=$nproc --rlimit-stack=1024000 --rlimit-fsize=51200000" > ~stap-server/.systemtap/rc | |
878b2f3f CM |
819 | chown stap-server:stap-server ~stap-server/.systemtap/rc |
820 | fi | |
7433d0cf | 821 | |
962906a7 DS |
822 | test -e %{_localstatedir}/log/stap-server/log || { |
823 | touch %{_localstatedir}/log/stap-server/log | |
4cf2b709 | 824 | chmod 644 %{_localstatedir}/log/stap-server/log |
962906a7 DS |
825 | chown stap-server:stap-server %{_localstatedir}/log/stap-server/log |
826 | } | |
e59944d5 | 827 | # Prepare the service |
7fe42498 | 828 | %if %{with_systemd} |
e59944d5 JS |
829 | # Note, Fedora policy doesn't allow network services enabled by default |
830 | # /bin/systemctl enable stap-server.service >/dev/null 2>&1 || : | |
5646d029 | 831 | /bin/systemd-tmpfiles --create %{_tmpfilesdir}/stap-server.conf >/dev/null 2>&1 || : |
e58423f4 LB |
832 | %else |
833 | /sbin/chkconfig --add stap-server | |
834 | %endif | |
09070e8a DB |
835 | exit 0 |
836 | ||
045e193d FCE |
837 | %triggerin client -- systemtap-server |
838 | if test -e ~stap-server/.systemtap/ssl/server/stap.cert; then | |
839 | # echo Authorizing ssl-peer/trusted-signer certificate for local systemtap-server | |
60e99141 FCE |
840 | %{_libexecdir}/systemtap/stap-authorize-cert ~stap-server/.systemtap/ssl/server/stap.cert %{_sysconfdir}/systemtap/ssl/client >/dev/null |
841 | %{_libexecdir}/systemtap/stap-authorize-cert ~stap-server/.systemtap/ssl/server/stap.cert %{_sysconfdir}/systemtap/staprun >/dev/null | |
045e193d FCE |
842 | fi |
843 | exit 0 | |
844 | # XXX: corresponding %triggerun? | |
845 | ||
09070e8a | 846 | %preun server |
d210cb1c DB |
847 | # Check that this is the actual deinstallation of the package, as opposed to |
848 | # just removing the old package on upgrade. | |
e2a741be | 849 | if [ $1 = 0 ] ; then |
7fe42498 | 850 | %if %{with_systemd} |
e58423f4 LB |
851 | /bin/systemctl --no-reload disable stap-server.service >/dev/null 2>&1 || : |
852 | /bin/systemctl stop stap-server.service >/dev/null 2>&1 || : | |
853 | %else | |
854 | /sbin/service stap-server stop >/dev/null 2>&1 | |
64647133 | 855 | /sbin/chkconfig --del stap-server |
e58423f4 | 856 | %endif |
e2a741be DB |
857 | fi |
858 | exit 0 | |
859 | ||
860 | %postun server | |
d210cb1c DB |
861 | # Check whether this is an upgrade of the package. |
862 | # If so, restart the service if it's running | |
e2a741be | 863 | if [ "$1" -ge "1" ] ; then |
7fe42498 | 864 | %if %{with_systemd} |
e59944d5 | 865 | /bin/systemctl condrestart stap-server.service >/dev/null 2>&1 || : |
e58423f4 LB |
866 | %else |
867 | /sbin/service stap-server condrestart >/dev/null 2>&1 || : | |
868 | %endif | |
e2a741be | 869 | fi |
09070e8a DB |
870 | exit 0 |
871 | ||
9a8d8be3 | 872 | %post initscript |
7fe42498 | 873 | %if %{with_systemd} |
64647133 | 874 | /bin/systemctl enable systemtap.service >/dev/null 2>&1 || : |
e58423f4 LB |
875 | %else |
876 | /sbin/chkconfig --add systemtap | |
877 | %endif | |
9a8d8be3 MH |
878 | exit 0 |
879 | ||
880 | %preun initscript | |
d210cb1c DB |
881 | # Check that this is the actual deinstallation of the package, as opposed to |
882 | # just removing the old package on upgrade. | |
e2a741be | 883 | if [ $1 = 0 ] ; then |
7fe42498 | 884 | %if %{with_systemd} |
64647133 JL |
885 | /bin/systemctl --no-reload disable systemtap.service >/dev/null 2>&1 || : |
886 | /bin/systemctl stop systemtap.service >/dev/null 2>&1 || : | |
e58423f4 LB |
887 | %else |
888 | /sbin/service systemtap stop >/dev/null 2>&1 | |
64647133 | 889 | /sbin/chkconfig --del systemtap |
e58423f4 | 890 | %endif |
e2a741be DB |
891 | fi |
892 | exit 0 | |
893 | ||
894 | %postun initscript | |
d210cb1c DB |
895 | # Check whether this is an upgrade of the package. |
896 | # If so, restart the service if it's running | |
e2a741be | 897 | if [ "$1" -ge "1" ] ; then |
7fe42498 | 898 | %if %{with_systemd} |
64647133 | 899 | /bin/systemctl condrestart systemtap.service >/dev/null 2>&1 || : |
e58423f4 LB |
900 | %else |
901 | /sbin/service systemtap condrestart >/dev/null 2>&1 || : | |
902 | %endif | |
e2a741be | 903 | fi |
9a8d8be3 MH |
904 | exit 0 |
905 | ||
765a5d60 JL |
906 | %post runtime-virtguest |
907 | %if %{with_systemd} | |
908 | # Start services if there are ports present | |
909 | if [ -d /dev/virtio-ports ]; then | |
910 | (find /dev/virtio-ports -iname 'org.systemtap.stapsh.[0-9]*' -type l \ | |
911 | | xargs -n 1 basename \ | |
912 | | xargs -n 1 -I {} /bin/systemctl start stapsh@{}.service) >/dev/null 2>&1 || : | |
913 | fi | |
914 | %else | |
915 | /sbin/chkconfig --add stapshd | |
916 | /sbin/chkconfig stapshd on | |
917 | /sbin/service stapshd start >/dev/null 2>&1 || : | |
918 | %endif | |
919 | exit 0 | |
920 | ||
921 | %preun runtime-virtguest | |
922 | # Stop service if this is an uninstall rather than an upgrade | |
923 | if [ $1 = 0 ]; then | |
924 | %if %{with_systemd} | |
925 | # We need to stop all stapsh services. Because they are instantiated from | |
926 | # a template service file, we can't simply call disable. We need to find | |
927 | # all the running ones and stop them all individually | |
928 | for service in `/bin/systemctl --full | grep stapsh@ | cut -d ' ' -f 1`; do | |
929 | /bin/systemctl stop $service >/dev/null 2>&1 || : | |
930 | done | |
931 | %else | |
932 | /sbin/service stapshd stop >/dev/null 2>&1 | |
933 | /sbin/chkconfig --del stapshd | |
934 | %endif | |
935 | fi | |
936 | exit 0 | |
937 | ||
938 | %postun runtime-virtguest | |
939 | # Restart service if this is an upgrade rather than an uninstall | |
940 | if [ "$1" -ge "1" ]; then | |
941 | %if %{with_systemd} | |
942 | # We need to restart all stapsh services. Because they are instantiated from | |
943 | # a template service file, we can't simply call restart. We need to find | |
944 | # all the running ones and restart them all individually | |
945 | for service in `/bin/systemctl --full | grep stapsh@ | cut -d ' ' -f 1`; do | |
946 | /bin/systemctl condrestart $service >/dev/null 2>&1 || : | |
947 | done | |
948 | %else | |
949 | /sbin/service stapshd condrestart >/dev/null 2>&1 | |
950 | %endif | |
951 | fi | |
952 | exit 0 | |
953 | ||
09bb4384 | 954 | %if %{with_python3} |
b8550627 FCE |
955 | %if %{with_systemd} |
956 | %preun exporter | |
957 | if [ $1 = 0 ] ; then | |
958 | /bin/systemctl stop stap-exporter.service >/dev/null 2>&1 || : | |
959 | /bin/systemctl disable stap-exporter.service >/dev/null 2>&1 || : | |
960 | fi | |
961 | exit 0 | |
09bb4384 | 962 | |
b8550627 FCE |
963 | %postun exporter |
964 | # Restart service if this is an upgrade rather than an uninstall | |
965 | if [ "$1" -ge "1" ]; then | |
966 | /bin/systemctl condrestart stap-exporter >/dev/null 2>&1 || : | |
967 | fi | |
968 | exit 0 | |
969 | %endif | |
970 | %endif | |
09bb4384 | 971 | |
1208cc21 FCE |
972 | %post |
973 | # Remove any previously-built uprobes.ko materials | |
60e99141 | 974 | (make -C %{_datadir}/systemtap/runtime/uprobes clean) >/dev/null 2>&1 || true |
70f2bd1f | 975 | (/sbin/rmmod uprobes) >/dev/null 2>&1 || true |
1208cc21 FCE |
976 | |
977 | %preun | |
978 | # Ditto | |
60e99141 | 979 | (make -C %{_datadir}/systemtap/runtime/uprobes clean) >/dev/null 2>&1 || true |
70f2bd1f | 980 | (/sbin/rmmod uprobes) >/dev/null 2>&1 || true |
9a8d8be3 | 981 | |
016a35ea FCE |
982 | # ------------------------------------------------------------------------ |
983 | ||
fd05c448 SM |
984 | %if %{with_java} |
985 | ||
39526324 | 986 | %triggerin runtime-java -- java-1.8.0-openjdk, java-1.7.0-openjdk, java-1.6.0-openjdk |
a6018be1 | 987 | for f in %{_libexecdir}/systemtap/libHelperSDT_*.so; do |
5e5ec35c LB |
988 | %ifarch %{ix86} |
989 | arch=i386 | |
1553f7e3 LB |
990 | %else |
991 | arch=`basename $f | cut -f2 -d_ | cut -f1 -d.` | |
992 | %endif | |
a6018be1 | 993 | for archdir in %{_jvmdir}/*openjdk*/jre/lib/${arch}; do |
46b3edce | 994 | if [ -d ${archdir} ]; then |
86298f09 LB |
995 | ln -sf %{_libexecdir}/systemtap/libHelperSDT_${arch}.so ${archdir}/libHelperSDT_${arch}.so |
996 | ln -sf %{_libexecdir}/systemtap/HelperSDT.jar ${archdir}/../ext/HelperSDT.jar | |
46b3edce | 997 | fi |
a6018be1 SM |
998 | done |
999 | done | |
fd05c448 | 1000 | |
39526324 | 1001 | %triggerun runtime-java -- java-1.8.0-openjdk, java-1.7.0-openjdk, java-1.6.0-openjdk |
a6018be1 | 1002 | for f in %{_libexecdir}/systemtap/libHelperSDT_*.so; do |
5e5ec35c LB |
1003 | %ifarch %{ix86} |
1004 | arch=i386 | |
1553f7e3 LB |
1005 | %else |
1006 | arch=`basename $f | cut -f2 -d_ | cut -f1 -d.` | |
1007 | %endif | |
a6018be1 SM |
1008 | for archdir in %{_jvmdir}/*openjdk*/jre/lib/${arch}; do |
1009 | rm -f ${archdir}/libHelperSDT_${arch}.so | |
1010 | rm -f ${archdir}/../ext/HelperSDT.jar | |
1011 | done | |
1012 | done | |
fd05c448 | 1013 | |
39526324 | 1014 | %triggerpostun runtime-java -- java-1.8.0-openjdk, java-1.7.0-openjdk, java-1.6.0-openjdk |
a6018be1 SM |
1015 | # Restore links for any JDKs remaining after a package removal: |
1016 | for f in %{_libexecdir}/systemtap/libHelperSDT_*.so; do | |
5e5ec35c LB |
1017 | %ifarch %{ix86} |
1018 | arch=i386 | |
1553f7e3 LB |
1019 | %else |
1020 | arch=`basename $f | cut -f2 -d_ | cut -f1 -d.` | |
1021 | %endif | |
a6018be1 | 1022 | for archdir in %{_jvmdir}/*openjdk*/jre/lib/${arch}; do |
46b3edce | 1023 | if [ -d ${archdir} ]; then |
86298f09 LB |
1024 | ln -sf %{_libexecdir}/systemtap/libHelperSDT_${arch}.so ${archdir}/libHelperSDT_${arch}.so |
1025 | ln -sf %{_libexecdir}/systemtap/HelperSDT.jar ${archdir}/../ext/HelperSDT.jar | |
46b3edce | 1026 | fi |
a6018be1 SM |
1027 | done |
1028 | done | |
fd05c448 | 1029 | |
a6018be1 | 1030 | # XXX: analogous support for other types of JRE/JDK?? |
fd05c448 SM |
1031 | |
1032 | %endif | |
1033 | ||
1034 | # ------------------------------------------------------------------------ | |
1035 | ||
7915b4f7 | 1036 | %files |
016a35ea FCE |
1037 | # The master "systemtap" rpm doesn't include any files. |
1038 | ||
60e99141 | 1039 | %files server -f systemtap.lang |
016a35ea | 1040 | %{_bindir}/stap-server |
60e99141 FCE |
1041 | %dir %{_libexecdir}/systemtap |
1042 | %{_libexecdir}/systemtap/stap-serverd | |
1043 | %{_libexecdir}/systemtap/stap-start-server | |
1044 | %{_libexecdir}/systemtap/stap-stop-server | |
1045 | %{_libexecdir}/systemtap/stap-gen-cert | |
1046 | %{_libexecdir}/systemtap/stap-sign-module | |
1047 | %{_libexecdir}/systemtap/stap-authorize-cert | |
1048 | %{_libexecdir}/systemtap/stap-env | |
541343c6 | 1049 | %{_mandir}/man7/error* |
016a35ea | 1050 | %{_mandir}/man7/stappaths.7* |
09b37817 | 1051 | %{_mandir}/man7/warning* |
016a35ea | 1052 | %{_mandir}/man8/stap-server.8* |
7fe42498 | 1053 | %if %{with_systemd} |
c1fc8157 | 1054 | %{_unitdir}/stap-server.service |
752358d4 | 1055 | %{_tmpfilesdir}/stap-server.conf |
e58423f4 | 1056 | %else |
4a618408 | 1057 | %{initdir}/stap-server |
016a35ea FCE |
1058 | %dir %{_sysconfdir}/stap-server/conf.d |
1059 | %config(noreplace) %{_sysconfdir}/sysconfig/stap-server | |
e58423f4 | 1060 | %endif |
c1fc8157 LB |
1061 | %config(noreplace) %{_sysconfdir}/logrotate.d/stap-server |
1062 | %dir %{_sysconfdir}/stap-server | |
ef079a5c | 1063 | %dir %attr(0750,stap-server,stap-server) %{_localstatedir}/lib/stap-server |
8689b446 | 1064 | %dir %attr(0700,stap-server,stap-server) %{_localstatedir}/lib/stap-server/.systemtap |
016a35ea FCE |
1065 | %dir %attr(0755,stap-server,stap-server) %{_localstatedir}/log/stap-server |
1066 | %ghost %config(noreplace) %attr(0644,stap-server,stap-server) %{_localstatedir}/log/stap-server/log | |
1067 | %ghost %attr(0755,stap-server,stap-server) %{_localstatedir}/run/stap-server | |
91c82d36 | 1068 | %doc README README.unprivileged AUTHORS NEWS |
bb067054 | 1069 | %{!?_licensedir:%global license %%doc} |
91c82d36 | 1070 | %license COPYING |
a2c9eba7 | 1071 | |
a2c9eba7 | 1072 | |
60e99141 | 1073 | %files devel -f systemtap.lang |
a2c9eba7 | 1074 | %{_bindir}/stap |
cd4d1d39 | 1075 | %{_bindir}/stap-prep |
b0ff684d | 1076 | %{_bindir}/stap-report |
60e99141 FCE |
1077 | %dir %{_datadir}/systemtap |
1078 | %{_datadir}/systemtap/runtime | |
1079 | %{_datadir}/systemtap/tapset | |
016a35ea | 1080 | %{_mandir}/man1/stap.1* |
d142b86c | 1081 | %{_mandir}/man1/stap-prep.1* |
0d8d5d71 | 1082 | %{_mandir}/man1/stap-report.1* |
541343c6 | 1083 | %{_mandir}/man7/error* |
016a35ea | 1084 | %{_mandir}/man7/stappaths.7* |
09b37817 | 1085 | %{_mandir}/man7/warning* |
91c82d36 | 1086 | %doc README README.unprivileged AUTHORS NEWS |
bb067054 | 1087 | %{!?_licensedir:%global license %%doc} |
91c82d36 | 1088 | %license COPYING |
36cfba7c SM |
1089 | %if %{with_java} |
1090 | %dir %{_libexecdir}/systemtap | |
1091 | %{_libexecdir}/systemtap/libHelperSDT_*.so | |
1092 | %endif | |
a87d23e3 | 1093 | %if %{with_bundled_elfutils} |
60e99141 FCE |
1094 | %dir %{_libdir}/systemtap |
1095 | %{_libdir}/systemtap/lib*.so* | |
7d838f63 | 1096 | %endif |
65635f34 FCE |
1097 | %if %{with_emacsvim} |
1098 | %{_emacs_sitelispdir}/*.el* | |
1099 | %{_emacs_sitestartdir}/systemtap-init.el | |
e42fca4e | 1100 | %{_datadir}/vim/vimfiles/*/*.vim |
65635f34 | 1101 | %endif |
ca677173 DS |
1102 | # Notice that the stap-resolve-module-function.py file is used by |
1103 | # *both* the python2 and python3 subrpms. Both subrpms use that same | |
1104 | # python script to help list python probes. | |
8065f5d8 FCE |
1105 | %if %{with_python3_probes} || %{with_python2_probes} |
1106 | %{_libexecdir}/systemtap/python/stap-resolve-module-function.py | |
1107 | %exclude %{_libexecdir}/systemtap/python/stap-resolve-module-function.py? | |
1108 | %endif | |
a2c9eba7 | 1109 | |
5ecd6999 | 1110 | |
60e99141 | 1111 | %files runtime -f systemtap.lang |
b7565b41 | 1112 | %attr(4110,root,stapusr) %{_bindir}/staprun |
e96f2257 | 1113 | %{_bindir}/stapsh |
6c2c4d8e | 1114 | %{_bindir}/stap-merge |
b0ff684d | 1115 | %{_bindir}/stap-report |
8ff439fa | 1116 | %if %{with_dyninst} |
4b682f2a | 1117 | %{_bindir}/stapdyn |
8ff439fa | 1118 | %endif |
5eb23ed5 | 1119 | %if %{with_bpf} |
78efcde0 | 1120 | %{_bindir}/stapbpf |
5eb23ed5 | 1121 | %endif |
60e99141 FCE |
1122 | %dir %{_libexecdir}/systemtap |
1123 | %{_libexecdir}/systemtap/stapio | |
1124 | %{_libexecdir}/systemtap/stap-authorize-cert | |
38105915 | 1125 | %if %{with_crash} |
60e99141 FCE |
1126 | %dir %{_libdir}/systemtap |
1127 | %{_libdir}/systemtap/staplog.so* | |
38105915 | 1128 | %endif |
0d8d5d71 | 1129 | %{_mandir}/man1/stap-report.1* |
541343c6 | 1130 | %{_mandir}/man7/error* |
4e47b3c4 | 1131 | %{_mandir}/man7/stappaths.7* |
09b37817 | 1132 | %{_mandir}/man7/warning* |
e7e3c2fd | 1133 | %{_mandir}/man8/stapsh.8* |
0bda9740 | 1134 | %{_mandir}/man8/staprun.8* |
75c8709f FCE |
1135 | %if %{with_dyninst} |
1136 | %{_mandir}/man8/stapdyn.8* | |
1137 | %endif | |
5eb23ed5 AM |
1138 | %if %{with_bpf} |
1139 | %{_mandir}/man8/stapbpf.8* | |
1140 | %endif | |
91c82d36 | 1141 | %doc README README.security AUTHORS NEWS |
bb067054 | 1142 | %{!?_licensedir:%global license %%doc} |
91c82d36 | 1143 | %license COPYING |
7d838f63 | 1144 | |
8f3c45cc | 1145 | |
60e99141 | 1146 | %files client -f systemtap.lang |
2cd5c938 CS |
1147 | %doc README README.unprivileged AUTHORS NEWS |
1148 | %{_datadir}/systemtap/examples | |
bb067054 | 1149 | %{!?_licensedir:%global license %%doc} |
91c82d36 | 1150 | %license COPYING |
016a35ea | 1151 | %doc docs.installed/*.pdf |
0dfed9e3 | 1152 | %if %{with_docs} |
6706593f | 1153 | %if %{with_htmldocs} |
016a35ea | 1154 | %doc docs.installed/tapsets/*.html |
016a35ea FCE |
1155 | %doc docs.installed/SystemTap_Beginners_Guide |
1156 | %endif | |
6706593f | 1157 | %endif |
016a35ea FCE |
1158 | %{_bindir}/stap |
1159 | %{_bindir}/stap-prep | |
1160 | %{_bindir}/stap-report | |
1161 | %{_mandir}/man1/stap.1* | |
d142b86c | 1162 | %{_mandir}/man1/stap-prep.1* |
016a35ea | 1163 | %{_mandir}/man1/stap-merge.1* |
0d8d5d71 | 1164 | %{_mandir}/man1/stap-report.1* |
a80691df | 1165 | %{_mandir}/man1/stapref.1* |
016a35ea | 1166 | %{_mandir}/man3/* |
541343c6 | 1167 | %{_mandir}/man7/error* |
4e47b3c4 | 1168 | %{_mandir}/man7/stappaths.7* |
09b37817 | 1169 | %{_mandir}/man7/warning* |
60e99141 FCE |
1170 | %dir %{_datadir}/systemtap |
1171 | %{_datadir}/systemtap/tapset | |
016a35ea | 1172 | |
8f3c45cc | 1173 | |
b899aa79 | 1174 | |
9a8d8be3 | 1175 | %files initscript |
68708800 SM |
1176 | %if %{with_systemd} |
1177 | %{_unitdir}/systemtap.service | |
1178 | %{_sbindir}/systemtap-service | |
1179 | %else | |
4a618408 | 1180 | %{initdir}/systemtap |
68708800 SM |
1181 | %{_sbindir}/systemtap-service |
1182 | %endif | |
c1fc8157 LB |
1183 | %dir %{_sysconfdir}/systemtap |
1184 | %dir %{_sysconfdir}/systemtap/conf.d | |
1185 | %dir %{_sysconfdir}/systemtap/script.d | |
1186 | %config(noreplace) %{_sysconfdir}/systemtap/config | |
9a8d8be3 | 1187 | %dir %{_localstatedir}/cache/systemtap |
d1bf48fa | 1188 | %ghost %{_localstatedir}/run/systemtap |
71ed4a5d | 1189 | %{_mandir}/man8/systemtap-service.8* |
6a06bc73 JL |
1190 | %if %{with_dracut} |
1191 | %dir %{dracutstap} | |
1192 | %{dracutstap}/* | |
1193 | %endif | |
9a8d8be3 | 1194 | |
016a35ea | 1195 | |
a54d79ce | 1196 | %files sdt-devel |
016a35ea FCE |
1197 | %{_bindir}/dtrace |
1198 | %{_includedir}/sys/sdt.h | |
1199 | %{_includedir}/sys/sdt-config.h | |
1200 | %{_mandir}/man1/dtrace.1* | |
fe42fac6 | 1201 | %{_rpmmacrodir}/macros.systemtap |
91c82d36 | 1202 | %doc README AUTHORS NEWS |
bb067054 | 1203 | %{!?_licensedir:%global license %%doc} |
91c82d36 | 1204 | %license COPYING |
016a35ea FCE |
1205 | |
1206 | ||
1207 | %files testsuite | |
60e99141 FCE |
1208 | %dir %{_datadir}/systemtap |
1209 | %{_datadir}/systemtap/testsuite | |
016a35ea FCE |
1210 | |
1211 | ||
36cfba7c SM |
1212 | %if %{with_java} |
1213 | %files runtime-java | |
1214 | %dir %{_libexecdir}/systemtap | |
1215 | %{_libexecdir}/systemtap/libHelperSDT_*.so | |
1216 | %{_libexecdir}/systemtap/HelperSDT.jar | |
1217 | %{_libexecdir}/systemtap/stapbm | |
1218 | %endif | |
1219 | ||
30354895 DS |
1220 | %if %{with_python2_probes} |
1221 | %files runtime-python2 | |
8065f5d8 FCE |
1222 | %{python_sitearch}/HelperSDT |
1223 | %{python_sitearch}/HelperSDT-*.egg-info | |
30354895 DS |
1224 | %endif |
1225 | %if %{with_python3_probes} | |
1226 | %files runtime-python3 | |
8065f5d8 FCE |
1227 | %{python3_sitearch}/HelperSDT |
1228 | %{python3_sitearch}/HelperSDT-*.egg-info | |
30354895 DS |
1229 | %endif |
1230 | ||
765a5d60 JL |
1231 | %if %{with_virthost} |
1232 | %files runtime-virthost | |
1233 | %{_mandir}/man1/stapvirt.1* | |
1234 | %{_bindir}/stapvirt | |
1235 | %endif | |
1236 | ||
1237 | %if %{with_virtguest} | |
1238 | %files runtime-virtguest | |
1239 | %if %{with_systemd} | |
1240 | %{udevrulesdir}/99-stapsh.rules | |
1241 | %{_unitdir}/stapsh@.service | |
1242 | %else | |
1243 | %{udevrulesdir}/99-stapsh-init.rules | |
1244 | %dir %{_libexecdir}/systemtap | |
1245 | %{_libexecdir}/systemtap/stapsh-daemon | |
1246 | %{initdir}/stapshd | |
1247 | %{_sysconfdir}/sysconfig/modules/virtio_console.modules | |
1248 | %endif | |
1249 | %endif | |
36cfba7c | 1250 | |
09bb4384 | 1251 | %if %{with_python3} |
b8550627 FCE |
1252 | %files exporter |
1253 | %{_sysconfdir}/stap-exporter | |
1254 | %{_sysconfdir}/sysconfig/stap-exporter | |
09bb4384 AM |
1255 | %{_unitdir}/stap-exporter.service |
1256 | %{_mandir}/man8/stap-exporter.8* | |
3de4d169 | 1257 | %{_sbindir}/stap-exporter |
09bb4384 AM |
1258 | %endif |
1259 | ||
016a35ea | 1260 | # ------------------------------------------------------------------------ |
9a8d8be3 | 1261 | |
26fa6c15 FCE |
1262 | # Future new-release entries should be of the form |
1263 | # * DDD MMM DD YYYY YOURNAME <YOUREMAIL> - V-R | |
1264 | # - Upstream release, see wiki page below for detailed notes. | |
1265 | # http://sourceware.org/systemtap/wiki/SystemTapReleases | |
1266 | ||
b8ea350d | 1267 | # PRERELEASE |
47ce37a1 | 1268 | %changelog |
5f7ea886 | 1269 | * Tue May 07 2019 Serguei Makarov <smakarov@redhat.com> - 4.1-1 |
309ce366 FCE |
1270 | - Upstream release. |
1271 | ||
428f84e9 | 1272 | * Sat Oct 13 2018 Frank Ch. Eigler <fche@redhat.com> - 4.0-1 |
3a74104e FCE |
1273 | - Upstream release. |
1274 | ||
16b0bd93 FCE |
1275 | * Thu Jun 07 2018 Frank Ch. Eigler <fche@redhat.com> - 3.3-1 |
1276 | - Upstream release. | |
1277 | ||
a3e0237a | 1278 | * Wed Oct 18 2017 Frank Ch. Eigler <fche@redhat.com> - 3.2-1 |
c074154d FCE |
1279 | - Upstream release. |
1280 | ||
b8ea350d FCE |
1281 | * Fri Feb 17 2017 Frank Ch. Eigler <fche@redhat.com> - 3.1-1 |
1282 | - Upstream release. | |
1283 | ||
6b2b2bef FCE |
1284 | * Sun Mar 27 2016 Frank Ch. Eigler <fche@redhat.com> - 3.0-1 |
1285 | - Upstream release. | |
1286 | ||
7009f2f7 | 1287 | * Thu Oct 08 2015 Frank Ch. Eigler <fche@redhat.com> - 2.9-1 |
f59f4f63 FL |
1288 | - Upstream release. |
1289 | ||
08dc7182 AJ |
1290 | * Wed Jun 17 2015 Abegail Jakop <ajakop@redhat.com> - 2.8-1 |
1291 | - Upstream release. | |
1292 | ||
c86582b2 FCE |
1293 | * Wed Feb 18 2015 Frank Ch. Eigler <fche@redhat.com> - 2.7-1 |
1294 | - Upstream release. | |
1295 | ||
7682e51d JS |
1296 | * Fri Sep 05 2014 Josh Stone <jistone@redhat.com> - 2.6-1 |
1297 | - Upstream release. | |
1298 | ||
ebf1032e | 1299 | * Mon Jul 07 2014 Josh Stone <jistone@redhat.com> |
bec6172d | 1300 | - Flip with_dyninst to an %%ifarch whitelist. |
ebf1032e | 1301 | |
e8fa5eb0 | 1302 | * Wed Apr 30 2014 Jonathan Lebon <jlebon@redhat.com> - 2.5-1 |
8f0fcd99 JL |
1303 | - Upstream release. |
1304 | ||
86298f09 LB |
1305 | * Thu Feb 13 2014 Lukas Berk <lberk@redhat.com> |
1306 | - Add directory checks for runtime-java sym links | |
1307 | ||
6a06bc73 JL |
1308 | * Mon Jan 06 2014 Jonathan Lebon <jlebon@redhat.com> |
1309 | - Added dracut module to initscript package | |
1310 | ||
aa7b1e00 FCE |
1311 | * Wed Nov 06 2013 Frank Ch. Eigler <fche@redhat.com> - 2.4-1 |
1312 | - Upstream release. | |
1313 | ||
765a5d60 JL |
1314 | * Wed Oct 09 2013 Jonathan Lebon <jlebon@redhat.com> |
1315 | - Added runtime-virthost and runtime-virtguest packages. | |
1316 | ||
26fa6c15 FCE |
1317 | * Thu Jul 25 2013 Frank Ch. Eigler <fche@redhat.com> - 2.3-1 |
1318 | - Upstream release. | |
1319 | ||
e4bf97f8 FCE |
1320 | * Thu May 16 2013 Frank Ch. Eigler <fche@redhat.com> - 2.2.1-1 |
1321 | - Upstream release. | |
1322 | ||
bec88838 FCE |
1323 | * Tue May 14 2013 Frank Ch. Eigler <fche@redhat.com> - 2.2-1 |
1324 | - Upstream release. | |
1325 | ||
0dc908f7 | 1326 | * Wed Feb 13 2013 Serguei Makarov <smakarov@redhat.com> - 2.1-1 |
460cea43 SM |
1327 | - Upstream release. |
1328 | ||
a63381cc JS |
1329 | * Tue Oct 09 2012 Josh Stone <jistone@redhat.com> - 2.0-1 |
1330 | - Upstream release. | |
1331 | ||
07547775 PR |
1332 | * Fri Jul 13 2012 Peter Robinson <pbrobinson@fedoraproject.org> |
1333 | - Fix ifarch statement | |
e2d574cc | 1334 | - use file based requires for glibc-devel on x86_64 so that we work in koji |
07547775 | 1335 | |
48fa6b5e FCE |
1336 | * Sun Jun 17 2012 Frank Ch. Eigler <fche@redhat.com> - 1.8-1 |
1337 | - Upstream release. | |
1338 | ||
83bd2699 FCE |
1339 | * Wed Feb 01 2012 Frank Ch. Eigler <fche@redhat.com> - 1.7-1 |
1340 | - Upstream release. | |
1341 | ||
87600139 DS |
1342 | * Fri Jan 13 2012 David Smith <dsmith@redhat.com> - 1.6-2 |
1343 | - Fixed /bin/mktemp require. | |
1344 | ||
aff1eaa0 FCE |
1345 | * Mon Jul 25 2011 Stan Cox <scox@redhat.com> - 1.6-1 |
1346 | - Upstream release. | |
1347 | ||
63509773 | 1348 | * Mon May 23 2011 Stan Cox <scox@redhat.com> - 1.5-1 |
aff1eaa0 FCE |
1349 | - Upstream release. |
1350 | ||
6e0c15da FCE |
1351 | * Mon Jan 17 2011 Frank Ch. Eigler <fche@redhat.com> - 1.4-1 |
1352 | - Upstream release. | |
1353 | ||
e12e958f JS |
1354 | * Wed Jul 21 2010 Josh Stone <jistone@redhat.com> - 1.3-1 |
1355 | - Upstream release. | |
1356 | ||
e36ba31a FCE |
1357 | * Mon Mar 22 2010 Frank Ch. Eigler <fche@redhat.com> - 1.2-1 |
1358 | - Upstream release. | |
1359 | ||
0710d850 DS |
1360 | * Mon Dec 21 2009 David Smith <dsmith@redhat.com> - 1.1-1 |
1361 | - Upstream release. | |
1362 | ||
6a7aa1a1 JS |
1363 | * Tue Sep 22 2009 Josh Stone <jistone@redhat.com> - 1.0-1 |
1364 | - Upstream release. | |
1365 | ||
1e9b189f JS |
1366 | * Tue Aug 4 2009 Josh Stone <jistone@redhat.com> - 0.9.9-1 |
1367 | - Upstream release. | |
1368 | ||
e1774a7f JS |
1369 | * Thu Jun 11 2009 Josh Stone <jistone@redhat.com> - 0.9.8-1 |
1370 | - Upstream release. | |
1371 | ||
9b055ab2 | 1372 | * Thu Apr 23 2009 Josh Stone <jistone@redhat.com> - 0.9.7-1 |
225d8d4b JS |
1373 | - Upstream release. |
1374 | ||
27aba29a JS |
1375 | * Fri Mar 27 2009 Josh Stone <jistone@redhat.com> - 0.9.5-1 |
1376 | - Upstream release. | |
1377 | ||
fab6ce30 WC |
1378 | * Wed Mar 18 2009 Will Cohen <wcohen@redhat.com> - 0.9-2 |
1379 | - Add location of man pages. | |
1380 | ||
c8bf931d FCE |
1381 | * Tue Feb 17 2009 Frank Ch. Eigler <fche@redhat.com> - 0.9-1 |
1382 | - Upstream release. | |
1383 | ||
70f5a7b3 FCE |
1384 | * Thu Nov 13 2008 Frank Ch. Eigler <fche@redhat.com> - 0.8-1 |
1385 | - Upstream release. | |
1386 | ||
cfaa068c FCE |
1387 | * Tue Jul 15 2008 Frank Ch. Eigler <fche@redhat.com> - 0.7-1 |
1388 | - Upstream release. | |
1389 | ||
d2995e6f FCE |
1390 | * Fri Feb 1 2008 Frank Ch. Eigler <fche@redhat.com> - 0.6.1-3 |
1391 | - Add zlib-devel to buildreq; missing from crash-devel | |
1392 | - Process testsuite .stp files for #!stap->#!/usr/bin/stap | |
1393 | ||
bfe2b4ab | 1394 | * Fri Jan 18 2008 Frank Ch. Eigler <fche@redhat.com> - 0.6.1-1 |
1e0716d3 FCE |
1395 | - Add crash-devel buildreq to build staplog.so crash(8) module. |
1396 | - Many robustness & functionality improvements: | |
1397 | ||
47b0655b WC |
1398 | * Wed Dec 5 2007 Will Cohen <wcohen@redhat.com> - 0.6-2 |
1399 | - Correct Source to point to location contain code. | |
1400 | ||
98aab489 DS |
1401 | * Thu Aug 9 2007 David Smith <dsmith@redhat.com> - 0.6-1 |
1402 | - Bumped version, added libcap-devel BuildRequires. | |
1403 | ||
d8c3d602 WC |
1404 | * Wed Jul 11 2007 Will Cohen <wcohen@redhat.com> - 0.5.14-2 |
1405 | - Fix Requires and BuildRequires for sqlite. | |
1406 | ||
63509773 | 1407 | * Mon Jul 2 2007 Frank Ch. Eigler <fche@redhat.com> - 0.5.14-1 |
c1edaa30 FCE |
1408 | - Many robustness improvements: 1117, 1134, 1305, 1307, 1570, 1806, |
1409 | 2033, 2116, 2224, 2339, 2341, 2406, 2426, 2438, 2583, 3037, | |
1410 | 3261, 3282, 3331, 3428 3519, 3545, 3625, 3648, 3880, 3888, 3911, | |
1411 | 3952, 3965, 4066, 4071, 4075, 4078, 4081, 4096, 4119, 4122, 4127, | |
1412 | 4146, 4171, 4179, 4183, 4221, 4224, 4254, 4281, 4319, 4323, 4326, | |
1413 | 4329, 4332, 4337, 4415, 4432, 4444, 4445, 4458, 4467, 4470, 4471, | |
1414 | 4518, 4567, 4570, 4579, 4589, 4609, 4664 | |
1415 | ||
aa384dcd FCE |
1416 | * Mon Mar 26 2007 Frank Ch. Eigler <fche@redhat.com> - 0.5.13-1 |
1417 | - An emergency / preliminary refresh, mainly for compatibility | |
1418 | with 2.6.21-pre kernels. | |
2a4b42eb | 1419 | |
31982bd2 FCE |
1420 | * Mon Jan 1 2007 Frank Ch. Eigler <fche@redhat.com> - 0.5.12-1 |
1421 | - Many changes, see NEWS file. | |
1422 | ||
a63a95dc DS |
1423 | * Tue Sep 26 2006 David Smith <dsmith@redhat.com> - 0.5.10-1 |
1424 | - Added 'systemtap-runtime' subpackage. | |
1425 | ||
d65d6b27 RM |
1426 | * Wed Jul 19 2006 Roland McGrath <roland@redhat.com> - 0.5.9-1 |
1427 | - PRs 2669, 2913 | |
1428 | ||
c1d6a343 RM |
1429 | * Fri Jun 16 2006 Roland McGrath <roland@redhat.com> - 0.5.8-1 |
1430 | - PRs 2627, 2520, 2228, 2645 | |
1431 | ||
f6291560 | 1432 | * Fri May 5 2006 Frank Ch. Eigler <fche@redhat.com> - 0.5.7-1 |
6f231a27 FCE |
1433 | - PRs 2511 2453 2307 1813 1944 2497 2538 2476 2568 1341 2058 2220 2437 |
1434 | 1326 2014 2599 2427 2438 2465 1930 2149 2610 2293 2634 2506 2433 | |
1435 | ||
611010bf RM |
1436 | * Tue Apr 4 2006 Roland McGrath <roland@redhat.com> - 0.5.5-1 |
1437 | - Many changes, affected PRs include: 2068, 2293, 1989, 2334, | |
1438 | 1304, 2390, 2425, 953. | |
1439 | ||
be9923ac FCE |
1440 | * Wed Feb 1 2006 Frank Ch. Eigler <fche@redhat.com> - 0.5.4-1 |
1441 | - PRs 1916, 2205, 2142, 2060, 1379 | |
1442 | ||
db6a8a10 RM |
1443 | * Mon Jan 16 2006 Roland McGrath <roland@redhat.com> - 0.5.3-1 |
1444 | - Many changes, affected PRs include: 2056, 1144, 1379, 2057, | |
1445 | 2060, 1972, 2140, 2148 | |
1446 | ||
dcf0c541 RM |
1447 | * Mon Dec 19 2005 Roland McGrath <roland@redhat.com> - 0.5.2-1 |
1448 | - Fixed build with gcc 4.1, various tapset changes. | |
1449 | ||
4d9087fc RM |
1450 | * Wed Dec 7 2005 Roland McGrath <roland@redhat.com> - 0.5.1-1 |
1451 | - elfutils update, build changes | |
1452 | ||
e94c050c | 1453 | * Fri Dec 02 2005 Frank Ch. Eigler <fche@redhat.com> - 0.5-1 |
7d9e8974 FCE |
1454 | - Many fixes and improvements: 1425, 1536, 1505, 1380, 1329, 1828, 1271, |
1455 | 1339, 1340, 1345, 1837, 1917, 1903, 1336, 1868, 1594, 1564, 1276, 1295 | |
1456 | ||
ae65ed5c RM |
1457 | * Mon Oct 31 2005 Roland McGrath <roland@redhat.com> - 0.4.2-1 |
1458 | - Many fixes and improvements: PRs 1344, 1260, 1330, 1295, 1311, 1368, | |
1459 | 1182, 1131, 1332, 1366, 1456, 1271, 1338, 1482, 1477, 1194. | |
1460 | ||
66bb48fd RM |
1461 | * Wed Sep 14 2005 Roland McGrath <roland@redhat.com> - 0.4.1-1 |
1462 | - Many fixes and improvements since 0.2.2; relevant PRs include: | |
1463 | 1122, 1134, 1155, 1172, 1174, 1175, 1180, 1186, 1187, 1191, 1193, 1195, | |
1464 | 1197, 1205, 1206, 1209, 1213, 1244, 1257, 1258, 1260, 1265, 1268, 1270, | |
1465 | 1289, 1292, 1306, 1335, 1257 | |
1466 | ||
323904e0 FCE |
1467 | * Wed Sep 7 2005 Frank Ch. Eigler <fche@redhat.com> |
1468 | - Bump version. | |
1469 | ||
63509773 | 1470 | * Tue Aug 16 2005 Frank Ch. Eigler <fche@redhat.com> |
83ff1cf9 FCE |
1471 | - Bump version. |
1472 | ||
2205d115 MH |
1473 | * Wed Aug 3 2005 Martin Hunt <hunt@redhat.com> - 0.2.2-1 |
1474 | - Add directory /var/cache/systemtap | |
1475 | - Add stp_check to /usr/libexec/systemtap | |
1476 | ||
351e76d3 RM |
1477 | * Wed Aug 3 2005 Roland McGrath <roland@redhat.com> - 0.2.1-1 |
1478 | - New version 0.2.1, various fixes. | |
1479 | ||
4dbd685d RM |
1480 | * Fri Jul 29 2005 Roland McGrath <roland@redhat.com> - 0.2-1 |
1481 | - New version 0.2, requires elfutils 0.111 | |
1482 | ||
a2c9eba7 RM |
1483 | * Mon Jul 25 2005 Roland McGrath <roland@redhat.com> |
1484 | - Clean up spec file, build bundled elfutils. | |
1485 | ||
7d838f63 MH |
1486 | * Thu Jul 21 2005 Martin Hunt <hunt@redhat.com> |
1487 | - Set Version to use version from autoconf. | |
1488 | - Fix up some of the path names. | |
a2c9eba7 RM |
1489 | - Add Requires and BuildRequires. |
1490 | ||
63509773 | 1491 | * Tue Jul 19 2005 Will Cohen <wcohen@redhat.com> |
7d838f63 | 1492 | - Initial creation of RPM. |