lttng-tools/lttng-tools.spec

64 lines
1.5 KiB
RPMSpec

Name: lttng-tools
Version: 2.0.1
Release: 0
License: GPL v2 or later
Source: %{name}-%{version}.tar.bz2
Group: Development/Languages/C and C++
Summary: Linux Trace Toolkit Next Generation 2.0 userspace tools
BuildRequires: pkgconfig libuuid-devel popt-devel lttng-ust-devel liburcu-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %ix86 x86_64 ppc ppc64 s390 s390x
%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
%{_libdir}/lttng/libexec/lttng-consumerd
%{_bindir}/lttng-sessiond
%{_libdir}/*.so.*
%{_mandir}/man1/lttng.1.gz
%{_mandir}/man8/lttng-sessiond.8.gz
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/ChangeLog
%{_docdir}/%{name}/LICENSE
%{_docdir}/%{name}/quickstart.txt
%files -n %{name}-devel
%defattr(-,root,root)
%{_prefix}/include/lttng/*
%{_libdir}/*.so
%{_libdir}/*.a
%changelog