## START: Set by rpmautospec ## (rpmautospec version 0.3.8) ## 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 # it crashes with lto enabled on StringsetParser::parsers first modification %define _lto_cflags %{nil} Name: ethq Version: 0.6.3 Release: %autorelease Summary: Ethernet NIC Queue stats viewer %global gitver %(echo %{version} | tr . _) License: MPL-2.0 URL: https://github.com/isc-projects/ethq Source0: %{url}/archive/v%{gitver}/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: make BuildRequires: ncurses-devel %description Displays an auto-updating per-second count of the number of packets and bytes being handled by each specified NIC, and on multi-queue NICs shows the per-queue statistics too. %prep %autosetup -n %{name}-%{gitver} %build %make_build CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" %install # TODO: contribute make install target %dnl %make_install CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" mkdir -p %{buildroot}%{_sbindir} install ethq %{buildroot}%{_sbindir} %check ./%{name} -h ./%{name}_test generic < /dev/null %files %license LICENSE %doc README.md %{_sbindir}/%{name} %changelog ## START: Generated by rpmautospec * Fri Feb 09 2024 Petr Menšík - 0.6.3-2 - Disable lto to prevent crashes * Fri Feb 09 2024 Petr Menšík - 0.6.3-1 - Initial rpm package spec * Fri Feb 09 2024 Ray Bellis - RPMAUTOSPEC: unresolvable merge ## END: Generated by rpmautospec