Blame SPECS/systemtap.spec

3e000e
%{!?with_sqlite: %global with_sqlite 0%{?fedora} >= 17 || 0%{?rhel} >= 7}
3e000e
# prefer prebuilt docs
3e000e
%{!?with_docs: %global with_docs 0}
3e000e
%{!?with_htmldocs: %global with_htmldocs 0}
3e000e
%{!?with_monitor: %global with_monitor 1}
3e000e
# crash is not available
45a35d
%ifarch ppc ppc64 %{sparc} %{mips} %{riscv}
3e000e
%{!?with_crash: %global with_crash 0}
3e000e
%else
3e000e
%{!?with_crash: %global with_crash 1}
3e000e
%endif
3e000e
%{!?with_rpm: %global with_rpm 1}
3e000e
%{!?elfutils_version: %global elfutils_version 0.179}
3e000e
%{!?with_boost: %global with_boost 0}
3e000e
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le aarch64
3e000e
%{!?with_dyninst: %global with_dyninst 0%{?fedora} >= 18 || 0%{?rhel} >= 7}
3e000e
%else
3e000e
%{!?with_dyninst: %global with_dyninst 0}
3e000e
%endif
3e000e
%{!?with_bpf: %global with_bpf 0%{?fedora} >= 22 || 0%{?rhel} >= 8}
3e000e
%{!?with_systemd: %global with_systemd 0%{?fedora} >= 19 || 0%{?rhel} >= 7}
3e000e
%{!?with_emacsvim: %global with_emacsvim 0%{?fedora} >= 19 || 0%{?rhel} >= 7}
3e000e
%{!?with_java: %global with_java 0%{?fedora} >= 19 || 0%{?rhel} >= 7}
3e000e
%{!?with_debuginfod: %global with_debuginfod 0%{?fedora} >= 25 || 0%{?rhel} >= 7}
3e000e
%{!?with_virthost: %global with_virthost 0%{?fedora} >= 19 || 0%{?rhel} >= 7}
3e000e
%{!?with_virtguest: %global with_virtguest 1}
3e000e
%{!?with_dracut: %global with_dracut 0%{?fedora} >= 19 || 0%{?rhel} >= 6}
3e000e
%ifarch x86_64
3e000e
%{!?with_mokutil: %global with_mokutil 0%{?fedora} >= 18 || 0%{?rhel} >= 7}
3e000e
%{!?with_openssl: %global with_openssl 0%{?fedora} >= 18 || 0%{?rhel} >= 7}
3e000e
%else
3e000e
%{!?with_mokutil: %global with_mokutil 0}
3e000e
%{!?with_openssl: %global with_openssl 0}
3e000e
%endif
3e000e
%{!?with_pyparsing: %global with_pyparsing 0%{?fedora} >= 18 || 0%{?rhel} >= 7}
3e000e
%{!?with_python3: %global with_python3 0%{?fedora} >= 23 || 0%{?rhel} > 7}
3e000e
%{!?with_python2_probes: %global with_python2_probes (0%{?fedora} <= 28 && 0%{?rhel} <= 7)}
3e000e
%{!?with_python3_probes: %global with_python3_probes (0%{?fedora} >= 23 || 0%{?rhel} > 7)}
3e000e
%{!?with_httpd: %global with_httpd 0}
3e000e
%{!?with_specific_python: %global with_specific_python 0%{?fedora} >= 31}
45a35d
%{!?with_sysusers: %global with_sysusers 0%{?fedora} >= 32 || 0%{?rhel} >= 9}
3e000e
3e000e
# Virt is supported on these arches, even on el7, but it's not in core EL7
3e000e
%if 0%{?rhel} <= 7
3e000e
%ifarch ppc64le aarch64
3e000e
%global with_virthost 0
3e000e
%endif
3e000e
%endif
3e000e
3e000e
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 6
3e000e
   %define initdir %{_initddir}
3e000e
%else
3e000e
   # RHEL5 doesn't know _initddir
3e000e
   %define initdir %{_initrddir}
3e000e
%endif
3e000e
3e000e
%if %{with_virtguest}
3e000e
   %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
3e000e
      %define udevrulesdir /usr/lib/udev/rules.d
3e000e
   %else
3e000e
      %if 0%{?rhel} >= 6
3e000e
         %define udevrulesdir /lib/udev/rules.d
3e000e
      %else
3e000e
         # RHEL5
3e000e
         %define udevrulesdir /etc/udev/rules.d
3e000e
      %endif
3e000e
   %endif
3e000e
%endif
3e000e
3e000e
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
3e000e
   %define dracutstap %{_prefix}/lib/dracut/modules.d/99stap
3e000e
%else
3e000e
   %define dracutstap %{_prefix}/share/dracut/modules.d/99stap
3e000e
%endif
3e000e
3e000e
%if 0%{?rhel} == 6 || 0%{?rhel} == 7
3e000e
    %define dracutbindir /sbin
3e000e
%else
3e000e
    %define dracutbindir %{_bindir}
3e000e
%endif
3e000e
3e000e
%if 0%{?rhel} == 6
3e000e
    %{!?_rpmmacrodir: %define _rpmmacrodir /etc/rpm/}
3e000e
%else
3e000e
    %{!?_rpmmacrodir: %define _rpmmacrodir %{_rpmconfigdir}/macros.d}
