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