## START: Set by rpmautospec ## (rpmautospec version 0.8.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 forgeurl https://github.com/epsilonrt/mbpoll Name: mbpoll Version: 1.5.2 Release: %autorelease Summary: Command line utility to communicate with ModBus slave (RTU or TCP) %forgemeta License: GPL-3.0-only URL: %{forgeurl} Source: %{forgesource} BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: pkgconf-pkg-config BuildRequires: pkgconfig(libmodbus) %description mbpoll is a command-line utility used to communicate with ModBus slave devices over RTU or TCP. It supports reading discrete inputs, binary outputs (coils), input registers, and holding registers, with values expressed in decimal, hexadecimal, or single‑precision floating‑point formats. The tool is compatible with libmodbus and provides functionality similar to the original modpoll program while being fully independent and open source. %prep %autosetup %build %cmake %cmake_build %install %cmake_install %files %license COPYING %doc README.md AUTHORS %{_bindir}/mbpoll %changelog ## START: Generated by rpmautospec * Fri Jan 30 2026 John Doe - 1.5.2-1 - Uncommitted changes ## END: Generated by rpmautospec