Blame SPECS/systemtap.spec

c1029b
%{!?with_sqlite: %global with_sqlite 1}
c1029b
%{!?with_docs: %global with_docs 1}
c1029b
# crash is not available
c1029b
%ifarch ppc ppc64 %{sparc} aarch64 s390 s390x
c1029b
%{!?with_crash: %global with_crash 0}
c1029b
%else
c1029b
%{!?with_crash: %global with_crash 1}
c1029b
%endif
c1029b
%{!?with_rpm: %global with_rpm 1}
c1029b
%{!?with_bundled_elfutils: %global with_bundled_elfutils 0}
c1029b
%{!?elfutils_version: %global elfutils_version 0.142}
c1029b
%{!?pie_supported: %global pie_supported 1}
c1029b
%{!?with_boost: %global with_boost 0}
c1029b
%ifarch ppc ppc64 %{sparc} aarch64
c1029b
%{!?with_publican: %global with_publican 0}
c1029b
%else
c1029b
%{!?with_publican: %global with_publican 1}
c1029b
%endif
c1029b
%if 0%{?rhel}
c1029b
%{!?publican_brand: %global publican_brand RedHat}
c1029b
%else
c1029b
%{!?publican_brand: %global publican_brand fedora}
c1029b
%endif
c1029b
%ifnarch s390 s390x %{arm} aarch64
c1029b
%{!?with_dyninst: %global with_dyninst 0%{?fedora} >= 18 || 0%{?rhel} >= 7}
c1029b
%else
c1029b
%{!?with_dyninst: %global with_dyninst 0}
c1029b
%endif
c1029b
%{!?with_systemd: %global with_systemd 0%{?fedora} >= 19 || 0%{?rhel} >= 7}
c1029b
%{!?with_emacsvim: %global with_emacsvim 1}
c1029b
%{!?with_java: %global with_java 1}
c1029b
# don't want to build runtime-virthost for f18 or RHEL5/6
c1029b
%{!?with_virthost: %global with_virthost 0%{?fedora} >= 19 || 0%{?rhel} >= 7}
c1029b
%{!?with_virtguest: %global with_virtguest 1}
c1029b
c1029b
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 6
c1029b
   %define initdir %{_initddir}
c1029b
%else # RHEL5 doesn't know _initddir
c1029b
   %define initdir %{_initrddir}
c1029b
%endif
c1029b
c1029b
%if %{with_virtguest}
c1029b
   %if 0%{?fedora} >= 18 || 0%{?rhel} >= 6
c1029b
      %define udevrulesdir /lib/udev/rules.d
c1029b
   %else
c1029b
      %define udevrulesdir /etc/udev/rules.d
c1029b
   %endif
