Blame SPECS/systemtap.spec

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