diff --git a/bpftool.spec b/bpftool.spec index feda5fa2bc91405c0f99a076de356ceff8a747f5..890b50d8894209cebcc0bbe3af9d59196e6ec02e 100644 --- a/bpftool.spec +++ b/bpftool.spec @@ -1,6 +1,6 @@ Name: bpftool Version: 7.2.0 -Release: 2 +Release: 3 Summary: Tool for inspection and manipulation of BPF programs and maps License: GPL-2.0-only URL: https://www.kernel.org/ @@ -21,23 +21,25 @@ and maps) on the system. %autosetup -p1 -n %{name}-%{version} %build -%make_build -C src V=1 +%make_build -C src V=1 EXTRA_CFLAGS="%{build_cflags}" EXTRA_LDFLAGS="%{build_ldflags}" %make_build -C docs V=1 man %install make -C src V=1 install DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir} make -C docs V=1 install DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir} -mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d -mv %{buildroot}%{_datadir}/bash-completion/completions/bpftool %{buildroot}%{_sysconfdir}/bash_completion.d/bpftool %files %license LICENSE LICENSE.BSD-2-Clause LICENSE.GPL-2.0 %doc README.md %{_sbindir}/bpftool -%{_mandir}/man?/*.gz -%{_sysconfdir}/bash_completion.d/bpftool +%{_mandir}/man?/* +%{_datadir}/bash-completion/completions/bpftool %changelog +* Fri Jan 03 2025 Funda Wang - 7.2.0-3 +- use system compile flags +- use standard bash-completion dir + * Mon Oct 28 2024 liwei - 7.2.0-2 - Add README