2007-01-10 01:58:04 +01:00
|
|
|
#
|
2010-03-12 01:39:20 +01:00
|
|
|
# spec file for package systemtap (Version 1.0)
|
2007-01-10 01:58:04 +01:00
|
|
|
#
|
2009-12-08 02:08:09 +01:00
|
|
|
# Copyright (c) 2009 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+
|
2010-03-12 01:39:20 +01:00
|
|
|
Version: 1.0
|
2009-08-14 00:00:08 +02:00
|
|
|
Release: 1
|
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
|
|
|
|
Patch: systemtap-docdir-fix.diff
|
|
|
|
Patch2: systemtap-ioblock-suse-kernel-fix.diff
|
|
|
|
Patch3: systemtap-CVE-limit-dwarf-expression-stack-size.patch
|
|
|
|
Patch4: systemtap-CVE-limit-printf-arguments.patch
|
|
|
|
Patch5: systemtap-CVE-unwind-table-size-checks.patch
|
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
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Frank Ch. Eigler <fche@redhat.com>
|
|
|
|
Graydon Hoare <graydon@redhat.com>
|
|
|
|
Martin Hunt <hunt@redhat.com>
|
|
|
|
Tom Zanussi <zanussi@us.ibm.com>
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Frank Ch. Eigler <fche@redhat.com>
|
|
|
|
Graydon Hoare <graydon@redhat.com>
|
|
|
|
Martin Hunt <hunt@redhat.com>
|
|
|
|
Tom Zanussi <zanussi@us.ibm.com>
|
|
|
|
|
|
|
|
%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}
|
|
|
|
|
|
|
|
%description client
|
|
|
|
SystemTap is an instrumentation system for systems running Linux 2.6.
|
|
|
|
This package contains the client component for systemtap.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Frank Ch. Eigler <fche@redhat.com>
|
|
|
|
Graydon Hoare <graydon@redhat.com>
|
|
|
|
Martin Hunt <hunt@redhat.com>
|
|
|
|
Tom Zanussi <zanussi@us.ibm.com>
|
|
|
|
|
|
|
|
%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}
|
|
|
|
|
|
|
|
%description server
|
|
|
|
SystemTap is an instrumentation system for systems running Linux 2.6.
|
|
|
|
This package contains the server component of systemtap.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Frank Ch. Eigler <fche@redhat.com>
|
|
|
|
Graydon Hoare <graydon@redhat.com>
|
|
|
|
Martin Hunt <hunt@redhat.com>
|
|
|
|
Tom Zanussi <zanussi@us.ibm.com>
|
|
|
|
|
|
|
|
%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}
|
|
|
|
|
|
|
|
%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
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Frank Ch. Eigler <fche@redhat.com>
|
|
|
|
Graydon Hoare <graydon@redhat.com>
|
|
|
|
Martin Hunt <hunt@redhat.com>
|
|
|
|
Tom Zanussi <zanussi@us.ibm.com>
|
|
|
|
|
|
|
|
%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-03-12 01:39:20 +01:00
|
|
|
%patch -p1
|
2010-02-19 16:14:51 +01:00
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -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
|
2010-03-12 01:39:20 +01:00
|
|
|
%if %suse_version < 1030
|
|
|
|
# workaround for old autoconf
|
|
|
|
export MKDIR_P="mkdir -p"
|
|
|
|
%endif
|
2007-06-06 18:18:07 +02:00
|
|
|
%makeinstall
|
2010-03-12 01:39:20 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/cache/systemtap
|
|
|
|
# doc subpackage is built separetely
|
|
|
|
# cp README AUTHORS NEWS COPYING $RPM_BUILD_ROOT%{_docdir}/systemtap/
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_docdir}/systemtap
|
2009-05-20 14:42:39 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT%{_mandir}/man3
|
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
|
2009-05-20 14:42:39 +02:00
|
|
|
%{_mandir}/man1/*
|
2010-03-12 01:39:20 +01:00
|
|
|
%{_datadir}/systemtap
|
|
|
|
%dir %attr(0755,root,root) /var/cache/systemtap
|
2008-01-12 03:27:42 +01:00
|
|
|
|
2009-05-20 12:03:04 +02:00
|
|
|
%files runtime
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/staprun
|
|
|
|
%{_bindir}/stap-report
|
2010-03-12 01:39:20 +01:00
|
|
|
%{_libexecdir}/systemtap
|
|
|
|
%{_mandir}/man8/staprun.*
|
2009-05-20 12:03:04 +02:00
|
|
|
|
|
|
|
%files client
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/stap-client
|
2010-03-12 01:39:20 +01:00
|
|
|
%{_bindir}/stap-find-servers
|
|
|
|
%{_bindir}/stap-find-or-start-server
|
|
|
|
%{_bindir}/stap-start-server
|
|
|
|
%{_bindir}/stap-client-connect
|
|
|
|
%{_bindir}/stap-env
|
2009-05-20 12:03:04 +02:00
|
|
|
|
|
|
|
%files server
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/stap-server
|
2010-03-12 01:39:20 +01:00
|
|
|
%{_bindir}/stap-serverd
|
|
|
|
%{_bindir}/stap-start-server
|
|
|
|
%{_bindir}/stap-stop-server
|
|
|
|
%{_bindir}/stap-server-connect
|
|
|
|
%{_bindir}/stap-authorize*
|
|
|
|
%{_bindir}/stap-env
|
|
|
|
%{_bindir}/stap-gen-cert
|
|
|
|
%{_bindir}/stap-sign-module
|
|
|
|
%{_mandir}/man8/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
|