Hello community, here is the log from the commit of package lttng-ust for openSUSE:Factory checked in at 2018-04-17 11:10:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lttng-ust (Old) and /work/SRC/openSUSE:Factory/.lttng-ust.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lttng-ust" Tue Apr 17 11:10:22 2018 rev:4 rq:594954 version:2.10.1 Changes: -------- --- /work/SRC/openSUSE:Factory/lttng-ust/lttng-ust.changes 2018-01-21 15:47:55.504860897 +0100 +++ /work/SRC/openSUSE:Factory/.lttng-ust.new/lttng-ust.changes 2018-04-17 11:10:26.746310286 +0200 @@ -1,0 +2,6 @@ +Sun Apr 8 15:47:49 UTC 2018 - [email protected] + +- Build the Python agent and add new subpackages: python3-lttngust + and liblttng-ust-python-agent0. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lttng-ust.spec ++++++ --- /var/tmp/diff_new_pack.gAvvHX/_old 2018-04-17 11:10:27.406279323 +0200 +++ /var/tmp/diff_new_pack.gAvvHX/_new 2018-04-17 11:10:27.410279135 +0200 @@ -22,9 +22,9 @@ Version: 2.10.1 Release: 0 Summary: Linux Trace Toolkit Userspace Tracer library -License: GPL-2.0 +License: GPL-2.0-only Group: Development/Languages/C and C++ -Url: https://lttng.org/ +URL: https://lttng.org/ Source: https://lttng.org/files/lttng-ust/lttng-ust-%{version}.tar.bz2 Source1: https://lttng.org/files/lttng-ust/lttng-ust-%{version}.tar.bz2.asc Source2: %{name}.keyring @@ -33,6 +33,7 @@ BuildRequires: gcc-c++ BuildRequires: liburcu-devel BuildRequires: pkgconfig +BuildRequires: python3 BuildRequires: pkgconfig(uuid) ExclusiveArch: %{ix86} x86_64 aarch64 ppc64 ppc64le @@ -56,11 +57,31 @@ This library may be used by user space applications to generate tracepoints within the kernel LTT subsystem. +%package -n liblttng-ust-python-agent%{sover} +Summary: Linux Trace Toolkit Userspace Tracer Python agent library +Group: System/Libraries + +%description -n liblttng-ust-python-agent%{sover} +This library may be used by user space applications to generate +tracepoints within the kernel LTT subsystem. + +%package -n python3-lttngust +Summary: Linux Trace Toolkit Userspace Tracer Python 3 agent +Group: Development/Languages/Python +Requires: liblttng-ust-python-agent%{sover} = %{version} + +%description -n python3-lttngust +This library may be used by user space applications to generate +tracepoints within the kernel LTT subsystem. + +This package provides the LLTng-UST Python 3 agent. + %package -n %{name}-devel Summary: Linux Trace Toolkit Userspace Tracer library Group: Development/Languages/C and C++ Requires: liblttng-ust%{sover} = %{version} Requires: liblttng-ust-ctl%{sover_ctl} = %{version} +Requires: liblttng-ust-python-agent%{sover} = %{version} # lttng-ust was last used in openSUSE Leap 42.3. Provides: %{name} = %{version} Obsoletes: %{name} < %{version} @@ -74,6 +95,7 @@ Group: Documentation/Other Requires: liblttng-ust%{sover} = %{version} Requires: liblttng-ust-ctl%{sover_ctl} = %{version} +Requires: liblttng-ust-python-agent%{sover} = %{version} # lttng-ust-docs was last used in openSUSE Leap 42.3. Provides: %{name}-docs = %{version} Obsoletes: %{name}-docs < %{version} @@ -86,16 +108,18 @@ %setup -q %patch0 -p1 -# Fix env shebang +# Fix Python shebang. sed -i -e "1s|^#!.*$|#!%{_bindir}/python3|" tools/lttng-gen-tp %build +export PYTHON=python3 %configure \ --disable-silent-rules \ --docdir=%{_docdir}/%{name} \ --disable-static \ - --disable-maintainer-mode -make %{?_smp_mflags} + --disable-maintainer-mode \ + --enable-python-agent +make %{?_smp_mflags} V=1 %install %make_install @@ -103,10 +127,17 @@ rm -rf %{buildroot}/tmp/lttng-ust-divert %post -n liblttng-ust%{sover} -p /sbin/ldconfig + %postun -nliblttng-ust%{sover} -p /sbin/ldconfig + %post -n liblttng-ust-ctl%{sover_ctl} -p /sbin/ldconfig + %postun -nliblttng-ust-ctl%{sover_ctl} -p /sbin/ldconfig +%post -n liblttng-ust-python-agent%{sover} -p /sbin/ldconfig + +%postun -n liblttng-ust-python-agent%{sover} -p /sbin/ldconfig + %files -n liblttng-ust%{sover} %{_libdir}/liblttng-ust.so.%{sover}* %{_libdir}/liblttng-ust-cyg-profile*.so.%{sover}* @@ -120,6 +151,13 @@ %files -n liblttng-ust-ctl%{sover_ctl} %{_libdir}/liblttng-ust-ctl.so.%{sover_ctl}* +%files -n liblttng-ust-python-agent%{sover} +%{_libdir}/liblttng-ust-python-agent.so.%{sover}* + +%files -n python3-lttngust +%{python3_sitelib}/lttngust/ +%{python3_sitelib}/lttngust-* + %files -n %{name}-devel %{_includedir}/lttng/ %{_bindir}/lttng-gen-tp
