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