3e000e
%endif
3e000e
3e000e
# To avoid testsuite/*/*.stp has shebang which doesn't start with '/'
3e000e
%define __brp_mangle_shebangs_exclude_from .stp$
3e000e
45a35d
%define _systemtap_runtime_preinstall \
45a35d
# See systemd-sysusers(8) sysusers.d(5)\
45a35d
\
45a35d
g     stapusr  156\
45a35d
g     stapsys  157\
45a35d
g     stapdev  158
45a35d
45a35d
%define _systemtap_server_preinstall \
45a35d
# See systemd-sysusers(8) sysusers.d(5)\
45a35d
\
45a35d
g     stap-server  -\
45a35d
u     stap-server  -      "systemtap compiler server"   /var/lib/stap-server   /sbin/nologin\
45a35d
m     stap-server stap-server
45a35d
45a35d
45a35d
%define _systemtap_testsuite_preinstall \
45a35d
# See systemd-sysusers(8) sysusers.d(5)\
45a35d
\
45a35d
u     stapusr  -          "systemtap testsuite user"    /   /sbin/nologin\
45a35d
u     stapsys  -          "systemtap testsuite user"    /   /sbin/nologin\
45a35d
u     stapdev  -          "systemtap testsuite user"    /   /sbin/nologin\
45a35d
m     stapusr  stapusr\
45a35d
m     stapsys  stapusr\
45a35d
m     stapsys  stapsys\
45a35d
m     stapdev  stapusr\
45a35d
m     stapdev  stapdev
45a35d
45a35d
3e000e
Name: systemtap
45a35d
Version: 4.6
6e109e
Release: 12%{?release_override}%{?dist}
3e000e
# for version, see also configure.ac
3e000e
3e000e
3e000e
# Packaging abstract:
3e000e
#
3e000e
# systemtap              empty req:-client req:-devel
3e000e
# systemtap-server       /usr/bin/stap-server*, req:-devel
3e000e
# systemtap-devel        /usr/bin/stap, runtime, tapset, req:kernel-devel
3e000e
# systemtap-runtime      /usr/bin/staprun, /usr/bin/stapsh, /usr/bin/stapdyn
3e000e
# systemtap-client       /usr/bin/stap, samples, docs, tapset(bonus), req:-runtime
3e000e
# systemtap-initscript   /etc/init.d/systemtap, dracut module, req:systemtap
3e000e
# systemtap-sdt-devel    /usr/include/sys/sdt.h /usr/bin/dtrace
3e000e
# systemtap-testsuite    /usr/share/systemtap/testsuite*, req:systemtap, req:sdt-devel
3e000e
# systemtap-runtime-java libHelperSDT.so, HelperSDT.jar, stapbm, req:-runtime
3e000e
# systemtap-runtime-virthost  /usr/bin/stapvirt, req:libvirt req:libxml2
3e000e
# systemtap-runtime-virtguest udev rules, init scripts/systemd service, req:-runtime
3e000e
# systemtap-runtime-python2 HelperSDT python2 module, req:-runtime
3e000e
# systemtap-runtime-python3 HelperSDT python3 module, req:-runtime
3e000e
#
3e000e
# Typical scenarios:
3e000e
#
3e000e
# stap-client:           systemtap-client
3e000e
# stap-server:           systemtap-server
3e000e
# local user:            systemtap
3e000e
#
3e000e
# Unusual scenarios:
3e000e
#
3e000e
# intermediary stap-client for --remote:       systemtap-client (-runtime unused)
3e000e
# intermediary stap-server for --use-server:   systemtap-server (-devel unused)
3e000e
3e000e
Summary: Programmable system-wide instrumentation system
3e000e
License: GPLv2+
3e000e
URL: http://sourceware.org/systemtap/
3e000e
Source: ftp://sourceware.org/pub/systemtap/releases/systemtap-%{version}.tar.gz
3e000e
45a35d
Patch1: rhbz2025054python3.patch
45a35d
Patch2: rhbz1972798.patch
45a35d
Patch3: sdt-asm-glibc.patch
7ed538
Patch4: rhbz2041526.patch
7ed538
Patch5: rhbz2027683.patch
7ed538
Patch6: rhbz2047256.patch
7ed538
Patch7: rhbz2039207.patch
6e109e
Patch8: rhbz2058908.patch
3e000e
3e000e
# Build*
3e000e
BuildRequires: make
3e000e
BuildRequires: gcc-c++
3e000e
BuildRequires: cpio
3e000e
BuildRequires: gettext-devel
3e000e
BuildRequires: pkgconfig(nss)
3e000e
BuildRequires: pkgconfig(avahi-client)
3e000e
%if %{with_debuginfod}
3e000e
BuildRequires: pkgconfig(libdebuginfod)
3e000e
%endif
3e000e
%if %{with_dyninst}
3e000e
BuildRequires: dyninst-devel >= 10.0
3e000e
BuildRequires: pkgconfig(libselinux)
3e000e
%endif
3e000e
%if %{with_sqlite}
3e000e
BuildRequires: sqlite-devel > 3.7
3e000e
%endif
3e000e
%if %{with_monitor}
3e000e
BuildRequires: pkgconfig(json-c)
3e000e
BuildRequires: pkgconfig(ncurses)
3e000e
%endif
3e000e
%if %{with_systemd}
3e000e
BuildRequires: systemd
3e000e
%endif
3e000e
# Needed for libstd++ < 4.0, without <tr1/memory>
3e000e
%if %{with_boost}
3e000e
BuildRequires: boost-devel
3e000e
%endif
3e000e
%if %{with_crash}
3e000e
BuildRequires: crash-devel zlib-devel
3e000e
%endif
3e000e
%if %{with_rpm}
3e000e
BuildRequires: rpm-devel
3e000e
%endif
3e000e
BuildRequires: elfutils-devel >= %{elfutils_version}
3e000e
%if %{with_docs}
3e000e
BuildRequires: /usr/bin/latex /usr/bin/dvips /usr/bin/ps2pdf
3e000e
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
3e000e
BuildRequires: tex(fullpage.sty) tex(fancybox.sty) tex(bchr7t.tfm) tex(graphicx.sty)
3e000e
%endif
3e000e
%if %{with_htmldocs}
3e000e
# On F10, xmlto's pdf support was broken off into a sub-package,
3e000e
# called 'xmlto-tex'.  To avoid a specific F10 BuildReq, we'll do a
3e000e
# file-based buildreq on '/usr/share/xmlto/format/fo/pdf'.
3e000e
BuildRequires: xmlto /usr/share/xmlto/format/fo/pdf
3e000e
%endif
3e000e
%endif
3e000e
%if %{with_emacsvim}
45a35d
# for _emacs_sitelispdir macros etc.
3e000e
BuildRequires: emacs
3e000e
%endif
3e000e
%if %{with_java}
3e000e
BuildRequires: java-devel
3e000e
%endif
3e000e
%if %{with_virthost}
3e000e
# BuildRequires: libvirt-devel >= 1.0.2
3e000e
BuildRequires: pkgconfig(libvirt)
3e000e
BuildRequires: pkgconfig(libxml-2.0)
3e000e
%endif
3e000e
BuildRequires: readline-devel
3e000e
%if 0%{?rhel} <= 5
3e000e
BuildRequires: pkgconfig(ncurses)
3e000e
%endif
3e000e
%if %{with_python2_probes}
3e000e
BuildRequires: python2-devel
3e000e
%if 0%{?fedora} >= 1
3e000e
BuildRequires: python2-setuptools
3e000e
%else
3e000e
BuildRequires: python-setuptools
3e000e
%endif
3e000e
%endif
45a35d
%if %{with_python3}
45a35d
BuildRequires: python3
45a35d
%endif
3e000e
%if %{with_python3_probes}
3e000e
BuildRequires: python3-devel
3e000e
BuildRequires: python3-setuptools
3e000e
%endif
3e000e
%if %{with_specific_python}
3e000e
BuildRequires: /usr/bin/pathfix.py
3e000e
%endif
3e000e
3e000e
%if %{with_httpd}
3e000e
BuildRequires: libmicrohttpd-devel
3e000e
BuildRequires: libuuid-devel
3e000e
%endif
45a35d
%if %{with_sysusers}
45a35d
BuildRequires:  systemd-rpm-macros
45a35d
%endif
45a35d
3e000e
3e000e
# Install requirements
3e000e
Requires: systemtap-client = %{version}-%{release}
3e000e
Requires: systemtap-devel = %{version}-%{release}
3e000e
3e000e
%description
3e000e
SystemTap is an instrumentation system for systems running Linux.
3e000e
Developers can write instrumentation scripts to collect data on
3e000e
the operation of the system.  The base systemtap package contains/requires
3e000e
the components needed to locally develop and execute systemtap scripts.
3e000e
3e000e
# ------------------------------------------------------------------------
3e000e
3e000e
%package server
3e000e
Summary: Instrumentation System Server
3e000e
License: GPLv2+
3e000e
URL: http://sourceware.org/systemtap/
3e000e
Requires: systemtap-devel = %{version}-%{release}
3e000e
Conflicts: systemtap-devel < %{version}-%{release}
3e000e
Conflicts: systemtap-runtime < %{version}-%{release}
3e000e
Conflicts: systemtap-client < %{version}-%{release}
3e000e
Requires: nss coreutils
3e000e
Requires: zip unzip
3e000e
Requires(pre): shadow-utils
3e000e
BuildRequires: nss-devel avahi-devel
3e000e
%if %{with_openssl}
3e000e
Requires: openssl
3e000e
%endif
3e000e
%if %{with_systemd}
3e000e
Requires: systemd
3e000e
%else
3e000e
Requires(post): chkconfig
3e000e
Requires(preun): chkconfig
3e000e
Requires(preun): initscripts
3e000e
Requires(postun): initscripts
3e000e
%endif
3e000e
3e000e
%description server
3e000e
This is the remote script compilation server component of systemtap.
3e000e
It announces itself to nearby clients with avahi (if available), and
3e000e
compiles systemtap scripts to kernel objects on their demand.
3e000e
3e000e
3e000e
%package devel
3e000e
Summary: Programmable system-wide instrumentation system - development headers, tools
3e000e
License: GPLv2+
3e000e
URL: http://sourceware.org/systemtap/
3e000e
3e000e
%if 0%{?rhel} >= 8 || 0%{?fedora} >= 20
3e000e
Recommends: (kernel-debug-devel if kernel-debug)
3e000e
Recommends: (kernel-devel if kernel)
3e000e
%else
3e000e
Requires: kernel-devel-uname-r
3e000e
%endif
3e000e
3e000e
Requires: gcc make
3e000e
# for compiling --runtime=dyninst sripts, need elfutils headers, bz1930973
3e000e
Requires: elfutils-devel >= %{elfutils_version}
3e000e
3e000e
Conflicts: systemtap-client < %{version}-%{release}
3e000e
Conflicts: systemtap-server < %{version}-%{release}
3e000e
Conflicts: systemtap-runtime < %{version}-%{release}
3e000e
# Suggest: kernel-debuginfo
3e000e
3e000e
%description devel
3e000e
This package contains the components needed to compile a systemtap
3e000e
script from source form into executable (.ko) forms.  It may be
3e000e
installed on a self-contained developer workstation (along with the
3e000e
systemtap-client and systemtap-runtime packages), or on a dedicated
3e000e
remote server (alongside the systemtap-server package).  It includes
3e000e
a copy of the standard tapset library and the runtime library C files.
3e000e
3e000e
3e000e
%package runtime
3e000e
Summary: Programmable system-wide instrumentation system - runtime
3e000e
License: GPLv2+
3e000e
URL: http://sourceware.org/systemtap/
3e000e
Requires(pre): shadow-utils
3e000e
Conflicts: systemtap-devel < %{version}-%{release}
3e000e
Conflicts: systemtap-server < %{version}-%{release}
3e000e
Conflicts: systemtap-client < %{version}-%{release}
3e000e
3e000e
%description runtime
3e000e
SystemTap runtime contains the components needed to execute
3e000e
a systemtap script that was already compiled into a module
3e000e
using a local or remote systemtap-devel installation.
3e000e
3e000e
3e000e
%package client
3e000e
Summary: Programmable system-wide instrumentation system - client
3e000e
License: GPLv2+
3e000e
URL: http://sourceware.org/systemtap/
3e000e
Requires: zip unzip
3e000e
Requires: systemtap-runtime = %{version}-%{release}
3e000e
Requires: coreutils grep sed unzip zip
3e000e
Requires: openssh-clients
3e000e
Conflicts: systemtap-devel < %{version}-%{release}
3e000e
Conflicts: systemtap-server < %{version}-%{release}
3e000e
Conflicts: systemtap-runtime < %{version}-%{release}
3e000e
%if %{with_mokutil}
3e000e
Requires: mokutil
3e000e
%endif
3e000e
3e000e
%description client
3e000e
This package contains/requires the components needed to develop
3e000e
systemtap scripts, and compile them using a local systemtap-devel
3e000e
or a remote systemtap-server installation, then run them using a
3e000e
local or remote systemtap-runtime.  It includes script samples and
3e000e
documentation, and a copy of the tapset library for reference.
3e000e
3e000e
3e000e
%package initscript
3e000e
Summary: Systemtap Initscripts
3e000e
License: GPLv2+
3e000e
URL: http://sourceware.org/systemtap/
3e000e
Requires: systemtap = %{version}-%{release}
3e000e
%if %{with_systemd}
3e000e
Requires: systemd
3e000e
%else
3e000e
Requires(post): chkconfig
3e000e
Requires(preun): chkconfig
3e000e
Requires(preun): initscripts
3e000e
Requires(postun): initscripts
3e000e
%endif
3e000e
3e000e
%description initscript
3e000e
This package includes a SysVinit script to launch selected systemtap
3e000e
scripts at system startup, along with a dracut module for early
3e000e
boot-time probing if supported.
3e000e
3e000e
3e000e
%package sdt-devel
3e000e
Summary: Static probe support tools
3e000e
License: GPLv2+ and Public Domain
3e000e
URL: http://sourceware.org/systemtap/
3e000e
%if %{with_pyparsing}
3e000e
%if %{with_python3}
3e000e
Requires: python3-pyparsing
3e000e
%else
3e000e
%if 0%{?rhel} >= 7
3e000e
Requires: pyparsing
3e000e
%else
3e000e
Requires: python2-pyparsing
3e000e
%endif
3e000e
%endif
3e000e
%endif
3e000e
3e000e
%description sdt-devel
3e000e
This package includes the <sys/sdt.h> header file used for static
3e000e
instrumentation compiled into userspace programs and libraries, along
3e000e
with the optional dtrace-compatibility preprocessor to process related
3e000e
.d files into tracing-macro-laden .h headers.
3e000e
3e000e
3e000e
%package testsuite
3e000e
Summary: Instrumentation System Testsuite
3e000e
License: GPLv2+
3e000e
URL: http://sourceware.org/systemtap/
3e000e
Requires: systemtap = %{version}-%{release}
3e000e
Requires: systemtap-sdt-devel = %{version}-%{release}
3e000e
Requires: systemtap-server = %{version}-%{release}
3e000e
Requires: dejagnu which elfutils grep nc
3e000e
%if %{with_debuginfod}
3e000e
Requires: elfutils-debuginfod
3e000e
%endif
3e000e
# work around fedora ci gating kvetching about i686<->x86-64 conflicts
3e000e
%ifarch x86_64
3e000e
Conflicts: systemtap-testsuite = %{version}-%{release}.i686
3e000e
%endif
3e000e
%ifarch i686
3e000e
Conflicts: systemtap-testsuite = %{version}-%{release}.x86_64
3e000e
%endif
3e000e
Requires: gcc gcc-c++ make glibc-devel
3e000e
# testsuite/systemtap.base/ptrace.exp needs strace
3e000e
Requires: strace
3e000e
# testsuite/systemtap.base/ipaddr.exp needs nc. Unfortunately, the rpm
3e000e
# that provides nc has changed over time (from 'nc' to
3e000e
# 'nmap-ncat'). So, we'll do a file-based require.
3e000e
Requires: /usr/bin/nc
3e000e
%ifnarch ia64 ppc64le aarch64
3e000e
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 8
3e000e
# no prelink
3e000e
%else
3e000e
Requires: prelink
3e000e
%endif
3e000e
%endif
3e000e
# testsuite/systemtap.server/client.exp needs avahi
3e000e
Requires: avahi
3e000e
%if %{with_crash}
3e000e
# testsuite/systemtap.base/crash.exp needs crash
3e000e
Requires: crash
3e000e
%endif
3e000e
%if %{with_java}
3e000e
Requires: systemtap-runtime-java = %{version}-%{release}
3e000e
%endif
3e000e
%if %{with_python2_probes}
3e000e
Requires: systemtap-runtime-python2 = %{version}-%{release}
3e000e
%endif
3e000e
%if %{with_python3_probes}
3e000e
Requires: systemtap-runtime-python3 = %{version}-%{release}
3e000e
%endif
3e000e
%ifarch x86_64
3e000e
%if 0%{?rhel} >= 8 || 0%{?fedora} >= 20
3e000e
# fweimer, personal correspondence
3e000e
Recommends: glibc-devel(x86-32)
3e000e
%else
3e000e
Requires: /usr/lib/libc.so
3e000e
%endif
3e000e
# ... and /usr/lib/libgcc_s.so.*
3e000e
# ... and /usr/lib/libstdc++.so.*
3e000e
%endif
3e000e
%if 0%{?fedora} >= 18
3e000e
Requires: stress
3e000e
%endif
3e000e
# The following "meta" files for the systemtap examples run "perf":
3e000e
#   testsuite/systemtap.examples/hw_watch_addr.meta
3e000e
#   testsuite/systemtap.examples/memory/hw_watch_sym.meta
3e000e
Requires: perf
3e000e
3e000e
%description testsuite
3e000e
This package includes the dejagnu-based systemtap stress self-testing
3e000e
suite.  This may be used by system administrators to thoroughly check
3e000e
systemtap on the current system.
3e000e
3e000e
3e000e
%if %{with_java}
3e000e
%package runtime-java
3e000e
Summary: Systemtap Java Runtime Support
3e000e
License: GPLv2+
3e000e
URL: http://sourceware.org/systemtap/
3e000e
Requires: systemtap-runtime = %{version}-%{release}
3e000e
# work around fedora ci gating kvetching about i686<->x86-64 conflicts
3e000e
%ifarch x86_64
3e000e
Conflicts: systemtap-runtime = %{version}-%{release}.i686
3e000e
%endif
3e000e
%ifarch i686
3e000e
Conflicts: systemtap-runtime = %{version}-%{release}.x86_64
3e000e
%endif
3e000e
Requires: byteman > 2.0
3e000e
Requires: iproute
3e000e
Requires: java-devel
3e000e
3e000e
%description runtime-java
3e000e
This package includes support files needed to run systemtap scripts
3e000e
that probe Java processes running on the OpenJDK runtimes using Byteman.
3e000e
%endif
3e000e
3e000e
%if %{with_python2_probes}
3e000e
%package runtime-python2
3e000e
Summary: Systemtap Python 2 Runtime Support
3e000e
License: GPLv2+
3e000e
URL: http://sourceware.org/systemtap/
3e000e
Requires: systemtap-runtime = %{version}-%{release}
3e000e
3e000e
%description runtime-python2
3e000e
This package includes support files needed to run systemtap scripts
3e000e
that probe python 2 processes.
3e000e
%endif
3e000e
3e000e
%if %{with_python3_probes}
3e000e
%package runtime-python3
3e000e
Summary: Systemtap Python 3 Runtime Support
3e000e
License: GPLv2+
3e000e
URL: http://sourceware.org/systemtap/
3e000e
Requires: systemtap-runtime = %{version}-%{release}
3e000e
3e000e
%if ! (%{with_python2_probes})
3e000e
# Provide an clean upgrade path when the python2 package is removed
3e000e
Obsoletes: %{name}-runtime-python2 < %{version}-%{release}
3e000e
%endif
3e000e
3e000e
%description runtime-python3
3e000e
This package includes support files needed to run systemtap scripts
3e000e
that probe python 3 processes.
3e000e
%endif
3e000e
45a35d
%if %{with_python3_probes}
3e000e
%package exporter
3e000e
Summary: Systemtap-prometheus interoperation mechanism
3e000e
License: GPLv2+
3e000e
URL: http://sourceware.org/systemtap/
3e000e
Requires: systemtap-runtime = %{version}-%{release}
3e000e
3e000e
%description exporter
3e000e
This package includes files for a systemd service that manages
3e000e
systemtap sessions and relays prometheus metrics from the sessions
3e000e
to remote requesters on demand.
3e000e
%endif
3e000e
3e000e
%if %{with_virthost}
3e000e
%package runtime-virthost
3e000e
Summary: Systemtap Cross-VM Instrumentation - host
3e000e
License: GPLv2+
3e000e
URL: http://sourceware.org/systemtap/
45a35d
# only require libvirt-libs really
45a35d
#Requires: libvirt >= 1.0.2
3e000e
Requires: libxml2
3e000e
3e000e
%description runtime-virthost
3e000e
This package includes the components required to run systemtap scripts
3e000e
inside a libvirt-managed domain from the host without using a network
3e000e
connection.
3e000e
%endif
3e000e
3e000e
%if %{with_virtguest}
3e000e
%package runtime-virtguest
3e000e
Summary: Systemtap Cross-VM Instrumentation - guest
3e000e
License: GPLv2+
3e000e
URL: http://sourceware.org/systemtap/
3e000e
Requires: systemtap-runtime = %{version}-%{release}
3e000e
%if %{with_systemd}
3e000e
Requires(post): findutils coreutils
3e000e
Requires(preun): grep coreutils
3e000e
Requires(postun): grep coreutils
3e000e
%else
3e000e
Requires(post): chkconfig initscripts
3e000e
Requires(preun): chkconfig initscripts
3e000e
Requires(postun): initscripts
3e000e
%endif
3e000e
3e000e
%description runtime-virtguest
3e000e
This package installs the services necessary on a virtual machine for a
3e000e
systemtap-runtime-virthost machine to execute systemtap scripts.
3e000e
%endif
3e000e
3e000e
# ------------------------------------------------------------------------
3e000e
3e000e
%prep
3e000e
%setup -q
45a35d
3e000e
%patch1 -p1
3e000e
%patch2 -p1
3e000e
%patch3 -p1
7ed538
%patch4 -p1
7ed538
%patch5 -p1
7ed538
%patch6 -p1
7ed538
%patch7 -p1
6e109e
%patch8 -p1
3e000e
3e000e
%build
3e000e
3e000e
# Enable/disable the dyninst pure-userspace backend
3e000e
%if %{with_dyninst}
3e000e
%global dyninst_config --with-dyninst
3e000e
%else
3e000e
%global dyninst_config --without-dyninst
3e000e
%endif
3e000e
3e000e
# Enable/disable the sqlite coverage testing support
3e000e
%if %{with_sqlite}
3e000e
%global sqlite_config --enable-sqlite
3e000e
%else
3e000e
%global sqlite_config --disable-sqlite
3e000e
%endif
3e000e
3e000e
%if %{with_debuginfod}
3e000e
%global debuginfod_config --with-debuginfod
3e000e
%else
3e000e
%global debuginfod_config --without-debuginfod
3e000e
%endif
3e000e
3e000e
3e000e
# Enable/disable the crash extension
3e000e
%if %{with_crash}
3e000e
%global crash_config --enable-crash
3e000e
%else
3e000e
%global crash_config --disable-crash
3e000e
%endif
3e000e
3e000e
# Enable/disable the code to find and suggest needed rpms
3e000e
%if %{with_rpm}
3e000e
%global rpm_config --with-rpm
3e000e
%else
3e000e
%global rpm_config --without-rpm
3e000e
%endif
3e000e
3e000e
%if %{with_docs}
3e000e
%if %{with_htmldocs}
3e000e
%global docs_config --enable-docs --enable-htmldocs
3e000e
%else
3e000e
%global docs_config --enable-docs --disable-htmldocs
3e000e
%endif
3e000e
%else
3e000e
%global docs_config --enable-docs=prebuilt
3e000e
%endif
3e000e
3e000e
%if %{with_java}
3e000e
%global java_config --with-java=%{_jvmdir}/java
3e000e
%else
3e000e
%global java_config --without-java
3e000e
%endif
3e000e
3e000e
%if %{with_python3}
3e000e
%global python3_config --with-python3
3e000e
%else
3e000e
%global python3_config --without-python3
3e000e
%endif
3e000e
%if %{with_python2_probes}
3e000e
%global python2_probes_config --with-python2-probes
3e000e
%else
3e000e
%global python2_probes_config --without-python2-probes
3e000e
%endif
3e000e
%if %{with_python3_probes}
3e000e
%global python3_probes_config --with-python3-probes
3e000e
%else
3e000e
%global python3_probes_config --without-python3-probes
3e000e
%endif
3e000e
3e000e
%if %{with_virthost}
3e000e
%global virt_config --enable-virt
3e000e
%else
3e000e
%global virt_config --disable-virt
3e000e
%endif
3e000e
3e000e
%if %{with_dracut}
3e000e
%global dracut_config --with-dracutstap=%{dracutstap} --with-dracutbindir=%{dracutbindir}
3e000e
%else
3e000e
%global dracut_config %{nil}
3e000e
%endif
3e000e
3e000e
%if %{with_httpd}
3e000e
%global httpd_config --enable-httpd
3e000e
%else
3e000e
%global httpd_config --disable-httpd
3e000e
%endif
3e000e
3e000e
%if %{with_bpf}
3e000e
%global bpf_config --with-bpf
3e000e
%else
3e000e
%global bpf_config --without-bpf
3e000e
%endif
3e000e
3e000e
# We don't ship compileworthy python code, just oddball samples
3e000e
%global py_auto_byte_compile 0
3e000e
45a35d
%configure %{dyninst_config} %{sqlite_config} %{crash_config} %{docs_config} %{rpm_config} %{java_config} %{virt_config} %{dracut_config} %{python3_config} %{python2_probes_config} %{python3_probes_config} %{httpd_config} %{bpf_config} %{debuginfod_config} --disable-silent-rules --with-extra-version="rpm %{version}-%{release}"
45a35d
make %{?_smp_mflags} V=1
3e000e
3e000e
3e000e
%install
3e000e
make DESTDIR=$RPM_BUILD_ROOT install
3e000e
%find_lang %{name}
3e000e
for dir in $(ls -1d $RPM_BUILD_ROOT%{_mandir}/{??,??_??}) ; do
3e000e
    dir=$(echo $dir | sed -e "s|^$RPM_BUILD_ROOT||")
