add ignores for rpmlint

This commit is contained in:
Matthew Wall
2023-12-01 21:33:17 -05:00
parent 985e5f05ba
commit d2fada1aff
2 changed files with 15 additions and 1 deletions

View File

@@ -339,7 +339,7 @@ rpm-package-suse15:
# run rpmlint on the rpm package
check-rpm:
rpmlint $(DSTDIR)/$(RPMPKG)
rpmlint -f pkg/rpmlint.$(RPMOS) $(DSTDIR)/$(RPMPKG)
check-redhat:
make check-rpm RPMOS=el OSREL=9

14
pkg/rpmlint.el Normal file
View File

@@ -0,0 +1,14 @@
addFilter("summary-not-capitalized")
addFilter("no-manual-page-for-binary weectl")
addFilter("no-manual-page-for-binary weewxd")
addFilter("non-standard-gid")
addFilter("non-standard-uid")
addFilter("dangerous-command-in-%pre cp")
addFilter("dangerous-command-in-%post mv")
addFilter("percent-in-%post")
# the drivers have shebang with env
addFilter("wrong-script-interpreter")
# the driver scripts are not executable (then why have shebang?)
addFilter("non-executable-script")
# logwatch stuff belongs in /etc in case logwatch not installed
addFilter("executable-marked-as-config-file /etc/weewx/logwatch/scripts/services/weewx")