============================ rpmlint session starts ============================ rpmlint: 2.6.1 configuration: /opt/testing/lib/python3.11/rpmlint/configdefaults.toml /opt/testing/share/rpmlint/cron-whitelist.toml /opt/testing/share/rpmlint/dbus-services.toml /opt/testing/share/rpmlint/device-files-whitelist.toml /opt/testing/share/rpmlint/licenses.toml /opt/testing/share/rpmlint/opensuse.toml /opt/testing/share/rpmlint/pam-modules.toml /opt/testing/share/rpmlint/permissions-whitelist.toml /opt/testing/share/rpmlint/pie-executables.toml /opt/testing/share/rpmlint/polkit-rules-whitelist.toml /opt/testing/share/rpmlint/scoring.toml /opt/testing/share/rpmlint/security.toml /opt/testing/share/rpmlint/sudoers-whitelist.toml /opt/testing/share/rpmlint/sysctl-whitelist.toml /opt/testing/share/rpmlint/systemd-tmpfiles.toml /opt/testing/share/rpmlint/users-groups.toml /opt/testing/share/rpmlint/world-writable-whitelist.toml /opt/testing/share/rpmlint/zypper-plugins.toml /etc/xdg/rpmlint/scoring-strict.override.toml rpmlintrc: /home/abuild/rpmbuild/SOURCES/tomcat-rpmlintrc checks: 41, packages: 12 tomcat10-el-5_0-api.noarch: W: zero-perms-ghost Suggestion: "%ghost %attr(0644,root,root) /etc/alternatives/el_1_0_api" tomcat10-el-5_0-api.noarch: W: zero-perms-ghost Suggestion: "%ghost %attr(0644,root,root) /etc/alternatives/el_api" tomcat10-el-5_0-api.noarch: W: zero-perms-ghost Suggestion: "%ghost %attr(0644,root,root) /etc/alternatives/tomcat-el_api.jar" tomcat10-el-5_0-api.noarch: W: zero-perms-ghost Suggestion: "%ghost %attr(0644,root,root) /usr/share/java/tomcat-el_1_0_api.jar" tomcat10-jsp-3_1-api.noarch: W: zero-perms-ghost Suggestion: "%ghost %attr(0644,root,root) /etc/alternatives/jsp" tomcat10-jsp-3_1-api.noarch: W: zero-perms-ghost Suggestion: "%ghost %attr(0644,root,root) /etc/alternatives/tomcat-jsp.jar" tomcat10-servlet-6_0-api.noarch: W: zero-perms-ghost Suggestion: "%ghost %attr(0644,root,root) /etc/alternatives/servlet" tomcat10-servlet-6_0-api.noarch: W: zero-perms-ghost Suggestion: "%ghost %attr(0644,root,root) /etc/alternatives/servlet.jar" tomcat10-servlet-6_0-api.noarch: W: zero-perms-ghost Suggestion: "%ghost %attr(0644,root,root) /etc/alternatives/tomcat-servlet.jar" Your package contains a file with no permissions. This is usually an error because the file won't be accessible by any user. You should check the file permissions and ensure that are correct or fix it using "%attr" macro in %files section. http://ftp.rpm.org/max-rpm/s1-rpm-anywhere-specifying-file-attributes.html tomcat10.noarch: E: zero-length /usr/share/fillup-templates/sysconfig.tomcat tomcat10-el-5_0-api.noarch: I: package-supports-update-alternatives tomcat10-jsp-3_1-api.noarch: I: package-supports-update-alternatives tomcat10-servlet-6_0-api.noarch: I: package-supports-update-alternatives tomcat10-el-5_0-api.noarch: W: obsolete-not-provided tomcat-el-2_2-api tomcat10-jsp-3_1-api.noarch: W: obsolete-not-provided tomcat-jsp-2_2-api tomcat10-servlet-6_0-api.noarch: W: obsolete-not-provided tomcat-servlet-3_0-api tomcat10-servlet-6_0-api.noarch: W: obsolete-not-provided tomcat-servlet-3_1-api If a package is obsoleted by a compatible replacement, the obsoleted package should also be provided in order to not cause unnecessary dependency breakage. If the obsoleting package is not a compatible replacement for the old one, leave out the Provides. tomcat10-admin-webapps.noarch: W: non-etc-or-var-file-marked-as-conffile /usr/share/tomcat/tomcat-webapps/host-manager/META-INF/context.xml tomcat10-admin-webapps.noarch: W: non-etc-or-var-file-marked-as-conffile /usr/share/tomcat/tomcat-webapps/manager/META-INF/context.xml tomcat10-webapps.noarch: W: non-etc-or-var-file-marked-as-conffile /usr/share/tomcat/tomcat-webapps/examples/META-INF/context.xml A file not in /etc or /var is marked as being a configuration file (%config). Please put your configuration files in /etc or /var. tomcat10.noarch: W: non-conffile-in-etc /etc/tomcat/allowLinking.xslt tomcat10.noarch: W: non-conffile-in-etc /etc/tomcat/valve.xslt A non-executable file in your package is being installed in /etc, but is not a configuration file. All non-executable files in /etc should be configuration files. Mark the file as %config in the spec file. tomcat10.spec: W: no-%check-section The spec file does not contain an %check section. Please check if the package has a testsuite and what it takes to enable the testsuite as part of the package build. If it is not possible to run it in the build environment (OBS/koji) or no testsuite exists, then please ignore this warning. You should not insert an empty %check section. tomcat10.spec:654: W: macro-in-comment %{app_name} There is a unescaped macro after a shell style comment in the specfile. Macros are expanded everywhere, so check if it can cause a problem in this case and escape the macro with another leading % if appropriate. tomcat10.noarch: E: explicit-lib-dependency libxslt-tools tomcat10-admin-webapps.noarch: E: explicit-lib-dependency libxslt-tools tomcat10-docs-webapp.noarch: E: explicit-lib-dependency libxslt-tools tomcat10-webapps.noarch: E: explicit-lib-dependency libxslt-tools You must let rpm find the library dependencies by itself. Do not put unneeded explicit Requires: tags. Check time report (>1% & >0.1s): Check Duration (in s) Fraction (in %) Checked files ExtractRpm 2.2 45.4 ZipCheck 0.6 11.5 FilesCheck 0.5 11.5 BashismsCheck 0.3 7.1 BuildRootAndDateCheck 0.3 6.3 SignatureCheck 0.3 5.6 SUIDPermissionsCheck 0.2 3.7 FilelistCheck 0.1 2.3 SpecCheck 0.1 2.1 TOTAL 4.8 100.0 12 packages and 0 specfiles checked; 5 errors, 20 warnings, 158 filtered, 5 badness; has taken 4.9 s