3.19. Checking bello for sanity
This section shows possible warnings and errors that can occur when checking RPM sanity on the example of the bello SPEC file and bello binary RPM.
3.19.1. Checking the bello SPEC File
Exemple 3.2. Output of running the rpmlint
command on the SPEC file for bello
$ rpmlint bello.spec bello.spec: W: invalid-url Source0: https://www.example.com/bello/releases/bello-0.1.tar.gz HTTP Error 404: Not Found 0 packages and 1 specfiles checked; 0 errors, 1 warnings.
For bello.spec
, there is only one warning, which says that the URL listed in the Source0
directive is unreachable. This is expected, because the specified example.com
URL does not exist. Presuming that we expect this URL to work in the future, we can ignore this warning.
Exemple 3.3. Output of running the rpmlint
command on the SRPM for bello
$ rpmlint ~/rpmbuild/SRPMS/bello-0.1-1.el8.src.rpm bello.src: W: invalid-url URL: https://www.example.com/bello HTTP Error 404: Not Found bello.src: W: invalid-url Source0: https://www.example.com/bello/releases/bello-0.1.tar.gz HTTP Error 404: Not Found 1 packages and 0 specfiles checked; 0 errors, 2 warnings.
For the bello
SRPM, there is a new warning, which says that the URL specified in the URL
directive is unreachable. Assuming the link will be working in the future, we can ignore this warning.
3.19.2. Checking the bello binary RPM
When checking binary RPMs, rpmlint
checks for the following items:
- Documentation
- Manual pages
- Consistent use of the filesystem hierarchy standard
Exemple 3.4. Output of running the rpmlint
command on the binary RPM for bello
$ rpmlint ~/rpmbuild/RPMS/noarch/bello-0.1-1.el8.noarch.rpm bello.noarch: W: invalid-url URL: https://www.example.com/bello HTTP Error 404: Not Found bello.noarch: W: no-documentation bello.noarch: W: no-manual-page-for-binary bello 1 packages and 0 specfiles checked; 0 errors, 3 warnings.
The no-documentation
and no-manual-page-for-binary
warnings say that he RPM has no documentation or manual pages, because we did not provide any. Apart from the above warnings, the RPM passed rpmlint
checks.