c1029b
%endif
c1029b
c1029b
Name: systemtap
c1029b
Version: 2.4
c1029b
Release: 1%{?dist}
c1029b
# for version, see also configure.ac
c1029b
c1029b
c1029b
# Packaging abstract:
c1029b
#
c1029b
# systemtap              empty req:-client req:-devel
c1029b
# systemtap-server       /usr/bin/stap-server*, req:-devel
c1029b
# systemtap-devel        /usr/bin/stap, runtime, tapset, req:kernel-devel
c1029b
# systemtap-runtime      /usr/bin/staprun, /usr/bin/stapsh, /usr/bin/stapdyn
c1029b
# systemtap-client       /usr/bin/stap, samples, docs, tapset(bonus), req:-runtime
c1029b
# systemtap-initscript   /etc/init.d/systemtap, req:systemtap
c1029b
# systemtap-sdt-devel    /usr/include/sys/sdt.h /usr/bin/dtrace
c1029b
# systemtap-testsuite    /usr/share/systemtap/testsuite*, req:systemtap, req:sdt-devel
c1029b
# systemtap-runtime-java libHelperSDT.so, HelperSDT.jar, stapbm, req:-runtime
c1029b
# systemtap-runtime-virthost  /usr/bin/stapvirt, req:libvirt req:libxml2
c1029b
# systemtap-runtime-virtguest udev rules, init scripts/systemd service, req:-runtime
c1029b
#
c1029b
# Typical scenarios:
c1029b
#
c1029b
# stap-client:           systemtap-client
c1029b
# stap-server:           systemtap-server
c1029b
# local user:            systemtap
c1029b
#
c1029b
# Unusual scenarios:
c1029b
#
c1029b
# intermediary stap-client for --remote:       systemtap-client (-runtime unused)
c1029b
# intermediary stap-server for --use-server:   systemtap-server (-devel unused)
c1029b
c1029b
Summary: Programmable system-wide instrumentation system
c1029b
Group: Development/System
c1029b
License: GPLv2+
c1029b
URL: http://sourceware.org/systemtap/
c1029b
Source: ftp://sourceware.org/pub/systemtap/releases/systemtap-%{version}.tar.gz
c1029b
c1029b
# Build*
c1029b
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c1029b
BuildRequires: gcc-c++
c1029b
BuildRequires: gettext-devel
c1029b
BuildRequires: nss-devel avahi-devel pkgconfig
c1029b
%if %{with_dyninst}
c1029b
BuildRequires: dyninst-devel >= 8.0
c1029b
BuildRequires: libselinux-devel
c1029b
%endif
c1029b
%if %{with_sqlite}
c1029b
BuildRequires: sqlite-devel
c1029b
%endif
c1029b
# Needed for libstd++ < 4.0, without <tr1/memory>
c1029b
%if %{with_boost}
c1029b
BuildRequires: boost-devel
c1029b
%endif
c1029b
%if %{with_crash}
c1029b
BuildRequires: crash-devel zlib-devel
c1029b
%endif
c1029b
%if %{with_rpm}
c1029b
BuildRequires: rpm-devel glibc-headers
c1029b
%endif
c1029b
%if %{with_bundled_elfutils}
c1029b
Source1: elfutils-%{elfutils_version}.tar.gz
c1029b
Patch1: elfutils-portability.patch
c1029b
BuildRequires: m4
c1029b
%global setup_elfutils -a1
c1029b
%else
c1029b
BuildRequires: elfutils-devel >= %{elfutils_version}
c1029b
%endif
c1029b
%if %{with_docs}
c1029b
BuildRequires: /usr/bin/latex /usr/bin/dvips /usr/bin/ps2pdf latex2html
c1029b
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
c1029b
BuildRequires: tex(fullpage.sty) tex(fancybox.sty) tex(bchr7t.tfm)
c1029b
%endif
c1029b
# On F10, xmlto's pdf support was broken off into a sub-package,
c1029b
# called 'xmlto-tex'.  To avoid a specific F10 BuildReq, we'll do a
c1029b
# file-based buildreq on '/usr/share/xmlto/format/fo/pdf'.
c1029b
BuildRequires: xmlto /usr/share/xmlto/format/fo/pdf
c1029b
%if %{with_publican}
c1029b
BuildRequires: publican
c1029b
BuildRequires: /usr/share/publican/Common_Content/%{publican_brand}/defaults.cfg
c1029b
c1029b
# A workaround for BZ920216 which requires an X server to build docs
c1029b
# with publican.
c1029b
BuildRequires: /usr/bin/xvfb-run
c1029b
%endif
c1029b
%endif
c1029b
%if %{with_emacsvim}
c1029b
BuildRequires: emacs
c1029b
%endif
c1029b
%if %{with_java}
c1029b
BuildRequires: jpackage-utils java-devel
c1029b
%endif
c1029b
%if %{with_virthost}
c1029b
BuildRequires: libvirt-devel >= 1.0.2
c1029b
BuildRequires: libxml2-devel
c1029b
%endif
c1029b
c1029b
# Install requirements
c1029b
Requires: systemtap-client = %{version}-%{release}
c1029b
Requires: systemtap-devel = %{version}-%{release}
c1029b
c1029b
%description
c1029b
SystemTap is an instrumentation system for systems running Linux.
c1029b
Developers can write instrumentation scripts to collect data on
c1029b
the operation of the system.  The base systemtap package contains/requires
c1029b
the components needed to locally develop and execute systemtap scripts.
c1029b
c1029b
# ------------------------------------------------------------------------
c1029b
c1029b
%package server
c1029b
Summary: Instrumentation System Server
c1029b
Group: Development/System
c1029b
License: GPLv2+
c1029b
URL: http://sourceware.org/systemtap/
c1029b
Requires: systemtap-devel = %{version}-%{release}
c1029b
# On RHEL[45], /bin/mktemp comes from the 'mktemp' package.  On newer
c1029b
# distributions, /bin/mktemp comes from the 'coreutils' package.  To
c1029b
# avoid a specific RHEL[45] Requires, we'll do a file-based require.
c1029b
Requires: nss /bin/mktemp
c1029b
Requires: zip unzip
c1029b
Requires(pre): shadow-utils
c1029b
Requires(post): chkconfig
c1029b
Requires(preun): chkconfig
c1029b
Requires(preun): initscripts
c1029b
Requires(postun): initscripts
c1029b
BuildRequires: nss-devel avahi-devel
c1029b
c1029b
%description server
c1029b
This is the remote script compilation server component of systemtap.
c1029b
It announces itself to nearby clients with avahi (if available), and
c1029b
compiles systemtap scripts to kernel objects on their demand.
c1029b
c1029b
c1029b
%package devel
c1029b
Summary: Programmable system-wide instrumentation system - development headers, tools
c1029b
Group: Development/System
c1029b
License: GPLv2+
c1029b
URL: http://sourceware.org/systemtap/
c1029b
Requires: kernel >= 2.6.9-11
c1029b
# Alternate kernel packages kernel-PAE-devel et al. have a virtual
c1029b
# provide for kernel-devel, so this requirement does the right thing,
c1029b
# at least past RHEL4.
c1029b
Requires: kernel-devel
c1029b
Requires: gcc make
c1029b
# Suggest: kernel-debuginfo
c1029b
c1029b
%description devel
c1029b
This package contains the components needed to compile a systemtap
c1029b
script from source form into executable (.ko) forms.  It may be
c1029b
installed on a self-contained developer workstation (along with the
c1029b
systemtap-client and systemtap-runtime packages), or on a dedicated
c1029b
remote server (alongside the systemtap-server package).  It includes
c1029b
a copy of the standard tapset library and the runtime library C files.
c1029b
c1029b
c1029b
%package runtime
c1029b
Summary: Programmable system-wide instrumentation system - runtime
c1029b
Group: Development/System
c1029b
License: GPLv2+
c1029b
URL: http://sourceware.org/systemtap/
c1029b
Requires: kernel >= 2.6.9-11
c1029b
Requires(pre): shadow-utils
c1029b
c1029b
%description runtime
c1029b
SystemTap runtime contains the components needed to execute
c1029b
a systemtap script that was already compiled into a module
c1029b
using a local or remote systemtap-devel installation.
c1029b
c1029b
c1029b
%package client
c1029b
Summary: Programmable system-wide instrumentation system - client
c1029b
Group: Development/System
c1029b
License: GPLv2+
c1029b
URL: http://sourceware.org/systemtap/
c1029b
Requires: zip unzip
c1029b
Requires: systemtap-runtime = %{version}-%{release}
c1029b
Requires: coreutils grep sed unzip zip
c1029b
Requires: openssh-clients
c1029b
c1029b
%description client
c1029b
This package contains/requires the components needed to develop
c1029b
systemtap scripts, and compile them using a local systemtap-devel
c1029b
or a remote systemtap-server installation, then run them using a
c1029b
local or remote systemtap-runtime.  It includes script samples and
c1029b
documentation, and a copy of the tapset library for reference.
c1029b
c1029b
c1029b
%package initscript
c1029b
Summary: Systemtap Initscripts
c1029b
Group: Development/System
c1029b
License: GPLv2+
c1029b
URL: http://sourceware.org/systemtap/
c1029b
Requires: systemtap = %{version}-%{release}
c1029b
Requires(post): chkconfig
c1029b
Requires(preun): chkconfig
c1029b
Requires(preun): initscripts
c1029b
Requires(postun): initscripts
c1029b
c1029b
%description initscript
c1029b
Sysvinit scripts to launch selected systemtap scripts at system startup.
c1029b
c1029b
c1029b
%package sdt-devel
c1029b
Summary: Static probe support tools
c1029b
Group: Development/System
c1029b
License: GPLv2+ and Public Domain
c1029b
URL: http://sourceware.org/systemtap/
c1029b
c1029b
%description sdt-devel
c1029b
This package includes the <sys/sdt.h> header file used for static
c1029b
instrumentation compiled into userspace programs and libraries, along
c1029b
with the optional dtrace-compatibility preprocessor to process related
c1029b
.d files into tracing-macro-laden .h headers.
c1029b
c1029b
c1029b
%package testsuite
c1029b
Summary: Instrumentation System Testsuite
c1029b
Group: Development/System
c1029b
License: GPLv2+
c1029b
URL: http://sourceware.org/systemtap/
c1029b
Requires: systemtap = %{version}-%{release}
c1029b
Requires: systemtap-sdt-devel = %{version}-%{release}
c1029b
Requires: systemtap-server = %{version}-%{release}
c1029b
Requires: dejagnu which elfutils grep nc
c1029b
Requires: gcc gcc-c++ make glibc-devel
c1029b
# testsuite/systemtap.base/ptrace.exp needs strace
c1029b
Requires: strace
c1029b
# testsuite/systemtap.base/ipaddr.exp needs nc. Unfortunately, the rpm
c1029b
# that provides nc has changed over time (from 'nc' to
c1029b
# 'nmap-ncat'). So, we'll do a file-based require.
c1029b
Requires: /usr/bin/nc
c1029b
%ifnarch ia64
c1029b
Requires: prelink
c1029b
%endif
c1029b
# testsuite/systemtap.server/client.exp needs avahi
c1029b
Requires: avahi
c1029b
%if %{with_crash}
c1029b
# testsuite/systemtap.base/crash.exp needs crash
c1029b
Requires: crash
c1029b
%endif
c1029b
%if %{with_java}
c1029b
Requires: systemtap-runtime-java = %{version}-%{release}
c1029b
%endif
c1029b
%ifarch x86_64
c1029b
Requires: /usr/lib/libc.so
c1029b
# ... and /usr/lib/libgcc_s.so.*
c1029b
# ... and /usr/lib/libstdc++.so.*
c1029b
%endif
c1029b
c1029b
%description testsuite
c1029b
This package includes the dejagnu-based systemtap stress self-testing
c1029b
suite.  This may be used by system administrators to thoroughly check
c1029b
systemtap on the current system.
c1029b
c1029b
c1029b
%if %{with_java}
c1029b
%package runtime-java
c1029b
Summary: Systemtap Java Runtime Support
c1029b
Group: Development/System
c1029b
License: GPLv2+
c1029b
URL: http://sourceware.org/systemtap/
c1029b
Requires: systemtap-runtime = %{version}-%{release}
c1029b
Requires: byteman > 2.0
c1029b
c1029b
%description runtime-java
c1029b
This package includes support files needed to run systemtap scripts
c1029b
that probe Java processes running on the OpenJDK 1.6 and OpenJDK 1.7
c1029b
runtimes using Byteman.
c1029b
%endif
c1029b
c1029b
%if %{with_virthost}
c1029b
%package runtime-virthost
c1029b
Summary: Systemtap Cross-VM Instrumentation - host
c1029b
Group: Development/System
c1029b
License: GPLv2+
c1029b
URL: http://sourceware.org/systemtap/
c1029b
Requires: libvirt >= 1.0.2
c1029b
Requires: libxml2
c1029b
c1029b
%description runtime-virthost
c1029b
This package includes the components required to run systemtap scripts
c1029b
inside a libvirt-managed domain from the host without using a network
c1029b
connection.
c1029b
%endif
c1029b
c1029b
%if %{with_virtguest}
c1029b
%package runtime-virtguest
c1029b
Summary: Systemtap Cross-VM Instrumentation - guest
c1029b
Group: Development/System
c1029b
License: GPLv2+
c1029b
URL: http://sourceware.org/systemtap/
c1029b
Requires: systemtap-runtime = %{version}-%{release}
c1029b
%if %{with_systemd}
c1029b
Requires(post): findutils coreutils
c1029b
Requires(preun): grep coreutils
c1029b
Requires(postun): grep coreutils
c1029b
%else
c1029b
Requires(post): chkconfig initscripts
c1029b
Requires(preun): chkconfig initscripts
c1029b
Requires(postun): initscripts
c1029b
%endif
c1029b
c1029b
%description runtime-virtguest
c1029b
This package installs the services necessary on a virtual machine for a
c1029b
systemtap-runtime-virthost machine to execute systemtap scripts.
c1029b
%endif
c1029b
c1029b
# ------------------------------------------------------------------------
c1029b
c1029b
%prep
c1029b
%setup -q %{?setup_elfutils}
c1029b
c1029b
%if %{with_bundled_elfutils}
c1029b
cd elfutils-%{elfutils_version}
c1029b
%patch1 -p1
c1029b
sleep 1
c1029b
find . \( -name Makefile.in -o -name aclocal.m4 \) -print | xargs touch
c1029b
sleep 1
c1029b
find . \( -name configure -o -name config.h.in \) -print | xargs touch
c1029b
cd ..
c1029b
%endif
c1029b
c1029b
%build
c1029b
c1029b
%if %{with_bundled_elfutils}
c1029b
# Build our own copy of elfutils.
c1029b
%global elfutils_config --with-elfutils=elfutils-%{elfutils_version}
c1029b
c1029b
# We have to prevent the standard dependency generation from identifying
c1029b
# our private elfutils libraries in our provides and requires.
c1029b
%global _use_internal_dependency_generator	0
c1029b
%global filter_eulibs() /bin/sh -c "%{1} | sed '/libelf/d;/libdw/d;/libebl/d'"
c1029b
%global __find_provides %{filter_eulibs /usr/lib/rpm/find-provides}
c1029b
%global __find_requires %{filter_eulibs /usr/lib/rpm/find-requires}
c1029b
c1029b
# This will be needed for running stap when not installed, for the test suite.
c1029b
%global elfutils_mflags LD_LIBRARY_PATH=`pwd`/lib-elfutils
c1029b
%endif
c1029b
c1029b
# Enable/disable the dyninst pure-userspace backend
c1029b
%if %{with_dyninst}
c1029b
%global dyninst_config --with-dyninst
c1029b
%else
c1029b
%global dyninst_config --without-dyninst
c1029b
%endif
c1029b
c1029b
# Enable/disable the sqlite coverage testing support
c1029b
%if %{with_sqlite}
c1029b
%global sqlite_config --enable-sqlite
c1029b
%else
c1029b
%global sqlite_config --disable-sqlite
c1029b
%endif
c1029b
c1029b
# Enable/disable the crash extension
c1029b
%if %{with_crash}
c1029b
%global crash_config --enable-crash
c1029b
%else
c1029b
%global crash_config --disable-crash
c1029b
%endif
c1029b
c1029b
# Enable/disable the code to find and suggest needed rpms
c1029b
%if %{with_rpm}
c1029b
%global rpm_config --with-rpm
c1029b
%else
c1029b
%global rpm_config --without-rpm
c1029b
%endif
c1029b
c1029b
%if %{with_docs}
c1029b
%global docs_config --enable-docs
c1029b
%else
c1029b
%global docs_config --disable-docs
c1029b
%endif
c1029b
c1029b
# Enable pie as configure defaults to disabling it
c1029b
%if %{pie_supported}
c1029b
%global pie_config --enable-pie
c1029b
%else
c1029b
%global pie_config --disable-pie
c1029b
%endif
c1029b
c1029b
%if %{with_publican}
c1029b
%global publican_config --enable-publican --with-publican-brand=%{publican_brand}
c1029b
%else
c1029b
%global publican_config --disable-publican
c1029b
%endif
c1029b
c1029b
%if %{with_java}
c1029b
%global java_config --with-java=%{_jvmdir}/java
c1029b
%else
c1029b
%global java_config --without-java
c1029b
%endif
c1029b
c1029b
%configure %{?elfutils_config} %{dyninst_config} %{sqlite_config} %{crash_config} %{docs_config} %{pie_config} %{publican_config} %{rpm_config} %{java_config} --disable-silent-rules --with-extra-version="rpm %{version}-%{release}"
c1029b
make %{?_smp_mflags}
c1029b
c1029b
%if %{with_emacsvim}
c1029b
%{_emacs_bytecompile} emacs/systemtap-mode.el
c1029b
%endif
c1029b
c1029b
%install
c1029b
rm -rf ${RPM_BUILD_ROOT}
c1029b
make DESTDIR=$RPM_BUILD_ROOT install
c1029b
%find_lang %{name}
c1029b
c1029b
# We want the examples in the special doc dir, not the build install dir.
c1029b
# We build it in place and then move it away so it doesn't get installed
c1029b
# twice. rpm can specify itself where the (versioned) docs go with the
c1029b
# %doc directive.
c1029b
mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/examples examples
c1029b
c1029b
# Fix paths in the example & testsuite scripts
c1029b
find examples testsuite -type f -name '*.stp' -print0 | xargs -0 sed -i -r -e '1s@^#!.+stap@#!%{_bindir}/stap@'
c1029b
c1029b
# To make rpmlint happy, remove any .gitignore files in the testsuite.
c1029b
find testsuite -type f -name '.gitignore' -print0 | xargs -0 rm -f
c1029b
c1029b
# Because "make install" may install staprun with whatever mode, the
c1029b
# post-processing programs rpmbuild runs won't be able to read it.
c1029b
# So, we change permissions so that they can read it.  We'll set the
c1029b
# permissions back to 04110 in the %files section below.
c1029b
chmod 755 $RPM_BUILD_ROOT%{_bindir}/staprun
c1029b
c1029b
#install the useful stap-prep script
c1029b
install -c -m 755 stap-prep $RPM_BUILD_ROOT%{_bindir}/stap-prep
c1029b
c1029b
# Copy over the testsuite
c1029b
cp -rp testsuite $RPM_BUILD_ROOT%{_datadir}/systemtap
c1029b
c1029b
%if %{with_docs}
c1029b
# We want the manuals in the special doc dir, not the generic doc install dir.
c1029b
# We build it in place and then move it away so it doesn't get installed
c1029b
# twice. rpm can specify itself where the (versioned) docs go with the
c1029b
# %doc directive.
c1029b
mkdir docs.installed
c1029b
mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/*.pdf docs.installed/
c1029b
mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/tapsets docs.installed/
c1029b
%if %{with_publican}
c1029b
mv $RPM_BUILD_ROOT%{_datadir}/doc/systemtap/SystemTap_Beginners_Guide docs.installed/
c1029b
%endif
c1029b
%endif
c1029b
c1029b
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/stap-server
c1029b
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/stap-server
c1029b
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/stap-server/.systemtap
c1029b
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/stap-server
c1029b
touch $RPM_BUILD_ROOT%{_localstatedir}/log/stap-server/log
c1029b
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/systemtap
c1029b
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/systemtap
c1029b
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
c1029b
install -m 644 initscript/logrotate.stap-server $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/stap-server
c1029b
mkdir -p $RPM_BUILD_ROOT%{initdir}
c1029b
install -m 755 initscript/systemtap $RPM_BUILD_ROOT%{initdir}
c1029b
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap
c1029b
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/conf.d
c1029b
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/script.d
c1029b
install -m 644 initscript/config.systemtap $RPM_BUILD_ROOT%{_sysconfdir}/systemtap/config
c1029b
%if %{with_systemd}
c1029b
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
c1029b
touch $RPM_BUILD_ROOT%{_unitdir}/stap-server.service
c1029b
install -m 644 stap-server.service $RPM_BUILD_ROOT%{_unitdir}/stap-server.service
c1029b
mkdir -p $RPM_BUILD_ROOT%{_tmpfilesdir}
c1029b
install -m 644 stap-server.conf $RPM_BUILD_ROOT%{_tmpfilesdir}/stap-server.conf
c1029b
%else
c1029b
install -m 755 initscript/stap-server $RPM_BUILD_ROOT%{initdir}
c1029b
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/stap-server/conf.d
c1029b
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
c1029b
install -m 644 initscript/config.stap-server $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/stap-server
c1029b
%endif
c1029b
c1029b
%if %{with_emacsvim}
c1029b
mkdir -p $RPM_BUILD_ROOT%{_emacs_sitelispdir}
c1029b
install -p -m 644 emacs/systemtap-mode.el* $RPM_BUILD_ROOT%{_emacs_sitelispdir}
c1029b
mkdir -p $RPM_BUILD_ROOT%{_emacs_sitestartdir}
c1029b
install -p -m 644 emacs/systemtap-init.el $RPM_BUILD_ROOT%{_emacs_sitestartdir}/systemtap-init.el
c1029b
for subdir in ftdetect ftplugin indent syntax
c1029b
do
c1029b
    mkdir -p $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/$subdir
c1029b
    install -p -m 644 vim/$subdir/*.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/$subdir
c1029b
done
c1029b
%endif
c1029b
c1029b
%if %{with_virtguest}
c1029b
   mkdir -p $RPM_BUILD_ROOT%{udevrulesdir}
c1029b
   %if %{with_systemd}
c1029b
      install -p -m 644 staprun/guest/99-stapsh.rules $RPM_BUILD_ROOT%{udevrulesdir}
c1029b
      mkdir -p $RPM_BUILD_ROOT%{_unitdir}
c1029b
      install -p -m 644 staprun/guest/stapsh@.service $RPM_BUILD_ROOT%{_unitdir}
c1029b
   %else
c1029b
      install -p -m 644 staprun/guest/99-stapsh-init.rules $RPM_BUILD_ROOT%{udevrulesdir}
c1029b
      install -p -m 755 staprun/guest/stapshd $RPM_BUILD_ROOT%{initdir}
c1029b
      mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/systemtap
c1029b
      install -p -m 755 staprun/guest/stapsh-daemon $RPM_BUILD_ROOT%{_libexecdir}/systemtap
c1029b
      mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/modules
c1029b
      # Technically, this is only needed for RHEL5, in which the MODULE_ALIAS is missing, but
c1029b
      # it does no harm in RHEL6 as well
c1029b
      install -p -m 755 staprun/guest/virtio_console.modules $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/modules
c1029b
   %endif
c1029b
%endif
c1029b
c1029b
%clean
c1029b
rm -rf ${RPM_BUILD_ROOT}
c1029b
c1029b
%pre runtime
c1029b
getent group stapusr >/dev/null || groupadd -g 156 -r stapusr 2>/dev/null || groupadd -r stapusr
c1029b
getent group stapsys >/dev/null || groupadd -g 157 -r stapsys 2>/dev/null || groupadd -r stapsys
c1029b
getent group stapdev >/dev/null || groupadd -g 158 -r stapdev 2>/dev/null || groupadd -r stapdev
c1029b
exit 0
c1029b
c1029b
%pre server
c1029b
getent group stap-server >/dev/null || groupadd -g 155 -r stap-server 2>/dev/null || groupadd -r stap-server
c1029b
getent passwd stap-server >/dev/null || \
c1029b
  useradd -c "Systemtap Compile Server" -u 155 -g stap-server -d %{_localstatedir}/lib/stap-server -r -s /sbin/nologin stap-server 2>/dev/null || \
c1029b
  useradd -c "Systemtap Compile Server" -g stap-server -d %{_localstatedir}/lib/stap-server -r -s /sbin/nologin stap-server
c1029b
c1029b
%post server
c1029b
c1029b
# We have some duplication between the %files listings for the
c1029b
# ~stap-server directories and the explicit mkdir/chown/chmod bits
c1029b
# here.  Part of the reason may be that a preexisting stap-server
c1029b
# account may well be placed somewhere other than
c1029b
# %{_localstatedir}/lib/stap-server, but we'd like their permissions
c1029b
# set similarly.
c1029b
c1029b
test -e ~stap-server && chmod 750 ~stap-server
c1029b
c1029b
if [ ! -f ~stap-server/.systemtap/rc ]; then
c1029b
  mkdir -p ~stap-server/.systemtap
c1029b
  chown stap-server:stap-server ~stap-server/.systemtap
c1029b
  echo "--rlimit-as=614400000 --rlimit-cpu=60 --rlimit-nproc=20 --rlimit-stack=1024000 --rlimit-fsize=51200000" > ~stap-server/.systemtap/rc
c1029b
  chown stap-server:stap-server ~stap-server/.systemtap/rc
c1029b
fi
c1029b
c1029b
test -e %{_localstatedir}/log/stap-server/log || {
c1029b
     touch %{_localstatedir}/log/stap-server/log
c1029b
     chmod 644 %{_localstatedir}/log/stap-server/log
c1029b
     chown stap-server:stap-server %{_localstatedir}/log/stap-server/log
c1029b
}
c1029b
# If it does not already exist, as stap-server, generate the certificate
c1029b
# used for signing and for ssl.
c1029b
if test ! -e ~stap-server/.systemtap/ssl/server/stap.cert; then
c1029b
   runuser -s /bin/sh - stap-server -c %{_libexecdir}/systemtap/stap-gen-cert >/dev/null
c1029b
fi
c1029b
# Activate the service
c1029b
%if %{with_systemd}
c1029b
     /bin/systemctl enable stap-server.service >/dev/null 2>&1 || :
c1029b
     /bin/systemd-tmpfiles --create >/dev/null 2>&1 || :
c1029b
%else
c1029b
    /sbin/chkconfig --add stap-server
c1029b
%endif
c1029b
exit 0
c1029b
c1029b
%triggerin client -- systemtap-server
c1029b
if test -e ~stap-server/.systemtap/ssl/server/stap.cert; then
c1029b
   # echo Authorizing ssl-peer/trusted-signer certificate for local systemtap-server
c1029b
   %{_libexecdir}/systemtap/stap-authorize-cert ~stap-server/.systemtap/ssl/server/stap.cert %{_sysconfdir}/systemtap/ssl/client >/dev/null
c1029b
   %{_libexecdir}/systemtap/stap-authorize-cert ~stap-server/.systemtap/ssl/server/stap.cert %{_sysconfdir}/systemtap/staprun >/dev/null
c1029b
fi
c1029b
exit 0
c1029b
# XXX: corresponding %triggerun?
c1029b
c1029b
%preun server
c1029b
# Check that this is the actual deinstallation of the package, as opposed to
c1029b
# just removing the old package on upgrade.
c1029b
if [ $1 = 0 ] ; then
c1029b
    %if %{with_systemd}
c1029b
       /bin/systemctl --no-reload disable stap-server.service >/dev/null 2>&1 || :
c1029b
       /bin/systemctl stop stap-server.service >/dev/null 2>&1 || :
c1029b
    %else
c1029b
        /sbin/service stap-server stop >/dev/null 2>&1
c1029b
    	/sbin/chkconfig --del stap-server
c1029b
    %endif
c1029b
fi
c1029b
exit 0
c1029b
c1029b
%postun server
c1029b
# Check whether this is an upgrade of the package.
c1029b
# If so, restart the service if it's running
c1029b
if [ "$1" -ge "1" ] ; then
c1029b
    %if %{with_systemd}
c1029b
    	/bin/systemctl restart stap-server.service >/dev/null 2>&1 || :
c1029b
    %else
c1029b
        /sbin/service stap-server condrestart >/dev/null 2>&1 || :
c1029b
    %endif
c1029b
fi
c1029b
exit 0
c1029b
c1029b
%post initscript
c1029b
%if %{with_systemd}
c1029b
    /bin/systemctl enable stap-server.service >/dev/null 2>&1 || :
c1029b
     /bin/systemd-tmpfiles --create >/dev/null 2>&1 || :
c1029b
%else
c1029b
    /sbin/chkconfig --add systemtap
c1029b
%endif
c1029b
exit 0
c1029b
c1029b
%preun initscript
c1029b
# Check that this is the actual deinstallation of the package, as opposed to
c1029b
# just removing the old package on upgrade.
c1029b
if [ $1 = 0 ] ; then
c1029b
    %if %{with_systemd}
c1029b
    	/bin/systemctl --no-reload disable stap-server.service >/dev/null 2>&1 || :
c1029b
	/bin/systemctl stop stap-server.service >/dev/null 2>&1 || :
c1029b
    %else
c1029b
        /sbin/service systemtap stop >/dev/null 2>&1
c1029b
    	/sbin/chkconfig --del systemtap
c1029b
    %endif
c1029b
fi
c1029b
exit 0
c1029b
c1029b
%postun initscript
c1029b
# Check whether this is an upgrade of the package.
c1029b
# If so, restart the service if it's running
c1029b
if [ "$1" -ge "1" ] ; then
c1029b
    %if %{with_systemd}
c1029b
        /bin/systemctl restart stap-server.service >/dev/null 2>&1 || :
c1029b
    %else
c1029b
        /sbin/service systemtap condrestart >/dev/null 2>&1 || :
c1029b
    %endif
c1029b
fi
c1029b
exit 0
c1029b
c1029b
%post runtime-virtguest
c1029b
%if %{with_systemd}
c1029b
   # Start services if there are ports present
c1029b
   if [ -d /dev/virtio-ports ]; then
c1029b
      (find /dev/virtio-ports -iname 'org.systemtap.stapsh.[0-9]*' -type l \
c1029b
         | xargs -n 1 basename \
c1029b
         | xargs -n 1 -I {} /bin/systemctl start stapsh@{}.service) >/dev/null 2>&1 || :
c1029b
   fi
c1029b
%else
c1029b
   /sbin/chkconfig --add stapshd
c1029b
   /sbin/chkconfig stapshd on
c1029b
   /sbin/service stapshd start >/dev/null 2>&1 || :
c1029b
%endif
c1029b
exit 0
c1029b
c1029b
%preun runtime-virtguest
c1029b
# Stop service if this is an uninstall rather than an upgrade
c1029b
if [ $1 = 0 ]; then
c1029b
   %if %{with_systemd}
c1029b
      # We need to stop all stapsh services. Because they are instantiated from
c1029b
      # a template service file, we can't simply call disable. We need to find
c1029b
      # all the running ones and stop them all individually
c1029b
      for service in `/bin/systemctl --full | grep stapsh@ | cut -d ' ' -f 1`; do
c1029b
         /bin/systemctl stop $service >/dev/null 2>&1 || :
c1029b
      done
c1029b
   %else
c1029b
      /sbin/service stapshd stop >/dev/null 2>&1
c1029b
      /sbin/chkconfig --del stapshd
c1029b
   %endif
c1029b
fi
c1029b
exit 0
c1029b
c1029b
%postun runtime-virtguest
c1029b
# Restart service if this is an upgrade rather than an uninstall
c1029b
if [ "$1" -ge "1" ]; then
c1029b
   %if %{with_systemd}
c1029b
      # We need to restart all stapsh services. Because they are instantiated from
c1029b
      # a template service file, we can't simply call restart. We need to find
c1029b
      # all the running ones and restart them all individually
c1029b
      for service in `/bin/systemctl --full | grep stapsh@ | cut -d ' ' -f 1`; do
c1029b
         /bin/systemctl condrestart $service >/dev/null 2>&1 || :
c1029b
      done
c1029b
   %else
c1029b
      /sbin/service stapshd condrestart >/dev/null 2>&1
c1029b
   %endif
c1029b
fi
c1029b
exit 0
c1029b
c1029b
%post
c1029b
# Remove any previously-built uprobes.ko materials
c1029b
(make -C %{_datadir}/systemtap/runtime/uprobes clean) >/dev/null 2>&1 || true
c1029b
(/sbin/rmmod uprobes) >/dev/null 2>&1 || true
c1029b
c1029b
%preun
c1029b
# Ditto
c1029b
(make -C %{_datadir}/systemtap/runtime/uprobes clean) >/dev/null 2>&1 || true
c1029b
(/sbin/rmmod uprobes) >/dev/null 2>&1 || true
c1029b
c1029b
# ------------------------------------------------------------------------
c1029b
c1029b
%if %{with_java}
c1029b
c1029b
%triggerin runtime-java -- java-1.7.0-openjdk, java-1.6.0-openjdk
c1029b
for f in %{_libexecdir}/systemtap/libHelperSDT_*.so; do
c1029b
    %ifarch %{ix86} ppc64
c1029b
        %ifarch ppc64
c1029b
            arch=ppc64
c1029b
	%else
c1029b
	    arch=i386
c1029b
	%endif
c1029b
    %else
c1029b
        arch=`basename $f | cut -f2 -d_ | cut -f1 -d.`
c1029b
    %endif
c1029b
    for archdir in %{_jvmdir}/*openjdk*/jre/lib/${arch}; do
