public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/tomcat] f45: Fix rpmlint: wrap %description lines, add tomcat.rpmlintrc
@ 2026-10-27 15:00 dsoumis
  0 siblings, 0 replies; only message in thread
From: dsoumis @ 2026-10-27 15:00 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/tomcat
            Branch : f45
            Commit : fd9d268bbad53ac5fcf8a960874b608043c72c4a
            Author : dsoumis <dsoumis@redhat.com>
            Date   : 2026-10-27T17:00:26+02:00
            Stats  : +77/-22 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/tomcat/c/fd9d268bbad53ac5fcf8a960874b608043c72c4a?branch=f45

            Log:
            Fix rpmlint: wrap %description lines, add tomcat.rpmlintrc

(cherry picked from commit 1d052544bd3324c2673e289d43c8228c630a77a1)

---
diff --git a/tomcat.rpmlintrc b/tomcat.rpmlintrc
new file mode 100644
index 0000000..7f5dbb8
--- /dev/null
+++ b/tomcat.rpmlintrc
@@ -0,0 +1,41 @@
+# rpmlint configuration for the tomcat package.
+#
+# The entries below silence rpmlint findings that are either deliberate
+# packaging choices or inherent to the upstream Apache Tomcat sources. They are
+# NOT bugs; filtering them keeps the Fedora CI rpmlint check actionable instead
+# of drowning the real findings in known, accepted noise.
+#
+# Note: the severity field in the patterns is matched as "[EW]" (error OR
+# warning) on purpose. rpmlint reclassifies checks between releases (e.g.
+# file-contains-current-date is an error in rpmlint 2.8.0 but a warning in
+# 2.10.0); matching either keeps these filters effective — and avoids them
+# becoming "unused-rpmlintrc-filter" errors — regardless of the rpmlint version
+# running in CI.
+
+# Tomcat configuration files are intentionally installed mode 640 root:tomcat.
+# A webapp running as the tomcat user must be able to read the configuration,
+# but must NOT be able to rewrite it (a compromised webapp could otherwise
+# inject code via the server configuration). See the comment in the %files
+# section of tomcat.spec.
+addFilter(r"^tomcat\.noarch: [EW]: non-readable /etc/tomcat/")
+
+# The Tomcat state and configuration directories are intentionally setgid and
+# group-restricted (e.g. 2775/2750, group tomcat/adm) so that the tomcat group
+# can manage deployments, work files and logs. These modes are required for
+# the system service to operate and are set explicitly via %attr in %files.
+addFilter(r"^tomcat\.noarch: [EW]: non-standard-dir-perm ")
+
+# The bundled documentation webapp ships upstream's pre-rendered HTML, which
+# embeds the build date/time of the release. These pages are generated by
+# upstream and cannot be made reproducible without patching every doc page;
+# the dates are harmless for the bundled docs.
+addFilter(r"^tomcat-docs-webapp\.noarch: [EW]: file-contains-current-date ")
+addFilter(r"^tomcat-docs-webapp\.noarch: [EW]: file-contains-date-and-time ")
+
+# The manager and host-manager webapps legitimately ship identical static
+# assets (CSS, images, index.jsp); likewise a few upstream doc sample files
+# duplicate shared resources. Upstream keeps these copies separate on purpose,
+# so the duplication is expected.
+addFilter(r"^tomcat-admin-webapps\.noarch: [EW]: files-duplicated-waste ")
+addFilter(r"^tomcat-admin-webapps\.noarch: [EW]: files-duplicate ")
+addFilter(r"^tomcat-docs-webapp\.noarch: [EW]: files-duplicate ")

diff --git a/tomcat.spec b/tomcat.spec
index 7702d6b..00dce3c 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -85,13 +85,17 @@ Suggests: %{name}-webapps = %{epoch}:%{version}-%{release}
 Suggests: %{name}-user-instance = %{epoch}:%{version}-%{release}
 
 %description
-Apache Tomcat is an open-source implementation of the Java Servlet, JavaServer Pages (JSP), and WebSocket technologies.
-It provides a pure Java HTTP web server environment for running Java applications.
-This package includes only the startup scripts for managing a system-wide Tomcat daemon.
+Apache Tomcat is an open-source implementation of the Java Servlet,
+JavaServer Pages (JSP), and WebSocket technologies.
+It provides a pure Java HTTP web server environment for running Java
+applications.
+This package includes only the startup scripts for managing a system-wide
+Tomcat daemon.
 It does not include documentation or web applications.
     * To install the default web applications, use the tomcat-webapps package.
