Bug 1786918 - Review Request: restmbmaster - Rest API gateway to Modbus slaves
Summary: Review Request: restmbmaster - Rest API gateway to Modbus slaves
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Dan Horák
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-29 08:31 UTC by Jiri Pirko
Modified: 2020-01-09 14:55 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-09 14:55:34 UTC
Type: ---
Embargoed:
dan: fedora-review+


Attachments (Terms of Use)

Description Jiri Pirko 2019-12-29 08:31:20 UTC
Spec URL: http://resnulli.us/restmbmaster/restmbmaster.spec
SRPM URL: http://resnulli.us/restmbmaster/restmbmaster-1-1.fc32.src.rpm
Description: This package contains a tool called restmbmaster 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).
Fedora Account System Username: jirka

Comment 1 Dan Horák 2020-01-02 12:37:30 UTC
few rather cosmetic issues
- s/Source:/Source0:/
- you can use %{make_build} and %{make_install} instead of make + parameters in %build and %install
- consider using %{name} in Source and %files instead of repeating "restmbmaster"
- $RPM_BUILD_ROOT is being obsoleted, %{buildroot} is the modern equivalent
- drop the %config/%attr options for the unit file, the system unit file is not a config file and the set attributes are the default ones anyway
- you might want to include /etc/restmbmaster/ directory in the package

Comment 2 Jiri Pirko 2020-01-03 18:23:59 UTC
(In reply to Dan Horák from comment #1)
> few rather cosmetic issues
> - s/Source:/Source0:/
> - you can use %{make_build} and %{make_install} instead of make + parameters
> in %build and %install
> - consider using %{name} in Source and %files instead of repeating
> "restmbmaster"
> - $RPM_BUILD_ROOT is being obsoleted, %{buildroot} is the modern equivalent
> - drop the %config/%attr options for the unit file, the system unit file is
> not a config file and the set attributes are the default ones anyway
> - you might want to include /etc/restmbmaster/ directory in the package

Thanks Dan! I fixed all. Please check the original links.

Comment 3 Dan Horák 2020-01-06 13:16:46 UTC
formal review is here, see the notes explaining OK* and BAD statuses below:

OK	source files match upstream:
	    b91074048a2cd4b092d25c845c2aaa543d26b9ab  restmbmaster-1.tar.gz
OK	package meets naming and versioning guidelines.
OK	specfile is properly named, is cleanly written and uses macros consistently.
OK	dist tag is present.
OK	license field matches the actual license (GPLv2+)
OK	license is open source-compatible. License text included in package
OK	latest version is being packaged.
OK	BuildRequires are proper.
OK	compiler flags are appropriate.
OK	package builds in mock (Rawhide/ppc64le).
OK	debuginfo package looks complete.
OK	rpmlint is silent.
Ok	final provides and requires look sane.
N/A	%check is present and all tests pass.
OK	no shared libraries are added to the regular linker search paths.
OK	owns the directories it creates.
OK	doesn't own any directories it shouldn't.
OK	no duplicates in %files.
OK	file permissions are appropriate.
OK	no scriptlets present.
OK	code, not content.
OK	documentation is small, so no -docs subpackage is necessary.
OK	%docs are not necessary for the proper functioning of the package.
OK	no headers.
OK	no pkgconfig files.
OK	no libtool .la droppings.
OK	not a GUI app.

- IMO the URL tag shouldn't use the %{name} macro, it's useful when it's directly usable/clickable, without macro expansion
- build throws following when packaging the docs, I guess only the "example_configs" dir should be listed as %doc
...
cp: cannot stat 'restmbmaster/example_configs/': No such file or directory
...

The package is APPROVED.

Comment 4 Gwyn Ciesla 2020-01-09 14:31:24 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/restmbmaster


Note You need to log in before you can comment on or make changes to this bug.