+++ /dev/null
---- babeltrace-1.2.0/formats/lttng-live/Makefile.am.orig 2014-02-28 19:11:47.000000000 +0100
-+++ babeltrace-1.2.0/formats/lttng-live/Makefile.am 2014-03-03 07:30:40.911484235 +0100
-@@ -14,4 +14,5 @@
- -Wl,--no-as-needed -version-info $(BABELTRACE_LIBRARY_VERSION)
-
- libbabeltrace_lttng_live_la_LIBADD = \
-+ $(top_builddir)/formats/ctf/libbabeltrace-ctf.la \
- $(top_builddir)/lib/libbabeltrace.la
---- babeltrace-1.2.0/bindings/python/Makefile.am.orig 2014-02-28 19:11:47.000000000 +0100
-+++ babeltrace-1.2.0/bindings/python/Makefile.am 2014-03-03 07:54:53.981423256 +0100
-@@ -13,7 +13,7 @@
-
- nodist__babeltrace_la_SOURCES = babeltrace_wrap.c
- _babeltrace_la_SOURCES = python-complements.h python-complements.c
--_babeltrace_la_LDFLAGS = -module
-+_babeltrace_la_LDFLAGS = -module -avoid-version
-
- _babeltrace_la_CFLAGS = $(GLIB_CFLAGS) $(AM_CFLAGS)
-
Summary: Trace Format Babel Tower
Summary(pl.UTF-8): Wieża Babel formatów narzędzi śledzących
Name: babeltrace
-Version: 1.2.4
-Release: 4
+Version: 1.5.6
+Release: 1
License: MIT
Group: Applications/System
-Source0: http://lttng.org/files/babeltrace/%{name}-%{version}.tar.bz2
-# Source0-md5: 20a806fa7570e69a91707855a98f3ca6
-Patch0: %{name}-link.patch
-URL: http://lttng.org/babeltrace
+Source0: https://www.efficios.com/files/babeltrace/%{name}-%{version}.tar.bz2
+# Source0-md5: 8ce610461e73f48b9c6beec9ba95dcc3
+Patch0: %{name}-python.patch
+URL: http://diamon.org/babeltrace/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
BuildRequires: glib2-devel >= 1:2.22.0
BuildRequires: libuuid-devel
BuildRequires: pkgconfig
BuildRequires: popt-devel
-%{?with_python:BuildRequires: python-devel >= 2}
+%{?with_python:BuildRequires: python3-devel >= 1:3.2}
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.219
Requires: glib2 >= 1:2.22.0
%description static -l pl.UTF-8
Statyczne biblioteki Babeltrace.
-%package -n python-babeltrace
-Summary: Python binding to Babeltrace library
-Summary(pl.UTF-8): Wiązanie Pythona do biblioteki Babeltrace
+%package -n python3-babeltrace
+Summary: Python 3 binding to Babeltrace library
+Summary(pl.UTF-8): Wiązanie Pythona 3 do biblioteki Babeltrace
Group: Libraries/Python
Requires: %{name} = %{version}-%{release}
+Obsoletes: python-babeltrace < 1.5.3
-%description -n python-babeltrace
-Python binding to Babeltrace library.
+%description -n python3-babeltrace
+Python 3 binding to Babeltrace library.
-%description -n python-babeltrace -l pl.UTF-8
-Wiązanie Pythona do biblioteki Babeltrace.
+%description -n python3-babeltrace -l pl.UTF-8
+Wiązanie Pythona 3 do biblioteki Babeltrace.
%prep
%setup -q
%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/babeltrace
%if %{with python}
-%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_babeltrace.{la,a}
%py_postclean
%endif
%{_libdir}/libbabeltrace-lttng-live.a
%if %{with python}
-%files -n python-babeltrace
+%files -n python3-babeltrace
%defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/_babeltrace.so
-%{py_sitescriptdir}/babeltrace.py[co]
+%dir %{py3_sitedir}/babeltrace
+%attr(755,root,root) %{py3_sitedir}/babeltrace/_babeltrace.cpython-*.so
+%{py3_sitedir}/babeltrace/*.py
+%{py3_sitedir}/babeltrace/__pycache__
+%{py3_sitedir}/babeltrace-%{version}-py*.egg-info
%endif