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