diff --git a/lttng-ust.spec b/lttng-ust.spec index 96724c2ca6a248d79ec1ea95f824fedef212e183..7c8354f25bdd1e3b5bbb9fb525afacaa0a3d1720 100644 --- a/lttng-ust.spec +++ b/lttng-ust.spec @@ -1,6 +1,6 @@ Name: lttng-ust Version: 2.13.5 -Release: 1 +Release: 2 Summary: LTTng Userspace Tracer library License: LGPLv2 and GPLv2 and MIT URL: https://lttng.org @@ -22,11 +22,21 @@ Summary: LTTng Userspace Tracer library headers and development files Requires: %{name}%{?_isa} = %{version}-%{release} Requires: userspace-rcu-devel +%package -n python3-%{name} +BuildRequires: python3 python3-devel +Requires: python3 %{name}%{?_isa} = %{version}-%{release} +Summary: LTTng-UST Python Bindings. +Provides: python3-lttng = %{version}-%{release} python-lttng = %{version}-%{release} +%{?python_provide:%python_provide python3-%{name}} + + %package_help %description -n %{name}-devel The devel for %{name} +%description -n python3-%{name} +The python Bindings for %{name} %prep %autosetup -n %{name}-%{version} -p1 @@ -35,9 +45,11 @@ autoreconf -vif %configure --docdir=%{_docdir}/%{name} make %{?_smp_mflags} V=1 +(cd src/python-lttngust/ && %make_build) %install %make_install +(cd src/python-lttngust/ && %make_install) %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -61,7 +73,15 @@ make check %{_mandir}/man3/*.gz %{_docdir}/%{name}/* +%files -n python3-%{name} +%{python3_sitelib}/lttngust-%{version}-*.egg-info +%{python3_sitelib}/lttngust/* + + %changelog +* Tue Apr 25 2023 Z572 - 2.13.5-2 +- add python3-lttng-ust + * Mon Jan 30 2023 Wenyu Liu - 2.13.5-1 - Update to 2.13.5