File lttng-tools.spec of Package lttng-tools

#
# spec file for package lttng-tools
#
# Copyright (c) 2016 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.7.0

Name:           lttng-tools
Version:        2.7.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/Languages/C and C++
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
Requires:       babeltrace
Recommends:     lttng-modules-kmp

%description
This package provides the userspace tools for controlling the LTTng subsystem
from userspace.

%package -n %{name}-devel

Summary:        Linux Trace Toolkit Next Generation 2.0 userspace tools
Group:          Development/Languages/C and C++
Requires:       %{name} = %{version}-%{release}

%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 DESTDIR=%buildroot install
rm -vf %buildroot%{_libdir}/*.la

%clean
rm -rf %buildroot

%post -p /sbin/ldconfig

%postun -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
%{_libdir}/*.so.*
%{_mandir}/man1/lttng.1.gz
%{_mandir}/man1/lttng-crash.1.gz
%{_mandir}/man8/lttng-sessiond.8.gz
%{_mandir}/man8/lttng-relayd.8.gz
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/ChangeLog
%{_docdir}/%{name}/LICENSE
%{_docdir}/%{name}/README.md
%{_docdir}/%{name}/*.txt
%dir %{_prefix}/share/xml/lttng
%{_prefix}/share/xml/lttng/session.xsd

%files -n %{name}-devel
%defattr(-,root,root)
%{_prefix}/include/lttng/*
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/pkgconfig/lttng-ctl.pc

%changelog
openSUSE Build Service is sponsored by