lttng-tools/lttng-tools.spec

72 lines
1.8 KiB
RPMSpec

Name: lttng-tools
Version: 2.2.3
Release: 0
License: GPL-2.0 and LGPL-2.1
Source: %{name}-%{version}.tar.bz2
Group: Development/Languages/C and C++
Summary: Linux Trace Toolkit Next Generation 2.0 userspace tools
URL: http://lttng.org/lttng2.0
BuildRequires: pkgconfig libuuid-devel popt-devel lttng-ust-devel liburcu-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %ix86 x86_64
%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-relayd
%{_libdir}/lttng/libexec/lttng-consumerd
%{_bindir}/lttng-sessiond
%{_libdir}/*.so.*
%{_mandir}/man1/lttng.1.gz
%{_mandir}/man3/lttng-health-check.3.gz
%{_mandir}/man8/lttng-sessiond.8.gz
%{_mandir}/man8/lttng-relayd.8.gz
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/ChangeLog
%{_docdir}/%{name}/LICENSE
%{_docdir}/%{name}/quickstart.txt
%{_docdir}/%{name}/calibrate.txt
%{_docdir}/%{name}/python-howto.txt
%{_docdir}/%{name}/streaming-howto.txt
%files -n %{name}-devel
%defattr(-,root,root)
%{_prefix}/include/lttng/*
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/pkgconfig/lttng-ctl.pc
%changelog