3e000e
    lang=$(basename $dir)
3e000e
    echo "%%lang($lang) $dir/man*/*" >> %{name}.lang
3e000e
done
3e000e
45a35d
%if %{with_sysusers}
45a35d
mkdir -p %{buildroot}%{_sysusersdir}
45a35d
echo '%_systemtap_runtime_preinstall' > %{buildroot}%{_sysusersdir}/systemtap-runtime.conf
45a35d
echo '%_systemtap_server_preinstall' > %{buildroot}%{_sysusersdir}/systemtap-server.conf
45a35d
echo '%_systemtap_testsuite_preinstall' > %{buildroot}%{_sysusersdir}/systemtap-testsuite.conf
45a35d
%endif
45a35d
45a35d
3e000e
ln -s %{_datadir}/systemtap/examples
3e000e
3e000e
# Fix paths in the example scripts.
3e000e
find $RPM_BUILD_ROOT%{_datadir}/systemtap/examples -type f -name '*.stp' -print0 | xargs -0 sed -i -r -e '1s@^#!.+stap@#!%{_bindir}/stap@'
3e000e
3e000e
# To make rpmlint happy, remove any .gitignore files in the testsuite.
3e000e
find testsuite -type f -name '.gitignore' -print0 | xargs -0 rm -f
3e000e
3e000e
# Because "make install" may install staprun with whatever mode, the
3e000e
# post-processing programs rpmbuild runs won't be able to read it.
3e000e
# So, we change permissions so that they can read it.  We'll set the
3e000e
# permissions back to 04110 in the %files section below.
3e000e
chmod 755 $RPM_BUILD_ROOT%{_bindir}/staprun
3e000e
3e000e
#install the useful stap-prep script
3e000e
install -c -m 755 stap-prep $RPM_BUILD_ROOT%{_bindir}/stap-prep
3e000e
3e000e
# Copy over the testsuite
3e000e
cp -rp testsuite $RPM_BUILD_ROOT%{_datadir}/systemtap
3e000e
3e000e
# We want the manuals in the special doc dir, not the generic doc install dir.
3e000e
# We build it in place and then move it away so it doesn't get installed
3e000e
# twice. rpm can specify itself where the (versioned) docs go with the
3e000e
# %doc directive.
3e000e
mkdir docs.installed
3e000e
mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/*.pdf docs.installed/
3e000e
%if %{with_docs}
3e000e
%if %{with_htmldocs}
3e000e
mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/tapsets docs.installed/
3e000e
mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/SystemTap_Beginners_Guide docs.installed/
3e000e
%endif
3e000e
%endif
3e000e
3e000e
install -D -m 644 macros.systemtap $RPM_BUILD_ROOT%{_rpmmacrodir}/macros.systemtap
3e000e
3e000e
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/stap-server
3e000e
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/stap-server
3e000e
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/stap-server/.systemtap
3e000e
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/stap-server
3e000e
touch $RPM_BUILD_ROOT%{_localstatedir}/log/stap-server/log
3e000e
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/systemtap
3e000e
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/systemtap
3e000e
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
3e000e
install -m 644 initscript/logrotate.stap-server $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/stap-server
3e000e
3e000e
# If using systemd systemtap.service file, retain the old init script in %{_libexecdir} as a helper.
3e000e
%if %{with_systemd}
3e000e
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
3e000e
touch $RPM_BUILD_ROOT%{_unitdir}/systemtap.service
3e000e
install -m 644 initscript/systemtap.service $RPM_BUILD_ROOT%{_unitdir}/systemtap.service
3e000e
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
3e000e
install -m 755 initscript/systemtap $RPM_BUILD_ROOT%{_sbindir}/systemtap-service
3e000e
%else
3e000e
mkdir -p $RPM_BUILD_ROOT%{initdir}
3e000e
install -m 755 initscript/systemtap $RPM_BUILD_ROOT%{initdir}
3e000e
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
3e000e
ln -sf %{initdir}/systemtap $RPM_BUILD_ROOT%{_sbindir}/systemtap-service
3e000e
# TODO CHECK CORRECTNESS: symlink %{_sbindir}/systemtap-service to %{initdir}/systemtap
3e000e
%endif
3e000e
3e000e
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap
3e000e
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/conf.d
3e000e
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/script.d
3e000e
install -m 644 initscript/config.systemtap $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/config
3e000e
3e000e
%if %{with_systemd}
3e000e
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
3e000e
touch $RPM_BUILD_ROOT%{_unitdir}/stap-server.service
3e000e
install -m 644 stap-server.service $RPM_BUILD_ROOT%{_unitdir}/stap-server.service
3e000e
mkdir -p $RPM_BUILD_ROOT%{_tmpfilesdir}
3e000e
install -m 644 stap-server.conf $RPM_BUILD_ROOT%{_tmpfilesdir}/stap-server.conf
3e000e
%else
3e000e
install -m 755 initscript/stap-server $RPM_BUILD_ROOT%{initdir}
3e000e
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/stap-server/conf.d
3e000e
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
3e000e
install -m 644 initscript/config.stap-server $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/stap-server
3e000e
%endif
3e000e
3e000e
%if %{with_emacsvim}
3e000e
mkdir -p $RPM_BUILD_ROOT%{_emacs_sitelispdir}
3e000e
install -p -m 644 emacs/systemtap-mode.el* $RPM_BUILD_ROOT%{_emacs_sitelispdir}
3e000e
mkdir -p $RPM_BUILD_ROOT%{_emacs_sitestartdir}
3e000e
install -p -m 644 emacs/systemtap-init.el $RPM_BUILD_ROOT%{_emacs_sitestartdir}/systemtap-init.el
3e000e
for subdir in ftdetect ftplugin indent syntax
3e000e
do
3e000e
    mkdir -p $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/$subdir
3e000e
    install -p -m 644 vim/$subdir/*.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/$subdir
3e000e
done
3e000e
%endif
3e000e
3e000e
%if %{with_virtguest}
3e000e
   mkdir -p $RPM_BUILD_ROOT%{udevrulesdir}
3e000e
   %if %{with_systemd}
3e000e
      install -p -m 644 staprun/guest/99-stapsh.rules $RPM_BUILD_ROOT%{udevrulesdir}
3e000e
      mkdir -p $RPM_BUILD_ROOT%{_unitdir}
3e000e
      install -p -m 644 staprun/guest/stapsh@.service $RPM_BUILD_ROOT%{_unitdir}
3e000e
   %else
3e000e
      install -p -m 644 staprun/guest/99-stapsh-init.rules $RPM_BUILD_ROOT%{udevrulesdir}
3e000e
      install -p -m 755 staprun/guest/stapshd $RPM_BUILD_ROOT%{initdir}
3e000e
      mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/systemtap
3e000e
      install -p -m 755 staprun/guest/stapsh-daemon $RPM_BUILD_ROOT%{_libexecdir}/systemtap
3e000e
      mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/modules
3e000e
      # Technically, this is only needed for RHEL5, in which the MODULE_ALIAS is missing, but
3e000e
      # it does no harm in RHEL6 as well
3e000e
      install -p -m 755 staprun/guest/virtio_console.modules $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/modules
3e000e
   %endif
3e000e
%endif
3e000e
3e000e
%if %{with_dracut}
3e000e
   mkdir -p $RPM_BUILD_ROOT%{dracutstap}
3e000e
   install -p -m 755 initscript/99stap/module-setup.sh $RPM_BUILD_ROOT%{dracutstap}
3e000e
   install -p -m 755 initscript/99stap/install $RPM_BUILD_ROOT%{dracutstap}
3e000e
   install -p -m 755 initscript/99stap/check $RPM_BUILD_ROOT%{dracutstap}
3e000e
   install -p -m 755 initscript/99stap/start-staprun.sh $RPM_BUILD_ROOT%{dracutstap}
3e000e
   touch $RPM_BUILD_ROOT%{dracutstap}/params.conf
3e000e
%endif
3e000e
3e000e
%if %{with_specific_python}
3e000e
# Some files got ambiguous python shebangs, we fix them after everything else is done
3e000e
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{python3_sitearch} %{buildroot}%{_bindir}/*
3e000e
%endif
3e000e
3e000e
%pre runtime
45a35d
%if %{with_sysusers}
45a35d
echo '%_systemtap_runtime_preinstall' | systemd-sysusers --replace=%{_sysusersdir}/systemtap-runtime.conf -
45a35d
%else
3e000e
getent group stapusr >/dev/null || groupadd -f -g 156 -r stapusr
3e000e
getent group stapsys >/dev/null || groupadd -f -g 157 -r stapsys
3e000e
getent group stapdev >/dev/null || groupadd -f -g 158 -r stapdev
45a35d
%endif
3e000e
exit 0
3e000e
3e000e
%pre server
45a35d
%if %{with_sysusers}
45a35d
echo '%_systemtap_server_preinstall' | systemd-sysusers --replace=%{_sysusersdir}/systemtap-server.conf -
45a35d
%else
3e000e
getent group stap-server >/dev/null || groupadd -f -g 155 -r stap-server
3e000e
getent passwd stap-server >/dev/null || \
3e000e
  useradd -c "Systemtap Compile Server" -u 155 -g stap-server -d %{_localstatedir}/lib/stap-server -r -s /sbin/nologin stap-server 2>/dev/null || \
3e000e
  useradd -c "Systemtap Compile Server" -g stap-server -d %{_localstatedir}/lib/stap-server -r -s /sbin/nologin stap-server
45a35d
%endif
45a35d
exit 0
3e000e
3e000e
%pre testsuite
45a35d
%if %{with_sysusers}
45a35d
echo '%_systemtap_testsuite_preinstall' | systemd-sysusers --replace=%{_sysusersdir}/systemtap-testsuite.conf -
45a35d
%else
3e000e
getent passwd stapusr >/dev/null || \
3e000e
    useradd -c "Systemtap 'stapusr' User" -g stapusr -r -s /sbin/nologin stapusr
3e000e
getent passwd stapsys >/dev/null || \
3e000e
    useradd -c "Systemtap 'stapsys' User" -g stapsys -G stapusr -r -s /sbin/nologin stapsys
3e000e
getent passwd stapdev >/dev/null || \
3e000e
    useradd -c "Systemtap 'stapdev' User" -g stapdev -G stapusr -r -s /sbin/nologin stapdev
45a35d
%endif
3e000e
exit 0
3e000e
3e000e
%post server
3e000e
3e000e
# We have some duplication between the %files listings for the
3e000e
# ~stap-server directories and the explicit mkdir/chown/chmod bits
3e000e
# here.  Part of the reason may be that a preexisting stap-server
3e000e
# account may well be placed somewhere other than
3e000e
# %{_localstatedir}/lib/stap-server, but we'd like their permissions
3e000e
# set similarly.
3e000e
3e000e
test -e ~stap-server && chmod 750 ~stap-server
3e000e
3e000e
if [ ! -f ~stap-server/.systemtap/rc ]; then
3e000e
  mkdir -p ~stap-server/.systemtap
3e000e
  chown stap-server:stap-server ~stap-server/.systemtap
3e000e
  # PR16276: guess at a reasonable number for a default --rlimit-nproc
3e000e
  numcpu=`/usr/bin/getconf _NPROCESSORS_ONLN`
3e000e
  if [ -z "$numcpu" -o "$numcpu" -lt 1 ]; then numcpu=1; fi
3e000e
  nproc=`expr $numcpu \* 30`
3e000e
  echo "--rlimit-as=614400000 --rlimit-cpu=60 --rlimit-nproc=$nproc --rlimit-stack=1024000 --rlimit-fsize=51200000" > ~stap-server/.systemtap/rc
3e000e
  chown stap-server:stap-server ~stap-server/.systemtap/rc
3e000e
fi
3e000e
3e000e
test -e %{_localstatedir}/log/stap-server/log || {
3e000e
     touch %{_localstatedir}/log/stap-server/log
3e000e
     chmod 644 %{_localstatedir}/log/stap-server/log
3e000e
     chown stap-server:stap-server %{_localstatedir}/log/stap-server/log
3e000e
}
3e000e
# Prepare the service
3e000e
%if %{with_systemd}
3e000e
     # Note, Fedora policy doesn't allow network services enabled by default
3e000e
     # /bin/systemctl enable stap-server.service >/dev/null 2>&1 || :
3e000e
     /bin/systemd-tmpfiles --create %{_tmpfilesdir}/stap-server.conf >/dev/null 2>&1 || :
3e000e
%else
3e000e
    /sbin/chkconfig --add stap-server
3e000e
%endif
3e000e
exit 0
3e000e
3e000e
%triggerin client -- systemtap-server
3e000e
if test -e ~stap-server/.systemtap/ssl/server/stap.cert; then
3e000e
   # echo Authorizing ssl-peer/trusted-signer certificate for local systemtap-server
3e000e
   %{_libexecdir}/systemtap/stap-authorize-cert ~stap-server/.systemtap/ssl/server/stap.cert %{_sysconfdir}/systemtap/ssl/client >/dev/null
3e000e
   %{_libexecdir}/systemtap/stap-authorize-cert ~stap-server/.systemtap/ssl/server/stap.cert %{_sysconfdir}/systemtap/staprun >/dev/null
3e000e
fi
3e000e
exit 0
3e000e
# XXX: corresponding %triggerun?
3e000e
3e000e
%preun server
3e000e
# Check that this is the actual deinstallation of the package, as opposed to
3e000e
# just removing the old package on upgrade.
3e000e
if [ $1 = 0 ] ; then
3e000e
    %if %{with_systemd}
3e000e
       /bin/systemctl --no-reload disable stap-server.service >/dev/null 2>&1 || :
3e000e
       /bin/systemctl stop stap-server.service >/dev/null 2>&1 || :
3e000e
    %else
3e000e
        /sbin/service stap-server stop >/dev/null 2>&1
3e000e
        /sbin/chkconfig --del stap-server
3e000e
    %endif
3e000e
fi
3e000e
exit 0
3e000e
3e000e
%postun server
3e000e
# Check whether this is an upgrade of the package.
3e000e
# If so, restart the service if it's running
3e000e
if [ "$1" -ge "1" ] ; then
3e000e
    %if %{with_systemd}
3e000e
        /bin/systemctl condrestart stap-server.service >/dev/null 2>&1 || :
3e000e
    %else
3e000e
        /sbin/service stap-server condrestart >/dev/null 2>&1 || :
3e000e
    %endif
3e000e
fi
3e000e
exit 0
3e000e
3e000e
%post initscript
3e000e
%if %{with_systemd}
3e000e
    /bin/systemctl enable systemtap.service >/dev/null 2>&1 || :
3e000e
%else
3e000e
    /sbin/chkconfig --add systemtap
3e000e
%endif
3e000e
exit 0
3e000e
3e000e
%preun initscript
3e000e
# Check that this is the actual deinstallation of the package, as opposed to
3e000e
# just removing the old package on upgrade.
3e000e
if [ $1 = 0 ] ; then
3e000e
    %if %{with_systemd}
3e000e
        /bin/systemctl --no-reload disable systemtap.service >/dev/null 2>&1 || :
3e000e
        /bin/systemctl stop systemtap.service >/dev/null 2>&1 || :
3e000e
    %else
3e000e
        /sbin/service systemtap stop >/dev/null 2>&1
3e000e
        /sbin/chkconfig --del systemtap
3e000e
    %endif
3e000e
fi
3e000e
exit 0
3e000e
3e000e
%postun initscript
3e000e
# Check whether this is an upgrade of the package.
3e000e
# If so, restart the service if it's running
3e000e
if [ "$1" -ge "1" ] ; then
3e000e
    %if %{with_systemd}
3e000e
        /bin/systemctl condrestart systemtap.service >/dev/null 2>&1 || :
3e000e
    %else
3e000e
        /sbin/service systemtap condrestart >/dev/null 2>&1 || :
3e000e
    %endif
3e000e
fi
3e000e
exit 0
3e000e
3e000e
%post runtime-virtguest
3e000e
%if %{with_systemd}
3e000e
   # Start services if there are ports present
3e000e
   if [ -d /dev/virtio-ports ]; then
3e000e
      (find /dev/virtio-ports -iname 'org.systemtap.stapsh.[0-9]*' -type l \
3e000e
         | xargs -n 1 basename \
3e000e
         | xargs -n 1 -I {} /bin/systemctl start stapsh@{}.service) >/dev/null 2>&1 || :
3e000e
   fi
3e000e
%else
3e000e
   /sbin/chkconfig --add stapshd
3e000e
   /sbin/chkconfig stapshd on
3e000e
   /sbin/service stapshd start >/dev/null 2>&1 || :
3e000e
%endif
3e000e
exit 0
3e000e
3e000e
%preun runtime-virtguest
3e000e
# Stop service if this is an uninstall rather than an upgrade
3e000e
if [ $1 = 0 ]; then
3e000e
   %if %{with_systemd}
3e000e
      # We need to stop all stapsh services. Because they are instantiated from
3e000e
      # a template service file, we can't simply call disable. We need to find
3e000e
      # all the running ones and stop them all individually
3e000e
      for service in `/bin/systemctl --full | grep stapsh@ | cut -d ' ' -f 1`; do
3e000e
         /bin/systemctl stop $service >/dev/null 2>&1 || :
3e000e
      done
3e000e
   %else
3e000e
      /sbin/service stapshd stop >/dev/null 2>&1
3e000e
      /sbin/chkconfig --del stapshd
3e000e
   %endif
3e000e
fi
3e000e
exit 0
3e000e
3e000e
%postun runtime-virtguest
3e000e
# Restart service if this is an upgrade rather than an uninstall
3e000e
if [ "$1" -ge "1" ]; then
3e000e
   %if %{with_systemd}
3e000e
      # We need to restart all stapsh services. Because they are instantiated from
3e000e
      # a template service file, we can't simply call restart. We need to find
3e000e
      # all the running ones and restart them all individually
3e000e
      for service in `/bin/systemctl --full | grep stapsh@ | cut -d ' ' -f 1`; do
3e000e
         /bin/systemctl condrestart $service >/dev/null 2>&1 || :
3e000e
      done
3e000e
   %else
3e000e
      /sbin/service stapshd condrestart >/dev/null 2>&1
3e000e
   %endif
3e000e
fi
3e000e
exit 0
3e000e
45a35d
%if %{with_python3_probes}
3e000e
%if %{with_systemd}
3e000e
%preun exporter
3e000e
if [ $1 = 0 ] ; then
3e000e
  /bin/systemctl stop stap-exporter.service >/dev/null 2>&1 || :
3e000e
  /bin/systemctl disable stap-exporter.service >/dev/null 2>&1 || :
3e000e
fi
3e000e
exit 0
3e000e
3e000e
%postun exporter
3e000e
# Restart service if this is an upgrade rather than an uninstall
3e000e
if [ "$1" -ge "1" ]; then
3e000e
   /bin/systemctl condrestart stap-exporter >/dev/null 2>&1 || :
3e000e
fi
3e000e
exit 0
3e000e
%endif
3e000e
%endif
3e000e
3e000e
%post
3e000e
# Remove any previously-built uprobes.ko materials
3e000e
(make -C %{_datadir}/systemtap/runtime/uprobes clean) >/dev/null 2>&1 || true
3e000e
(/sbin/rmmod uprobes) >/dev/null 2>&1 || true
3e000e
3e000e
%preun
3e000e
# Ditto
3e000e
(make -C %{_datadir}/systemtap/runtime/uprobes clean) >/dev/null 2>&1 || true
3e000e
(/sbin/rmmod uprobes) >/dev/null 2>&1 || true
3e000e
3e000e
# ------------------------------------------------------------------------
3e000e
3e000e
%files
3e000e
# The main "systemtap" rpm doesn't include any files.
3e000e
3e000e
%files server -f systemtap.lang
3e000e
%{_bindir}/stap-server
3e000e
%dir %{_libexecdir}/systemtap
3e000e
%{_libexecdir}/systemtap/stap-serverd
3e000e
%{_libexecdir}/systemtap/stap-start-server
3e000e
%{_libexecdir}/systemtap/stap-stop-server
3e000e
%{_libexecdir}/systemtap/stap-gen-cert
3e000e
%{_libexecdir}/systemtap/stap-sign-module
3e000e
%{_libexecdir}/systemtap/stap-authorize-cert
3e000e
%{_libexecdir}/systemtap/stap-env
3e000e
%{_mandir}/man7/error*
3e000e
%{_mandir}/man7/stappaths.7*
3e000e
%{_mandir}/man7/warning*
3e000e
%{_mandir}/man8/stap-server.8*
3e000e
%if %{with_systemd}
3e000e
%{_unitdir}/stap-server.service
3e000e
%{_tmpfilesdir}/stap-server.conf
3e000e
%else
3e000e
%{initdir}/stap-server
3e000e
%dir %{_sysconfdir}/stap-server/conf.d
3e000e
%config(noreplace) %{_sysconfdir}/sysconfig/stap-server
3e000e
%endif
3e000e
%config(noreplace) %{_sysconfdir}/logrotate.d/stap-server
3e000e
%dir %{_sysconfdir}/stap-server
3e000e
%dir %attr(0750,stap-server,stap-server) %{_localstatedir}/lib/stap-server
3e000e
%dir %attr(0700,stap-server,stap-server) %{_localstatedir}/lib/stap-server/.systemtap
3e000e
%dir %attr(0755,stap-server,stap-server) %{_localstatedir}/log/stap-server
3e000e
%ghost %config(noreplace) %attr(0644,stap-server,stap-server) %{_localstatedir}/log/stap-server/log
3e000e
%ghost %attr(0755,stap-server,stap-server) %{_localstatedir}/run/stap-server
3e000e
%doc README README.unprivileged AUTHORS NEWS 
3e000e
%{!?_licensedir:%global license %%doc}
3e000e
%license COPYING
45a35d
%if %{with_sysusers}
45a35d
%{_sysusersdir}/systemtap-server.conf
45a35d
%endif
3e000e
3e000e
3e000e
%files devel -f systemtap.lang
3e000e
%{_bindir}/stap
3e000e
%{_bindir}/stap-prep
3e000e
%{_bindir}/stap-report
3e000e
%dir %{_datadir}/systemtap
3e000e
%{_datadir}/systemtap/runtime
3e000e
%{_datadir}/systemtap/tapset
3e000e
%{_mandir}/man1/stap.1*
3e000e
%{_mandir}/man1/stap-prep.1*
3e000e
%{_mandir}/man1/stap-report.1*
3e000e
%{_mandir}/man7/error*
3e000e
%{_mandir}/man7/stappaths.7*
3e000e
%{_mandir}/man7/warning*
3e000e
%doc README README.unprivileged AUTHORS NEWS 
3e000e
%{!?_licensedir:%global license %%doc}
3e000e
%license COPYING
3e000e
%if %{with_java}
3e000e
%dir %{_libexecdir}/systemtap
3e000e
%{_libexecdir}/systemtap/libHelperSDT.so
3e000e
%endif
3e000e
%if %{with_emacsvim}
3e000e
%{_emacs_sitelispdir}/*.el*
3e000e
%{_emacs_sitestartdir}/systemtap-init.el
3e000e
%{_datadir}/vim/vimfiles/*/*.vim
3e000e
%endif
3e000e
# Notice that the stap-resolve-module-function.py file is used by
3e000e
# *both* the python2 and python3 subrpms.  Both subrpms use that same
3e000e
# python script to help list python probes.
3e000e
%if %{with_python3_probes} || %{with_python2_probes}
3e000e
%{_libexecdir}/systemtap/python/stap-resolve-module-function.py
3e000e
%exclude %{_libexecdir}/systemtap/python/stap-resolve-module-function.py?
3e000e
%endif
3e000e
3e000e
3e000e
%files runtime -f systemtap.lang
3e000e
%attr(4110,root,stapusr) %{_bindir}/staprun
3e000e
%{_bindir}/stapsh
3e000e
%{_bindir}/stap-merge
3e000e
%{_bindir}/stap-report
3e000e
%if %{with_dyninst}
3e000e
%{_bindir}/stapdyn
3e000e
%endif
3e000e
%if %{with_bpf}
3e000e
%{_bindir}/stapbpf
3e000e
%endif
3e000e
%dir %{_libexecdir}/systemtap
3e000e
%{_libexecdir}/systemtap/stapio
3e000e
%{_libexecdir}/systemtap/stap-authorize-cert
3e000e
%if %{with_crash}
3e000e
%dir %{_libdir}/systemtap
3e000e
%{_libdir}/systemtap/staplog.so*
3e000e
%endif
3e000e
%{_mandir}/man1/stap-report.1*
3e000e
%{_mandir}/man7/error*
3e000e
%{_mandir}/man7/stappaths.7*
3e000e
%{_mandir}/man7/warning*
3e000e
%{_mandir}/man8/stapsh.8*
3e000e
%{_mandir}/man8/staprun.8*
3e000e
%if %{with_dyninst}
3e000e
%{_mandir}/man8/stapdyn.8*
3e000e
%endif
3e000e
%if %{with_bpf}
3e000e
%{_mandir}/man8/stapbpf.8*
3e000e
%endif
3e000e
%doc README README.security AUTHORS NEWS 
3e000e
%{!?_licensedir:%global license %%doc}
3e000e
%license COPYING
45a35d
%if %{with_sysusers}
45a35d
%{_sysusersdir}/systemtap-runtime.conf
45a35d
%endif
3e000e
3e000e
3e000e
%files client -f systemtap.lang
3e000e
%doc README README.unprivileged AUTHORS NEWS
3e000e
%{_datadir}/systemtap/examples
3e000e
%{!?_licensedir:%global license %%doc}
3e000e
%license COPYING
3e000e
%doc docs.installed/*.pdf
3e000e
%if %{with_docs}
3e000e
%if %{with_htmldocs}
3e000e
%doc docs.installed/tapsets/*.html
3e000e
%doc docs.installed/SystemTap_Beginners_Guide
3e000e
%endif
3e000e
%endif
3e000e
%{_bindir}/stap
3e000e
%{_bindir}/stap-prep
3e000e
%{_bindir}/stap-report
3e000e
%{_mandir}/man1/stap.1*
3e000e
%{_mandir}/man1/stap-prep.1*
3e000e
%{_mandir}/man1/stap-merge.1*
3e000e
%{_mandir}/man1/stap-report.1*
3e000e
%{_mandir}/man1/stapref.1*
3e000e
%{_mandir}/man3/*
3e000e
%{_mandir}/man7/error*
3e000e
%{_mandir}/man7/stappaths.7*
3e000e
%{_mandir}/man7/warning*
3e000e
%dir %{_datadir}/systemtap
3e000e
%{_datadir}/systemtap/tapset
3e000e
3e000e
3e000e
3e000e
%files initscript
3e000e
%if %{with_systemd}
3e000e
%{_unitdir}/systemtap.service
3e000e
%{_sbindir}/systemtap-service
3e000e
%else
3e000e
%{initdir}/systemtap
3e000e
%{_sbindir}/systemtap-service
3e000e
%endif
3e000e
%dir %{_sysconfdir}/systemtap
3e000e
%dir %{_sysconfdir}/systemtap/conf.d
3e000e
%dir %{_sysconfdir}/systemtap/script.d
3e000e
%config(noreplace) %{_sysconfdir}/systemtap/config
3e000e
%dir %{_localstatedir}/cache/systemtap
3e000e
%ghost %{_localstatedir}/run/systemtap
3e000e
%{_mandir}/man8/systemtap-service.8*
3e000e
%if %{with_dracut}
3e000e
   %dir %{dracutstap}
3e000e
   %{dracutstap}/*
3e000e
%endif
3e000e
3e000e
3e000e
%files sdt-devel
3e000e
%{_bindir}/dtrace
3e000e
%{_includedir}/sys/sdt.h
3e000e
%{_includedir}/sys/sdt-config.h
3e000e
%{_mandir}/man1/dtrace.1*
3e000e
%{_rpmmacrodir}/macros.systemtap
3e000e
%doc README AUTHORS NEWS 
3e000e
%{!?_licensedir:%global license %%doc}
3e000e
%license COPYING
3e000e
3e000e
3e000e
%files testsuite
3e000e
%dir %{_datadir}/systemtap
3e000e
%{_datadir}/systemtap/testsuite
45a35d
%if %{with_sysusers}
45a35d
%{_sysusersdir}/systemtap-testsuite.conf
45a35d
%endif
3e000e
3e000e
3e000e
%if %{with_java}
3e000e
%files runtime-java
3e000e
%dir %{_libexecdir}/systemtap
3e000e
%{_libexecdir}/systemtap/libHelperSDT.so
3e000e
%{_libexecdir}/systemtap/HelperSDT.jar
3e000e
%{_libexecdir}/systemtap/stapbm
3e000e
%endif
3e000e
3e000e
%if %{with_python2_probes}
3e000e
%files runtime-python2
3e000e
%{python_sitearch}/HelperSDT
3e000e
%{python_sitearch}/HelperSDT-*.egg-info
3e000e
%endif
3e000e
%if %{with_python3_probes}
3e000e
%files runtime-python3
3e000e
%{python3_sitearch}/HelperSDT
3e000e
%{python3_sitearch}/HelperSDT-*.egg-info
3e000e
%endif
3e000e
3e000e
%if %{with_virthost}
3e000e
%files runtime-virthost
3e000e
%{_mandir}/man1/stapvirt.1*
3e000e
%{_bindir}/stapvirt
3e000e
%endif
3e000e
3e000e
%if %{with_virtguest}
3e000e
%files runtime-virtguest
3e000e
%if %{with_systemd}
3e000e
   %{udevrulesdir}/99-stapsh.rules
3e000e
   %{_unitdir}/stapsh@.service
3e000e
%else
3e000e
   %{udevrulesdir}/99-stapsh-init.rules
3e000e
   %dir %{_libexecdir}/systemtap
3e000e
   %{_libexecdir}/systemtap/stapsh-daemon
3e000e
   %{initdir}/stapshd
3e000e
   %{_sysconfdir}/sysconfig/modules/virtio_console.modules
3e000e
%endif
3e000e
%endif
3e000e
45a35d
%if %{with_python3_probes}
3e000e
%files exporter
3e000e
%{_sysconfdir}/stap-exporter
3e000e
%{_sysconfdir}/sysconfig/stap-exporter
3e000e
%{_unitdir}/stap-exporter.service
3e000e
%{_mandir}/man8/stap-exporter.8*
3e000e
%{_sbindir}/stap-exporter
3e000e
%endif
3e000e
3e000e
# ------------------------------------------------------------------------
3e000e
3e000e
# Future new-release entries should be of the form
3e000e
# * DDD MMM DD YYYY YOURNAME <YOUREMAIL> - V-R
3e000e
# - Upstream release, see wiki page below for detailed notes.
3e000e
#   http://sourceware.org/systemtap/wiki/SystemTapReleases
3e000e
3e000e
# PRERELEASE
3e000e
%changelog
6e109e
* Fri Mar 11 2022 Frank Ch. Eigler <fche@redhat.com> - 4.6-12
6e109e
- rhbz2058908: Change sys/sdt.h on x86-64 to stop allowing xmm registers
6e109e
7ed538
* Wed Feb 2 2022 Stan Cox <scox@redhat.com> - 4.6-11
7ed538
- rhbz2039207: Attempt userspace string access if kernel access fails
7ed538
7ed538
* Tue Feb 1 2022 Martin Cermak <mcermak@redhat.com> - 4.6-10
7ed538
- rhbz2047256: [ppc64le] Assertion `index >= 0' failed
7ed538
7ed538
* Fri Jan 21 2022 Martin Cermak <mcermak@redhat.com> - 4.6-9
7ed538
- rhbz2027683: python tapset regression
7ed538
- rhbz2027683: systemtap.examples/io/iostat-scsi.stp PR28633
7ed538
7ed538
* Mon Jan 17 2022 Martin Cermak <mcermak@redhat.com> - 4.6-6
7ed538
- rhbz2041526/pr28634: move elevator.h to block/
7ed538
7ed538
* Tue Dec 07 2021 Stan Cox <scox@redhat.com> - 4.6.5
7ed538
- sys/sdt.h remove aarch64 and s390 float constraints
7ed538
45a35d
* Mon Dec 06 2021 Stan Cox <scox@redhat.com> - 4.6.4
45a35d
- sys/sdt.h remove float constraints that may cause gcc reload issues.
45a35d
45a35d
* Thu Dec 02 2021 Frank Ch. Eigler <fche@redhat.com> - 4.6.3
45a35d
- rhbz2972798 - nfs tapset tweaks
45a35d
- sys/sdt.h fixes for glibc ftbfs
45a35d
45a35d
* Thu Nov 25 2021 Martin Cermak <mcermak@redhat.com> - 4.6.2
45a35d
- rhbz2012907: Fix use of sysuser.d/* for user/group management
45a35d
45a35d
* Fri Nov 19 2021 Frank Ch. Eigler <fche@redhat.com> - 4.6-1
45a35d
- Upstream release.
45a35d
45a35d
* Thu Sep 09 2021 Frank Ch. Eigler <fche@redhat.com> - 4.5-8
45a35d
- rhbz1985124: Kernel 5.14 compatibility omnibus cont'd.
45a35d
3e000e
* Thu Aug 12 2021 Frank Ch. Eigler <fche@redhat.com> - 4.5-7
3e000e
- rhbz1985124: Kernel 5.14 compatibility omnibus.
3e000e
3e000e
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 4.5-5
3e000e
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
3e000e
  Related: rhbz#1991688
3e000e
3e000e
* Mon Jul 26 2021 Frank Ch. Eigler <fche@redhat.com> - 4.5-3
3e000e
- rhbz1982908: Import hardening c*flags from specs/rhel standards
3e000e
3e000e
* Tue May 18 2021 Frank Ch. Eigler <fche@redhat.com> - 4.5-2
3e000e
- Respin against newer dyninst.
3e000e
3e000e
* Fri May 07 2021 Frank Ch. Eigler <fche@redhat.com> - 4.5-1
3e000e
- Upstream release.
3e000e
3e000e
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 4.5-0.202102101545git8d5e0abc542c
3e000e
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
3e000e
3e000e
* Mon Nov 09 2020 Frank Ch. Eigler <fche@redhat.com> - 4.4-1
3e000e
- Upstream release.
3e000e
3e000e
* Thu Jun 11 2020 Frank Ch. Eigler <fche@redhat.com> - 4.3-1
3e000e
- Upstream release.
3e000e
3e000e
* Mon Nov 18 2019 Sagar Patel <sapatel@redhat.com> - 4.2-1
3e000e
- Upstream release.
3e000e
3e000e
* Tue May 07 2019 Serguei Makarov <smakarov@redhat.com> - 4.1-1
3e000e
- Upstream release.
3e000e
3e000e
* Sat Oct 13 2018 Frank Ch. Eigler <fche@redhat.com> - 4.0-1
3e000e
- Upstream release.
3e000e
3e000e
* Thu Jun 07 2018 Frank Ch. Eigler <fche@redhat.com> - 3.3-1
3e000e
- Upstream release.
3e000e
3e000e
* Wed Oct 18 2017 Frank Ch. Eigler <fche@redhat.com> - 3.2-1
3e000e
- Upstream release.
3e000e
3e000e
* Fri Feb 17 2017 Frank Ch. Eigler <fche@redhat.com> - 3.1-1
3e000e
- Upstream release.
3e000e
3e000e
* Sun Mar 27 2016 Frank Ch. Eigler <fche@redhat.com> - 3.0-1
3e000e
- Upstream release.
3e000e
3e000e
* Thu Oct 08 2015 Frank Ch. Eigler <fche@redhat.com> - 2.9-1
3e000e
- Upstream release.
3e000e
3e000e
* Wed Jun 17 2015 Abegail Jakop <ajakop@redhat.com> - 2.8-1
3e000e
- Upstream release.
3e000e
3e000e
* Wed Feb 18 2015 Frank Ch. Eigler <fche@redhat.com> - 2.7-1
3e000e
- Upstream release.
3e000e
3e000e
* Fri Sep 05 2014 Josh Stone <jistone@redhat.com> - 2.6-1
3e000e
- Upstream release.
3e000e
3e000e
* Mon Jul 07 2014 Josh Stone <jistone@redhat.com>
3e000e
- Flip with_dyninst to an %%ifarch passlist.
3e000e
3e000e
* Wed Apr 30 2014 Jonathan Lebon <jlebon@redhat.com> - 2.5-1
3e000e
- Upstream release.
3e000e
3e000e
* Thu Feb 13 2014 Lukas Berk <lberk@redhat.com>
3e000e
- Add directory checks for runtime-java sym links
3e000e
3e000e
* Mon Jan 06 2014 Jonathan Lebon <jlebon@redhat.com>
3e000e
- Added dracut module to initscript package
3e000e
3e000e
* Wed Nov 06 2013 Frank Ch. Eigler <fche@redhat.com> - 2.4-1
3e000e
- Upstream release.
3e000e
3e000e
* Wed Oct 09 2013 Jonathan Lebon <jlebon@redhat.com>
3e000e
- Added runtime-virthost and runtime-virtguest packages.
3e000e
3e000e
* Thu Jul 25 2013 Frank Ch. Eigler <fche@redhat.com> - 2.3-1
3e000e
- Upstream release.
3e000e
3e000e
* Thu May 16 2013 Frank Ch. Eigler <fche@redhat.com> - 2.2.1-1
3e000e
- Upstream release.
3e000e
3e000e
* Tue May 14 2013 Frank Ch. Eigler <fche@redhat.com> - 2.2-1
3e000e
- Upstream release.
3e000e
3e000e
* Wed Feb 13 2013 Serguei Makarov <smakarov@redhat.com> - 2.1-1
3e000e
- Upstream release.
3e000e
3e000e
* Tue Oct 09 2012 Josh Stone <jistone@redhat.com> - 2.0-1
3e000e
- Upstream release.
3e000e
3e000e
* Fri Jul 13 2012 Peter Robinson <pbrobinson@fedoraproject.org>
3e000e
- Fix ifarch statement
3e000e
- use file based requires for glibc-devel on x86_64 so that we work in koji
3e000e
3e000e
* Sun Jun 17 2012 Frank Ch. Eigler <fche@redhat.com> - 1.8-1
3e000e
- Upstream release.
3e000e
3e000e
* Wed Feb 01 2012 Frank Ch. Eigler <fche@redhat.com> - 1.7-1
3e000e
- Upstream release.
3e000e
3e000e
* Fri Jan 13 2012 David Smith <dsmith@redhat.com> - 1.6-2
3e000e
- Fixed /bin/mktemp require.
3e000e
3e000e
* Mon Jul 25 2011 Stan Cox <scox@redhat.com> - 1.6-1
3e000e
- Upstream release.
3e000e
3e000e
* Mon May 23 2011 Stan Cox <scox@redhat.com> - 1.5-1
3e000e
- Upstream release.
3e000e
3e000e
* Mon Jan 17 2011 Frank Ch. Eigler <fche@redhat.com> - 1.4-1
3e000e
- Upstream release.
3e000e
3e000e
* Wed Jul 21 2010 Josh Stone <jistone@redhat.com> - 1.3-1
3e000e
- Upstream release.
3e000e
3e000e
* Mon Mar 22 2010 Frank Ch. Eigler <fche@redhat.com> - 1.2-1
3e000e
- Upstream release.
3e000e
3e000e
* Mon Dec 21 2009 David Smith <dsmith@redhat.com> - 1.1-1
3e000e
- Upstream release.
3e000e
3e000e
* Tue Sep 22 2009 Josh Stone <jistone@redhat.com> - 1.0-1
3e000e
- Upstream release.
3e000e
3e000e
* Tue Aug  4 2009 Josh Stone <jistone@redhat.com> - 0.9.9-1
3e000e
- Upstream release.
3e000e
3e000e
* Thu Jun 11 2009 Josh Stone <jistone@redhat.com> - 0.9.8-1
3e000e
- Upstream release.
3e000e
3e000e
* Thu Apr 23 2009 Josh Stone <jistone@redhat.com> - 0.9.7-1
3e000e
- Upstream release.
3e000e
3e000e
* Fri Mar 27 2009 Josh Stone <jistone@redhat.com> - 0.9.5-1
3e000e
- Upstream release.
3e000e
3e000e
* Wed Mar 18 2009 Will Cohen <wcohen@redhat.com> - 0.9-2
3e000e
- Add location of man pages.
3e000e
3e000e
* Tue Feb 17 2009 Frank Ch. Eigler <fche@redhat.com> - 0.9-1
3e000e
- Upstream release.
3e000e
3e000e
* Thu Nov 13 2008 Frank Ch. Eigler <fche@redhat.com> - 0.8-1
3e000e
- Upstream release.
3e000e
3e000e
* Tue Jul 15 2008 Frank Ch. Eigler <fche@redhat.com> - 0.7-1
3e000e
- Upstream release.
3e000e
3e000e
* Fri Feb  1 2008 Frank Ch. Eigler <fche@redhat.com> - 0.6.1-3
3e000e
- Add zlib-devel to buildreq; missing from crash-devel
3e000e
- Process testsuite .stp files for #!stap->#!/usr/bin/stap
3e000e
3e000e
* Fri Jan 18 2008 Frank Ch. Eigler <fche@redhat.com> - 0.6.1-1
3e000e
- Add crash-devel buildreq to build staplog.so crash(8) module.
3e000e
- Many robustness & functionality improvements:
3e000e
3e000e
* Wed Dec  5 2007 Will Cohen <wcohen@redhat.com> - 0.6-2
3e000e
- Correct Source to point to location contain code.
3e000e
3e000e
* Thu Aug  9 2007 David Smith <dsmith@redhat.com> - 0.6-1
3e000e
- Bumped version, added libcap-devel BuildRequires.
3e000e
3e000e
* Wed Jul 11 2007 Will Cohen <wcohen@redhat.com> - 0.5.14-2
3e000e
- Fix Requires and BuildRequires for sqlite.
3e000e
3e000e
* Mon Jul  2 2007 Frank Ch. Eigler <fche@redhat.com> - 0.5.14-1
3e000e
- Many robustness improvements: 1117, 1134, 1305, 1307, 1570, 1806,
3e000e
  2033, 2116, 2224, 2339, 2341, 2406, 2426, 2438, 2583, 3037,
3e000e
  3261, 3282, 3331, 3428 3519, 3545, 3625, 3648, 3880, 3888, 3911,
3e000e
  3952, 3965, 4066, 4071, 4075, 4078, 4081, 4096, 4119, 4122, 4127,
3e000e
  4146, 4171, 4179, 4183, 4221, 4224, 4254, 4281, 4319, 4323, 4326,
3e000e
  4329, 4332, 4337, 4415, 4432, 4444, 4445, 4458, 4467, 4470, 4471,
3e000e
  4518, 4567, 4570, 4579, 4589, 4609, 4664
3e000e
3e000e
* Mon Mar 26 2007 Frank Ch. Eigler <fche@redhat.com> - 0.5.13-1
3e000e
- An emergency / preliminary refresh, mainly for compatibility
3e000e
  with 2.6.21-pre kernels.
3e000e
3e000e
* Mon Jan  1 2007 Frank Ch. Eigler <fche@redhat.com> - 0.5.12-1
3e000e
- Many changes, see NEWS file.
3e000e
3e000e
* Tue Sep 26 2006 David Smith <dsmith@redhat.com> - 0.5.10-1
3e000e
- Added 'systemtap-runtime' subpackage.
3e000e
3e000e
* Wed Jul 19 2006 Roland McGrath <roland@redhat.com> - 0.5.9-1
3e000e
- PRs 2669, 2913
3e000e
3e000e
* Fri Jun 16 2006 Roland McGrath <roland@redhat.com> - 0.5.8-1
3e000e
- PRs 2627, 2520, 2228, 2645
3e000e
3e000e
* Fri May  5 2006 Frank Ch. Eigler <fche@redhat.com> - 0.5.7-1
3e000e
- PRs 2511 2453 2307 1813 1944 2497 2538 2476 2568 1341 2058 2220 2437
3e000e
  1326 2014 2599 2427 2438 2465 1930 2149 2610 2293 2634 2506 2433
3e000e
3e000e
* Tue Apr  4 2006 Roland McGrath <roland@redhat.com> - 0.5.5-1
3e000e
- Many changes, affected PRs include: 2068, 2293, 1989, 2334,
3e000e
  1304, 2390, 2425, 953.
3e000e
3e000e
* Wed Feb  1 2006 Frank Ch. Eigler <fche@redhat.com> - 0.5.4-1
3e000e
- PRs 1916, 2205, 2142, 2060, 1379
3e000e
3e000e
* Mon Jan 16 2006 Roland McGrath <roland@redhat.com> - 0.5.3-1
3e000e
- Many changes, affected PRs include: 2056, 1144, 1379, 2057,
3e000e
  2060, 1972, 2140, 2148
3e000e
3e000e
* Mon Dec 19 2005 Roland McGrath <roland@redhat.com> - 0.5.2-1
3e000e
- Fixed build with gcc 4.1, various tapset changes.
3e000e
3e000e
* Wed Dec  7 2005 Roland McGrath <roland@redhat.com> - 0.5.1-1
3e000e
- elfutils update, build changes
3e000e
3e000e
* Fri Dec 02 2005  Frank Ch. Eigler  <fche@redhat.com> - 0.5-1
3e000e
- Many fixes and improvements: 1425, 1536, 1505, 1380, 1329, 1828, 1271,
3e000e
  1339, 1340, 1345, 1837, 1917, 1903, 1336, 1868, 1594, 1564, 1276, 1295
3e000e
3e000e
* Mon Oct 31 2005 Roland McGrath <roland@redhat.com> - 0.4.2-1
3e000e
- Many fixes and improvements: PRs 1344, 1260, 1330, 1295, 1311, 1368,
3e000e
  1182, 1131, 1332, 1366, 1456, 1271, 1338, 1482, 1477, 1194.
3e000e
3e000e
* Wed Sep 14 2005 Roland McGrath <roland@redhat.com> - 0.4.1-1
3e000e
- Many fixes and improvements since 0.2.2; relevant PRs include:
3e000e
  1122, 1134, 1155, 1172, 1174, 1175, 1180, 1186, 1187, 1191, 1193, 1195,
3e000e
  1197, 1205, 1206, 1209, 1213, 1244, 1257, 1258, 1260, 1265, 1268, 1270,
3e000e
  1289, 1292, 1306, 1335, 1257
3e000e
3e000e
* Wed Sep  7 2005 Frank Ch. Eigler <fche@redhat.com>
3e000e
- Bump version.
3e000e
3e000e
* Tue Aug 16 2005 Frank Ch. Eigler <fche@redhat.com>
3e000e
- Bump version.
3e000e
3e000e
* Wed Aug  3 2005 Martin Hunt <hunt@redhat.com> - 0.2.2-1
3e000e
- Add directory /var/cache/systemtap
3e000e
- Add stp_check to /usr/libexec/systemtap
3e000e
3e000e
* Wed Aug  3 2005 Roland McGrath <roland@redhat.com> - 0.2.1-1
3e000e
- New version 0.2.1, various fixes.
3e000e
3e000e
* Fri Jul 29 2005 Roland McGrath <roland@redhat.com> - 0.2-1
3e000e
- New version 0.2, requires elfutils 0.111
3e000e
3e000e
* Mon Jul 25 2005 Roland McGrath <roland@redhat.com>
3e000e
- Clean up spec file, build bundled elfutils.
3e000e
3e000e
* Thu Jul 21 2005 Martin Hunt <hunt@redhat.com>
3e000e
- Set Version to use version from autoconf.
3e000e
- Fix up some of the path names.
3e000e
- Add Requires and BuildRequires.
3e000e
3e000e
* Tue Jul 19 2005 Will Cohen <wcohen@redhat.com>
3e000e
- Initial creation of RPM.