108 lines
3.2 KiB
RPMSpec
108 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package lttng-tools
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 _version 2.10.0
|
|
%define soname_ctl liblttng-ctl
|
|
%define sover_ctl 0
|
|
Name: lttng-tools
|
|
Version: 2.10.1
|
|
Release: 0
|
|
Summary: Linux Trace Toolkit Next Generation userspace tools
|
|
License: GPL-2.0 AND LGPL-2.1
|
|
Group: Development/Tools/Other
|
|
URL: https://lttng.org/
|
|
Source: https://lttng.org/files/%{name}/%{name}-%{version}.tar.bz2
|
|
# PATCH-FIX-OPENSUSE lttng-tools-fix-pkgconfig.patch sor.alexei@meowr.ru -- Add missing dependencies to lttng-ctl.pc.
|
|
Patch0: lttng-tools-fix-pkgconfig.patch
|
|
BuildRequires: bison
|
|
BuildRequires: flex
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: popt-devel
|
|
BuildRequires: pkgconfig(liburcu)
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
BuildRequires: pkgconfig(lttng-ust) >= %{_version}
|
|
BuildRequires: pkgconfig(uuid)
|
|
Requires: babeltrace
|
|
Recommends: lttng-modules-kmp
|
|
ExclusiveArch: %ix86 x86_64 aarch64 ppc64 ppc64le
|
|
|
|
%description
|
|
This package provides the userspace tools for controlling the LTTng
|
|
subsystem from userspace.
|
|
|
|
%package -n %{soname_ctl}%{sover_ctl}
|
|
Summary: Linux Trace Toolkit Next Generation control and utility library
|
|
Group: System/Libraries
|
|
|
|
%description -n %{soname_ctl}%{sover_ctl}
|
|
This package provides a userspace library for controlling the LTTng
|
|
subsystem. It is primarily intended for use by the lttng-tools
|
|
package.
|
|
|
|
%package -n %{name}-devel
|
|
Summary: Linux Trace Toolkit Next Generation userspace tools
|
|
Group: Development/Languages/C and C++
|
|
Requires: %{soname_ctl}%{sover_ctl} >= %{_version}
|
|
|
|
%description -n %{name}-devel
|
|
This package provides the userspace tools for controlling the LTTng
|
|
subsystem from userspace.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
|
|
%build
|
|
%configure \
|
|
--docdir=%{_docdir}/%{name} \
|
|
--disable-static
|
|
make %{?_smp_mflags} V=1
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%post -n %{soname_ctl}%{sover_ctl} -p /sbin/ldconfig
|
|
|
|
%postun -n %{soname_ctl}%{sover_ctl} -p /sbin/ldconfig
|
|
|
|
%files
|
|
%doc %{_docdir}/%{name}/
|
|
%{_bindir}/lttng
|
|
%{_bindir}/lttng-crash
|
|
%{_bindir}/lttng-relayd
|
|
%{_libdir}/lttng/libexec/lttng-consumerd
|
|
%{_bindir}/lttng-sessiond
|
|
%{_mandir}/man1/*.1%{?ext_man}
|
|
%{_mandir}/man3/*.3%{?ext_man}
|
|
%{_mandir}/man8/*.8%{?ext_man}
|
|
%dir %{_libdir}/lttng/
|
|
%dir %{_libdir}/lttng/libexec/
|
|
%dir %{_datadir}/xml/lttng/
|
|
%{_datadir}/xml/lttng/session.xsd
|
|
|
|
%files -n %{soname_ctl}%{sover_ctl}
|
|
%{_libdir}/%{soname_ctl}.so.%{sover_ctl}*
|
|
|
|
%files -n %{name}-devel
|
|
%{_includedir}/lttng/*
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/lttng-ctl.pc
|
|
|
|
%changelog
|