Blame SPECS/systemtap.spec

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