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