## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## 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 %global forgeurl https://github.com/epsilonrt/mbpoll Name: mbpoll Version: 1.5.4 Release: %autorelease Summary: Command line utility to communicate with ModBus slave (RTU or TCP) %forgemeta License: GPL-3.0-or-later URL: %{forgeurl} Source0: %{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 %conf %cmake %build %cmake_build %install %cmake_install %files %license COPYING %doc README.md AUTHORS %{_bindir}/mbpoll %{_mandir}/man1/mbpoll.1* %changelog ## START: Generated by rpmautospec * Thu Jul 16 2026 Fedora Release Engineering - 1.5.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Wed Feb 11 2026 Nicolas De Amicis - 1.5.4-1 - Bump to 1.5.4 (manpage added) * Sun Feb 08 2026 Nicolas De Amicis - 1.5.2-1 - Initial import (fedora#2435517). ## END: Generated by rpmautospec