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
|
|
|
#
|
2017-03-28 22:46:58 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX 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
|
|
|
|
2015-02-17 22:16:31 +01:00
|
|
|
%if ! %{defined _rundir}
|
|
|
|
%define _rundir %{_localstatedir}/run
|
|
|
|
%endif
|
2007-01-10 01:58:04 +01:00
|
|
|
Name: systemtap
|
2017-03-28 22:46:58 +02:00
|
|
|
Version: 3.1
|
2015-02-17 22:16:31 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Instrumentation System
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Development/Tools/Debuggers
|
|
|
|
Url: http://sourceware.org/systemtap/
|
|
|
|
Source0: http://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz
|
2015-11-13 20:54:25 +01:00
|
|
|
Source1: http://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz.asc
|
2015-02-17 22:16:31 +01:00
|
|
|
Source2: %{name}.keyring
|
|
|
|
Source3: README-BEFORE-ADDING-PATCHES
|
2015-09-12 07:34:52 +02:00
|
|
|
Source4: README-KEYRING
|
|
|
|
Source5: stap-server.conf
|
2015-02-17 22:16:31 +01:00
|
|
|
Patch1: systemtap-build-source-dir.patch
|
2017-03-30 22:00:30 +02:00
|
|
|
Patch2: systemtap-tweak-i386-argument-passing.patch
|
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
|
2009-05-20 12:03:04 +02:00
|
|
|
Requires: %{name}-runtime = %{version}-%{release}
|
2013-03-01 17:19:47 +01:00
|
|
|
Requires: libebl1
|
2015-02-17 22:16:31 +01:00
|
|
|
Obsoletes: systemtap-client < 1.5
|
2007-01-10 01:58:04 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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}
|
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
|
2015-02-17 22:16:31 +01:00
|
|
|
# needed for systemd-tmpfiles
|
|
|
|
Requires(post): systemd
|
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
|
2017-03-30 22:00:30 +02:00
|
|
|
%patch2 -p1
|
2007-01-10 01:58:04 +01:00
|
|
|
|
|
|
|
%build
|
2011-11-02 20:17:40 +01:00
|
|
|
%configure --disable-docs --docdir=%{_docdir}/systemtap
|
2015-02-17 22:16:31 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-10 01:58:04 +01:00
|
|
|
|
|
|
|
%install
|
2015-02-17 22:16:31 +01:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2010-07-21 15:53:52 +02:00
|
|
|
# XXX
|
2015-02-17 22:16:31 +01:00
|
|
|
rm -f %{buildroot}%{_libexecdir}/systemtap/stap-server-request
|
2010-07-21 15:53:52 +02:00
|
|
|
# README, AUTHORS, NEWS, man3 and all examples packaged by systemtap-docs
|
|
|
|
# COPYING needs to stay in main for GPL
|
2015-02-17 22:16:31 +01:00
|
|
|
rm -rf %{buildroot}%{_docdir}/systemtap/
|
2017-03-28 22:46:58 +02:00
|
|
|
rm -rf %{buildroot}%{_datadir}/systemtap/examples
|
2016-04-05 01:30:37 +02:00
|
|
|
rm -rf %{buildroot}%{_mandir}/man3 %{buildroot}%{_mandir}/cs/man3
|
2015-02-17 22:16:31 +01:00
|
|
|
mkdir -p %{buildroot}%{_docdir}/systemtap/
|
|
|
|
cp COPYING %{buildroot}%{_docdir}/systemtap/
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/cache/systemtap
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/log
|
|
|
|
touch %{buildroot}%{_localstatedir}/log/stap-server.log
|
2011-08-19 10:40:34 +02:00
|
|
|
# config file for stap-server (/var/run now on tmpfs)
|
2015-02-17 22:16:31 +01:00
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/tmpfiles.d
|
2015-09-12 07:34:52 +02:00
|
|
|
install -m 644 %{SOURCE5} %{buildroot}%{_libexecdir}/tmpfiles.d
|
2011-11-02 20:17:40 +01:00
|
|
|
|
2015-02-17 22:16:31 +01:00
|
|
|
%find_lang systemtap
|
2007-01-10 01:58:04 +01:00
|
|
|
|
2011-11-24 14:00:00 +01:00
|
|
|
%post server
|
|
|
|
# Create tmpfiles
|
2015-02-17 22:16:31 +01:00
|
|
|
systemd-tmpfiles --create %{_libexecdir}/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]/*
|
2016-04-05 01:30:37 +02:00
|
|
|
%{_mandir}/cs/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*
|
2016-04-05 01:30:37 +02:00
|
|
|
%{_mandir}/cs/man8/systemtap.8*
|
2013-08-09 00:44:35 +02:00
|
|
|
%{_mandir}/man8/stapsh.8*
|
2016-04-05 01:30:37 +02:00
|
|
|
%{_mandir}/cs/man8/stapsh.8*
|
2009-05-20 12:03:04 +02:00
|
|
|
|
|
|
|
%files server
|
|
|
|
%defattr(-,root,root)
|
2015-02-17 22:16:31 +01:00
|
|
|
%dir %{_libexecdir}/tmpfiles.d
|
|
|
|
%{_libexecdir}/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*
|
2016-04-05 01:30:37 +02:00
|
|
|
%{_mandir}/cs/man8/stap-server.8*
|
2010-07-21 15:53:52 +02:00
|
|
|
%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
|