disable python2

This commit is contained in:
jackie_wu 2020-10-29 19:30:03 +08:00
parent bd4b301a8c
commit 5c20b73484

View File

@ -1,6 +1,6 @@
Name: trace-cmd
Version: 2.7
Release: 4
Release: 5
Summary: A front-end for Ftrace
License: GPLv2 and LGPLv2
URL: http://git.kernel.org/?p=linux/kernel/git/rostedt/trace-cmd.git;a=summary
@ -8,24 +8,13 @@ Source0: https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-c
Source1: kernelshark.desktop
Patch1: 0001-trace-cmd-Figure-out-the-arch-and-install-library-to.patch
Patch2: 0002-trace-cmd-Fix-the-logic-behind-SWIG_DEFINED-in-the-M.patch
BuildRequires: gcc xmlto asciidoc mlocate libxml2-devel
BuildRequires: gtk2-devel glib2-devel desktop-file-utils
Provides: kernelshark
Obsoletes: kernelshark
%description
This package is a user-space front-end command-line tool for Ftrace.
%package python2
Summary: Python plugin support for trace-cmd
Requires: trace-cmd%{_isa} = %{version}-%{release}
BuildRequires: swig python2-devel
%description python2
Python plugin support for trace-cmd.
%package_help
%prep
@ -79,15 +68,14 @@ desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/kernelshark.deskt
%{_datadir}/applications/kernelshark.desktop
%{_sysconfdir}/bash_completion.d/trace-cmd.bash
%files python2
%doc Documentation/README.PythonPlugin
%{_libdir}/%{name}/plugins/plugin_python.so
%{_libdir}/%{name}/python/
%files help
%{_mandir}/man1/*
%{_mandir}/man5/*
%changelog
* Wed Oct 28 2020 Anan Fu <fuanan3@huawei.com> - 2.7-5
- disable python2
* Wed Nov 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.7-4
- Package init