]> git.pld-linux.org Git - packages/babeltrace.git/blobdiff - babeltrace.spec
rebuild with python 3.10
[packages/babeltrace.git] / babeltrace.spec
index d1253f608bf2b33a4ee28f395a9c8274ee749888..95e7d93771965106638519305a20dfa9bd4da423 100644 (file)
@@ -5,24 +5,27 @@
 Summary:       Trace Format Babel Tower
 Summary(pl.UTF-8):     Wieża Babel formatów narzędzi śledzących
 Name:          babeltrace
-Version:       1.2.1
-Release:       1
+# keep 1.x here, babeltrace2 is separate project (see babeltrace2.spec)
+Version:       1.5.8
+Release:       4
 License:       MIT
 Group:         Applications/System
-Source0:       http://lttng.org/files/babeltrace/%{name}-%{version}.tar.bz2
-# Source0-md5: 5d2dbf37117537b484f731ecbe72c29c
-Patch0:                %{name}-link.patch
-URL:           http://lttng.org/babeltrace
+Source0:       https://www.efficios.com/files/babeltrace/%{name}-%{version}.tar.bz2
+# Source0-md5: 5c305d6f4be15bc3562c724f9b5206df
+Patch0:                %{name}-python.patch
+URL:           https://babeltrace.org/
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake
+BuildRequires: elfutils-devel >= 0.154
 BuildRequires: glib2-devel >= 1:2.22.0
 BuildRequires: libtool >= 2:2
 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
+BuildRequires: rpmbuild(macros) >= 1.507
+Requires:      elfutils >= 0.154
 Requires:      glib2 >= 1:2.22.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -41,6 +44,7 @@ Summary:      Header files for Babeltrace libraries
 Summary(pl.UTF-8):     Pliki nagłówkowe bibliotek Babeltrace
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
+Requires:      elfutils-devel >= 0.154
 Requires:      glib2-devel >= 1:2.22.0
 Requires:      libuuid-devel
 Requires:      popt-devel
@@ -63,17 +67,18 @@ Static Babeltrace libraries.
 %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 binding to Babeltrace library
+Summary(pl.UTF-8):     Wiązanie Pythona 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 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 do biblioteki Babeltrace.
 
 %prep
 %setup -q
@@ -101,11 +106,6 @@ rm -rf $RPM_BUILD_ROOT
 # packaged as %doc
 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/babeltrace
 
-%if %{with python}
-%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_babeltrace.{la,a}
-%py_postclean
-%endif
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -161,8 +161,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_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
This page took 0.050485 seconds and 4 git commands to generate.