Open
use system compile flags #12
Funda WangAdd on Jan 3, 2025
use system compile flags #12
Open
Merged fromrefs/pull/12/headintomaster
Total: 1 files changed+8-6
| @@ -1,6 +1,6 @@ | |||
| 1 | Name: bpftool | 1 | Name: bpftool |
| 2 | Version: 7.2.0 | 2 | Version: 7.2.0 |
| 3 | -Release: 2 | 3 | +Release: 3 |
| 4 | Summary: Tool for inspection and manipulation of BPF programs and maps | 4 | Summary: Tool for inspection and manipulation of BPF programs and maps |
| 5 | License: GPL-2.0-only | 5 | License: GPL-2.0-only |
| 6 | URL: https://www.kernel.org/ | 6 | URL: 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 | %build | 23 | %build |
| 24 | -%make_build -C src V=1 | 24 | +%make_build -C src V=1 EXTRA_CFLAGS="%{build_cflags}" EXTRA_LDFLAGS="%{build_ldflags}" |
| 25 | %make_build -C docs V=1 man | 25 | %make_build -C docs V=1 man |
| 26 | 26 | ||
| 27 | %install | 27 | %install |
| 28 | make -C src V=1 install DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir} | 28 | make -C src V=1 install DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir} |
| 29 | make -C docs V=1 install DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir} | 29 | make -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 | %files | 31 | %files |
| 34 | %license LICENSE LICENSE.BSD-2-Clause LICENSE.GPL-2.0 | 32 | %license LICENSE LICENSE.BSD-2-Clause LICENSE.GPL-2.0 |
| 35 | %doc README.md | 33 | %doc README.md |
| 36 | %{_sbindir}/bpftool | 34 | %{_sbindir}/bpftool |
| 37 | -%{_mandir}/man?/*.gz | 35 | +%{_mandir}/man?/* |
| 38 | -%{_sysconfdir}/bash_completion.d/bpftool | 36 | +%{_datadir}/bash-completion/completions/bpftool |
| 39 | 37 | ||
| 40 | %changelog | 38 | %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-2 | 43 | * Mon Oct 28 2024 liwei <liwei883@huawei.com> - 7.2.0-2 |
| 42 | - Add README | 44 | - Add README |
| 43 | 45 | ||