Blame SPECS/systemtap.spec

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