diff --git a/makefile b/makefile index 18c2126d..3983ff00 100644 --- a/makefile +++ b/makefile @@ -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 diff --git a/pkg/rpmlint.el b/pkg/rpmlint.el new file mode 100644 index 00000000..dcc81ee0 --- /dev/null +++ b/pkg/rpmlint.el @@ -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")