Accepting request 967868 from home:dirkmueller:Factory
- add rebuild subpackage to ensure rebuild in TW OBS-URL: https://build.opensuse.org/request/show/967868 OBS-URL: https://build.opensuse.org/package/show/Base:System/bpftool?expand=0&rev=6
This commit is contained in:
parent
11b830a8e8
commit
f760fe10ed
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 8 15:15:39 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add rebuild subpackage to ensure rebuild in TW
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 14 11:40:44 UTC 2021 - Shung-Hsi Yu <shung-hsi.yu@suse.com>
|
Thu Oct 14 11:40:44 UTC 2021 - Shung-Hsi Yu <shung-hsi.yu@suse.com>
|
||||||
|
|
||||||
|
26
bpftool.spec
26
bpftool.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package bpftool
|
# spec file for package bpftool
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,14 +16,14 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: bpftool
|
|
||||||
%define version %(rpm -q --qf '%%{VERSION}' kernel-source)
|
%define version %(rpm -q --qf '%%{VERSION}' kernel-source)
|
||||||
|
Name: bpftool
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Tool for inspection and manipulation of BPF programs and maps
|
Summary: Tool for inspection and manipulation of BPF programs and maps
|
||||||
License: GPL-2.0-only
|
License: GPL-2.0-only
|
||||||
Group: Development/Tools/Other
|
Group: Development/Tools/Other
|
||||||
URL: http://www.kernel.org/
|
URL: https://www.kernel.org/
|
||||||
BuildRequires: binutils-devel
|
BuildRequires: binutils-devel
|
||||||
BuildRequires: docutils
|
BuildRequires: docutils
|
||||||
BuildRequires: kernel-source
|
BuildRequires: kernel-source
|
||||||
@ -33,14 +33,25 @@ BuildRequires: libelf-devel
|
|||||||
bpftool allows for inspection and simple modification of BPF objects (programs
|
bpftool allows for inspection and simple modification of BPF objects (programs
|
||||||
and maps) on the system.
|
and maps) on the system.
|
||||||
|
|
||||||
|
%package rebuild
|
||||||
|
Summary: Empty package to ensure rebuilding bpftool in OBS
|
||||||
|
Group: System/Monitoring
|
||||||
|
%requires_eq kernel-source
|
||||||
|
|
||||||
|
%description rebuild
|
||||||
|
This is empty package that ensures bpftool is rebuilt every time
|
||||||
|
kernel-default is rebuilt in OBS.
|
||||||
|
|
||||||
|
There is no reason to install this package.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
(cd /usr/src/linux ; tar -cf - COPYING CREDITS README tools include scripts Kbuild Makefile arch/*/{include,lib,Makefile} kernel/bpf lib) | tar -xf -
|
(cd %{_prefix}/src/linux ; tar -cf - COPYING CREDITS README tools include scripts Kbuild Makefile arch/*/{include,lib,Makefile} kernel/bpf lib) | tar -xf -
|
||||||
cp /usr/src/linux/LICENSES/preferred/GPL-2.0 .
|
cp %{_prefix}/src/linux/LICENSES/preferred/GPL-2.0 .
|
||||||
sed -i -e 's/CFLAGS += -O2/CFLAGS = $(RPM_OPT_FLAGS)/' Makefile
|
sed -i -e 's/CFLAGS += -O2/CFLAGS = $(RPM_OPT_FLAGS)/' Makefile
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd tools/bpf/bpftool
|
cd tools/bpf/bpftool
|
||||||
%make_build V=1 \
|
%make_build \
|
||||||
feature-reallocarray=1 \
|
feature-reallocarray=1 \
|
||||||
feature-libbfd-liberty=1 \
|
feature-libbfd-liberty=1 \
|
||||||
feature-disassembler-four-args=1 \
|
feature-disassembler-four-args=1 \
|
||||||
@ -57,4 +68,7 @@ make install doc-install DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir
|
|||||||
%{_datadir}/bash-completion/completions/bpftool
|
%{_datadir}/bash-completion/completions/bpftool
|
||||||
%{_mandir}/man?/*.gz
|
%{_mandir}/man?/*.gz
|
||||||
|
|
||||||
|
%files rebuild
|
||||||
|
%license GPL-2.0
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user