diff --git a/README.md b/README.md index 08b9705..6532c01 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # lttng-tools +LTTng-tools is a set of tools to control LTTng. + diff --git a/lttng-tools.spec b/lttng-tools.spec new file mode 100644 index 0000000..4183b94 --- /dev/null +++ b/lttng-tools.spec @@ -0,0 +1,96 @@ +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 +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 2.12.1-1mamba +- package created using the webbuild interface