Do not build Perf GUI based on GTK2

GTK2 is very old and support for it in ROSA may break at any moment.
Perf is mostly used from command line anyway. Let us not build the GUI.

Signed-off-by: Evgenii Shatokhin <eshatokhin@virtuozzo.com>
This commit is contained in:
Evgenii Shatokhin 2018-12-01 18:39:37 +03:00
parent e572abbe33
commit 3c06415f88

View file

@ -264,7 +264,6 @@ BuildRequires: elfutils-devel
BuildRequires: libunwind-devel BuildRequires: libunwind-devel
BuildRequires: newt-devel BuildRequires: newt-devel
BuildRequires: perl-devel BuildRequires: perl-devel
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: xmlto BuildRequires: xmlto
BuildRequires: zlib-devel BuildRequires: zlib-devel
@ -1055,8 +1054,8 @@ LC_ALL=C perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -%{rpmrel}/" Makefile
%define perf_is_x64 0 %define perf_is_x64 0
%endif %endif
%smake -C tools/perf -s IS_X86_64=%{perf_is_x64} HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} all %smake -C tools/perf -s IS_X86_64=%{perf_is_x64} HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} NO_GTK2=1 all
%smake -C tools/perf -s prefix=%{_prefix} man %smake -C tools/perf -s prefix=%{_prefix} NO_GTK2=1 man
%endif %endif
%if %{build_cpupower} %if %{build_cpupower}
@ -1278,7 +1277,6 @@ rm -rf %{buildroot}
%dir %{_prefix}/libexec/perf-core %dir %{_prefix}/libexec/perf-core
%dir %{_libdir}/traceevent %dir %{_libdir}/traceevent
%dir %{_libdir}/traceevent/plugins %dir %{_libdir}/traceevent/plugins
%{_libdir}/libperf-gtk.so
%{_libdir}/traceevent/plugins/* %{_libdir}/traceevent/plugins/*
%{_prefix}/libexec/perf-core/* %{_prefix}/libexec/perf-core/*
%{_mandir}/man[1-8]/perf* %{_mandir}/man[1-8]/perf*