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