diff --git a/.gitignore b/.gitignore index 6fff90a..9554612 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ /lttng-ust-2.9.1.tar.bz2 /lttng-ust-2.10.0.tar.bz2 /lttng-ust-2.10.1.tar.bz2 +/lttng-ust-2.10.2.tar.bz2 diff --git a/lttng-gen-tp-shebang.patch b/lttng-gen-tp-shebang.patch new file mode 100644 index 0000000..1371979 --- /dev/null +++ b/lttng-gen-tp-shebang.patch @@ -0,0 +1,9 @@ +diff -Naur lttng-ust-2.10.2.orig/tools/lttng-gen-tp lttng-ust-2.10.2/tools/lttng-gen-tp +--- lttng-ust-2.10.2.orig/tools/lttng-gen-tp 2018-08-20 15:48:56.000000000 -0400 ++++ lttng-ust-2.10.2/tools/lttng-gen-tp 2018-11-07 18:00:02.614072586 -0500 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + # + # Copyright (c) 2012 Yannick Brosseau + # diff --git a/lttng-ust.spec b/lttng-ust.spec index 2859a71..be726bc 100644 --- a/lttng-ust.spec +++ b/lttng-ust.spec @@ -1,21 +1,26 @@ Name: lttng-ust -Version: 2.10.1 -Release: 4%{?dist} -License: LGPLv2 and GPLv2 and MIT +Version: 2.10.2 +Release: 1%{?dist} + +License: LGPLv2.1, MIT and GPLv2 Group: Development/Libraries Summary: LTTng Userspace Tracer library URL: https://lttng.org Source0: https://lttng.org/files/lttng-ust/%{name}-%{version}.tar.bz2 +Patch0: lttng-gen-tp-shebang.patch -BuildRequires: python2 -BuildRequires: libuuid-devel texinfo -BuildRequires: userspace-rcu-devel >= 0.8.0 -BuildRequires: autoconf automake libtool +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: libuuid-devel +BuildRequires: pkgconfig +BuildRequires: userspace-rcu-devel >= 0.8.4 %description This library may be used by user-space applications to generate trace-points using LTTng. + %package -n %{name}-devel Summary: LTTng Userspace Tracer library headers and development files Group: Development/Libraries @@ -23,25 +28,40 @@ Requires: %{name}%{?_isa} = %{version}-%{release} Requires: userspace-rcu-devel %description -n %{name}-devel -This library provides support for developing programs using -LTTng user-space tracing +The %{name}-devel package contains libraries and header to instrument +applications using %{name} + + +%package -n python3-lttngust +Summary: Python bindings for LTTng UST +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} +BuildRequires: python3-devel +%{?python_provide:%python_provide python3-lttngust} + +%description -n python3-lttngust +The python3-lttngust package contains libraries needed to instrument +applications that use %{name}'s Python logging backend. + %prep -%setup -q +%autosetup -p1 %build # Reinitialize libtool with the fedora version to remove Rpath autoreconf -vif -%configure --docdir=%{_docdir}/%{name} --disable-static +%configure --docdir=%{_docdir}/%{name} --disable-static --enable-python-agent make %{?_smp_mflags} V=1 %install make DESTDIR=%{buildroot} install rm -vf %{buildroot}%{_libdir}/*.la -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%check +make check + +%ldconfig_scriptlets %files %{_libdir}/*.so.* @@ -70,7 +90,15 @@ rm -vf %{buildroot}%{_libdir}/*.la %dir %{_docdir}/%{name}/examples %{_docdir}/%{name}/examples/* +%files -n python3-lttngust +%{python3_sitelib}/lttngust/ +%{python3_sitelib}/lttngust-*.egg-info + %changelog +* Wed Nov 07 2018 Michael Jeanson - 2.10.2-1 +- New upstream release +- Add python3-lttngust sub-package. + * Fri Jul 13 2018 Fedora Release Engineering - 2.10.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index ee41d63..1908f7e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (lttng-ust-2.10.1.tar.bz2) = bd9b75ff359a8698ba4f7b6a27d9958c8bd9539fd43d8f1bc4bb40003271c9074f1bb4176d074bac290fad1636d5a3226063275006b781f3533567dea71fac96 +SHA512 (lttng-ust-2.10.2.tar.bz2) = 01787aa5a48713bb40bc610016b4a576ae37bf9db4a9062f47a396b7a9b2bca0e34cb7a51a74f8f4617411be3c544d82ca76eb519995d5b65bcb692b2fd9c1b7