lttng-tools/lttng-tools.spec

97 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

Name: lttng-tools
Version: 2.12.1
Release: 1mamba
Summary: A set of tools to control LTTng
Group: Development/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://lttng.org
Source: http://lttng.org/files/lttng-tools/lttng-tools-%{version}.tar.bz2
License: LGPL, MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libkmod-devel
BuildRequires: liblttng-ust-devel
BuildRequires: liblzma-devel
BuildRequires: libnuma-devel
BuildRequires: libpopt-devel
BuildRequires: liburcu-devel
BuildRequires: libxml2-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
LTTng-tools is a set of tools to control LTTng.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/lttng
%{_bindir}/lttng-*
%{_mandir}/man1/lttng-*.1*
%{_mandir}/man1/lttng.1.gz
%{_mandir}/man3/lttng-*.3.gz
%{_mandir}/man8/lttng-*.8.gz
%{_datadir}/xml/lttng/session.xsd
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/liblttng-ctl.so.*
%{_libdir}/lttng/libexec/lttng-consumerd
%doc LICENSE
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/lttng
%{_includedir}/lttng/*
%{_libdir}/liblttng-ctl.a
%{_libdir}/liblttng-ctl.la
%{_libdir}/liblttng-ctl.so
%{_libdir}/pkgconfig/lttng-ctl.pc
%dir %{_datadir}/doc/lttng-tools
%{_datadir}/doc/lttng-tools/*
%doc ChangeLog README.md
%changelog
* Sun Jun 21 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12.1-1mamba
- package created using the webbuild interface