- Rectify RPM groups. Remove redundant %clean section. Replace old RPM macros. OBS-URL: https://build.opensuse.org/request/show/532484 OBS-URL: https://build.opensuse.org/package/show/devel:tools:lttng/lttng-tools?expand=0&rev=16
109 lines
3.1 KiB
RPMSpec
109 lines
3.1 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 majorversion 2.10.0
|
|
%define ctllib_sover 0
|
|
%define ctllib liblttng-ctl%{ctllib_sover}
|
|
|
|
Name: lttng-tools
|
|
Version: 2.10.1
|
|
Release: 0
|
|
Source: http://lttng.org/files/%{name}/%{name}-%{version}.tar.bz2
|
|
Summary: Linux Trace Toolkit Next Generation 2.0 userspace tools
|
|
License: GPL-2.0 and LGPL-2.1
|
|
Group: Development/Tools/Other
|
|
Url: http://lttng.org/lttng2.0
|
|
BuildRequires: liburcu-devel
|
|
BuildRequires: libuuid-devel
|
|
BuildRequires: libxml2-devel
|
|
BuildRequires: lttng-ust-devel >= %{majorversion}
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: popt-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
ExclusiveArch: %ix86 x86_64 ppc64 ppc64le
|
|
Requires: babeltrace
|
|
Recommends: lttng-modules-kmp
|
|
|
|
%description
|
|
This package provides the userspace tools for controlling the LTTng subsystem
|
|
from userspace.
|
|
|
|
%package -n %{ctllib}
|
|
Summary: Linux Trace Toolkit Next Generation 2.0 control and utility library
|
|
Group: System/Libraries
|
|
|
|
%description -n %{ctllib}
|
|
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 2.0 userspace tools
|
|
Group: Development/Languages/C and C++
|
|
Requires: %{ctllib} >= %{majorversion}
|
|
|
|
%description -n %{name}-devel
|
|
This package provides the userspace tools for controlling the LTTng subsystem
|
|
from userspace.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure --docdir=%{_docdir}/%{name}
|
|
make
|
|
|
|
%install
|
|
%make_install
|
|
rm -f %buildroot%{_libdir}/*.la
|
|
rm -f %buildroot%{_libdir}/*.a
|
|
|
|
%post -n %{ctllib} -p /sbin/ldconfig
|
|
%postun -n %{ctllib} -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%dir %{_libdir}/lttng
|
|
%dir %{_libdir}/lttng/libexec
|
|
%{_bindir}/lttng
|
|
%{_bindir}/lttng-crash
|
|
%{_bindir}/lttng-relayd
|
|
%{_libdir}/lttng/libexec/lttng-consumerd
|
|
%{_bindir}/lttng-sessiond
|
|
%{_mandir}/man1/*.1.gz
|
|
%{_mandir}/man3/*.3.gz
|
|
%{_mandir}/man8/*.8.gz
|
|
%dir %{_docdir}/%{name}
|
|
%{_docdir}/%{name}/ChangeLog
|
|
%{_docdir}/%{name}/LICENSE
|
|
%{_docdir}/%{name}/README.md
|
|
%{_docdir}/%{name}/*.txt
|
|
%dir %{_datadir}/xml/lttng
|
|
%{_datadir}/xml/lttng/session.xsd
|
|
|
|
%files -n %{ctllib}
|
|
%defattr(-,root,root)
|
|
%{_libdir}/*.so.*
|
|
|
|
%files -n %{name}-devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/lttng/*
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/lttng-ctl.pc
|
|
|
|
%changelog
|