## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 %global date 20240730 %global commit b123373e8aed9966c29c0a5981d3a62bd9996e50 %global shortcommit %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: aer-inject Version: 0^%{date}git%{shortcommit} Release: %autorelease Summary: Linux AER Test Suite # util.c is GPL-2.0-or-later, the rest is GPL-2.0-only License: GPL-2.0-only AND GPL-2.0-or-later # Original upstream appears to be # https://git.kernel.org/pub/scm/linux/kernel/git/gong.chen/aer-inject.git/ URL: https://github.com/intel/aer-inject Source: %{url}/archive/%{commit}/%{name}-%{commit}.tar.gz BuildRequires: bison BuildRequires: flex BuildRequires: gcc BuildRequires: make BuildRequires: sed %description aer-inject allows to inject PCIE AER errors on the software level into a running Linux kernel. This is intended for validation of the PCIE driver error recovery handler and PCIE AER core handler. %prep %autosetup -n %{name}-%{commit} -p1 # Preseve timestamps on install and set permissions sed -i 's/install aer-inject/install -pm0755 aer-inject/' Makefile %build %make_build CFLAGS="%{build_cflags}" %install %make_install PREFIX="%{_bindir}" %files %license LICENSE %doc README SPEC examples/ %{_bindir}/%{name} %changelog ## START: Generated by rpmautospec * Thu Feb 20 2025 Davide Cavalca - 0^20240730git-1 - Initial import; Fixes: RHBZ#2338092 ## END: Generated by rpmautospec