| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| Name: mbpoll |
| Version: 1.5.2 |
| Release: 0 |
| Summary: Command line utility to communicate with ModBus slave (RTU or TCP) |
| License: GPL-3.0-or-later |
| Group: Hardware/Other |
| URL: https://github.com/epsilonrt/mbpoll |
| Source: https://github.com/epsilonrt/mbpoll/archive/v%{version}.tar.gz |
| BuildRequires: cmake |
| BuildRequires: gcc-c++ |
| BuildRequires: pkgconfig |
| BuildRequires: pkgconfig(libmodbus) >= 3.1.4 |
| |
| %description |
| mbpoll uses libmodbus (http://libmodbus.org/). |
| Although the syntax of these options is very close modpoll proconX program, |
| it is a completely independent project. |
| |
| mbpoll can: |
| - read discrete inputs |
| - read and write binary outputs (coil) |
| - read input registers |
| - read and write output registers (holding register) |
| |
| The reading and writing registers may be in decimal, hexadecimal or |
| floating single precision. |
| |
| %prep |
| %setup -q |
| sed -i 's/\r$//' AUTHORS README.md |
| |
| %build |
| %cmake |
| %make_build |
| |
| %install |
| %cmake_install |
| |
| %files |
| %license COPYING |
| %doc AUTHORS README.md |
| %{_bindir}/mbpoll |
| |
| %changelog |