c1029b
        ln -sf %{_libexecdir}/systemtap/libHelperSDT_${arch}.so ${archdir}/libHelperSDT_${arch}.so
c1029b
        ln -sf %{_libexecdir}/systemtap/HelperSDT.jar ${archdir}/../ext/HelperSDT.jar
c1029b
    done
c1029b
done
c1029b
c1029b
%triggerun runtime-java -- java-1.7.0-openjdk, java-1.6.0-openjdk
c1029b
for f in %{_libexecdir}/systemtap/libHelperSDT_*.so; do
c1029b
    %ifarch %{ix86} ppc64
c1029b
        %ifarch ppc64
c1029b
            arch=ppc64
c1029b
	%else
c1029b
	    arch=i386
c1029b
	%endif
c1029b
    %else
c1029b
        arch=`basename $f | cut -f2 -d_ | cut -f1 -d.`
c1029b
    %endif
c1029b
    for archdir in %{_jvmdir}/*openjdk*/jre/lib/${arch}; do
c1029b
        rm -f ${archdir}/libHelperSDT_${arch}.so
c1029b
        rm -f ${archdir}/../ext/HelperSDT.jar
c1029b
    done
c1029b
done
c1029b
c1029b
%triggerpostun runtime-java -- java-1.7.0-openjdk, java-1.6.0-openjdk
c1029b
# Restore links for any JDKs remaining after a package removal:
c1029b
for f in %{_libexecdir}/systemtap/libHelperSDT_*.so; do
c1029b
    %ifarch %{ix86} ppc64
