Name: restmbmaster Version: 1 Release: 1%{?dist} Summary: Rest API gateway to Modbus slaves License: GPLv2+ URL: https://github.com/jpirko/%{name}/ Source0: https://github.com/jpirko/%{name}/raw/files/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: libmodbus-devel BuildRequires: libmicrohttpd-devel BuildRequires: systemd %description This package contains a tool called %{name} which is a simple daemon that allows user to access Modbus slaves over Rest API. The slaves could be either connected over serial line (Modbus RTU protocol), or over TCP (Modbus TCP protocol). %prep %setup -q %build %configure --disable-static %{make_build} %install %{make_install} mkdir -p %{buildroot}%{_unitdir} install -p systemd/%{name}@.service %{buildroot}%{_unitdir} mkdir -p %{buildroot}/%{_sysconfdir}/%{name} %files %license COPYING %doc %{name}/example_configs/ example_configs/ %{_unitdir}/%{name}@.service %{_bindir}/%{name} %{_mandir}/man8/%{name}.8* %{_mandir}/man5/%{name}.conf.5* %{_sysconfdir}/%{name} %changelog * Sat Dec 28 2019 Jiri Pirko - 1-1 - Initial build.