## START: Set by rpmautospec ## (rpmautospec version 0.7.2) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Upstream build system requires the use of libbpf sources and a pinned version # https://bugzilla.redhat.com/show_bug.cgi?id=2184233#c5 %global libbpf_url https://github.com/libbpf/libbpf %global libbpf_commit fbcb2871fe093f5c2d1289dd6d7b2fc3d1e3f85f %global libbpf_shortcommit %(c=%{libbpf_commit}; echo ${c:0:7}) %global libbpf_date 20240603 # see libbpf/src/Makefile for version %global libbpf_version 1.5.0~^%{libbpf_date}git%{libbpf_shortcommit} Name: veristat Version: 0.3.2 Release: %autorelease Summary: Tool for loading, verifying, and debugging BPF object files License: BSD-2-Clause OR GPL-2.0-only URL: https://github.com/libbpf/veristat Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: %{libbpf_url}/archive/%{libbpf_commit}/libbpf-%{libbpf_version}.tar.gz BuildRequires: gcc BuildRequires: make # libbpf deps BuildRequires: elfutils-libelf-devel # upstream does not support dynamic linking Provides: bundled(libbpf) = %{libbpf_version} %description veristat is the tool for loading, verifying, and debugging BPF object files. It allows to work with BPF object files convenient and quickly, without having to use or modify corresponding user-space parts of an application. %prep %autosetup -p1 # provide the libbpf version we specify rather than using git submodule tar xf %{SOURCE1} rmdir libbpf mv libbpf-%{libbpf_commit} libbpf mv libbpf/LICENSE libbpf-LICENSE mv libbpf/LICENSE.BSD-2-Clause libbpf-LICENSE.BSD-2-Clause mv libbpf/LICENSE.LGPL-2.1 libbpf-LICENSE.LGPL-2.1 %build export EXTRA_CFLAGS="%{optflags}" export EXTRA_LDFLAGS="%{build_ldflags}" %make_build -C src V=1 %install %make_install -C src prefix="%{_prefix}" %files %license LICENSE libbpf-LICENSE* %doc README.md %{_bindir}/veristat %changelog ## START: Generated by rpmautospec * Sat Jul 20 2024 Fedora Release Engineering - 0.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jun 13 2024 Michel Lind - 0.3.2-1 - Update to 0.3.2 (rhbz#2290489) * Mon Mar 04 2024 Michel Lind - 0.3.1-1 - Update to 0.3.1 (rhbz#2267423) * Sat Jan 27 2024 Fedora Release Engineering - 0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 26 2024 Michel Lind - 0.3-1 - Update to 0.3 * Thu Oct 26 2023 Michel Lind - 0.2-1 - Update to 0.2 * Sat Jul 22 2023 Fedora Release Engineering - 0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri May 12 2023 Davide Cavalca - 0.1-3 - Drop debugging leftover * Fri May 12 2023 Davide Cavalca - 0.1-2 - Backport upstream fix to use the correct includes * Tue May 09 2023 Davide Cavalca - 0.1-1 - Initial import; Fixes: RHBZ#2184233 ## END: Generated by rpmautospec