Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2017-11-18 00:20:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "bcc" Sat Nov 18 00:20:54 2017 rev:9 rq:542594 version:0.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2017-11-10 14:57:30.935821666 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2017-11-18 00:20:55.315926169 +0100 @@ -1,0 +2,6 @@ +Fri Nov 17 09:19:40 UTC 2017 - [email protected] + +- Use the python3 package by default +- Provide and obsolete python-bcc (it's python2-bcc now) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ bcc.spec ++++++ --- /var/tmp/diff_new_pack.K90w9F/_old 2017-11-18 00:20:56.591879711 +0100 +++ /var/tmp/diff_new_pack.K90w9F/_new 2017-11-18 00:20:56.591879711 +0100 @@ -90,14 +90,16 @@ %description devel Shared library and pkg-config for developing BCC programs -%package -n python-bcc -Summary: Python bindings for BPF Compiler Collection +%package -n python2-bcc +Summary: Python2 bindings for BPF Compiler Collection Group: Development/Languages/Python Requires: kernel >= 4.1.0 Requires: kernel-devel >= 4.1.0 Requires: libbcc0 = %{version} +Provides: python-bcc = %{version} +Obsoletes: python-bcc < %{version} -%description -n python-bcc +%description -n python2-bcc Python bindings for BPF Compiler Collection (BCC) %package -n python3-bcc @@ -125,10 +127,10 @@ %package examples Summary: Examples for BPF Compiler Collection (BCC) Group: Development/Sources -Requires: python-bcc = %{version} -Requires: python-future -Recommends: python-pyroute2 -Recommends: python-netaddr +Requires: python3-bcc = %{version} +Requires: python3-future +Recommends: python3-pyroute2 +Recommends: python3-netaddr Recommends: netperf %description examples @@ -137,8 +139,8 @@ %package tools Summary: Tracing tools of BPF Compiler Collection (BCC) Group: System/Monitoring -Requires: python-bcc = %{version} -Requires: python-future +Requires: python3-bcc = %{version} +Requires: python3-future %description tools Python tracing scripts of BPF Compiler Collection (BCC) @@ -171,6 +173,7 @@ mkdir build pushd build CFLAGS=$RPM_OPT_FLAGS CXXFLAGS=$RPM_OPT_FLAGS cmake \ + -DPYTHON_CMD=python3 \ -DREVISION_LAST=%{libversion} \ -DREVISION=%{libversion} \ -DCMAKE_INSTALL_PREFIX=/usr \ @@ -190,12 +193,14 @@ %install pushd build make install DESTDIR=%{buildroot} -# For python3-bcc -cmake -DPYTHON_CMD=python3 .. + +# For python2-bcc (should be removed in the future) +cmake -DPYTHON_CMD=python2 .. pushd src/python/ make %{?_smp_mflags} VERBOSE=1 make install DESTDIR=%{buildroot} popd + popd %post -n libbcc0 -p /sbin/ldconfig @@ -221,7 +226,7 @@ %doc LICENSE.txt COPYRIGHT.txt %{_libdir}/libbpf.so.* -%files -n python-bcc +%files -n python2-bcc %{python_sitelib}/bcc* %files -n python3-bcc
