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
|
|
|
#
|
2020-01-28 18:25:01 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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.
|
|
|
|
|
2019-08-15 23:36:03 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-10 01:58:04 +01:00
|
|
|
#
|
|
|
|
|
2008-03-14 17:58:07 +01:00
|
|
|
|
2015-02-17 22:16:31 +01:00
|
|
|
%if ! %{defined _rundir}
|
|
|
|
%define _rundir %{_localstatedir}/run
|
|
|
|
%endif
|
2019-10-03 18:52:33 +02:00
|
|
|
Name: systemtap
|
2019-12-06 22:00:37 +01:00
|
|
|
Version: 4.2
|
2015-02-17 22:16:31 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Instrumentation System
|
2018-03-26 18:18:28 +02:00
|
|
|
License: GPL-2.0-or-later
|
2015-02-17 22:16:31 +01:00
|
|
|
Group: Development/Tools/Debuggers
|
2019-10-14 09:33:31 +02:00
|
|
|
URL: https://sourceware.org/systemtap/
|
Accepting request 627384 from home:simson:branches:devel:tools
- Upgrade to version 3.3:
Changelog: https://lwn.net/Articles/757030/
eBPF backend extensions, easier access to examples, adapting to
meltdown/spectre complications, real-time / high-cpu-count
concurrency fixes
- Added public key of "Frank Ch. Eigler <fche@elastic.org>",
since he signed the new package
- Upgrade to version 3.3:
Changelog: https://lwn.net/Articles/757030/
eBPF backend extensions, easier access to examples, adapting to
meltdown/spectre complications, real-time / high-cpu-count
concurrency fixes
- Remove patches, because the issues were fixed upstream:
systemtap-change-extra_cflags-escape-processing.patch
- Adjust patch for version 3.3:
systemtap-build-source-dir.patch
- Added public key of "Frank Ch. Eigler <fche@elastic.org>",
since he signed the new package
- Upgrade to version 3.3:
Changelog: https://lwn.net/Articles/757030/
eBPF backend extensions, easier access to examples, adapting to
meltdown/spectre complications, real-time / high-cpu-count
concurrency fixes
- Remove patches, because the issues were fixed upstream:
systemtap-fixes-for-gcc-8.patch
systemtap-change-extra_cflags-escape-processing.patch
- Adjust patch for version 3.3:
systemtap-build-source-dir.patch
- Added public key of "Frank Ch. Eigler <fche@elastic.org>",
since he signed the new package
OBS-URL: https://build.opensuse.org/request/show/627384
OBS-URL: https://build.opensuse.org/package/show/devel:tools/systemtap?expand=0&rev=101
2018-08-16 09:21:58 +02:00
|
|
|
Source0: https://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz
|
|
|
|
Source1: https://sourceware.org/systemtap/ftp/releases/systemtap-%{version}.tar.gz.asc
|
2019-10-03 18:52:33 +02:00
|
|
|
Source2: %{name}.keyring
|
2015-02-17 22:16:31 +01:00
|
|
|
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
|
2019-08-15 23:36:03 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2011-12-21 12:21:19 +01:00
|
|
|
BuildRequires: gcc-c++
|
2019-04-15 18:10:19 +02:00
|
|
|
BuildRequires: libavahi-devel
|
2011-12-21 12:21:19 +01:00
|
|
|
BuildRequires: libcap-devel
|
2020-01-28 18:25:01 +01:00
|
|
|
BuildRequires: libdw-devel
|
2011-12-21 12:21:19 +01:00
|
|
|
BuildRequires: mozilla-nspr-devel
|
|
|
|
BuildRequires: mozilla-nss-devel
|
|
|
|
BuildRequires: mozilla-nss-tools
|
2019-10-03 18:52:33 +02:00
|
|
|
BuildRequires: pkgconfig
|
2017-11-10 19:27:48 +01:00
|
|
|
BuildRequires: python3-base
|
2011-12-21 12:21:19 +01:00
|
|
|
BuildRequires: sqlite-devel
|
2019-02-03 19:17:43 +01:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2019-10-14 09:33:31 +02:00
|
|
|
Requires: %{name}-dtrace = %{version}
|
2009-05-20 12:03:04 +02:00
|
|
|
Requires: %{name}-runtime = %{version}-%{release}
|
2015-02-17 22:16:31 +01:00
|
|
|
Obsoletes: systemtap-client < 1.5
|
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}
|
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
|
2018-02-20 13:53:55 +01:00
|
|
|
# systemtap-headers provides the same header files
|
|
|
|
# as sdt-devel, so we must conflict.
|
2018-03-26 18:18:28 +02:00
|
|
|
Group: Development/Tools/Debuggers
|
2009-05-20 12:03:04 +02:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2019-02-03 19:17:43 +01:00
|
|
|
Conflicts: systemtap-headers
|
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
|
2019-10-03 18:52:33 +02:00
|
|
|
%setup -q
|
2013-01-12 06:43:52 +01:00
|
|
|
%patch1 -p1
|
2007-01-10 01:58:04 +01:00
|
|
|
|
|
|
|
%build
|
2019-08-15 23:36:03 +02:00
|
|
|
autoreconf -fi
|
2017-11-10 19:27:48 +01:00
|
|
|
%configure \
|
|
|
|
--disable-docs \
|
|
|
|
--with-python3 \
|
|
|
|
--docdir=%{_docdir}/systemtap
|
|
|
|
make %{?_smp_mflags} V=1
|
2007-01-10 01:58:04 +01:00
|
|
|
|
|
|
|
%install
|
2017-11-10 19:27:48 +01:00
|
|
|
%make_install
|
2019-10-10 10:16:08 +02:00
|
|
|
rm -f %{buildroot}%{_bindir}/dtrace
|
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
|
2019-02-03 19:17:43 +01:00
|
|
|
%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
|
2019-10-03 18:52:33 +02:00
|
|
|
%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
|
2019-10-03 18:52:33 +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
|
2017-11-21 03:55:31 +01:00
|
|
|
%{_bindir}/stapbpf
|
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*
|
2019-08-15 23:36:03 +02:00
|
|
|
%{_mandir}/man8/systemtap-service.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*
|
2017-11-21 03:55:31 +01:00
|
|
|
%{_mandir}/man8/stapbpf.8*
|
2009-05-20 12:03:04 +02:00
|
|
|
|
|
|
|
%files server
|
2019-10-03 18:52:33 +02:00
|
|
|
%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
|
2019-10-03 18:52:33 +02:00
|
|
|
%defattr(-,root,root)
|
2018-02-20 13:53:55 +01:00
|
|
|
%{_includedir}/sys/*.h
|
2009-05-20 12:03:04 +02:00
|
|
|
|
2007-02-25 23:39:54 +01:00
|
|
|
%changelog
|