c1029b
        %ifarch ppc64
c1029b
            arch=ppc64
c1029b
	%else
c1029b
	    arch=i386
c1029b
	%endif
c1029b
    %else
c1029b
        arch=`basename $f | cut -f2 -d_ | cut -f1 -d.`
c1029b
    %endif
c1029b
    for archdir in %{_jvmdir}/*openjdk*/jre/lib/${arch}; do
c1029b
        ln -sf %{_libexecdir}/systemtap/libHelperSDT_${arch}.so ${archdir}/libHelperSDT_${arch}.so
c1029b
        ln -sf %{_libexecdir}/systemtap/HelperSDT.jar ${archdir}/../ext/HelperSDT.jar
c1029b
    done
c1029b
done
c1029b
c1029b
# XXX: analogous support for other types of JRE/JDK??
c1029b
c1029b
%endif
c1029b
c1029b
# ------------------------------------------------------------------------
c1029b
c1029b
%files -f systemtap.lang
c1029b
# The master "systemtap" rpm doesn't include any files.
c1029b
c1029b
%files server -f systemtap.lang
c1029b
%defattr(-,root,root)
c1029b
%{_bindir}/stap-server
c1029b
%dir %{_libexecdir}/systemtap
c1029b
%{_libexecdir}/systemtap/stap-serverd
c1029b
%{_libexecdir}/systemtap/stap-start-server
c1029b
%{_libexecdir}/systemtap/stap-stop-server
c1029b
%{_libexecdir}/systemtap/stap-gen-cert
c1029b
%{_libexecdir}/systemtap/stap-sign-module
c1029b
%{_libexecdir}/systemtap/stap-authorize-cert
c1029b
%{_libexecdir}/systemtap/stap-env
c1029b
%{_mandir}/man7/error*
c1029b
%{_mandir}/man7/stappaths.7*
c1029b
%{_mandir}/man7/warning*
c1029b
%{_mandir}/man8/stap-server.8*
c1029b
%if %{with_systemd}
c1029b
%{_unitdir}/stap-server.service
c1029b
%{_tmpfilesdir}/stap-server.conf
c1029b
%else
c1029b
%{initdir}/stap-server
c1029b
%dir %{_sysconfdir}/stap-server/conf.d
c1029b
%config(noreplace) %{_sysconfdir}/sysconfig/stap-server
c1029b
%endif
c1029b
%config(noreplace) %{_sysconfdir}/logrotate.d/stap-server
c1029b
%dir %{_sysconfdir}/stap-server
c1029b
%dir %attr(0750,stap-server,stap-server) %{_localstatedir}/lib/stap-server
c1029b
%dir %attr(0700,stap-server,stap-server) %{_localstatedir}/lib/stap-server/.systemtap
c1029b
%dir %attr(0755,stap-server,stap-server) %{_localstatedir}/log/stap-server
c1029b
%ghost %config(noreplace) %attr(0644,stap-server,stap-server) %{_localstatedir}/log/stap-server/log
c1029b
%ghost %attr(0755,stap-server,stap-server) %{_localstatedir}/run/stap-server
c1029b
%doc initscript/README.stap-server
c1029b
%doc README README.unprivileged AUTHORS NEWS COPYING
c1029b
c1029b
c1029b
%files devel -f systemtap.lang
c1029b
%{_bindir}/stap
c1029b
%{_bindir}/stap-prep
c1029b
%{_bindir}/stap-report
c1029b
%dir %{_datadir}/systemtap
c1029b
%{_datadir}/systemtap/runtime
c1029b
%{_datadir}/systemtap/tapset
c1029b
%{_mandir}/man1/stap.1*
c1029b
%{_mandir}/man1/stap-prep.1*
c1029b
%{_mandir}/man1/stap-report.1*
c1029b
%{_mandir}/man7/error*
c1029b
%{_mandir}/man7/stappaths.7*
c1029b
%{_mandir}/man7/warning*
c1029b
%doc README README.unprivileged AUTHORS NEWS COPYING
c1029b
%if %{with_java}
c1029b
%dir %{_libexecdir}/systemtap
c1029b
%{_libexecdir}/systemtap/libHelperSDT_*.so
c1029b
%endif
c1029b
%if %{with_bundled_elfutils}
c1029b
%dir %{_libdir}/systemtap
c1029b
%{_libdir}/systemtap/lib*.so*
c1029b
%endif
c1029b
%if %{with_emacsvim}
c1029b
%{_emacs_sitelispdir}/*.el*
c1029b
%{_emacs_sitestartdir}/systemtap-init.el
c1029b
%{_datadir}/vim/vimfiles/*/*.vim
c1029b
%endif
c1029b
c1029b
c1029b
%files runtime -f systemtap.lang
c1029b
%defattr(-,root,root)
c1029b
%attr(4110,root,stapusr) %{_bindir}/staprun
c1029b
%{_bindir}/stapsh
c1029b
%{_bindir}/stap-merge
c1029b
%{_bindir}/stap-report
c1029b
%if %{with_dyninst}
c1029b
%{_bindir}/stapdyn
c1029b
%endif
c1029b
%dir %{_libexecdir}/systemtap
c1029b
%{_libexecdir}/systemtap/stapio
c1029b
%{_libexecdir}/systemtap/stap-authorize-cert
c1029b
%if %{with_crash}
c1029b
%dir %{_libdir}/systemtap
c1029b
%{_libdir}/systemtap/staplog.so*
c1029b
%endif
c1029b
%{_mandir}/man1/stap-report.1*
c1029b
%{_mandir}/man7/error*
c1029b
%{_mandir}/man7/stappaths.7*
c1029b
%{_mandir}/man7/warning*
c1029b
%{_mandir}/man8/stapsh.8*
c1029b
%{_mandir}/man8/staprun.8*
c1029b
%if %{with_dyninst}
c1029b
%{_mandir}/man8/stapdyn.8*
c1029b
%endif
c1029b
%doc README README.security AUTHORS NEWS COPYING
c1029b
c1029b
c1029b
%files client -f systemtap.lang
c1029b
%defattr(-,root,root)
c1029b
%doc README README.unprivileged AUTHORS NEWS COPYING examples
c1029b
%if %{with_docs}
c1029b
%doc docs.installed/*.pdf
c1029b
%doc docs.installed/tapsets/*.html
c1029b
%if %{with_publican}
c1029b
%doc docs.installed/SystemTap_Beginners_Guide
c1029b
%endif
c1029b
%endif
c1029b
%{_bindir}/stap
c1029b
%{_bindir}/stap-prep
c1029b
%{_bindir}/stap-report
c1029b
%{_mandir}/man1/stap.1*
c1029b
%{_mandir}/man1/stap-prep.1*
c1029b
%{_mandir}/man1/stap-merge.1*
c1029b
%{_mandir}/man1/stap-report.1*
c1029b
%{_mandir}/man3/*
c1029b
%{_mandir}/man7/error*
c1029b
%{_mandir}/man7/stappaths.7*
c1029b
%{_mandir}/man7/warning*
c1029b
%dir %{_datadir}/systemtap
c1029b
%{_datadir}/systemtap/tapset
c1029b
c1029b
c1029b
c1029b
%files initscript
c1029b
%defattr(-,root,root)
c1029b
%{initdir}/systemtap
c1029b
%dir %{_sysconfdir}/systemtap
c1029b
%dir %{_sysconfdir}/systemtap/conf.d
c1029b
%dir %{_sysconfdir}/systemtap/script.d
c1029b
%config(noreplace) %{_sysconfdir}/systemtap/config
c1029b
%dir %{_localstatedir}/cache/systemtap
c1029b
%ghost %{_localstatedir}/run/systemtap
c1029b
%doc initscript/README.systemtap
c1029b
c1029b
c1029b
%files sdt-devel
c1029b
%defattr(-,root,root)
c1029b
%{_bindir}/dtrace
c1029b
%{_includedir}/sys/sdt.h
c1029b
%{_includedir}/sys/sdt-config.h
c1029b
%{_mandir}/man1/dtrace.1*
c1029b
%doc README AUTHORS NEWS COPYING
c1029b
c1029b
c1029b
%files testsuite
c1029b
%defattr(-,root,root)
c1029b
%dir %{_datadir}/systemtap
c1029b
%{_datadir}/systemtap/testsuite
c1029b
c1029b
c1029b
%if %{with_java}
c1029b
%files runtime-java
c1029b
%dir %{_libexecdir}/systemtap
c1029b
%{_libexecdir}/systemtap/libHelperSDT_*.so
c1029b
%{_libexecdir}/systemtap/HelperSDT.jar
c1029b
%{_libexecdir}/systemtap/stapbm
c1029b
%endif
c1029b
c1029b
%if %{with_virthost}
c1029b
%files runtime-virthost
c1029b
%{_mandir}/man1/stapvirt.1*
c1029b
%{_bindir}/stapvirt
c1029b
%endif
c1029b
c1029b
%if %{with_virtguest}
c1029b
%files runtime-virtguest
c1029b
%if %{with_systemd}
c1029b
   %{udevrulesdir}/99-stapsh.rules
c1029b
   %{_unitdir}/stapsh@.service
c1029b
%else
c1029b
   %{udevrulesdir}/99-stapsh-init.rules
c1029b
   %dir %{_libexecdir}/systemtap
c1029b
   %{_libexecdir}/systemtap/stapsh-daemon
c1029b
   %{initdir}/stapshd
c1029b
   %{_sysconfdir}/sysconfig/modules/virtio_console.modules
c1029b
%endif
c1029b
%endif
c1029b
c1029b
# ------------------------------------------------------------------------
c1029b
c1029b
# Future new-release entries should be of the form
c1029b
# * DDD MMM DD YYYY YOURNAME <YOUREMAIL> - V-R
c1029b
# - Upstream release, see wiki page below for detailed notes.
c1029b
#   http://sourceware.org/systemtap/wiki/SystemTapReleases
c1029b
c1029b
%changelog
c1029b
* Wed Nov 06 2013 Frank Ch. Eigler <fche@redhat.com> - 2.4-1
c1029b
- Upstream release.
c1029b
c1029b
* Wed Oct 09 2013 Jonathan Lebon <jlebon@redhat.com>
c1029b
- Added runtime-virthost and runtime-virtguest packages.
c1029b
c1029b
* Thu Jul 25 2013 Frank Ch. Eigler <fche@redhat.com> - 2.3-1
c1029b
- Upstream release.
c1029b
c1029b
* Thu May 16 2013 Frank Ch. Eigler <fche@redhat.com> - 2.2.1-1
c1029b
- Upstream release.
c1029b
c1029b
* Tue May 14 2013 Frank Ch. Eigler <fche@redhat.com> - 2.2-1
c1029b
- Upstream release.
c1029b
c1029b
* Wed Feb 13 2013 Serguei Makarov <smakarov@redhat.com> - 2.1-1
c1029b
- Upstream release.
c1029b
c1029b
* Tue Oct 09 2012 Josh Stone <jistone@redhat.com> - 2.0-1
c1029b
- Upstream release.
c1029b
c1029b
* Fri Jul 13 2012 Peter Robinson <pbrobinson@fedoraproject.org>
c1029b
- Fix ifarch statement
c1029b
- use file based requires for glibc-devel on x86_64 so that we work in koji
c1029b
c1029b
* Sun Jun 17 2012 Frank Ch. Eigler <fche@redhat.com> - 1.8-1
c1029b
- Upstream release.
c1029b
c1029b
* Wed Feb 01 2012 Frank Ch. Eigler <fche@redhat.com> - 1.7-1
c1029b
- Upstream release.
c1029b
c1029b
* Fri Jan 13 2012 David Smith <dsmith@redhat.com> - 1.6-2
c1029b
- Fixed /bin/mktemp require.
c1029b
c1029b
* Mon Jul 25 2011 Stan Cox <scox@redhat.com> - 1.6-1
c1029b
- Upstream release.
c1029b
c1029b
* Mon May 23 2011 Stan Cox <scox@redhat.com> - 1.5-1
c1029b
- Upstream release.
c1029b
c1029b
* Mon Jan 17 2011 Frank Ch. Eigler <fche@redhat.com> - 1.4-1
c1029b
- Upstream release.
c1029b
c1029b
* Wed Jul 21 2010 Josh Stone <jistone@redhat.com> - 1.3-1
c1029b
- Upstream release.
c1029b
c1029b
* Mon Mar 22 2010 Frank Ch. Eigler <fche@redhat.com> - 1.2-1
c1029b
- Upstream release.
c1029b
c1029b
* Mon Dec 21 2009 David Smith <dsmith@redhat.com> - 1.1-1
c1029b
- Upstream release.
c1029b
c1029b
* Tue Sep 22 2009 Josh Stone <jistone@redhat.com> - 1.0-1
c1029b
- Upstream release.
c1029b
c1029b
* Tue Aug  4 2009 Josh Stone <jistone@redhat.com> - 0.9.9-1
c1029b
- Upstream release.
c1029b
c1029b
* Thu Jun 11 2009 Josh Stone <jistone@redhat.com> - 0.9.8-1
c1029b
- Upstream release.
c1029b
c1029b
* Thu Apr 23 2009 Josh Stone <jistone@redhat.com> - 0.9.7-1
c1029b
- Upstream release.
c1029b
c1029b
* Fri Mar 27 2009 Josh Stone <jistone@redhat.com> - 0.9.5-1
c1029b
- Upstream release.
c1029b
c1029b
* Wed Mar 18 2009 Will Cohen <wcohen@redhat.com> - 0.9-2
c1029b
- Add location of man pages.
c1029b
c1029b
* Tue Feb 17 2009 Frank Ch. Eigler <fche@redhat.com> - 0.9-1
c1029b
- Upstream release.
c1029b
c1029b
* Thu Nov 13 2008 Frank Ch. Eigler <fche@redhat.com> - 0.8-1
c1029b
- Upstream release.
c1029b
c1029b
* Tue Jul 15 2008 Frank Ch. Eigler <fche@redhat.com> - 0.7-1
c1029b
- Upstream release.
c1029b
c1029b
* Fri Feb  1 2008 Frank Ch. Eigler <fche@redhat.com> - 0.6.1-3
c1029b
- Add zlib-devel to buildreq; missing from crash-devel
c1029b
- Process testsuite .stp files for #!stap->#!/usr/bin/stap
c1029b
c1029b
* Fri Jan 18 2008 Frank Ch. Eigler <fche@redhat.com> - 0.6.1-1
c1029b
- Add crash-devel buildreq to build staplog.so crash(8) module.
c1029b
- Many robustness & functionality improvements:
c1029b
c1029b
* Wed Dec  5 2007 Will Cohen <wcohen@redhat.com> - 0.6-2
c1029b
- Correct Source to point to location contain code.
c1029b
c1029b
* Thu Aug  9 2007 David Smith <dsmith@redhat.com> - 0.6-1
c1029b
- Bumped version, added libcap-devel BuildRequires.
c1029b
c1029b
* Wed Jul 11 2007 Will Cohen <wcohen@redhat.com> - 0.5.14-2
c1029b
- Fix Requires and BuildRequires for sqlite.
c1029b
c1029b
* Mon Jul  2 2007 Frank Ch. Eigler <fche@redhat.com> - 0.5.14-1
c1029b
- Many robustness improvements: 1117, 1134, 1305, 1307, 1570, 1806,
c1029b
  2033, 2116, 2224, 2339, 2341, 2406, 2426, 2438, 2583, 3037,
c1029b
  3261, 3282, 3331, 3428 3519, 3545, 3625, 3648, 3880, 3888, 3911,
c1029b
  3952, 3965, 4066, 4071, 4075, 4078, 4081, 4096, 4119, 4122, 4127,
c1029b
  4146, 4171, 4179, 4183, 4221, 4224, 4254, 4281, 4319, 4323, 4326,
c1029b
  4329, 4332, 4337, 4415, 4432, 4444, 4445, 4458, 4467, 4470, 4471,
c1029b
  4518, 4567, 4570, 4579, 4589, 4609, 4664
c1029b
c1029b
* Mon Mar 26 2007 Frank Ch. Eigler <fche@redhat.com> - 0.5.13-1
c1029b
- An emergency / preliminary refresh, mainly for compatibility
c1029b
  with 2.6.21-pre kernels.
c1029b
c1029b
* Mon Jan  1 2007 Frank Ch. Eigler <fche@redhat.com> - 0.5.12-1
c1029b
- Many changes, see NEWS file.
c1029b
c1029b
* Tue Sep 26 2006 David Smith <dsmith@redhat.com> - 0.5.10-1
c1029b
- Added 'systemtap-runtime' subpackage.
c1029b
c1029b
* Wed Jul 19 2006 Roland McGrath <roland@redhat.com> - 0.5.9-1
c1029b
- PRs 2669, 2913
c1029b
c1029b
* Fri Jun 16 2006 Roland McGrath <roland@redhat.com> - 0.5.8-1
c1029b
- PRs 2627, 2520, 2228, 2645
c1029b
c1029b
* Fri May  5 2006 Frank Ch. Eigler <fche@redhat.com> - 0.5.7-1
c1029b
- PRs 2511 2453 2307 1813 1944 2497 2538 2476 2568 1341 2058 2220 2437
c1029b
  1326 2014 2599 2427 2438 2465 1930 2149 2610 2293 2634 2506 2433
c1029b
c1029b
* Tue Apr  4 2006 Roland McGrath <roland@redhat.com> - 0.5.5-1
c1029b
- Many changes, affected PRs include: 2068, 2293, 1989, 2334,
c1029b
  1304, 2390, 2425, 953.
c1029b
c1029b
* Wed Feb  1 2006 Frank Ch. Eigler <fche@redhat.com> - 0.5.4-1
c1029b
- PRs 1916, 2205, 2142, 2060, 1379
c1029b
c1029b
* Mon Jan 16 2006 Roland McGrath <roland@redhat.com> - 0.5.3-1
c1029b
- Many changes, affected PRs include: 2056, 1144, 1379, 2057,
c1029b
  2060, 1972, 2140, 2148
c1029b
c1029b
* Mon Dec 19 2005 Roland McGrath <roland@redhat.com> - 0.5.2-1
c1029b
- Fixed build with gcc 4.1, various tapset changes.
c1029b
c1029b
* Wed Dec  7 2005 Roland McGrath <roland@redhat.com> - 0.5.1-1
c1029b
- elfutils update, build changes
c1029b
c1029b
* Fri Dec 02 2005  Frank Ch. Eigler  <fche@redhat.com> - 0.5-1
c1029b
- Many fixes and improvements: 1425, 1536, 1505, 1380, 1329, 1828, 1271,
c1029b
  1339, 1340, 1345, 1837, 1917, 1903, 1336, 1868, 1594, 1564, 1276, 1295
c1029b
c1029b
* Mon Oct 31 2005 Roland McGrath <roland@redhat.com> - 0.4.2-1
c1029b
- Many fixes and improvements: PRs 1344, 1260, 1330, 1295, 1311, 1368,
c1029b
  1182, 1131, 1332, 1366, 1456, 1271, 1338, 1482, 1477, 1194.
c1029b
c1029b
* Wed Sep 14 2005 Roland McGrath <roland@redhat.com> - 0.4.1-1
c1029b
- Many fixes and improvements since 0.2.2; relevant PRs include:
c1029b
  1122, 1134, 1155, 1172, 1174, 1175, 1180, 1186, 1187, 1191, 1193, 1195,
c1029b
  1197, 1205, 1206, 1209, 1213, 1244, 1257, 1258, 1260, 1265, 1268, 1270,
c1029b
  1289, 1292, 1306, 1335, 1257
c1029b
c1029b
* Wed Sep  7 2005 Frank Ch. Eigler <fche@redhat.com>
c1029b
- Bump version.
c1029b
c1029b
* Tue Aug 16 2005 Frank Ch. Eigler <fche@redhat.com>
c1029b
- Bump version.
c1029b
c1029b
* Wed Aug  3 2005 Martin Hunt <hunt@redhat.com> - 0.2.2-1
c1029b
- Add directory /var/cache/systemtap
c1029b
- Add stp_check to /usr/libexec/systemtap
c1029b
c1029b
* Wed Aug  3 2005 Roland McGrath <roland@redhat.com> - 0.2.1-1
c1029b
- New version 0.2.1, various fixes.
c1029b
c1029b
* Fri Jul 29 2005 Roland McGrath <roland@redhat.com> - 0.2-1
c1029b
- New version 0.2, requires elfutils 0.111
c1029b
c1029b
* Mon Jul 25 2005 Roland McGrath <roland@redhat.com>
c1029b
- Clean up spec file, build bundled elfutils.
c1029b
c1029b
* Thu Jul 21 2005 Martin Hunt <hunt@redhat.com>
c1029b
- Set Version to use version from autoconf.
c1029b
- Fix up some of the path names.
c1029b
- Add Requires and BuildRequires.
c1029b
c1029b
* Tue Jul 19 2005 Will Cohen <wcohen@redhat.com>
c1029b
- Initial creation of RPM.