From c6927c23220a5dae9c33782d3b13e4b81b81a4ba Mon Sep 17 00:00:00 2001 From: Shinwell Hu Date: Wed, 22 Jul 2020 04:07:01 +0000 Subject: [PATCH] clean reference to python bcc module --- bcc.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bcc.spec b/bcc.spec index 949a4b2..32129b4 100644 --- a/bcc.spec +++ b/bcc.spec @@ -97,6 +97,9 @@ Command line tools for BPF Compiler Collection (BCC) find %{buildroot}%{_datadir}/%{name}/{tools,examples} -type f -exec \ sed -i -e '1s=^#!/usr/bin/python\([0-9.]\+\)\?$=#!%{__python3}=' \ -e '1s=^#!/usr/bin/env python\([0-9.]\+\)\?$=#!%{__python3}=' \ + -e 's/from bcc/from bpfcc/g' \ + -e 's/import bcc/import bpfcc/g' \ + -e 's/bcc\./bpfcc\./g' \ -e '1s=^#!/usr/bin/env bcc-lua$=#!/usr/bin/bcc-lua=' {} \; # Move man pages to the right location