Blame SPECS/systemtap.spec

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