Open
use system compile flags #12
Funda WangAdd on Jan 3, 2025
use system compile flags #12
Open
Funda WangAdd on Jan 3, 2025
Merged fromrefs/pull/12/headintomaster
Total: 1 files changed+8-6
@@ -1,6 +1,6 @@
1Name: bpftool1Name: bpftool
2Version: 7.2.02Version: 7.2.0
3-Release: 23+Release: 3
4Summary: Tool for inspection and manipulation of BPF programs and maps4Summary: Tool for inspection and manipulation of BPF programs and maps
5License: GPL-2.0-only5License: GPL-2.0-only
6URL: https://www.kernel.org/6URL: https://www.kernel.org/
@@ -21,23 +21,25 @@ and maps) on the system.
21%autosetup -p1 -n %{name}-%{version}21%autosetup -p1 -n %{name}-%{version}
22 22 
23%build23%build
24-%make_build -C src V=124+%make_build -C src V=1 EXTRA_CFLAGS="%{build_cflags}" EXTRA_LDFLAGS="%{build_ldflags}"
25%make_build -C docs V=1 man25%make_build -C docs V=1 man
26 26 
27%install27%install
28make -C src V=1 install DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir}28make -C src V=1 install DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir}
29make -C docs V=1 install DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir}29make -C docs V=1 install DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir}
30-mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
31-mv %{buildroot}%{_datadir}/bash-completion/completions/bpftool %{buildroot}%{_sysconfdir}/bash_completion.d/bpftool
32 30 
33%files31%files
34%license LICENSE LICENSE.BSD-2-Clause LICENSE.GPL-2.032%license LICENSE LICENSE.BSD-2-Clause LICENSE.GPL-2.0
35%doc README.md33%doc README.md
36%{_sbindir}/bpftool34%{_sbindir}/bpftool
37-%{_mandir}/man?/*.gz35+%{_mandir}/man?/*
38-%{_sysconfdir}/bash_completion.d/bpftool36+%{_datadir}/bash-completion/completions/bpftool
39 37 
40%changelog38%changelog
39+* Fri Jan 03 2025 Funda Wang <fundawang@yeah.net> - 7.2.0-3
40+- use system compile flags
41+- use standard bash-completion dir
42+ 
41* Mon Oct 28 2024 liwei <liwei883@huawei.com> - 7.2.0-243* Mon Oct 28 2024 liwei <liwei883@huawei.com> - 7.2.0-2
42- Add README44- Add README
43 45