File lttng-ust.spec of Package lttng-ust
#
# spec file for package lttng-ust
#
# Copyright (c) 2014 SUSE LINUX Products 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/
#
Name: lttng-ust
Version: 2.4.1
Release: 0
Source: http://lttng.org/files/lttng-ust/lttng-ust-%{version}.tar.bz2
Patch1: lttng-ust-copying.patch
Summary: Linux Trace Toolkit Userspace Tracer library
License: GPL-2.0
Group: Development/Languages/C and C++
BuildRequires: gcc-c++
BuildRequires: liburcu-devel
BuildRequires: libuuid-devel
BuildRequires: pkgconfig
BuildRequires: texinfo
Url: http://lttng.org/lttng2.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %ix86 x86_64
%description
This library may be used by user space applications to generate tracepoints within the kernel LTT subsystem.
%package -n %{name}-devel
Summary: Linux Trace Toolkit Userspace Tracer library
Group: Development/Languages/C and C++
Requires: %{name} = %{version}-%{release}
Requires: liburcu-devel
%description -n %{name}-devel
This library provides support for developing programs using LTTng userspace tracing
%package -n %{name}-docs
Summary: Linux Trace Toolkit Userspace Tracer Documentation
Group: Development/Languages/C and C++
Requires: %{name} = %{version}-%{release}
%description -n %{name}-docs
This package includes documentation and examples for developing programs using LTTng userspace tracing
%prep
%setup -q
%patch1 -p1
%build
%configure --docdir=%{_docdir}/%{name} --disable-static
make
%install
make DESTDIR=%buildroot install
rm -vf %buildroot%{_libdir}/*.la
rm -rf %{buildroot}/tmp/lttng-ust-divert
%clean
rm -rf %buildroot
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/lttng-gen-tp
%{_libdir}/*.so.*
%{_mandir}/man1/lttng-gen-tp.1.gz
%{_mandir}/man3/lttng-ust.3.gz
%{_mandir}/man3/lttng-ust-cyg-profile.3.gz
%{_mandir}/man3/lttng-ust-dl.3.gz
%files -n %{name}-devel
%defattr(-,root,root)
%{_prefix}/include/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/lttng-ust*.pc
%files -n %{name}-docs
%defattr(-,root,root)
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/ChangeLog
%{_docdir}/%{name}/README
%{_docdir}/%{name}/COPYING
%dir %{_docdir}/%{name}/examples
%{_docdir}/%{name}/examples/*
%{_docdir}/%{name}/java-util-logging.txt
%changelog