2017-09-27 16:54:20 +02:00
|
|
|
#
|
|
|
|
# spec file for package lttng-ust
|
|
|
|
#
|
2018-01-19 13:15:37 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-09-27 16:54:20 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define sover 0
|
|
|
|
%define sover_ctl 4
|
|
|
|
Name: lttng-ust
|
2018-01-02 16:33:00 +01:00
|
|
|
Version: 2.10.1
|
2017-09-27 16:54:20 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Linux Trace Toolkit Userspace Tracer library
|
2018-04-09 20:00:07 +02:00
|
|
|
License: GPL-2.0-only
|
2017-09-27 16:54:20 +02:00
|
|
|
Group: Development/Languages/C and C++
|
2018-04-09 20:00:07 +02:00
|
|
|
URL: https://lttng.org/
|
2017-09-27 16:54:20 +02:00
|
|
|
Source: https://lttng.org/files/lttng-ust/lttng-ust-%{version}.tar.bz2
|
|
|
|
Source1: https://lttng.org/files/lttng-ust/lttng-ust-%{version}.tar.bz2.asc
|
|
|
|
Source2: %{name}.keyring
|
|
|
|
# PATCH-FIX-OPENSUSE lttng-ust-copying.patch
|
|
|
|
Patch0: lttng-ust-copying.patch
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: liburcu-devel
|
|
|
|
BuildRequires: pkgconfig
|
2018-04-09 20:00:07 +02:00
|
|
|
BuildRequires: python3
|
2017-09-27 16:54:20 +02:00
|
|
|
BuildRequires: pkgconfig(uuid)
|
2018-01-19 13:15:37 +01:00
|
|
|
ExclusiveArch: %{ix86} x86_64 aarch64 ppc64 ppc64le
|
2017-09-27 16:54:20 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This library may be used by user space applications to generate
|
|
|
|
tracepoints within the kernel LTT subsystem.
|
|
|
|
|
|
|
|
%package -n liblttng-ust%{sover}
|
|
|
|
Summary: Linux Trace Toolkit Userspace Tracer library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n liblttng-ust%{sover}
|
|
|
|
This library may be used by user space applications to generate
|
|
|
|
tracepoints within the kernel LTT subsystem.
|
|
|
|
|
|
|
|
%package -n liblttng-ust-ctl%{sover_ctl}
|
|
|
|
Summary: Linux Trace Toolkit Userspace Tracer library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n liblttng-ust-ctl%{sover_ctl}
|
|
|
|
This library may be used by user space applications to generate
|
|
|
|
tracepoints within the kernel LTT subsystem.
|
|
|
|
|
2018-04-09 20:00:07 +02:00
|
|
|
%package -n liblttng-ust-python-agent%{sover}
|
|
|
|
Summary: Linux Trace Toolkit Userspace Tracer Python agent library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n liblttng-ust-python-agent%{sover}
|
|
|
|
This library may be used by user space applications to generate
|
|
|
|
tracepoints within the kernel LTT subsystem.
|
|
|
|
|
|
|
|
%package -n python3-lttngust
|
|
|
|
Summary: Linux Trace Toolkit Userspace Tracer Python 3 agent
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Requires: liblttng-ust-python-agent%{sover} = %{version}
|
|
|
|
|
|
|
|
%description -n python3-lttngust
|
|
|
|
This library may be used by user space applications to generate
|
|
|
|
tracepoints within the kernel LTT subsystem.
|
|
|
|
|
|
|
|
This package provides the LLTng-UST Python 3 agent.
|
|
|
|
|
2017-09-27 16:54:20 +02:00
|
|
|
%package -n %{name}-devel
|
|
|
|
Summary: Linux Trace Toolkit Userspace Tracer library
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: liblttng-ust%{sover} = %{version}
|
|
|
|
Requires: liblttng-ust-ctl%{sover_ctl} = %{version}
|
2018-04-09 20:00:07 +02:00
|
|
|
Requires: liblttng-ust-python-agent%{sover} = %{version}
|
2017-09-27 16:54:20 +02:00
|
|
|
# lttng-ust was last used in openSUSE Leap 42.3.
|
|
|
|
Provides: %{name} = %{version}
|
|
|
|
Obsoletes: %{name} < %{version}
|
|
|
|
|
|
|
|
%description -n %{name}-devel
|
|
|
|
This library provides support for developing programs using LTTng
|
|
|
|
userspace tracing.
|
|
|
|
|
|
|
|
%package -n %{name}-doc
|
|
|
|
Summary: Linux Trace Toolkit Userspace Tracer Documentation
|
|
|
|
Group: Documentation/Other
|
|
|
|
Requires: liblttng-ust%{sover} = %{version}
|
|
|
|
Requires: liblttng-ust-ctl%{sover_ctl} = %{version}
|
2018-04-09 20:00:07 +02:00
|
|
|
Requires: liblttng-ust-python-agent%{sover} = %{version}
|
2017-09-27 16:54:20 +02:00
|
|
|
# lttng-ust-docs was last used in openSUSE Leap 42.3.
|
|
|
|
Provides: %{name}-docs = %{version}
|
|
|
|
Obsoletes: %{name}-docs < %{version}
|
|
|
|
|
|
|
|
%description -n %{name}-doc
|
|
|
|
This package includes documentation and examples for developing
|
|
|
|
applications using LTTng userspace tracing.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1
|
|
|
|
|
2018-04-09 20:00:07 +02:00
|
|
|
# Fix Python shebang.
|
2018-01-19 13:15:37 +01:00
|
|
|
sed -i -e "1s|^#!.*$|#!%{_bindir}/python3|" tools/lttng-gen-tp
|
|
|
|
|
2017-09-27 16:54:20 +02:00
|
|
|
%build
|
2018-04-09 20:00:07 +02:00
|
|
|
export PYTHON=python3
|
2017-09-27 16:54:20 +02:00
|
|
|
%configure \
|
2018-01-19 13:15:37 +01:00
|
|
|
--disable-silent-rules \
|
2017-09-27 16:54:20 +02:00
|
|
|
--docdir=%{_docdir}/%{name} \
|
|
|
|
--disable-static \
|
2018-04-09 20:00:07 +02:00
|
|
|
--disable-maintainer-mode \
|
|
|
|
--enable-python-agent
|
|
|
|
make %{?_smp_mflags} V=1
|
2017-09-27 16:54:20 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
rm -rf %{buildroot}/tmp/lttng-ust-divert
|
|
|
|
|
|
|
|
%post -n liblttng-ust%{sover} -p /sbin/ldconfig
|
2018-04-09 20:00:07 +02:00
|
|
|
|
2017-09-27 16:54:20 +02:00
|
|
|
%postun -nliblttng-ust%{sover} -p /sbin/ldconfig
|
2018-04-09 20:00:07 +02:00
|
|
|
|
2017-09-27 16:54:20 +02:00
|
|
|
%post -n liblttng-ust-ctl%{sover_ctl} -p /sbin/ldconfig
|
2018-04-09 20:00:07 +02:00
|
|
|
|
2017-09-27 16:54:20 +02:00
|
|
|
%postun -nliblttng-ust-ctl%{sover_ctl} -p /sbin/ldconfig
|
|
|
|
|
2018-04-09 20:00:07 +02:00
|
|
|
%post -n liblttng-ust-python-agent%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n liblttng-ust-python-agent%{sover} -p /sbin/ldconfig
|
|
|
|
|
2017-09-27 16:54:20 +02:00
|
|
|
%files -n liblttng-ust%{sover}
|
|
|
|
%{_libdir}/liblttng-ust.so.%{sover}*
|
|
|
|
%{_libdir}/liblttng-ust-cyg-profile*.so.%{sover}*
|
|
|
|
%{_libdir}/liblttng-ust-dl.so.%{sover}*
|
|
|
|
%{_libdir}/liblttng-ust-fd.so.%{sover}*
|
|
|
|
%{_libdir}/liblttng-ust-fork.so.%{sover}*
|
|
|
|
%{_libdir}/liblttng-ust-libc-wrapper.so.%{sover}*
|
|
|
|
%{_libdir}/liblttng-ust-pthread-wrapper.so.%{sover}*
|
|
|
|
%{_libdir}/liblttng-ust-tracepoint.so.%{sover}*
|
|
|
|
|
|
|
|
%files -n liblttng-ust-ctl%{sover_ctl}
|
|
|
|
%{_libdir}/liblttng-ust-ctl.so.%{sover_ctl}*
|
|
|
|
|
2018-04-09 20:00:07 +02:00
|
|
|
%files -n liblttng-ust-python-agent%{sover}
|
|
|
|
%{_libdir}/liblttng-ust-python-agent.so.%{sover}*
|
|
|
|
|
|
|
|
%files -n python3-lttngust
|
|
|
|
%{python3_sitelib}/lttngust/
|
|
|
|
%{python3_sitelib}/lttngust-*
|
|
|
|
|
2017-09-27 16:54:20 +02:00
|
|
|
%files -n %{name}-devel
|
|
|
|
%{_includedir}/lttng/
|
|
|
|
%{_bindir}/lttng-gen-tp
|
|
|
|
%{_mandir}/man1/lttng-gen-tp.1%{?ext_man}
|
|
|
|
%{_libdir}/liblttng-ust*.so
|
|
|
|
%{_libdir}/pkgconfig/lttng-ust*.pc
|
|
|
|
|
|
|
|
%files -n %{name}-doc
|
|
|
|
%doc %{_docdir}/%{name}/
|
|
|
|
%{_mandir}/man3/lttng-ust.3%{?ext_man}
|
|
|
|
%{_mandir}/man3/lttng-ust-cyg-profile.3%{?ext_man}
|
|
|
|
%{_mandir}/man3/lttng-ust-dl.3%{?ext_man}
|
|
|
|
%{_mandir}/man3/do_tracepoint.3%{?ext_man}
|
|
|
|
%{_mandir}/man3/tracef.3%{?ext_man}
|
|
|
|
%{_mandir}/man3/tracelog.3%{?ext_man}
|
|
|
|
%{_mandir}/man3/tracepoint.3%{?ext_man}
|
|
|
|
%{_mandir}/man3/tracepoint_enabled.3%{?ext_man}
|
|
|
|
|
|
|
|
%changelog
|