#2 Enable python3 bindings on EL7
Opened 4 years ago by cottsay. Modified 3 years ago
rpms/ cottsay/babeltrace epel7  into  epel7

file modified
+14 -9
@@ -1,10 +1,10 @@ 

- %if 0%{?fedora}

+ %if 0%{?fedora} || 0%{?rhel} >= 7

I presume that this is essentially a nop on non-EPEL distros since babeltrace isn't shipped there at all?
[babeltrace is disabled on all RHEL7 hosts for GDB.] A clarifying comment would be welcome here
for <cough>casual</cough> maintainers like me.

  %global with_python3 1

  %endif

  

  Name:           babeltrace

  Version:        1.2.4

- Release:        3%{?dist}

+ Release:        4%{?dist}

  Summary:        Trace Viewer and Converter, mainly for the Common Trace Format

  License:        MIT and GPLv2

  URL:            http://www.efficios.com/babeltrace
@@ -19,7 +19,7 @@ 

  BuildRequires:  popt-devel >= 1.13

  BuildRequires:  swig >= 2.0

  %if 0%{?with_python3}

- BuildRequires:  python3-devel

+ BuildRequires:  python%{python3_pkgversion}-devel

  # For check

  BuildRequires:  perl-Test-Harness

  %endif
@@ -59,12 +59,13 @@ 

  

  

  %if 0%{?with_python3}

- %package -n python3-%{name}

+ %package -n python%{python3_pkgversion}-%{name}

  Summary:        Common Trace Format Babel Tower

  Group:          Development/Libraries

  Requires:       lib%{name}%{?_isa} = %{version}-%{release}

+ %{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}

  

- %description -n python3-%{name}

+ %description -n python%{python3_pkgversion}-%{name}

  This project provides trace read and write libraries, as well as a trace

  converter. A plugin can be created for any trace format to allow its conversion

  to/from another trace format.
@@ -80,9 +81,10 @@ 

  autoreconf -v --install --force

  %if 0%{?with_python3}

  export PYTHON=%{__python3}

+ export PYTHON_CONFIG=%{__python3}-config

  %endif

  %configure --disable-static --docdir=%{_pkgdocdir} \

- %if 0%{?_with_python3}

+ %if 0%{?with_python3}

  --enable-python-bindings

  %endif

  
@@ -123,15 +125,18 @@ 

  %{_libdir}/pkgconfig/babeltrace.pc

  %{_libdir}/pkgconfig/babeltrace-ctf.pc

  

- %if 0%{?_with_python3}

- %files -n python3-%{name}

+ %if 0%{?with_python3}

+ %files -n python%{python3_pkgversion}-%{name}

  %{python3_sitelib}/babeltrace.py

  %{python3_sitelib}/__pycache__/*

- %{python3_sitearch}/

+ %{python3_sitearch}/*

  %endif

  

  

  %changelog

+ * Wed Oct 23 2019 Scott K Logan <logans@cottsay.net> - 1.2.4-4

+ - Enable python3 bindings on EL7

+ 

  * Thu Aug 06 2015 Ken Dreyer <kdreyer@redhat.com> - 1.2.4-3

  - Add with_python3 macro to support EL7 (rhbz#1235466)

  - Define _pkgdocdir to support EL7 (rhbz#1235466)

no initial comment

Hi @ktdreyer, is there anything I can do to help move this along?

@greenscientist, @ktdreyer, anything I can do to help get this merged and built?

I presume that this is essentially a nop on non-EPEL distros since babeltrace isn't shipped there at all?
[babeltrace is disabled on all RHEL7 hosts for GDB.] A clarifying comment would be welcome here
for <cough>casual</cough> maintainers like me.

Metadata