use bcond for lua
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
47a11ce76f
commit
59c0211bd8
10
bcc.spec
10
bcc.spec
@ -1,8 +1,8 @@
|
|||||||
# luajit is not available for some architectures
|
# luajit is not available for some architectures
|
||||||
%ifarch ppc64 ppc64le
|
%ifarch ppc64 ppc64le
|
||||||
%{!?with_lua: %global with_lua 0}
|
%bcond_with lua
|
||||||
%else
|
%else
|
||||||
%{!?with_lua: %global with_lua 1}
|
%bcond_without lua
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: bcc
|
Name: bcc
|
||||||
@ -24,7 +24,7 @@ BuildRequires: python3-devel
|
|||||||
BuildRequires: elfutils-libelf-devel
|
BuildRequires: elfutils-libelf-devel
|
||||||
BuildRequires: llvm-devel llvm-static clang-devel
|
BuildRequires: llvm-devel llvm-static clang-devel
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
%if %{with_lua}
|
%if %{with lua}
|
||||||
BuildRequires: pkgconfig(luajit)
|
BuildRequires: pkgconfig(luajit)
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|||||||
Python3 bindings for BPF Compiler Collection (BCC)
|
Python3 bindings for BPF Compiler Collection (BCC)
|
||||||
|
|
||||||
|
|
||||||
%if %{with_lua}
|
%if %{with lua}
|
||||||
%package lua
|
%package lua
|
||||||
Summary: Standalone tool to run BCC tracers written in Lua
|
Summary: Standalone tool to run BCC tracers written in Lua
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
@ -154,7 +154,7 @@ mv %{buildroot}/usr/share/%{name}/examples %{buildroot}/%{_docdir}/%{name}/
|
|||||||
%exclude %{_datadir}/%{name}/tools/old/
|
%exclude %{_datadir}/%{name}/tools/old/
|
||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
|
|
||||||
%if %{with_lua}
|
%if %{with lua}
|
||||||
%files lua
|
%files lua
|
||||||
%{_bindir}/bcc-lua
|
%{_bindir}/bcc-lua
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user