-    * To access online documentation, install tomcat-docs-webapps package.
-    * To create user instances without running Tomcat as a system service, use tomcat-user-instance package instead.
+    * To access online documentation, install tomcat-docs-webapp package.
+    * To create user instances without running Tomcat as a system service, use
+      tomcat-user-instance package instead.
 
 %package user-instance
 Summary: Apache Tomcat - Tools for creating user-managed instances
@@ -102,10 +106,12 @@ Suggests: %{name}-docs-webapp = %{epoch}:%{version}-%{release}
 Suggests: %{name}-webapps = %{epoch}:%{version}-%{release}
 
 %description user-instance
-This package provides the tools necessary to create user-managed Tomcat instances,
-allowing users to run Tomcat independently of the system-wide service.
-A user instance includes its own configuration, libraries, and web applications,
-which can be started and stopped using scripts inside the instance directory.
+This package provides the tools necessary to create user-managed Tomcat
+instances, allowing users to run Tomcat independently of the system-wide
+service.
+A user instance includes its own configuration, libraries, and web
+applications, which can be started and stopped using scripts inside the
+instance directory.
 
 %package common
 Summary: Apache Tomcat - Common files for Tomcat packages
@@ -113,9 +119,11 @@ Requires: (java-25-headless or java-25)
 Requires: %{name}-lib = %{epoch}:%{version}-%{release}
 
 %description common
-This package contains common files required by both tomcat and tomcat-user-instance packages, including essential Tomcat
-scripts and libraries. Installing this package alone does not provide a functional Tomcat installation,
-but is required as a dependency for other Tomcat-related packages.
+This package contains common files required by both tomcat and
+tomcat-user-instance packages, including essential Tomcat scripts and
+libraries. Installing this package alone does not provide a functional Tomcat
+installation, but is required as a dependency for other Tomcat-related
+packages.
 
 %package lib
 Summary: Apache Tomcat - Core libraries for embedding Tomcat
@@ -126,34 +134,40 @@ Requires: ecj >= 4.20
 Recommends: tomcat-jakartaee-migration
 
 %description lib
-This package contains the core libraries of Apache Tomcat, which allow other Java applications to embed Tomcat
-as a lightweight servlet container. It is primarily intended for use by developers and applications that need Tomcat
-as an embedded runtime.
+This package contains the core libraries of Apache Tomcat, which allow other
+Java applications to embed Tomcat as a lightweight servlet container. It is
+primarily intended for use by developers and applications that need Tomcat as
+an embedded runtime.
 
 %package admin-webapps
 Summary: Apache Tomcat - Administrative web applications
 Requires: %{name} = %{epoch}:%{version}-%{release}
 
 %description admin-webapps
-This package provides the Tomcat Web Application Manager and Virtual Host Manager, which allow administrators to deploy,
-manage, and configure web applications through a web interface.
-These tools simplify application lifecycle management without requiring direct filesystem access.
+This package provides the Tomcat Web Application Manager and Virtual Host
+Manager, which allow administrators to deploy, manage, and configure web
+applications through a web interface.
+These tools simplify application lifecycle management without requiring direct
+filesystem access.
 
 %package docs-webapp
 Summary: Apache Tomcat - Online documentation web application
 Requires: %{name} = %{epoch}:%{version}-%{release}
 
 %description docs-webapp
-This package provides the Tomcat documentation web application, accessible via the Tomcat server.
-It includes API references, configuration guidelines, and development documentation.
+This package provides the Tomcat documentation web application, accessible via
+the Tomcat server.
+It includes API references, configuration guidelines, and development
+documentation.
 
 %package webapps
 Summary: Apache Tomcat - Default ROOT web application
 Requires: %{name} = %{epoch}:%{version}-%{release}
 
 %description webapps
-This package includes the default ROOT web applications bundled with Apache Tomcat,
-which serves as the default homepage when accessing Tomcat in a browser.
+This package includes the default ROOT web applications bundled with Apache
+Tomcat, which serves as the default homepage when accessing Tomcat in a
+browser.
 
 %package jsp-%{jspspec}-api
 Summary: Apache Tomcat JavaServer Pages v%{jspspec} API Implementation Classes

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-27 15:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-27 15:00 [rpms/tomcat] f45: Fix rpmlint: wrap %description lines, add tomcat.rpmlintrc dsoumis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox