2007-01-10 01:58:04 +01:00
|
|
|
#
|
2011-02-18 01:53:03 +01:00
|
|
|
# spec file for package systemtap
|
2007-01-10 01:58:04 +01:00
|
|
|
#
|
2014-05-03 07:56:24 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-10 01:58:04 +01:00
|
|
|
#
|
2008-08-14 02:38:19 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-10 01:58:04 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-03-14 17:58:07 +01:00
|
|
|
|
2007-01-10 01:58:04 +01:00
|
|
|
Name: systemtap
|
2011-12-21 12:21:19 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libebl-devel
|
|
|
|
BuildRequires: mozilla-nspr-devel
|
|
|
|
BuildRequires: mozilla-nss-devel
|
|
|
|
BuildRequires: mozilla-nss-tools
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: sqlite-devel
|
2011-11-24 14:00:00 +01:00
|
|
|
BuildRequires: systemd
|
2014-09-15 22:52:04 +02:00
|
|
|
Version: 2.6
|
2011-12-21 12:21:19 +01:00
|
|
|
Release: 0
|
2009-07-23 16:26:04 +02:00
|
|
|
Summary: Instrumentation System
|
2011-12-21 12:21:19 +01:00
|
|
|
License: GPL-2.0+
|
2007-01-10 01:58:04 +01:00
|
|
|
Group: Development/Tools/Debuggers
|
2007-10-22 17:52:18 +02:00
|
|
|
Url: http://sourceware.org/systemtap/
|
2012-06-19 22:38:49 +02:00
|
|
|
Source: http://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz
|
2011-08-19 10:40:34 +02:00
|
|
|
Source2: README-BEFORE-ADDING-PATCHES
|
|
|
|
Source3: stap-server.conf
|
2013-05-24 04:08:00 +02:00
|
|
|
Patch1: systemtap-build-source-dir.patch
|
2011-11-02 20:17:40 +01:00
|
|
|
Obsoletes: systemtap-client < 1.5
|
2009-05-20 12:03:04 +02:00
|
|
|
Requires: %{name}-runtime = %{version}-%{release}
|
2013-03-01 17:19:47 +01:00
|
|
|
Requires: libebl1
|
2007-01-10 01:58:04 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
2014-05-18 06:48:20 +02:00
|
|
|
%if ! %{defined _rundir}
|
|
|
|
%define _rundir %{_localstatedir}/run
|
|
|
|
%endif
|
|
|
|
|
2007-01-10 01:58:04 +01:00
|
|
|
%description
|
2011-11-02 20:17:40 +01:00
|
|
|
SystemTap is an instrumentation system for systems running Linux.
|
2009-07-23 16:26:04 +02:00
|
|
|
Developers can write instrumentation to collect data on the operation
|
|
|
|
of the system.
|
2007-01-10 01:58:04 +01:00
|
|
|
|
2009-05-20 12:03:04 +02:00
|
|
|
%package runtime
|
|
|
|
Summary: Runtime environment for systemtap
|
2012-01-29 07:34:38 +01:00
|
|
|
Group: Development/Tools/Debuggers
|
2009-05-20 12:03:04 +02:00
|
|
|
|
|
|
|
%description runtime
|
2011-11-02 20:17:40 +01:00
|
|
|
SystemTap is an instrumentation system for systems running Linux.
|
2009-05-20 12:03:04 +02:00
|
|
|
This package contains the runtime environment for systemtap programs.
|
|
|
|
|
|
|
|
%package server
|
|
|
|
Summary: Systemtap server
|
2012-01-29 07:34:38 +01:00
|
|
|
Group: Development/Tools/Debuggers
|
2009-05-20 12:03:04 +02:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2012-10-17 14:55:26 +02:00
|
|
|
# needed for systemd-tmpfiles
|
|
|
|
Requires(post): systemd
|
2010-07-21 15:53:52 +02:00
|
|
|
# dependancies for systemtap shell scripts
|
2012-06-14 22:58:07 +02:00
|
|
|
Requires: avahi
|
|
|
|
Requires: avahi-utils
|
|
|
|
Requires: coreutils
|
|
|
|
Requires: mozilla-nss-tools
|
|
|
|
Requires: unzip
|
|
|
|
Requires: zip
|
2009-05-20 12:03:04 +02:00
|
|
|
|
|
|
|
%description server
|
2011-11-02 20:17:40 +01:00
|
|
|
SystemTap is an instrumentation system for systems running Linux.
|
2009-05-20 12:03:04 +02:00
|
|
|
This package contains the server component of systemtap.
|
|
|
|
|
|
|
|
%package sdt-devel
|
|
|
|
Summary: Static probe support tools
|
2012-01-29 07:34:38 +01:00
|
|
|
Group: Development/Tools/Debuggers
|
2009-05-20 12:03:04 +02:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2010-09-13 21:06:36 +02:00
|
|
|
Requires: python-base
|
2009-05-20 12:03:04 +02:00
|
|
|
|
|
|
|
%description sdt-devel
|
2011-11-02 20:17:40 +01:00
|
|
|
SystemTap is an instrumentation system for systems running Linux.
|
2009-05-20 12:03:04 +02:00
|
|
|
This package contains the support tools for static probes.
|
|
|
|
|
2007-01-10 01:58:04 +01:00
|
|
|
%prep
|
2011-11-02 20:17:40 +01:00
|
|
|
%setup -q
|
2013-01-12 06:43:52 +01:00
|
|
|
%patch1 -p1
|
2007-01-10 01:58:04 +01:00
|
|
|
|
|
|
|
%build
|
2011-11-02 20:17:40 +01:00
|
|
|
%configure --disable-docs --docdir=%{_docdir}/systemtap
|
2008-06-25 23:56:44 +02:00
|
|
|
make %{?jobs:-j %jobs}
|
2007-01-10 01:58:04 +01:00
|
|
|
|
|
|
|
%install
|
2007-06-06 18:18:07 +02:00
|
|
|
%makeinstall
|
2010-07-21 15:53:52 +02:00
|
|
|
# XXX
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/lib/systemtap/stap-server-request
|
|
|
|
# README, AUTHORS, NEWS, man3 and all examples packaged by systemtap-docs
|
|
|
|
# COPYING needs to stay in main for GPL
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_docdir}/systemtap/
|
2009-05-20 14:42:39 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT%{_mandir}/man3
|
2010-07-21 15:53:52 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_docdir}/systemtap/
|
|
|
|
cp COPYING $RPM_BUILD_ROOT%{_docdir}/systemtap/
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/systemtap
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log
|
|
|
|
touch $RPM_BUILD_ROOT%{_localstatedir}/log/stap-server.log
|
2011-08-19 10:40:34 +02:00
|
|
|
# config file for stap-server (/var/run now on tmpfs)
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
|
|
|
|
install -m 644 %SOURCE3 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
|
2007-01-10 01:58:04 +01:00
|
|
|
|
2011-11-02 20:17:40 +01:00
|
|
|
%{find_lang} systemtap
|
|
|
|
|
2007-01-10 01:58:04 +01:00
|
|
|
%clean
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
2011-11-24 14:00:00 +01:00
|
|
|
%post server
|
|
|
|
# Create tmpfiles
|
2012-10-17 14:55:26 +02:00
|
|
|
systemd-tmpfiles --create /usr/lib/tmpfiles.d/stap-server.conf
|
2011-11-24 14:00:00 +01:00
|
|
|
|
2007-01-10 01:58:04 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2009-05-20 12:03:04 +02:00
|
|
|
%{_bindir}/stap
|
2010-09-04 00:57:05 +02:00
|
|
|
%{_mandir}/man[17]/*
|
2010-07-21 15:53:52 +02:00
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%{_datadir}/%{name}/runtime
|
|
|
|
%{_datadir}/%{name}/tapset
|
|
|
|
#packaged by systemtap-initscript in upstream
|
|
|
|
%dir %{_localstatedir}/cache/systemtap
|
2008-01-12 03:27:42 +01:00
|
|
|
|
2011-11-02 20:17:40 +01:00
|
|
|
%files runtime -f systemtap.lang
|
2009-05-20 12:03:04 +02:00
|
|
|
%defattr(-,root,root)
|
2010-07-21 15:53:52 +02:00
|
|
|
%doc %{_docdir}/systemtap
|
2009-05-20 12:03:04 +02:00
|
|
|
%{_bindir}/staprun
|
2011-11-02 20:17:40 +01:00
|
|
|
%{_bindir}/stapsh
|
2011-02-18 01:53:03 +01:00
|
|
|
%{_bindir}/stap-merge
|
2009-05-20 12:03:04 +02:00
|
|
|
%{_bindir}/stap-report
|
2010-07-21 15:53:52 +02:00
|
|
|
%dir %{_libexecdir}/%{name}
|
|
|
|
%{_libexecdir}/%{name}/stapio
|
|
|
|
%{_libexecdir}/%{name}/stap-env
|
|
|
|
%{_libexecdir}/%{name}/stap-authorize-cert
|
|
|
|
%{_mandir}/man8/staprun.8*
|
2014-05-03 07:56:24 +02:00
|
|
|
%{_mandir}/man8/systemtap.8*
|
2013-08-09 00:44:35 +02:00
|
|
|
%{_mandir}/man8/stapsh.8*
|
2009-05-20 12:03:04 +02:00
|
|
|
|
|
|
|
%files server
|
|
|
|
%defattr(-,root,root)
|
2011-08-19 10:40:34 +02:00
|
|
|
%dir /usr/lib/tmpfiles.d
|
|
|
|
/usr/lib/tmpfiles.d/stap-server.conf
|
2009-05-20 12:03:04 +02:00
|
|
|
%{_bindir}/stap-server
|
2011-11-02 20:17:40 +01:00
|
|
|
%{_libexecdir}/%{name}/stap-gen-cert
|
2010-07-21 15:53:52 +02:00
|
|
|
%{_libexecdir}/%{name}/stap-serverd
|
2011-11-02 20:17:40 +01:00
|
|
|
%{_libexecdir}/%{name}/stap-sign-module
|
2010-07-21 15:53:52 +02:00
|
|
|
%{_libexecdir}/%{name}/stap-start-server
|
|
|
|
%{_libexecdir}/%{name}/stap-stop-server
|
|
|
|
%{_mandir}/man8/stap-server.8*
|
|
|
|
%ghost %{_localstatedir}/log/stap-server.log
|
2014-05-18 06:48:20 +02:00
|
|
|
%ghost %dir %{_rundir}/stap-server
|
2009-05-20 12:03:04 +02:00
|
|
|
|
|
|
|
%files sdt-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/dtrace
|
|
|
|
%{_includedir}/sys/*.h
|
|
|
|
|
2007-02-25 23:39:54 +01:00
|
|
|
%changelog
|