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
|
|
|
#
|
2011-02-18 01:53:03 +01:00
|
|
|
# Copyright (c) 2011 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-03-14 17:58:07 +01:00
|
|
|
|
2007-01-10 01:58:04 +01:00
|
|
|
Name: systemtap
|
2007-10-22 17:52:18 +02:00
|
|
|
BuildRequires: gcc-c++ glib2-devel libcap-devel libebl-devel pkg-config sqlite-devel
|
2009-06-20 01:28:16 +02:00
|
|
|
BuildRequires: mozilla-nspr-devel mozilla-nss-devel mozilla-nss-tools
|
2009-05-08 17:11:33 +02:00
|
|
|
%define use_snapshot 0
|
2010-02-19 16:14:51 +01:00
|
|
|
License: GPLv2+
|
2011-02-18 01:53:03 +01:00
|
|
|
Version: 1.4
|
2011-06-08 09:08:50 +02:00
|
|
|
Release: 8
|
2009-07-23 16:26:04 +02:00
|
|
|
Summary: Instrumentation System
|
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/
|
2007-01-10 01:58:04 +01:00
|
|
|
# Requires: kernel-source gcc make
|
|
|
|
# Suggest: kernel-smp-debuginfo
|
2009-05-08 17:11:33 +02:00
|
|
|
%if %use_snapshot
|
|
|
|
%define package_version 20090214
|
|
|
|
%else
|
|
|
|
%define package_version %{version}
|
|
|
|
%endif
|
2010-03-12 01:39:20 +01:00
|
|
|
Source: ftp://sources.redhat.com/pub/systemtap/snapshots/systemtap-%{package_version}.tar.bz2
|
2011-08-19 10:40:34 +02:00
|
|
|
Source2: README-BEFORE-ADDING-PATCHES
|
|
|
|
Source3: stap-server.conf
|
2010-07-21 15:53:52 +02:00
|
|
|
# need -docdir patch even though docs are packaged by systemtap-docs.spec
|
|
|
|
# so that they are installed into directories matching below rm -rf's
|
|
|
|
Patch1: systemtap-docdir-fix.diff
|
2011-03-16 16:58:07 +01:00
|
|
|
Patch2: 0001-adding-ifdef-CLONE_STOPPED-to-stop-module-compilati.patch
|
2011-05-02 20:32:56 +02:00
|
|
|
# PATCH-FIX-UPSTREAM systemtap-1.4-gcc46.patch idoenmez@suse.de -- Fix compilation with gcc 4.6
|
|
|
|
Patch3: systemtap-1.4-gcc46.patch
|
2010-07-21 15:53:52 +02:00
|
|
|
|
2008-12-16 17:49:03 +01:00
|
|
|
Requires: libebl1
|
2009-05-20 12:03:04 +02:00
|
|
|
Requires: %{name}-runtime = %{version}-%{release}
|
2007-01-10 01:58:04 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
SystemTap is an instrumentation system for systems running Linux 2.6.
|
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
|
2010-02-19 16:14:51 +01:00
|
|
|
License: GPLv2+
|
2009-05-20 12:03:04 +02:00
|
|
|
Group: Development/Tools/Debuggers
|
|
|
|
Summary: Runtime environment for systemtap
|
|
|
|
|
|
|
|
%description runtime
|
|
|
|
SystemTap is an instrumentation system for systems running Linux 2.6.
|
|
|
|
This package contains the runtime environment for systemtap programs.
|
|
|
|
|
|
|
|
%package client
|
2010-02-19 16:14:51 +01:00
|
|
|
License: GPLv2+
|
2009-05-20 12:03:04 +02:00
|
|
|
Group: Development/Tools/Debuggers
|
|
|
|
Summary: Systemtap client
|
|
|
|
Requires: %{name}-runtime = %{version}-%{release}
|
2010-07-21 15:53:52 +02:00
|
|
|
# dependancies for systemtap shell scripts
|
|
|
|
Requires: coreutils avahi avahi-utils mozilla-nss-tools zip unzip
|
2009-05-20 12:03:04 +02:00
|
|
|
|
|
|
|
%description client
|
|
|
|
SystemTap is an instrumentation system for systems running Linux 2.6.
|
|
|
|
This package contains the client component for systemtap.
|
|
|
|
|
|
|
|
%package server
|
2010-02-19 16:14:51 +01:00
|
|
|
License: GPLv2+
|
2009-05-20 12:03:04 +02:00
|
|
|
Group: Development/Tools/Debuggers
|
|
|
|
Summary: Systemtap server
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2010-07-21 15:53:52 +02:00
|
|
|
# dependancies for systemtap shell scripts
|
|
|
|
Requires: coreutils avahi avahi-utils mozilla-nss-tools zip unzip
|
2009-05-20 12:03:04 +02:00
|
|
|
|
|
|
|
%description server
|
|
|
|
SystemTap is an instrumentation system for systems running Linux 2.6.
|
|
|
|
This package contains the server component of systemtap.
|
|
|
|
|
|
|
|
%package sdt-devel
|
2010-02-19 16:14:51 +01:00
|
|
|
License: GPLv2+
|
2009-05-20 12:03:04 +02:00
|
|
|
Group: Development/Tools/Debuggers
|
|
|
|
Summary: Static probe support tools
|
|
|
|
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
|
|
|
|
SystemTap is an instrumentation system for systems running Linux 2.6.
|
|
|
|
This package contains the support tools for static probes.
|
|
|
|
|
2007-01-10 01:58:04 +01:00
|
|
|
%prep
|
2009-05-08 17:11:33 +02:00
|
|
|
%if %use_snapshot
|
2007-05-21 18:48:08 +02:00
|
|
|
%setup -n src -q
|
2009-05-08 17:11:33 +02:00
|
|
|
%else
|
|
|
|
%setup -n %{name}-%{package_version} -q
|
|
|
|
%endif
|
2010-07-21 15:53:52 +02:00
|
|
|
%patch1 -p1
|
2011-03-16 16:58:07 +01:00
|
|
|
%patch2 -p1
|
2011-05-02 20:32:56 +02:00
|
|
|
%patch3 -p1
|
2007-01-10 01:58:04 +01:00
|
|
|
|
|
|
|
%build
|
2008-08-14 02:38:19 +02:00
|
|
|
autoreconf -fi
|
2008-12-15 15:08:38 +01:00
|
|
|
%configure
|
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
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
%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
|
|
|
|
2009-05-20 12:03:04 +02:00
|
|
|
%files runtime
|
|
|
|
%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-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
|
|
|
%{_bindir}/stap-authorize-signing-cert
|
|
|
|
%dir %{_libexecdir}/%{name}
|
|
|
|
%{_libexecdir}/%{name}/stapio
|
|
|
|
%{_libexecdir}/%{name}/stap-env
|
|
|
|
%{_libexecdir}/%{name}/stap-authorize-cert
|
|
|
|
%{_mandir}/man8/staprun.8*
|
|
|
|
%{_mandir}/man8/stap-authorize-signing-cert.8*
|
2009-05-20 12:03:04 +02:00
|
|
|
|
|
|
|
%files client
|
|
|
|
%defattr(-,root,root)
|
2010-07-21 15:53:52 +02:00
|
|
|
%defattr(-,root,root)
|
2009-05-20 12:03:04 +02:00
|
|
|
%{_bindir}/stap-client
|
2010-07-21 15:53:52 +02:00
|
|
|
%{_bindir}/stap-authorize-server-cert
|
|
|
|
%{_libexecdir}/%{name}/stap-find-servers
|
|
|
|
%{_libexecdir}/%{name}/stap-client-connect
|
|
|
|
%{_mandir}/man8/stap-client.8*
|
|
|
|
%{_mandir}/man8/stap-authorize-server-cert.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
|
2010-07-21 15:53:52 +02:00
|
|
|
%{_bindir}/stap-authorize-server-cert
|
2009-05-20 12:03:04 +02:00
|
|
|
%{_bindir}/stap-server
|
2010-07-21 15:53:52 +02:00
|
|
|
%{_libexecdir}/%{name}/stap-serverd
|
|
|
|
%{_libexecdir}/%{name}/stap-start-server
|
|
|
|
%{_libexecdir}/%{name}/stap-find-servers
|
|
|
|
%{_libexecdir}/%{name}/stap-find-or-start-server
|
|
|
|
%{_libexecdir}/%{name}/stap-stop-server
|
|
|
|
%{_libexecdir}/%{name}/stap-gen-cert
|
|
|
|
%{_libexecdir}/%{name}/stap-server-connect
|
|
|
|
%{_libexecdir}/%{name}/stap-sign-module
|
|
|
|
%{_mandir}/man8/stap-server.8*
|
|
|
|
%{_mandir}/man8/stap-authorize-server-cert.8*
|
|
|
|
%ghost %{_localstatedir}/log/stap-server.log
|
2011-08-19 10:40:34 +02:00
|
|
|
%ghost %dir %{_localstatedir}/run/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
|