2012-06-16 05:18:01 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package tomcat
|
|
|
|
|
#
|
2024-01-16 08:40:50 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2012-06-16 05:18:01 +00:00
|
|
|
# Copyright (c) 2000-2009, JPackage Project
|
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2019-09-25 12:19:17 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-06-16 05:18:01 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2015-06-01 08:49:05 +00:00
|
|
|
%define jspspec 2.3
|
2017-12-02 23:45:46 +00:00
|
|
|
%define servletspec 4.0
|
2015-06-01 08:49:05 +00:00
|
|
|
%define elspec 3.0
|
2017-12-02 23:45:46 +00:00
|
|
|
%define major_version 9
|
2012-06-16 05:18:01 +00:00
|
|
|
%define minor_version 0
|
Accepting request 1225911 from home:mbussolotto:branches:Java:packages
- Update to Tomcat 9.0.97
* Fixed CVEs:
+ CVE-2024-52316: If the Jakarta Authentication fails with an exception,
set a 500 status (bsc#1233434)
* Catalina
+ Add: Add support for the new Servlet API method
HttpServletResponse.sendEarlyHints(). (markt)
+ Add: 55470: Add debug logging that reports the class path when a
ClassNotFoundException occurs in the digester or the web application
class loader. Based on a patch by Ralf Hauser. (markt)
+ Update: 69374: Properly separate between table header and body in
DefaultServlet's listing. (michaelo)
+ Update: 69373: Make DefaultServlet's HTML listing file last modified
rendering better (flexible). (michaelo)
+ Update: Improve HTML output of DefaultServlet. (michaelo)
+ Code: Refactor RateLimitFilter to use FilterBase as the base class. The
primary advantage for doing this is less code to process init-param
values. (markt)
+ Update: 69370: DefaultServlet's HTML listing uses incorrect labels.
(michaelo)
+ Fix: Avoid NPE in CrawlerSessionManagerValve for partially mapped
requests. (remm)
+ Fix: Add missing WebDAV Lock-Token header in the response when locking
a folder. (remm)
+ Fix: Invalid WebDAV lock requests should be rejected with 400. (remm)
+ Fix: Fix regression in WebDAV when attempting to unlock a collection.
(remm)
+ Fix: Verify that destination is not locked for a WebDAV copy operation.
(remm)
+ Fix: Send 415 response to WebDAV MKCOL operations that include a
request body since this is optional and unsupported. (remm)
+ Fix: Enforce DAV: namespace on WebDAV XML elements. (remm)
+ Fix: Do not allow a new WebDAV lock on a child resource if a parent
collection is locked (RFC 4918 section 6.1). (remm)
+ Fix: WebDAV Delete should remove any existing lock on successfully
deleted resources. (remm)
+ Update: Remove WebDAV lock null support in accordance with RFC 4918
section 7.3 and annex D. Instead, a lock on a non-existing resource
will create an empty file locked with a regular lock. (remm)
+ Update: Rewrite implementation of WebDAV shared locks to comply with
RFC 4918. (remm)
+ Update: Implement WebDAV If header using code from the Apache Jackrabbit
project. (remm)
+ Add: Add PropertyStore interface in the WebDAV Servlet, to allow
implementation of dead properties storage. The store used can be
configured using the 'propertyStore' init parameter of the WebDAV
servlet. A simple non-persistent implementation is used if no custom
store is configured. (remm)
+ Update: Implement WebDAV PROPPATCH method using the newly added
PropertyStore. (remm)
+ Fix: Cache not found results when searching for web application class
loader resources. This addresses performance problems caused by
components such as java.sql.DriverManager which, in some circumstances,
will search for the same class repeatedly. In a large web application
this can cause performance problems. The size of the cache can be
controlled via the new notFoundClassResourceCacheSize on the
StandardContext. (markt)
+ Fix: Stop after INITIALIZED state should be a noop since it is possible
for subcomponents to be in FAILED after init. (remm)
+ Fix: Fix incorrect web resource cache size calculations when there are
concurrent PUT and DELETE requests for the same resource. (markt)
+ Add: Add debug logging for the web resource cache so the current size
can be tracked as resources are added and removed. (markt)
+ Update: Replace legacy WebDAV opaquelocktoken: scheme for lock tokens
with urn:uuid: as recommended by RFC 4918, and remove secret init
parameter. (remm)
+ Fix: Concurrent reads and writes (e.g. GET and PUT / DELETE) for the
same path caused corruption of the FileResource where some of the
fields were set as if the file exists and some as set as if it does
not. This resulted in inconsistent metadata. (markt)
+ Fix: 69415: Ensure that the ExpiresFilter only sets cache headers on
GET and HEAD requests. Also skip requests where the application has set
Cache-Control: no-store. (markt)
+ Fix: 69419: Improve the performance of ServletRequest.getAttribute()
when there are multiple levels of nested includes. Based on a patch
provided by John Engebretson. (markt)
+ Add: All applications to send an early hints informational response by
calling HttpServletResponse.sendError() with a status code of 103.
(schultz)
+ Fix: Ensure that the Jakarta Authentication CallbackHandler only
creates one GenericPrincipal in the Subject. (markt)
+ Fix: If the Jakarta Authentication process fails with an Exception,
explicitly set the HTTP response status to 500 as the ServerAuthContext
may not have set it. (markt)
+ Fix: When persisting the Jakarta Authentication provider configuration,
create any necessary parent directories that don't already exist.
(markt)
+ Fix: Correct the logic used to detect errors when deleting temporary
files associated with persisting the Jakarta Authentication provider
configuration. (markt)
+ Fix: When processing Jakarta Authentication callbacks, don't overwrite
a Principal obtained from the PasswordValidationCallback with null if
the CallerPrincipalCallback does not provide a Principal. (markt)
+ Fix: Avoid store config backup loss when storing one configuration more
than once per second. (remm)
+ Fix: 69359: WebdavServlet duplicates getRelativePath() method from
super class with incorrect Javadoc. (michaelo)
+ Fix: 69360: Inconsistent DELETE behavior between WebdavServlet and
DefaultServlet. (michaelo)
+ Fix: Make WebdavServlet properly return the Allow header when deletion
of a resource is not allowed. (michaelo)
+ Fix: Add log warning if non wildcard mappings are used with the
WebdavServlet. (remm)
+ Fix: 69361: Ensure that the order of entries in a multi-status response
to a WebDAV is consistent with the order in which resources were
processed. (markt)
+ Fix: 69362: Provide a better multi-status response when deleting a
collection via WebDAV fails. Empty directories that cannot be deleted
will now be included in the response. (markt)
+ Fix: 69363: Use getPathPrefix() consistently in the WebDAV servlet to
ensure that the correct path is used when the WebDAV servlet is mounted
at a sub-path within the web application. (markt)
+ Fix: Improve performance of ApplicationHttpRequest.parseParameters().
Based on sample code and test cases provided by John Engebretson.
(markt)
+ Add: Add support for RFC 8297 (Early Hints). Applications can use
this feature by casting the HttpServletResponse to
org.apache.catalina.connector.Reponse and then calling the method
void sendEarlyHints(). This method will be added to the Servlet API
(removing the need for the cast) in Servlet 6.2 onwards. (markt)
+ Fix: 69214: Do not reject a CORS request that uses POST but does not
include a content-type header. Tomcat now correctly processes this as
a simple CORS request. Based on a patch suggested by thebluemountain.
(markt)
+ Fix: Refactor SpnegoAuthenticator so it uses Subject.callAs() rather
than Subject.doAs() when available. (markt)
* Coyote
+ Fix: Return null SSL session id on zero length byte array returned from
the SSL implementation. (remm)
+ Fix: Skip OpenSSLConf with BoringSSL since it is unsupported. (remm)
+ Fix: Create the HttpParser in Http11Processor if it is not present on
the AbstractHttp11Protocol to provide better lifecycle robustness for
regular HTTP/1.1. The new behavior was introduced on a previous
refactoring to improve HTTP/2 performance. (remm)
+ Fix: OpenSSLContext will now throw a KeyManagementException if something
is known to have gone wrong in the init method, which is the behavior
documented by javax.net.ssl.SSLContext.init. This makes error handling
more consistent. (remm)
+ Fix: 69316: Ensure that FastHttpDateFormat#getCurrentDate() (used to
generate Date headers for HTTP responses) generates the correct string
for the given input. Prior to this change, the output may have been
wrong by one second in some cases. Pull request #751 provided by Chenjp.
(markt)
+ Add: Add server and serverRemoveAppProvidedValues to the list of
attributes the HTTP/2 protocol will inherit from the HTTP/1.1 connector
it is nested within. (markt)
+ Fix: Avoid possible crashes when using Apache Tomcat Native, caused by
destroying SSLContext objects through GC after APR has been terminated.
(remm)
+ Fix: Improve HTTP/2 handling of trailer fields for requests. Trailer
fields no longer need to be received before the headers of the
subsequent stream nor are trailer fields for an in-progress stream
swallowed if the Connector is paused before the trailer fields are
received. (markt)
+ Fix: Ensure the request and response are not recycled too soon for an
HTTP/2 stream when a stream level error is detected during the processing
of incoming HTTP/2 frames. This could lead to incorrect processing times
appearing in the access log. (markt)
+ Fix: Fix 69320, a regression in the fix for 69302 that meant the
HTTP/2 processing was likely to be broken for all clients once any
client sent an HTTP/2 reset frame. (markt)
+ Fix: Correct a regression in the fix for non-blocking reads of chunked
request bodies that caused InputStream.available() to return a non-zero
value when there was no data to read. In some circumstances this could
cause a blocking read to block waiting for more data rather than return
the data it had already received. (markt)
+ Add: Add a new attribute cookiesWithoutEquals to the Rfc6265CookieProcessor.
The default behaviour is unchanged. (markt)
+ Fix: Ensure that Tomcat sends a TLS close_notify message after receiving
one from the client when using the OpenSSLImplementation. (markt)
+ Fix: 69301: Fix trailer headers replacing non-trailer headers when writing
response headers to the access log. Based on a patch and test case
provided by hypnoce. (markt)
+ Fix: 69302: If an HTTP/2 client resets a stream before the request body is
fully written, ensure that any ReadListener is notified via a call to
ReadListener.onErrror(). (markt)
+ Fix: Correct regressions in the refactoring that added recycling of the
coyote request and response to the HTTP/2 processing. (markt)
+ Add: Add OpenSSL integration using the FFM API rather than Tomcat Native.
OpenSSL support may be enabled by adding the
org.apache.catalina.core.OpenSSLLifecycleListener listener on the
Server element when using Java 22 or later. (remm)
+ Fix: Ensure that HTTP/2 stream input buffers are only created when there
is a request body to be read. (markt)
+ Code: Refactor creation of HttpParser instances from the Processor level
to the Protocol level since the parser configuration depends on the
protocol and the parser is, otherwise, stateless. (markt)
+ Add: Align HTTP/2 with HTTP/1.1 and recycle the container internal
request and response processing objects by default. This behaviour can
be controlled via the new discardRequestsAndResponses attribute on the
HTTP/2 upgrade protocol. (markt)
* Jasper
+ Fix: Add back tag release method as deprecated in the runtime for
compatibility with old generated code. (remm)
+ Fix: 69399: Fix regression caused by the improvement 69333 which caused
the tag release to be called when using tag pooling, and to be skipped
when not using it. Patch submitted by Michal Sobkiewicz. (remm)
+ Fix: 69381: Improve method lookup performance in expression language.
When the required method has no arguments there is no need to consider
casting or coercion and the method lookup process can be simplified.
Based on pull request #770 by John Engebretson.
+ Fix: 69382: Improve the performance of the JSP include action by
re-using results of relatively expensive method calls in the generated
code rather than repeating them. Patch provided by John Engebretson.
(markt)
+ Fix: 69398: Avoid unnecessary object allocation in PageContextImpl.
Based on a suggestion by John Engebretson. (markt)
+ Fix: 69406: When using StringInterpreterEnum, do not throw an
IllegalArgumentException when an invalid Enum is encountered. Instead,
resolve the value at runtime. Patch provided by John Engebretson.
(markt)
+ Fix: 69429: Optimise EL evaluation of method parameters for methods
that do not accept any parameters. Patch provided by John Engebretson.
(markt)
+ Fix: 69333: Remove unnecessary code from generated JSPs. (markt)
+ Fix: 69338: Improve the performance of processing expressions that
include AND or OR operations with more than two operands and expressions
that use not empty. (markt)
+ Fix: 69348: Reduce memory consumption in ELContext by using lazy
initialization for the data structure used to track lambda arguments.
(markt)
+ Fix: Switch the TldScanner back to logging detailed scan results at debug
level rather than trace level. (markt)
* Web applications
+ Fix: The manager webapp will now be able to access certificates again
when OpenSSL is used. (remm)
+ Fix: Documentation. Align the logging configuration documentation with
the current defaults. (markt)
* WebSocket
+ Fix: If a blocking message write exceeds the timeout, don't attempt the
write again before throwing the exception. (markt)
+ Fix: An EncodeException being thrown during a message write should not
automatically cause the connection to close. The application should
handle the exception and make the decision whether or not to close the
connection. (markt)
* jdbc-pool
+ Fix: 69255: Correct a regression in the fix for 69206 that meant exceptions
executing statements were wrapped in a java.lang.reflect.UndeclaredThrowableException
rather than the application seeing the original SQLException. Fixed by
pull request #744 provided by Michael Clarke. (markt)
+ Fix: 69279: Correct a regression in the fix for 69206 that meant that
methods that previously returned a null ResultSet were returning a proxy
with a null delegate. Fixed by pull request #745 provided by Huub de Beer.
(markt)
+ Fix: 69206: Ensure statements returned from Statement methods
executeQuery(), getResultSet() and getGeneratedKeys() are correctly
wrapped before being returned to the caller. Based on pull request
#742 provided by Michael Clarke.
* Other
+ Update: Switch from DigiCert ONE to ssl.com eSigner for code signing.
(markt)
+ Update: Update Byte Buddy to 1.15.10. (markt)
+ Update: Update CheckStyle to 10.20.0. (markt)
+ Add: Improvements to German translations. (remm)
+ Add: Improvements to French translations. (remm)
+ Add: Improvements to Japanese translations by tak7iji. (markt)
+ Add: Improvements to Chinese translations by Ch_jp. (markt)
+ Add: Exclude the tomcat-coyote-ffm.jar from JAR scanning by default.
(markt)
+ Fix: Change the default log handler level to ALL so log messages are
not dropped by default if a logger is configured to use trace (FINEST)
level logging. (markt)
+ Update: Update Hamcrest to 3.0. (markt)
+ Update: Update EasyMock to 5.4.0. (markt)
+ Update: Update Byte Buddy to 1.15.0. (markt)
+ Update: Update CheckStyle to 10.18.0. (markt)
+ Update: Update the internal fork of Apache Commons BCEL to 6.10.0.
(markt)
+ Add: Improvements to Spanish translations by Fernando. (markt)
+ Add: Improvements to French translations. (remm)
+ Add: Improvements to Japanese translations by tak7iji. (markt)
+ Fix: Fix packaging regression with missing osgi information following
addition of the test-only build target. (remm)
+ Update: Update Tomcat Native to 1.3.1. (markt)
+ Update: Update Byte Buddy to 1.14.18. (markt)
+ Add: Improvements to French translations. (remm)
+ Add: Improvements to Japanese translations by tak7iji. (markt)
OBS-URL: https://build.opensuse.org/request/show/1225911
OBS-URL: https://build.opensuse.org/package/show/Java:packages/tomcat?expand=0&rev=323
2024-11-25 14:54:00 +00:00
|
|
|
%define micro_version 97
|
2012-06-16 05:18:01 +00:00
|
|
|
%define packdname apache-tomcat-%{version}-src
|
|
|
|
|
# FHS 2.3 compliant tree structure - http://www.pathname.com/fhs/2.3/
|
2016-04-07 12:59:42 +00:00
|
|
|
%global basedir /srv/%{name}
|
|
|
|
|
%define appdir %{basedir}/webapps
|
2012-06-16 05:18:01 +00:00
|
|
|
%define bindir %{_datadir}/%{name}/bin
|
|
|
|
|
%define confdir %{_sysconfdir}/%{name}
|
|
|
|
|
%define homedir %{_datadir}/%{name}
|
|
|
|
|
%define libdir %{_javadir}/%{name}
|
|
|
|
|
%define logdir %{_localstatedir}/log/%{name}
|
|
|
|
|
%define cachedir %{_localstatedir}/cache/%{name}
|
|
|
|
|
%define tempdir %{cachedir}/temp
|
|
|
|
|
%define workdir %{cachedir}/work
|
2019-02-05 18:26:47 +00:00
|
|
|
%define tomcatappdir %{_datadir}/%{name}/tomcat-webapps
|
2019-02-18 16:00:05 +00:00
|
|
|
%define javac_target 1.8
|
2018-01-17 09:40:12 +00:00
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
|
%if ! %{defined _fillupdir}
|
|
|
|
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
|
|
|
|
%endif
|
2012-06-16 05:18:01 +00:00
|
|
|
Name: tomcat
|
|
|
|
|
Version: %{major_version}.%{minor_version}.%{micro_version}
|
|
|
|
|
Release: 0
|
2017-12-02 23:45:46 +00:00
|
|
|
Summary: Apache Servlet/JSP/EL Engine, RI for Servlet 4.0/JSP 2.3/EL 3.0 API
|
2012-06-16 05:18:01 +00:00
|
|
|
License: Apache-2.0
|
|
|
|
|
Group: Productivity/Networking/Web/Servers
|
2020-02-26 06:00:57 +00:00
|
|
|
URL: https://tomcat.apache.org
|
2018-12-05 08:10:56 +00:00
|
|
|
Source0: https://archive.apache.org/dist/tomcat/tomcat-%{major_version}/v%{version}/src/%{packdname}.tar.gz
|
2012-06-16 05:18:01 +00:00
|
|
|
Source1: %{name}-%{major_version}.%{minor_version}.conf
|
2016-04-07 12:59:42 +00:00
|
|
|
Source3: %{name}-%{major_version}.%{minor_version}.sysconfig
|
2012-06-16 05:18:01 +00:00
|
|
|
Source4: %{name}-%{major_version}.%{minor_version}.wrapper
|
|
|
|
|
Source5: %{name}-%{major_version}.%{minor_version}.logrotate
|
|
|
|
|
Source6: %{name}-%{major_version}.%{minor_version}-digest.script
|
|
|
|
|
Source7: %{name}-%{major_version}.%{minor_version}-tool-wrapper.script
|
2016-04-07 12:59:42 +00:00
|
|
|
Source11: %{name}-%{major_version}.%{minor_version}.service
|
|
|
|
|
Source20: %{name}-%{major_version}.%{minor_version}-jsvc.service
|
|
|
|
|
Source21: tomcat-functions
|
|
|
|
|
Source30: tomcat-preamble
|
|
|
|
|
Source31: tomcat-server
|
|
|
|
|
Source32: tomcat-named.service
|
2024-01-16 08:40:50 +00:00
|
|
|
Source100: valve.xslt
|
|
|
|
|
Source101: allowLinking.xslt
|
2012-06-16 05:18:01 +00:00
|
|
|
Source1000: tomcat-rpmlintrc
|
2018-08-27 10:38:49 +00:00
|
|
|
Source1001: https://archive.apache.org/dist/tomcat/tomcat-%{major_version}/v%{version}/src/%{packdname}.tar.gz.asc
|
2023-09-21 20:06:00 +00:00
|
|
|
Source1002: https://downloads.apache.org/tomcat/tomcat-9/KEYS#/%{name}.keyring
|
2012-06-16 05:18:01 +00:00
|
|
|
#PATCH-FIX-UPSTREAM: from jpackage.org package
|
|
|
|
|
Patch0: %{name}-%{major_version}.%{minor_version}-bootstrap-MANIFEST.MF.patch
|
|
|
|
|
#PATCH-FIX-UPSTREAM: from jpackage.org package
|
|
|
|
|
Patch1: %{name}-%{major_version}.%{minor_version}-tomcat-users-webapp.patch
|
2018-01-17 09:40:12 +00:00
|
|
|
# PATCH-FIX-SLE: Change security manager default policies bnc#891264
|
2020-01-08 07:19:26 +00:00
|
|
|
Patch2: %{name}-%{major_version}.%{minor_version}-sle.catalina.policy.patch
|
2017-09-19 09:08:57 +00:00
|
|
|
# PATCH-FIX-OPENSUSE: build javadoc with the same java source level as the class files
|
2020-01-08 07:19:26 +00:00
|
|
|
Patch3: %{name}-%{major_version}.%{minor_version}-javadoc.patch
|
2020-01-20 13:50:27 +00:00
|
|
|
# PATCH-FIX-OPENSUSE: include all necessary aqute-bnd jars
|
|
|
|
|
Patch4: tomcat-9.0-osgi-build.patch
|
2023-05-23 04:40:11 +00:00
|
|
|
# PATCH-FIX-OPENSUSE: build against our ecj that does not have CompilerOptions.VERSION_16
|
2023-05-22 17:59:49 +00:00
|
|
|
Patch5: %{name}-%{major_version}.%{minor_version}-jdt.patch
|
2020-02-28 11:40:32 +00:00
|
|
|
# PATCH-FIX-OPENSUSE: set ajp connector secreteRequired to false by default to avoid tomcat not starting
|
2023-05-22 17:59:49 +00:00
|
|
|
Patch6: tomcat-9.0.75-secretRequired-default.patch
|
2023-05-23 04:40:11 +00:00
|
|
|
Patch7: tomcat-9.0-fix_catalina.patch
|
|
|
|
|
Patch8: tomcat-9.0-logrotate_everything.patch
|
2024-01-17 17:29:04 +00:00
|
|
|
Patch9: tomcat-9.0-build-with-java-11.patch
|
2014-05-20 11:53:20 +00:00
|
|
|
BuildRequires: ant >= 1.8.1
|
|
|
|
|
BuildRequires: ant-antlr
|
2016-09-29 12:27:01 +00:00
|
|
|
BuildRequires: apache-commons-collections
|
|
|
|
|
BuildRequires: apache-commons-daemon
|
2018-12-15 13:53:15 +00:00
|
|
|
BuildRequires: apache-commons-dbcp >= 2.0
|
2016-09-29 12:27:01 +00:00
|
|
|
BuildRequires: apache-commons-pool2
|
2021-11-10 07:12:31 +00:00
|
|
|
BuildRequires: aqute-bnd >= 5.2
|
|
|
|
|
BuildRequires: aqute-bndlib >= 5.2
|
2014-09-17 08:38:34 +00:00
|
|
|
BuildRequires: ecj >= 4.4.0
|
2012-06-16 05:18:01 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: geronimo-jaf-1_0_2-api
|
2023-10-17 05:19:46 +00:00
|
|
|
BuildRequires: geronimo-jaxrpc-1_1-api
|
2014-07-10 15:10:16 +00:00
|
|
|
BuildRequires: geronimo-qname-1_1-api
|
|
|
|
|
BuildRequires: geronimo-saaj-1_1-api
|
2012-06-16 05:18:01 +00:00
|
|
|
BuildRequires: jakarta-taglibs-standard >= 1.1
|
2020-01-20 13:50:27 +00:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2017-05-19 15:56:31 +00:00
|
|
|
BuildRequires: javapackages-local
|
2012-06-16 05:18:01 +00:00
|
|
|
BuildRequires: junit
|
2020-02-26 06:00:57 +00:00
|
|
|
BuildRequires: pkgconfig
|
2012-06-16 05:18:01 +00:00
|
|
|
BuildRequires: sed
|
2016-04-07 12:59:42 +00:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2012-06-16 05:18:01 +00:00
|
|
|
BuildRequires: unzip
|
|
|
|
|
BuildRequires: wsdl4j
|
2014-07-10 15:10:16 +00:00
|
|
|
BuildRequires: zip
|
2019-09-25 12:19:17 +00:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2012-06-16 05:18:01 +00:00
|
|
|
Requires: %{name}-lib = %{version}-%{release}
|
2016-09-29 12:27:01 +00:00
|
|
|
Requires: apache-commons-daemon
|
2018-12-15 13:53:15 +00:00
|
|
|
Requires: apache-commons-dbcp
|
2016-09-29 12:27:01 +00:00
|
|
|
Requires: apache-commons-logging
|
|
|
|
|
Requires: apache-commons-pool2
|
2019-02-04 15:45:17 +00:00
|
|
|
Requires: java >= 1.8
|
2016-04-07 13:02:00 +00:00
|
|
|
Requires(post): %fillup_prereq
|
2024-01-17 15:07:27 +00:00
|
|
|
Requires(post): libxslt-tools
|
2024-03-06 07:32:38 +00:00
|
|
|
# for runuser
|
2024-03-06 07:22:45 +00:00
|
|
|
Requires(post): util-linux
|
2023-09-12 11:27:36 +00:00
|
|
|
Requires(pre): shadow
|
2024-03-04 16:51:16 +00:00
|
|
|
%systemd_ordering
|
2014-07-10 15:10:16 +00:00
|
|
|
Recommends: libtcnative-1-0 >= 1.1.24
|
2016-04-07 12:59:42 +00:00
|
|
|
Recommends: logrotate
|
2024-02-15 12:39:16 +00:00
|
|
|
Provides: group(tomcat)
|
|
|
|
|
Provides: user(tomcat)
|
2024-03-06 07:22:45 +00:00
|
|
|
BuildArch: noarch
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Tomcat is the servlet container that is used in the official Reference
|
|
|
|
|
Implementation for the Java Servlet and JavaServer Pages technologies.
|
|
|
|
|
The Java Servlet and JavaServer Pages specifications are developed by
|
|
|
|
|
Sun under the Java Community Process.
|
|
|
|
|
|
2019-02-24 23:01:00 +00:00
|
|
|
ATTENTION: This tomcat is built with java 1.8.0.
|
2018-10-02 14:07:34 +00:00
|
|
|
|
2012-06-16 05:18:01 +00:00
|
|
|
%package admin-webapps
|
2019-02-24 23:01:00 +00:00
|
|
|
Summary: The host manager and manager web applications for Apache Tomcat
|
2012-06-16 05:18:01 +00:00
|
|
|
Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2024-01-17 15:07:27 +00:00
|
|
|
Requires(post): libxslt-tools
|
2024-03-06 07:32:38 +00:00
|
|
|
# for runuser
|
2024-03-06 07:22:45 +00:00
|
|
|
Requires(post): util-linux
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
%description admin-webapps
|
2019-02-24 23:01:00 +00:00
|
|
|
The host manager and manager web-based applications for Apache Tomcat.
|
2012-06-16 05:18:01 +00:00
|
|
|
|
2014-09-08 12:23:03 +00:00
|
|
|
%package embed
|
|
|
|
|
Summary: Libraries for Embedding Apache Tomcat
|
|
|
|
|
Group: Productivity/Networking/Web/Servers
|
|
|
|
|
|
|
|
|
|
%description embed
|
2019-02-24 23:01:00 +00:00
|
|
|
Embeddeding support (various libraries) for Apache Tomcat.
|
2014-09-08 12:23:03 +00:00
|
|
|
|
2012-06-16 05:18:01 +00:00
|
|
|
%package docs-webapp
|
2019-02-24 23:01:00 +00:00
|
|
|
Summary: The "docs" web application for Apache Tomcat
|
2012-06-16 05:18:01 +00:00
|
|
|
Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2024-01-17 15:07:27 +00:00
|
|
|
Requires(post): libxslt-tools
|
2024-03-06 07:32:38 +00:00
|
|
|
# for runuser
|
|
|
|
|
Requires(post): util-linux
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
%description docs-webapp
|
2014-07-11 09:18:33 +00:00
|
|
|
The documentation of web application for Apache Tomcat.
|
2012-06-16 05:18:01 +00:00
|
|
|
|
2015-06-01 08:49:05 +00:00
|
|
|
%package el-3_0-api
|
|
|
|
|
Summary: Expression Language v3.0 API
|
2012-06-16 05:18:01 +00:00
|
|
|
Group: Development/Libraries/Java
|
2016-02-17 18:24:24 +00:00
|
|
|
Requires(post): update-alternatives
|
2024-02-06 11:56:00 +00:00
|
|
|
Requires(preun): update-alternatives
|
2012-06-16 05:18:01 +00:00
|
|
|
Provides: %{name}-el-%{elspec}-api = %{version}-%{release}
|
2015-06-01 08:49:05 +00:00
|
|
|
Provides: el_3_0_api = %{version}-%{release}
|
2012-06-16 05:18:01 +00:00
|
|
|
Provides: el_api = %{elspec}
|
2015-06-01 08:49:05 +00:00
|
|
|
Obsoletes: el_api < %{elspec}
|
2017-05-09 16:59:24 +00:00
|
|
|
Obsoletes: tomcat-el-2_2-api
|
2012-06-16 05:18:01 +00:00
|
|
|
|
2015-06-01 08:49:05 +00:00
|
|
|
%description el-3_0-api
|
|
|
|
|
Expression Language API version 3.0.
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
|
Summary: Javadoc generated documentation for Apache Tomcat
|
2019-02-24 23:01:00 +00:00
|
|
|
Group: Documentation/HTML
|
2020-11-03 15:34:19 +00:00
|
|
|
BuildArch: noarch
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
%description javadoc
|
2014-07-11 09:18:33 +00:00
|
|
|
Javadoc generated documentation files for Apache Tomcat.
|
2012-06-16 05:18:01 +00:00
|
|
|
|
2015-06-01 08:49:05 +00:00
|
|
|
%package jsp-2_3-api
|
2012-06-16 05:18:01 +00:00
|
|
|
Summary: Apache Tomcat JSP API implementation classes
|
|
|
|
|
Group: Productivity/Networking/Web/Servers
|
2019-01-26 08:14:46 +00:00
|
|
|
Requires: mvn(org.apache.tomcat:tomcat-el-api)
|
|
|
|
|
Requires: mvn(org.apache.tomcat:tomcat-servlet-api)
|
2016-02-17 18:24:24 +00:00
|
|
|
Requires(post): update-alternatives
|
2024-02-06 11:56:00 +00:00
|
|
|
Requires(postun): update-alternatives
|
2014-07-10 15:10:16 +00:00
|
|
|
Provides: %{name}-jsp-%{jspspec}-api
|
|
|
|
|
Provides: jsp = %{jspspec}
|
2015-06-01 08:49:05 +00:00
|
|
|
Provides: jsp23
|
|
|
|
|
Obsoletes: jsp < %{jspspec}
|
2017-05-09 16:59:24 +00:00
|
|
|
Obsoletes: tomcat-jsp-2_2-api
|
2012-06-16 05:18:01 +00:00
|
|
|
|
2015-06-01 08:49:05 +00:00
|
|
|
%description jsp-2_3-api
|
|
|
|
|
Apache Tomcat JSP API implementation classes version 2.3
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
%package jsvc
|
|
|
|
|
Summary: Apache jsvc wrapper for Apache Tomcat as separate service
|
|
|
|
|
Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
Requires: apache-commons-daemon-jsvc
|
2024-03-04 16:51:16 +00:00
|
|
|
%systemd_ordering
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
%description jsvc
|
|
|
|
|
Systemd service and wrapper scripts to start tomcat with jsvc,
|
|
|
|
|
which allows tomcat to perform some privileged operations
|
|
|
|
|
(e.g. bind to a port < 1024) and then switch identity to a non-privileged user.
|
|
|
|
|
|
|
|
|
|
%package lib
|
|
|
|
|
Summary: Libraries needed to run the Tomcat Web container
|
|
|
|
|
Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name}-el-%{elspec}-api = %{version}-%{release}
|
|
|
|
|
Requires: %{name}-jsp-%{jspspec}-api = %{version}-%{release}
|
|
|
|
|
Requires: %{name}-servlet-%{servletspec}-api = %{version}-%{release}
|
2014-09-17 08:38:34 +00:00
|
|
|
Requires(post): ecj >= 4.4
|
2024-02-06 11:56:00 +00:00
|
|
|
Requires(preun): coreutils
|
2013-11-04 14:49:19 +00:00
|
|
|
Provides: jakarta-commons-dbcp-tomcat5 = 1.4
|
|
|
|
|
Obsoletes: jakarta-commons-dbcp-tomcat5 < 1.4
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
%description lib
|
2014-07-11 09:18:33 +00:00
|
|
|
Libraries required to successfully run the Tomcat Web container
|
2012-06-16 05:18:01 +00:00
|
|
|
|
2017-12-02 23:45:46 +00:00
|
|
|
%package servlet-4_0-api
|
2012-06-16 05:18:01 +00:00
|
|
|
Summary: Apache Tomcat Servlet API implementation classes
|
|
|
|
|
Group: Productivity/Networking/Web/Servers
|
2016-02-17 18:24:24 +00:00
|
|
|
Requires(post): update-alternatives
|
2024-02-06 11:56:00 +00:00
|
|
|
Requires(postun): update-alternatives
|
2012-06-16 05:18:01 +00:00
|
|
|
Provides: %{name}-servlet-%{servletspec}-api = %{version}-%{release}
|
|
|
|
|
Provides: servlet = %{servletspec}
|
2015-06-01 08:49:05 +00:00
|
|
|
Provides: servlet31
|
2012-06-16 05:18:01 +00:00
|
|
|
Provides: servlet7
|
2015-06-01 08:49:05 +00:00
|
|
|
Obsoletes: servlet < %{servletspec}
|
2017-05-09 16:59:24 +00:00
|
|
|
Obsoletes: tomcat-servlet-3_0-api
|
2017-12-02 23:45:46 +00:00
|
|
|
Obsoletes: tomcat-servlet-3_1-api
|
2012-06-16 05:18:01 +00:00
|
|
|
|
2017-12-02 23:45:46 +00:00
|
|
|
%description servlet-4_0-api
|
2015-06-01 08:49:05 +00:00
|
|
|
Apache Tomcat Servlet API implementation classes version 3.1
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
%package webapps
|
2014-07-11 09:18:33 +00:00
|
|
|
Summary: ROOT and examples web applications for Apache Tomcat
|
2012-06-16 05:18:01 +00:00
|
|
|
Group: Productivity/Networking/Web/Servers
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2014-07-11 09:18:33 +00:00
|
|
|
Requires: jakarta-taglibs-standard >= 1.1
|
2024-01-17 15:07:27 +00:00
|
|
|
Requires(post): libxslt-tools
|
2024-03-06 07:32:38 +00:00
|
|
|
# for runuser
|
2024-03-06 07:22:45 +00:00
|
|
|
Requires(post): util-linux
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
%description webapps
|
|
|
|
|
The ROOT and examples web applications for Apache Tomcat
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-01-16 08:40:50 +00:00
|
|
|
%autosetup -p1 -n %{packdname}
|
2019-02-05 18:26:47 +00:00
|
|
|
|
2012-06-16 05:18:01 +00:00
|
|
|
# remove pre-built binaries and windows files
|
|
|
|
|
find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "*.gz" -o \
|
2019-02-24 23:01:00 +00:00
|
|
|
-name "*.jar" -o -name "*.war" -o -name "*.zip" \) -print -delete
|
2014-09-17 08:38:34 +00:00
|
|
|
|
2014-07-10 15:10:16 +00:00
|
|
|
# remove date from docs
|
|
|
|
|
sed -i -e '/build-date/ d' webapps/docs/tomcat-docs.xsl
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
%build
|
2013-11-04 14:49:19 +00:00
|
|
|
|
2014-07-10 15:10:16 +00:00
|
|
|
ln -s $(build-classpath jakarta-taglibs-core) webapps/examples/WEB-INF/lib/jstl.jar
|
|
|
|
|
ln -s $(build-classpath jakarta-taglibs-standard) webapps/examples/WEB-INF/lib/standard.jar
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
export CLASSPATH=
|
|
|
|
|
export OPT_JAR_LIST="xalan-j2-serializer"
|
|
|
|
|
export ANT_OPTS=-Xmx500M
|
|
|
|
|
|
|
|
|
|
# we don't care about the tarballs and we're going to replace
|
|
|
|
|
# so just create a dummy file for later removal
|
|
|
|
|
touch HACK
|
2014-07-10 15:10:16 +00:00
|
|
|
mkdir -p HACKDIR
|
2012-06-16 05:18:01 +00:00
|
|
|
touch HACKDIR/build.xml
|
|
|
|
|
|
2014-07-10 14:47:50 +00:00
|
|
|
ant -Dbase.path="." \
|
2019-11-16 00:05:40 +00:00
|
|
|
-Dadd.osgi.jar.metadata="true" \
|
2013-11-04 14:49:19 +00:00
|
|
|
-Djava.7.home="%{java_home}" \
|
2012-06-16 05:18:01 +00:00
|
|
|
-Dbuild.compiler="modern" \
|
|
|
|
|
-Dcommons-collections.jar="$(build-classpath commons-collections)" \
|
|
|
|
|
-Dcommons-daemon.jar="$(build-classpath commons-daemon)" \
|
|
|
|
|
-Dcommons-daemon.native.src.tgz="HACK" \
|
2019-09-25 12:19:17 +00:00
|
|
|
-Djasper-jdt.jar="$(build-classpath ecj/ecj)" \
|
|
|
|
|
-Djdt.jar="$(build-classpath ecj/ecj)" \
|
2012-06-16 05:18:01 +00:00
|
|
|
-Dtomcat-native.tar.gz="HACK" \
|
|
|
|
|
-Dtomcat-native.home="." \
|
|
|
|
|
-Dcommons-daemon.native.win.mgr.exe="HACK" \
|
|
|
|
|
-Dnsis.exe="HACK" \
|
2023-10-17 05:19:46 +00:00
|
|
|
-Djaxrpc-lib.jar="$(build-classpath geronimo-jaxrpc-1.1-api)" \
|
2012-06-16 05:18:01 +00:00
|
|
|
-Dwsdl4j-lib.jar="$(build-classpath wsdl4j)" \
|
2019-04-15 13:54:16 +00:00
|
|
|
-Dsaaj-api.jar="$(build-classpath geronimo-saaj-1.1-api)" \
|
2019-11-16 00:05:40 +00:00
|
|
|
-Dbnd.jar="$(build-classpath aqute-bnd/biz.aQute.bnd)" \
|
2023-09-18 06:12:05 +00:00
|
|
|
-Dbnd.dir="%{_javadir}/aqute-bnd" \
|
2021-10-18 06:37:59 +00:00
|
|
|
-Dosgiannotation.jar="$(build-classpath osgi-annotation/osgi.annotation)" \
|
|
|
|
|
-Dosgi-annotations.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
|
|
|
|
|
-Dosgicmpn.jar="$(build-classpath osgi-compendium/osgi.cmpn)" \
|
2019-11-16 00:05:40 +00:00
|
|
|
-Dslf4j-api.jar="$(build-classpath slf4j/slf4j-api)" \
|
2016-09-29 12:27:01 +00:00
|
|
|
-Dcommons-pool.home="$(build-classpath commons-pool2)" \
|
|
|
|
|
-Dcommons-dbcp.home="$(build-classpath commons-dbcp2)" \
|
2012-06-16 05:18:01 +00:00
|
|
|
-Dno.build.dbcp=true \
|
|
|
|
|
-Dversion="%{version}" \
|
|
|
|
|
-Dversion.build="%{micro_version}" \
|
2019-04-22 19:57:57 +00:00
|
|
|
deploy dist-prepare dist-source javadoc package embed-jars
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
# remove some jars that we'll replace with symlinks later
|
2014-07-10 15:10:16 +00:00
|
|
|
rm output/build/bin/commons-daemon.jar \
|
2015-06-01 08:49:05 +00:00
|
|
|
output/build/lib/ecj.jar
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
pushd output/dist/src/webapps/docs/appdev/sample/src
|
2014-07-10 15:10:16 +00:00
|
|
|
mkdir -p ../web/WEB-INF/classes
|
2019-02-18 16:00:05 +00:00
|
|
|
javac -source %{javac_target} -target %{javac_target} -cp ../../../../../../../../output/build/lib/servlet-api.jar -d ../web/WEB-INF/classes mypackage/Hello.java
|
2012-06-16 05:18:01 +00:00
|
|
|
pushd ../web
|
2014-07-10 15:10:16 +00:00
|
|
|
jar cf ../../../../../../../../output/build/webapps/docs/appdev/sample/sample.war *
|
2012-06-16 05:18:01 +00:00
|
|
|
popd
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
# build initial path structure
|
2014-07-10 15:10:16 +00:00
|
|
|
install -d -m 0755 %{buildroot}%{_bindir}
|
|
|
|
|
install -d -m 0755 %{buildroot}%{_sbindir}
|
|
|
|
|
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
2018-01-17 09:40:12 +00:00
|
|
|
install -d -m 0755 %{buildroot}%{_initddir}
|
2014-07-10 15:10:16 +00:00
|
|
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d
|
2016-04-07 12:59:42 +00:00
|
|
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig
|
2014-07-10 15:10:16 +00:00
|
|
|
install -d -m 0755 %{buildroot}%{appdir}
|
2019-02-05 18:26:47 +00:00
|
|
|
install -d -m 0755 %{buildroot}%{tomcatappdir}
|
2014-07-10 15:10:16 +00:00
|
|
|
install -d -m 0755 %{buildroot}%{bindir}
|
2016-04-07 12:59:42 +00:00
|
|
|
install -d -m 0775 %{buildroot}%{confdir}
|
|
|
|
|
install -d -m 0755 %{buildroot}%{cachedir}/Catalina/localhost
|
2020-07-30 21:16:33 +00:00
|
|
|
install -d -m 0755 %{buildroot}%{confdir}/conf.d
|
2016-04-07 12:59:42 +00:00
|
|
|
/bin/echo "Place your custom *.conf files here. Shell expansion is supported." > %{buildroot}%{confdir}/conf.d/README
|
2014-07-10 15:10:16 +00:00
|
|
|
install -d -m 0755 %{buildroot}%{libdir}
|
2016-04-07 12:59:42 +00:00
|
|
|
install -d -m 0775 %{buildroot}%{logdir}
|
|
|
|
|
/bin/touch %{buildroot}%{logdir}/catalina.out
|
|
|
|
|
install -d -m 0775 %{buildroot}%{_localstatedir}/lib/tomcats
|
|
|
|
|
/bin/echo "%{name}-%{major_version}.%{minor_version}.%{micro_version} RPM installed" >> %{buildroot}%{logdir}/catalina.out
|
|
|
|
|
install -d -m 0775 %{buildroot}%{homedir}
|
|
|
|
|
install -d -m 0775 %{buildroot}%{tempdir}
|
2014-07-10 15:10:16 +00:00
|
|
|
install -d -m 0775 %{buildroot}%{workdir}
|
2016-04-07 12:59:42 +00:00
|
|
|
install -d -m 0755 %{buildroot}%{_unitdir}
|
|
|
|
|
install -d -m 0755 %{buildroot}%{_libexecdir}/%{name}
|
2017-11-28 21:04:57 +00:00
|
|
|
install -d -m 0755 %{buildroot}%{_fillupdir}
|
2012-06-16 05:18:01 +00:00
|
|
|
|
2024-01-16 08:40:50 +00:00
|
|
|
cp -a %{SOURCE100} %{buildroot}%{confdir}
|
|
|
|
|
cp -a %{SOURCE101} %{buildroot}%{confdir}
|
|
|
|
|
|
2012-06-16 05:18:01 +00:00
|
|
|
# move things into place
|
|
|
|
|
# First copy supporting libs to tomcat lib
|
|
|
|
|
pushd output/build
|
2014-07-10 15:10:16 +00:00
|
|
|
cp -a bin/*.{jar,xml} %{buildroot}%{bindir}
|
|
|
|
|
cp -a conf/*.{policy,properties,xml} %{buildroot}%{confdir}
|
|
|
|
|
cp -a lib/*.jar %{buildroot}%{libdir}
|
2019-02-05 18:26:47 +00:00
|
|
|
cp -a webapps/* %{buildroot}%{tomcatappdir}
|
2012-06-16 05:18:01 +00:00
|
|
|
popd
|
2014-09-08 12:23:03 +00:00
|
|
|
# tomcat embedded
|
|
|
|
|
pushd output/embed
|
|
|
|
|
cp -a *.jar %{buildroot}%{libdir}
|
|
|
|
|
popd
|
|
|
|
|
|
2012-06-16 05:18:01 +00:00
|
|
|
# javadoc
|
2014-07-10 15:10:16 +00:00
|
|
|
cp -a output/dist/webapps/docs/api/* %{buildroot}%{_javadocdir}/%{name}
|
2012-06-16 05:18:01 +00:00
|
|
|
|
2014-07-10 15:10:16 +00:00
|
|
|
sed -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
|
2016-04-07 12:59:42 +00:00
|
|
|
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
|
|
|
|
|
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE1} \
|
2013-04-18 12:44:10 +00:00
|
|
|
> %{buildroot}%{confdir}/%{name}.conf
|
2016-04-07 12:59:42 +00:00
|
|
|
sed -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
|
|
|
|
|
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
|
|
|
|
|
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE3} \
|
2017-11-28 21:04:57 +00:00
|
|
|
> %{buildroot}%{_fillupdir}/sysconfig.%{name}
|
2022-07-13 13:43:12 +00:00
|
|
|
sed -e "s|@LIBEXECDIR@|%{_libexecdir}|g" %{SOURCE4} \
|
|
|
|
|
> %{buildroot}%{_sbindir}/%{name}
|
|
|
|
|
sed -e "s|@LIBEXECDIR@|%{_libexecdir}|g" %{SOURCE11} \
|
|
|
|
|
> %{buildroot}%{_unitdir}/%{name}.service
|
|
|
|
|
sed -e "s|@LIBEXECDIR@|%{_libexecdir}|g" %{SOURCE20} \
|
|
|
|
|
> %{buildroot}%{_unitdir}/%{name}-jsvc.service
|
2014-07-10 15:10:16 +00:00
|
|
|
sed -e "s|\@\@\@TCLOG\@\@\@|%{logdir}|g" %{SOURCE5} \
|
2013-04-18 12:44:10 +00:00
|
|
|
> %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
2014-07-10 15:10:16 +00:00
|
|
|
sed -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
|
2016-04-07 12:59:42 +00:00
|
|
|
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
|
|
|
|
|
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE6} \
|
2013-04-18 12:44:10 +00:00
|
|
|
> %{buildroot}%{_bindir}/%{name}-digest
|
2014-07-10 15:10:16 +00:00
|
|
|
sed -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
|
2016-04-07 12:59:42 +00:00
|
|
|
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
|
|
|
|
|
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE7} \
|
2013-04-18 12:44:10 +00:00
|
|
|
> %{buildroot}%{_bindir}/%{name}-tool-wrapper
|
2012-06-16 05:18:01 +00:00
|
|
|
|
2022-07-13 13:43:12 +00:00
|
|
|
sed -e "s|@LIBEXECDIR@|%{_libexecdir}|g" %{SOURCE21} \
|
|
|
|
|
> %{buildroot}%{_libexecdir}/%{name}/functions
|
|
|
|
|
sed -e "s|@LIBEXECDIR@|%{_libexecdir}|g" %{SOURCE30} \
|
|
|
|
|
> %{buildroot}%{_libexecdir}/%{name}/preamble
|
|
|
|
|
chmod 0755 %{buildroot}%{_libexecdir}/%{name}/preamble
|
|
|
|
|
sed -e "s|@LIBEXECDIR@|%{_libexecdir}|g" %{SOURCE31} \
|
|
|
|
|
> %{buildroot}%{_libexecdir}/%{name}/server
|
|
|
|
|
chmod 0755 %{buildroot}%{_libexecdir}/%{name}/server
|
|
|
|
|
sed -e "s|@LIBEXECDIR@|%{_libexecdir}|g" %{SOURCE32} \
|
|
|
|
|
> %{buildroot}%{_unitdir}/%{name}@.service
|
2016-04-07 12:59:42 +00:00
|
|
|
|
|
|
|
|
ln -sf %{_sbindir}/service %{buildroot}/%{_sbindir}/rc%{name}
|
|
|
|
|
ln -sf %{_sbindir}/service %{buildroot}/%{_sbindir}/rc%{name}-jsvc
|
|
|
|
|
|
2012-06-16 05:18:01 +00:00
|
|
|
# create jsp and servlet and el API symlinks
|
2013-04-18 12:44:10 +00:00
|
|
|
pushd %{buildroot}%{_javadir}
|
2014-07-10 15:10:16 +00:00
|
|
|
mv %{name}/jsp-api.jar %{name}-jsp-%{jspspec}-api.jar
|
|
|
|
|
ln -s %{name}-jsp-%{jspspec}-api.jar %{name}-jsp-api.jar
|
|
|
|
|
mv %{name}/servlet-api.jar %{name}-servlet-%{servletspec}-api.jar
|
|
|
|
|
ln -s %{name}-servlet-%{servletspec}-api.jar %{name}-servlet-api.jar
|
2020-11-02 16:37:37 +00:00
|
|
|
ln -s %{name}-servlet-%{servletspec}-api.jar %{name}-servlet.jar
|
2014-07-10 15:10:16 +00:00
|
|
|
mv %{name}/el-api.jar %{name}-el-%{elspec}-api.jar
|
|
|
|
|
ln -s %{name}-el-%{elspec}-api.jar %{name}-el-api.jar
|
2012-06-16 05:18:01 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
pushd output/build
|
2024-02-17 08:56:57 +00:00
|
|
|
%{_bindir}/build-jar-repository -s lib commons-collections \
|
2019-09-25 12:19:17 +00:00
|
|
|
commons-dbcp2 commons-pool2 ecj/ecj 2>&1
|
2012-06-16 05:18:01 +00:00
|
|
|
# need to use -p here with b-j-r otherwise the examples webapp fails to
|
|
|
|
|
# load with a java.io.IOException
|
|
|
|
|
%{_bindir}/build-jar-repository -p webapps/examples/WEB-INF/lib \
|
|
|
|
|
taglibs-core.jar taglibs-standard.jar 2>&1
|
|
|
|
|
popd
|
|
|
|
|
|
2013-04-18 12:44:10 +00:00
|
|
|
pushd %{buildroot}%{libdir}
|
2012-06-16 05:18:01 +00:00
|
|
|
# symlink JSP and servlet and el API jars
|
2014-07-10 15:10:16 +00:00
|
|
|
ln -s ../%{name}-jsp-%{jspspec}-api.jar .
|
|
|
|
|
ln -s ../%{name}-servlet-%{servletspec}-api.jar .
|
|
|
|
|
ln -s ../%{name}-el-%{elspec}-api.jar .
|
|
|
|
|
ln -s $(build-classpath commons-collections) commons-collections.jar
|
2014-09-08 12:23:03 +00:00
|
|
|
rm -f commons-dbcp.jar
|
2016-09-29 12:27:01 +00:00
|
|
|
ln -s $(build-classpath commons-dbcp2) commons-dbcp2.jar
|
|
|
|
|
ln -s $(build-classpath commons-pool2) commons-pool2.jar
|
2019-09-25 12:19:17 +00:00
|
|
|
ln -s $(build-classpath ecj/ecj) jasper-jdt.jar
|
2024-02-17 08:56:57 +00:00
|
|
|
rm ecj.jar
|
2024-02-17 08:50:21 +00:00
|
|
|
ln -s $(build-classpath ecj/ecj) ecj.jar
|
2014-07-10 15:10:16 +00:00
|
|
|
|
2014-07-11 09:18:33 +00:00
|
|
|
# Temporary copy the juli jar here from %%{_datadir}/java/tomcat (for maven depmap)
|
2014-07-10 15:10:16 +00:00
|
|
|
cp -a %{buildroot}%{bindir}/tomcat-juli.jar ./
|
2012-06-16 05:18:01 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
# symlink to the FHS locations where we've installed things
|
2013-04-18 12:44:10 +00:00
|
|
|
pushd %{buildroot}%{homedir}
|
2014-07-10 15:10:16 +00:00
|
|
|
ln -s %{appdir} webapps
|
|
|
|
|
ln -s %{confdir} conf
|
|
|
|
|
ln -s %{libdir} lib
|
|
|
|
|
ln -s %{logdir} logs
|
|
|
|
|
ln -s %{tempdir} temp
|
|
|
|
|
ln -s %{workdir} work
|
2012-06-16 05:18:01 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
# install sample webapp
|
2019-02-05 18:26:47 +00:00
|
|
|
mkdir -p %{buildroot}%{tomcatappdir}/sample
|
|
|
|
|
pushd %{buildroot}%{tomcatappdir}/sample
|
2024-09-29 05:26:32 +00:00
|
|
|
jar xf %{buildroot}%{tomcatappdir}/docs/appdev/sample/sample.war
|
2012-06-16 05:18:01 +00:00
|
|
|
popd
|
2013-11-04 14:49:19 +00:00
|
|
|
|
2019-02-05 18:26:47 +00:00
|
|
|
pushd %{buildroot}%{tomcatappdir}/examples/WEB-INF/lib
|
2014-07-10 15:10:16 +00:00
|
|
|
ln -s -f $(build-classpath jakarta-taglibs-core) jstl.jar
|
|
|
|
|
ln -s -f $(build-classpath jakarta-taglibs-standard) standard.jar
|
2013-11-04 14:49:19 +00:00
|
|
|
popd
|
|
|
|
|
|
2019-02-05 18:26:47 +00:00
|
|
|
rm %{buildroot}%{tomcatappdir}/docs/appdev/sample/sample.war
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
# Install the maven metadata
|
2014-07-10 15:10:16 +00:00
|
|
|
install -d -m 0755 %{buildroot}%{_mavenpomdir}
|
2012-06-16 05:18:01 +00:00
|
|
|
pushd output/dist/src/res/maven
|
|
|
|
|
for pom in *.pom; do
|
|
|
|
|
# fix-up version in all pom files
|
|
|
|
|
sed -i 's/@MAVEN.DEPLOY.VERSION@/%{version}/g' $pom
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# we won't install dbcp, juli-adapters and juli-extras pom files
|
2019-11-15 23:25:28 +00:00
|
|
|
for libname in annotations-api catalina jasper-el jasper catalina-ha jaspic-api; do
|
2014-07-10 15:10:16 +00:00
|
|
|
cp -a %{name}-$libname.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-$libname.pom
|
2012-06-16 05:18:01 +00:00
|
|
|
%add_maven_depmap JPP.%{name}-$libname.pom %{name}/$libname.jar
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# servlet-api jsp-api and el-api are not in tomcat subdir, since they are widely re-used elsewhere
|
2014-07-10 15:10:16 +00:00
|
|
|
cp -a tomcat-jsp-api.pom %{buildroot}%{_mavenpomdir}/JPP-tomcat-jsp-api.pom
|
2019-01-26 09:42:01 +00:00
|
|
|
%add_maven_depmap JPP-tomcat-jsp-api.pom tomcat-jsp-api.jar -f jsp-api -a "org.eclipse.jetty.orbit:javax.servlet.jsp"
|
2012-06-16 05:18:01 +00:00
|
|
|
|
2014-07-10 15:10:16 +00:00
|
|
|
cp -a tomcat-el-api.pom %{buildroot}%{_mavenpomdir}/JPP-tomcat-el-api.pom
|
2019-01-26 09:42:01 +00:00
|
|
|
%add_maven_depmap JPP-tomcat-el-api.pom tomcat-el-api.jar -f el-api -a "org.eclipse.jetty.orbit:javax.el"
|
2012-06-16 05:18:01 +00:00
|
|
|
|
2014-07-10 15:10:16 +00:00
|
|
|
cp -a tomcat-servlet-api.pom %{buildroot}%{_mavenpomdir}/JPP-tomcat-servlet-api.pom
|
2012-06-16 05:18:01 +00:00
|
|
|
# Generate a depmap fragment javax.servlet:servlet-api pointing to
|
|
|
|
|
# tomcat-servlet-3.0-api for backwards compatibility
|
|
|
|
|
# also provide jetty depmap (originally in jetty package, but it's cleaner to have it here
|
2019-01-26 09:42:01 +00:00
|
|
|
%add_maven_depmap JPP-tomcat-servlet-api.pom tomcat-servlet-api.jar -f servlet-api -a "org.mortbay.jetty:servlet-api"
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
# two special pom where jar files have different names
|
2014-07-10 15:10:16 +00:00
|
|
|
cp -a tomcat-tribes.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-catalina-tribes.pom
|
2012-06-16 05:18:01 +00:00
|
|
|
%add_maven_depmap JPP.%{name}-catalina-tribes.pom %{name}/catalina-tribes.jar
|
|
|
|
|
|
2014-07-10 15:10:16 +00:00
|
|
|
cp -a tomcat-coyote.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-tomcat-coyote.pom
|
2013-11-04 14:49:19 +00:00
|
|
|
%add_maven_depmap JPP.%{name}-tomcat-coyote.pom %{name}/tomcat-coyote.jar
|
|
|
|
|
|
2019-11-15 23:25:28 +00:00
|
|
|
cp -a tomcat-jni.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-tomcat-jni.pom
|
|
|
|
|
%add_maven_depmap JPP.%{name}-tomcat-jni.pom %{name}/tomcat-jni.jar
|
|
|
|
|
|
2014-07-10 15:10:16 +00:00
|
|
|
cp -a tomcat-juli.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-tomcat-juli.pom
|
2012-06-16 05:18:01 +00:00
|
|
|
%add_maven_depmap JPP.%{name}-tomcat-juli.pom %{name}/tomcat-juli.jar
|
|
|
|
|
|
2018-12-05 08:10:56 +00:00
|
|
|
cp -a tomcat-jdbc.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-tomcat-jdbc.pom
|
|
|
|
|
%add_maven_depmap JPP.%{name}-tomcat-jdbc.pom %{name}/tomcat-jdbc.jar
|
|
|
|
|
|
|
|
|
|
cp -a tomcat-dbcp.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-tomcat-dbcp.pom
|
|
|
|
|
%add_maven_depmap JPP.%{name}-tomcat-dbcp.pom %{name}/tomcat-dbcp.jar
|
|
|
|
|
|
2014-07-10 15:10:16 +00:00
|
|
|
cp -a tomcat-api.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-tomcat-api.pom
|
2012-06-16 05:18:01 +00:00
|
|
|
%add_maven_depmap JPP.%{name}-tomcat-api.pom %{name}/tomcat-api.jar
|
|
|
|
|
|
2014-07-10 15:10:16 +00:00
|
|
|
cp -a tomcat-util.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-tomcat-util.pom
|
2012-06-16 05:18:01 +00:00
|
|
|
%add_maven_depmap JPP.%{name}-tomcat-util.pom %{name}/tomcat-util.jar
|
|
|
|
|
|
2019-10-04 13:33:33 +00:00
|
|
|
cp -a tomcat-util-scan.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-tomcat-util-scan.pom
|
|
|
|
|
%add_maven_depmap JPP.%{name}-tomcat-util-scan.pom %{name}/tomcat-util-scan.jar
|
|
|
|
|
|
2014-09-08 12:23:03 +00:00
|
|
|
cp -a tomcat-websocket-api.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-websocket-api.pom
|
|
|
|
|
%add_maven_depmap JPP.%{name}-websocket-api.pom %{name}/websocket-api.jar
|
|
|
|
|
|
2015-06-01 08:49:05 +00:00
|
|
|
cp -a tomcat-websocket.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-tomcat-websocket.pom
|
|
|
|
|
%add_maven_depmap JPP.%{name}-tomcat-websocket.pom %{name}/tomcat-websocket.jar
|
2014-09-08 12:23:03 +00:00
|
|
|
|
|
|
|
|
cp -a tomcat-embed-core.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-tomcat-embed-core.pom
|
2019-01-26 08:09:06 +00:00
|
|
|
%add_maven_depmap JPP.%{name}-tomcat-embed-core.pom %{name}/tomcat-embed-core.jar -f embed
|
2014-09-08 12:23:03 +00:00
|
|
|
|
|
|
|
|
cp -a tomcat-embed-el.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-tomcat-embed-el.pom
|
2019-01-26 08:09:06 +00:00
|
|
|
%add_maven_depmap JPP.%{name}-tomcat-embed-el.pom %{name}/tomcat-embed-el.jar -f embed
|
2014-09-08 12:23:03 +00:00
|
|
|
|
|
|
|
|
cp -a tomcat-embed-jasper.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-tomcat-embed-jasper.pom
|
2019-01-26 08:09:06 +00:00
|
|
|
%add_maven_depmap JPP.%{name}-tomcat-embed-jasper.pom %{name}/tomcat-embed-jasper.jar -f embed
|
2014-09-08 12:23:03 +00:00
|
|
|
|
2015-06-01 08:49:05 +00:00
|
|
|
cp -a tomcat-embed-websocket.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-tomcat-embed-websocket.pom
|
2019-01-26 08:09:06 +00:00
|
|
|
%add_maven_depmap JPP.%{name}-tomcat-embed-websocket.pom %{name}/tomcat-embed-websocket.jar -f embed
|
2014-09-08 12:23:03 +00:00
|
|
|
|
2012-06-16 05:18:01 +00:00
|
|
|
# replace temporary copy with link
|
2014-07-10 15:10:16 +00:00
|
|
|
ln -s -f %{bindir}/tomcat-juli.jar %{buildroot}%{libdir}/
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
# bnc#424675
|
2014-07-10 15:10:16 +00:00
|
|
|
ln -s %{cachedir}/Catalina %{buildroot}/%{confdir}
|
|
|
|
|
rm -rf %{buildroot}/%{confdir}/Catalina
|
|
|
|
|
ln -s %{cachedir}/Catalina %{buildroot}/%{confdir}/
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
# bnc#418664
|
2013-04-18 12:44:10 +00:00
|
|
|
install -d -m 0755 %{buildroot}/%{_sysconfdir}/ant.d/
|
|
|
|
|
echo "%{name}/catalina-ant" > %{buildroot}/%{_sysconfdir}/ant.d/catalina-ant
|
2014-07-10 15:10:16 +00:00
|
|
|
%fdupes %{buildroot} /srv/%{name}
|
2012-06-16 05:18:01 +00:00
|
|
|
#bnc#565901
|
2016-04-07 12:59:42 +00:00
|
|
|
ln -sf %{_sbindir}/%{name} %{buildroot}/%{bindir}/catalina.sh
|
2012-06-16 05:18:01 +00:00
|
|
|
|
2018-01-17 09:40:12 +00:00
|
|
|
# Install update-alternatives content
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
|
|
|
|
ln -s -f %{_sysconfdir}/alternatives/el_api %{buildroot}%{_javadir}/%{name}-el_api.jar
|
Accepting request 548119 from home:mateialbu:branches:Java:packages
- Update to Tomcat 9.0.2:
* Major update for tomcat8 from tomcat9
* For full changelog please read upstream changes at:
+ http://tomcat.apache.org/tomcat-9.0-doc/changelog.html
* Rename all tomcat-8.0-* files to tomcat-9.0-*
- Changed patches:
* Deleted: tomcat-8.0-bootstrap-MANIFEST.MF.patch
* Deleted: tomcat-8.0-sle.catalina.policy.patch
* Deleted: tomcat-8.0-tomcat-users-webapp.patch
* Deleted: tomcat-8.0.33-JDTCompiler-java.patch
* Deleted: tomcat-8.0.44-javadoc.patch
* Deleted: tomcat-8.0.9-property-build.windows.patch
* Added: tomcat-9.0-JDTCompiler-java.patch
* Added: tomcat-9.0-bootstrap-MANIFEST.MF.patch
* Added: tomcat-9.0-javadoc.patch
* Added: tomcat-9.0-sle.catalina.policy.patch
* Added: tomcat-9.0-tomcat-users-webapp.patch
- Renamed subpackage tomcat-3_1-api to tomcat-4_0-api
to reflect the new Servlet API version.
- Commented out JAVA_HOME in /etc/tomcat/tomcat.conf
- Added "tomcat-" prefix to lib symlinks under
/usr/share/java to avoid file conflicts with servletapi5
and geronimo-specs
- Fixed wrong %ghost file paths for alternatives symlinks
- Replace references to /var/adm/fillup-templates with new
%_fillupdir macro (boo#1069468)
- Build with JDK 8 to fix runtime errors when running with JDK 7
and 8
- Fix tomcat-digest classpath error (bsc#977410)
- Fix packaged /etc/alternatives symlinks for api libs that caused
rpm -V to report link mismatch (bsc#1019016)
- update to 8.0.47
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Fixed CVE:
- CVE-2017-12617
- rebase tomcat-8.0-sle.catalina.policy.patch
- Added patch:
* tomcat-8.0.44-javadoc.patch
- generate documentation with the same source level as class
files
- fixes build with jdk9
- Version update to 8.0.44:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Fixed CVE:
- CVE-2017-5664 (bsc#1042910)
- New build dependency: javapackages-local
- Version update to 8.0.43: * Another bugfix release, for full details see:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Fixed CVEs:
- CVE-2017-5647 (bnc#1033448)
- CVE-2017-5648 (bnc#1033447)
- CVE-2016-8745
- Renamed and rebased patches:
* tomcat-7.0-sle.catalina.policy.patch -> tomcat-8.0-sle.catalina.policy.patch
- Enable optional setenv.sh script. See section
"(3.4) Using the "setenv" script (optional, recommended)" in
http://tomcat.apache.org/tomcat-8.0-doc/RUNNING.txt
(bnc#1002662)
- Fix file conflicts when upgrading from SLES 12 to SLES 12 SP1 (bnc#1023412).
Added explicit obsoletes for tomcat-el-2_2-api, tomcat-jsp-2_2-api,
tomcat-servlet-3_0-api
- update to 8.0.39: (boo#1003911)
* Improve handling of I/O errors with async processing
* Fail earlier on invalid HTTP request
- includes changes from 8.0.38:
* Refactoring the non-container thread Async complete()/dispatch()
handling to remove the possibility of deadlock
* Improved UTF-8 handling for the RewriteValve
- includes changes from 8.0.37:
* Treat paths used to obtain a request dispatcher as encoded
(configurable)
* Various jdbc-pool fixes
- drop tomcat-8.0.36-jar-scanner-loop.patch, upstream
- Switch to commons-dbcp2 fate#321029
- Backport fix for inifinite loop in the jar scanner for 8.0.36. (bnc#993862)
Added: tomcat-8.0.36-jar-scanner-loop.patch
- Version update to 8.0.36:
* Another bugfix release for the 8.0 series. Full details:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.36_(markt)
- CVE fixed by the version update:
- CVE-2016-3092 (bnc#986359)
- Fixed a deployment error in the examples webapp by changing the context.xml format to the new one
introduced by Tomcat 8. See http://tomcat.apache.org/migration-8.html#Web_application_resources
- fix maven fragments paths to build in multiple distribution
versions
- Version update to 8.0.33:
* Another bugfix release for 8.0 series, full details:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.33_(markt)
- Rebase tomcat-8.0-tomcat-users-webapp.patch
- Rebase tomcat-7.0.53-JDTCompiler-java.patch
to tomcat-8.0.33-JDTCompiler-java.patch
- Fix fixme for the prereq preamble value
- It seems systemd prints error on adding the @ services to macros
so do not do that
- package was partly merged with the scripts used in the
Fedora distribution
- support running multiple tomcat instances on the same server
(fate#317783)
- add catalina-jmx-remote.jar (fate#318403)
- remove sysvinit support: systemd is required
- update changes file for CVE information
- Fixed CVEs:
- CVE-2015-5346 (bnc#967814) in 8.0.32
- CVE-2015-5351 (bnc#967812) in 8.0.32
- CVE-2016-0706 (bnc#967815) in 8.0.32
- CVE-2016-0714 (bnc#967964) in 8.0.32
- CVE-2016-0763 (bnc#967966) in 8.0.32
- CVE-2015-5345 (bnc#967965) in 8.0.30
- CVE-2015-5174 (bnc#967967) in 8.0.27
- Version update to 8.0.32:
* Another bugfix release for 8.0 series, full details:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.32_(markt)
- Rebase patch:
* tomcat-8.0.9-property-build.windows.patch
- update to Tomcat 8.0.28
* Multiple fixes, read upstream changelog at:
https://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.28_(markt)
- Some whitespace cleanups
- Remove pointless conflicts on provide/obsolete symbols
- Version bump to 8.0.23 fate#318913:
* Multiple testfixes all around, read upstream changelog at:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.23_(markt)
- Fix previous commit. Fix one rpmlint warning
- Drop gpg verification from spec, it is done by obs
- Fix build with new jpackage-tools
- update to Tomcat 8.0.18:
* Major update for tomcat8 from tomcat7
* For full changelog please read upstream changes at:
+ http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Rename all tomcat-7.0-* files to tomcat-8.0-*
* Update keyring file
- Update windows patch to apply again:
* Deleted: tomcat-7.0.52-property-build.windows.patch
* Added: tomcat-8.0.9-property-build.windows.patch
* Added:tomcat-8.0-tomcat-users-webapp.patch
* Deleted: tomcat-7.0-tomcat-users-webapp.patch
* Added: tomcat-8.0-bootstrap-MANIFEST.MF.patch
* Deleted: tomcat-7.0-bootstrap-MANIFEST.MF.patch
- Version 1.1.30 or higher is required for APR listener (bnc#914725)
- SLE12 has different path for the "rm" command than older versions.
To avoid possible clashes, the entire coreutils must be provided.
(bnc#894292)
- Fixed Security Manager policies, which makes unable properly
run webapps by default. (bnc#891264)
Added: tomcat-7.0-sle.catalina.policy.patch
- Missing security manager policy file prevents Tomcat to start
with systemd. (bnc#890995)
- Tomcat 7.0.55 requires ecj 4.4.0
- include the tomcat websocket implementation (tomcat7-websocket)
- Update to 7.0.55
* Update to the Eclipse JDT Compiler 4.4
* Better error handling when the error occurs after the response
has been committed
* Various improvements to the Mapper including fixing some
concurrency bugs
* See http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- build tomcat-embed as a subpackage
- Drop two unused defines
- touch the alternatives files to avoid build errors
in older versions
- Do not define default defattr as it is pointless.
- One file here was not supposed to be ghost.
- Fix once more the alternatives.
- Add path to rm command.
- Silence loads of warnings by rpmlintrc
- Cleanup with spec-cleaner and format few things a bit.
- Remove few deps not really needed for sle11.
- Drop unused files obs.bl and local.lb
- Drop unused collections-tomcat-build.xml
- Version bump to 7.0.54:
* bugfix update
* See http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- Update to 7.0.53
* bugfix release
* Update the Eclipse JDT compiler to enable full Java 8 support in JSPs.
* See http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- Patch for Bug 56373
* See https://issues.apache.org/bugzilla/show_bug.cgi?id=56373
* tomcat-7.0.53-JDTCompiler-java.patch
- Rename tomcat-7.0.2-property-build.windows.patch to
tomcat-7.0.52-property-build.windows.patch
- remove saxon build requirement for sles
- disable bytecode check for sles
- remove unknown option from fillup_only macro
- wrap systemd %pre[un]/%post[un] in conditional
- specify required ant version
- Update to 7.0.52
* bugfix release
* Fix CVE-2014-0050, a DoS vulnerability related to multi-part processing
- Update to 7.0.50
* bugfix release
- Add missing commons-pool-tomcat5 symlink (bnc#847505c#13)
- Update to 7.0.47
* bugfix release
* backport of JSR-356 Java WebSocket 1.0
* package tomcat now requires java7 at lease
- Updated tomcat.keyring to reflect the fact new release is signed by
Violeta Georgieva / D63011C7
see http://osdir.com/ml/dev-tomcat.apache.org/2013-10/msg00849.html
- Add tomcat-dbcp.jar (bnc#847505) back into tomcat lib dir
- Install tomcat-coyote.jar as well
- Remove pointless scriplets
- Move from jpackage-utils to javapackage-tools
- drop a dependency on unecessary -tomcat5 packages
- use commons-dbcp.jar for build
- add missing commons-pool.jar to libdir
- add _constraints to not schedule build on some build machines
workaround for bnc#832762
- Add missing 'su root tomcat' line to logrotate. See also
https://bugzilla.redhat.com/show_bug.cgi?id=790334
- call chown --no-dereference in init script
(bnc#822177#c7/prevents CVE-2013-1976)
- update to 7.0.42 (bugfix release)
see http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- fix file list to be compatible for new rpm
- update to 7.0.39 (bugfix release)
- install only systemd unit files on openSUSE 12.1+
* and call proper code when init script still exists
- add a proper scripplets for -jsvc subpackage
- don't use catalina.out, systemd redirects stderr/stdout to syslog
- don't use and recommends logrotate
- package /etc/ant.d properly, mark only catalina-ant as a config file
- Fix tomcat init scripts generating malformed classpath
(http://youtrack.jetbrains.com/issue/JT-18545)
bnc#804992
- update to 7.0.35 (bugfix release)
require ecj >= 4.2.1, like upstream do
- make gpg-offline work distros after 12.2
- Ensure tomcat stdout/stderr output ends up in catalina.out
- Recommend libtcnative-1-0 >= 1.1.24
- /etc/init.d/tomcate init script fixes:
* Include /usr/bin and /usr/sbin in the PATH
* Fix logic for cleaning the work directories
* Fix typo (log_success_msg lsb function name)
* Fix typo (reload message)
- Require log4j
- Require gpg-offline on 12.2+
- Verify GPG signature.
- update to 7.0.33 (bugfix release)
- update to 7.0.30 (bugfix release)
* SSI and CGI disabled by default
- fix bnc#779538: change the working dir to $CATALINA_BASE
- document the CATALINA_BASE and CATALINA_HOME in tomcat.conf better
- fix rpmlintrc file
- fix bnc#771802 - systemd support is broken
* change type froking to simple as it does not make a sense run java in a
background to emulate that
* remove the need of nested wrappers, so /usr/sbin/tomcat-sysd now relies on
systemd features like User/EnvironmentFile
* workaround the 143 exit code in Stop phase - return 0 in this case
* merge the jsvc into tomcat-sysd code, the -jsvc-sysd is a symlink
* properly use jsvc with pid file to start and stop
- update to 7.0.26 (bugfix release)
- rename package to tomcat in order to emphasise a fact, there is only one
major release of tomcat maintained in distribution
- add manifest files and systemd support (thanks Fedora)
- create tomcat-jsvc package
- update to 7.0.26 (bugfix release)
- fix bnc#747771 - don't use /var/lock/subsys
sync tomcat7 init with tomcat6
- update to 7.0.25 (bugfix release)
- update to 7.0.22 (bugfix release)
- wrote changes and prepare for inclusion to openSUSE distribution
- fix bnc#726307
/etc/tomcat7 is writtable for tomcat group
- update to version 7.0.21
- update to version 7.0.16 (bugfix update)
- add rpmlintrc, digest, init and wrapper scripts and config file
- build require geronimo apis and wsdl4j
- disable webservices in javadoc target
- initial packaging of tomcat7 7.0.6
OBS-URL: https://build.opensuse.org/request/show/548119
OBS-URL: https://build.opensuse.org/package/show/Java:packages/tomcat?expand=0&rev=117
2017-12-04 15:08:14 +00:00
|
|
|
ln -s -f %{_sysconfdir}/alternatives/el_1_0_api %{buildroot}%{_javadir}/%{name}-el_1_0_api.jar
|
2018-01-17 09:40:12 +00:00
|
|
|
ln -s -f %{_sysconfdir}/alternatives/jsp %{buildroot}%{_javadir}/%{name}-jsp.jar
|
2020-11-02 16:37:37 +00:00
|
|
|
# To avoid conflicts with servletapi4 and servletapi5 create a link to incorrect /etc/alternatives/servlet.jar.
|
|
|
|
|
# It will be changed anyways to the correct symlink by update-alternatives.
|
|
|
|
|
ln -s -f %{_sysconfdir}/alternatives/servlet.jar %{buildroot}%{_javadir}/servlet.jar
|
2017-12-02 23:45:46 +00:00
|
|
|
|
2012-06-16 05:18:01 +00:00
|
|
|
%pre
|
|
|
|
|
# add the tomcat user and group
|
2020-11-03 15:34:19 +00:00
|
|
|
getent group tomcat >/dev/null || %{_sbindir}/groupadd -r tomcat
|
|
|
|
|
getent passwd tomcat >/dev/null || %{_sbindir}/useradd -c "Apache Tomcat" \
|
|
|
|
|
-g tomcat -s /sbin/nologin -r -d %{homedir} tomcat
|
2016-04-22 09:46:29 +00:00
|
|
|
%service_add_pre %{name}.service
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%service_add_post %{name}.service
|
2016-04-07 13:02:00 +00:00
|
|
|
%{fillup_only %{name}}
|
2024-02-15 08:20:13 +00:00
|
|
|
chown -R tomcat:tomcat %{confdir}/server.xml
|
|
|
|
|
runuser -u tomcat -g tomcat -- xsltproc --output %{confdir}/server.xml %{confdir}/valve.xslt %{confdir}/server.xml
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%service_del_preun %{name}.service
|
|
|
|
|
|
|
|
|
|
%postun
|
2013-04-18 12:44:10 +00:00
|
|
|
%service_del_postun %{name}.service
|
2012-06-16 05:18:01 +00:00
|
|
|
|
2013-04-19 11:53:03 +00:00
|
|
|
%pre jsvc
|
2013-04-18 12:44:10 +00:00
|
|
|
%service_add_pre %{name}-jsvc.service
|
|
|
|
|
|
2013-04-19 11:53:03 +00:00
|
|
|
%post jsvc
|
2013-04-18 12:44:10 +00:00
|
|
|
%service_add_post %{name}-jsvc.service
|
|
|
|
|
|
2013-04-19 11:53:03 +00:00
|
|
|
%preun jsvc
|
2013-04-18 12:44:10 +00:00
|
|
|
%service_del_preun %{name}-jsvc.service
|
|
|
|
|
|
2013-04-19 11:53:03 +00:00
|
|
|
%postun jsvc
|
2013-04-18 12:44:10 +00:00
|
|
|
%service_del_postun %{name}-jsvc.service
|
2014-05-20 11:53:20 +00:00
|
|
|
|
2015-06-01 08:49:05 +00:00
|
|
|
%post el-3_0-api
|
Accepting request 548119 from home:mateialbu:branches:Java:packages
- Update to Tomcat 9.0.2:
* Major update for tomcat8 from tomcat9
* For full changelog please read upstream changes at:
+ http://tomcat.apache.org/tomcat-9.0-doc/changelog.html
* Rename all tomcat-8.0-* files to tomcat-9.0-*
- Changed patches:
* Deleted: tomcat-8.0-bootstrap-MANIFEST.MF.patch
* Deleted: tomcat-8.0-sle.catalina.policy.patch
* Deleted: tomcat-8.0-tomcat-users-webapp.patch
* Deleted: tomcat-8.0.33-JDTCompiler-java.patch
* Deleted: tomcat-8.0.44-javadoc.patch
* Deleted: tomcat-8.0.9-property-build.windows.patch
* Added: tomcat-9.0-JDTCompiler-java.patch
* Added: tomcat-9.0-bootstrap-MANIFEST.MF.patch
* Added: tomcat-9.0-javadoc.patch
* Added: tomcat-9.0-sle.catalina.policy.patch
* Added: tomcat-9.0-tomcat-users-webapp.patch
- Renamed subpackage tomcat-3_1-api to tomcat-4_0-api
to reflect the new Servlet API version.
- Commented out JAVA_HOME in /etc/tomcat/tomcat.conf
- Added "tomcat-" prefix to lib symlinks under
/usr/share/java to avoid file conflicts with servletapi5
and geronimo-specs
- Fixed wrong %ghost file paths for alternatives symlinks
- Replace references to /var/adm/fillup-templates with new
%_fillupdir macro (boo#1069468)
- Build with JDK 8 to fix runtime errors when running with JDK 7
and 8
- Fix tomcat-digest classpath error (bsc#977410)
- Fix packaged /etc/alternatives symlinks for api libs that caused
rpm -V to report link mismatch (bsc#1019016)
- update to 8.0.47
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Fixed CVE:
- CVE-2017-12617
- rebase tomcat-8.0-sle.catalina.policy.patch
- Added patch:
* tomcat-8.0.44-javadoc.patch
- generate documentation with the same source level as class
files
- fixes build with jdk9
- Version update to 8.0.44:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Fixed CVE:
- CVE-2017-5664 (bsc#1042910)
- New build dependency: javapackages-local
- Version update to 8.0.43: * Another bugfix release, for full details see:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Fixed CVEs:
- CVE-2017-5647 (bnc#1033448)
- CVE-2017-5648 (bnc#1033447)
- CVE-2016-8745
- Renamed and rebased patches:
* tomcat-7.0-sle.catalina.policy.patch -> tomcat-8.0-sle.catalina.policy.patch
- Enable optional setenv.sh script. See section
"(3.4) Using the "setenv" script (optional, recommended)" in
http://tomcat.apache.org/tomcat-8.0-doc/RUNNING.txt
(bnc#1002662)
- Fix file conflicts when upgrading from SLES 12 to SLES 12 SP1 (bnc#1023412).
Added explicit obsoletes for tomcat-el-2_2-api, tomcat-jsp-2_2-api,
tomcat-servlet-3_0-api
- update to 8.0.39: (boo#1003911)
* Improve handling of I/O errors with async processing
* Fail earlier on invalid HTTP request
- includes changes from 8.0.38:
* Refactoring the non-container thread Async complete()/dispatch()
handling to remove the possibility of deadlock
* Improved UTF-8 handling for the RewriteValve
- includes changes from 8.0.37:
* Treat paths used to obtain a request dispatcher as encoded
(configurable)
* Various jdbc-pool fixes
- drop tomcat-8.0.36-jar-scanner-loop.patch, upstream
- Switch to commons-dbcp2 fate#321029
- Backport fix for inifinite loop in the jar scanner for 8.0.36. (bnc#993862)
Added: tomcat-8.0.36-jar-scanner-loop.patch
- Version update to 8.0.36:
* Another bugfix release for the 8.0 series. Full details:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.36_(markt)
- CVE fixed by the version update:
- CVE-2016-3092 (bnc#986359)
- Fixed a deployment error in the examples webapp by changing the context.xml format to the new one
introduced by Tomcat 8. See http://tomcat.apache.org/migration-8.html#Web_application_resources
- fix maven fragments paths to build in multiple distribution
versions
- Version update to 8.0.33:
* Another bugfix release for 8.0 series, full details:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.33_(markt)
- Rebase tomcat-8.0-tomcat-users-webapp.patch
- Rebase tomcat-7.0.53-JDTCompiler-java.patch
to tomcat-8.0.33-JDTCompiler-java.patch
- Fix fixme for the prereq preamble value
- It seems systemd prints error on adding the @ services to macros
so do not do that
- package was partly merged with the scripts used in the
Fedora distribution
- support running multiple tomcat instances on the same server
(fate#317783)
- add catalina-jmx-remote.jar (fate#318403)
- remove sysvinit support: systemd is required
- update changes file for CVE information
- Fixed CVEs:
- CVE-2015-5346 (bnc#967814) in 8.0.32
- CVE-2015-5351 (bnc#967812) in 8.0.32
- CVE-2016-0706 (bnc#967815) in 8.0.32
- CVE-2016-0714 (bnc#967964) in 8.0.32
- CVE-2016-0763 (bnc#967966) in 8.0.32
- CVE-2015-5345 (bnc#967965) in 8.0.30
- CVE-2015-5174 (bnc#967967) in 8.0.27
- Version update to 8.0.32:
* Another bugfix release for 8.0 series, full details:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.32_(markt)
- Rebase patch:
* tomcat-8.0.9-property-build.windows.patch
- update to Tomcat 8.0.28
* Multiple fixes, read upstream changelog at:
https://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.28_(markt)
- Some whitespace cleanups
- Remove pointless conflicts on provide/obsolete symbols
- Version bump to 8.0.23 fate#318913:
* Multiple testfixes all around, read upstream changelog at:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.23_(markt)
- Fix previous commit. Fix one rpmlint warning
- Drop gpg verification from spec, it is done by obs
- Fix build with new jpackage-tools
- update to Tomcat 8.0.18:
* Major update for tomcat8 from tomcat7
* For full changelog please read upstream changes at:
+ http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Rename all tomcat-7.0-* files to tomcat-8.0-*
* Update keyring file
- Update windows patch to apply again:
* Deleted: tomcat-7.0.52-property-build.windows.patch
* Added: tomcat-8.0.9-property-build.windows.patch
* Added:tomcat-8.0-tomcat-users-webapp.patch
* Deleted: tomcat-7.0-tomcat-users-webapp.patch
* Added: tomcat-8.0-bootstrap-MANIFEST.MF.patch
* Deleted: tomcat-7.0-bootstrap-MANIFEST.MF.patch
- Version 1.1.30 or higher is required for APR listener (bnc#914725)
- SLE12 has different path for the "rm" command than older versions.
To avoid possible clashes, the entire coreutils must be provided.
(bnc#894292)
- Fixed Security Manager policies, which makes unable properly
run webapps by default. (bnc#891264)
Added: tomcat-7.0-sle.catalina.policy.patch
- Missing security manager policy file prevents Tomcat to start
with systemd. (bnc#890995)
- Tomcat 7.0.55 requires ecj 4.4.0
- include the tomcat websocket implementation (tomcat7-websocket)
- Update to 7.0.55
* Update to the Eclipse JDT Compiler 4.4
* Better error handling when the error occurs after the response
has been committed
* Various improvements to the Mapper including fixing some
concurrency bugs
* See http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- build tomcat-embed as a subpackage
- Drop two unused defines
- touch the alternatives files to avoid build errors
in older versions
- Do not define default defattr as it is pointless.
- One file here was not supposed to be ghost.
- Fix once more the alternatives.
- Add path to rm command.
- Silence loads of warnings by rpmlintrc
- Cleanup with spec-cleaner and format few things a bit.
- Remove few deps not really needed for sle11.
- Drop unused files obs.bl and local.lb
- Drop unused collections-tomcat-build.xml
- Version bump to 7.0.54:
* bugfix update
* See http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- Update to 7.0.53
* bugfix release
* Update the Eclipse JDT compiler to enable full Java 8 support in JSPs.
* See http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- Patch for Bug 56373
* See https://issues.apache.org/bugzilla/show_bug.cgi?id=56373
* tomcat-7.0.53-JDTCompiler-java.patch
- Rename tomcat-7.0.2-property-build.windows.patch to
tomcat-7.0.52-property-build.windows.patch
- remove saxon build requirement for sles
- disable bytecode check for sles
- remove unknown option from fillup_only macro
- wrap systemd %pre[un]/%post[un] in conditional
- specify required ant version
- Update to 7.0.52
* bugfix release
* Fix CVE-2014-0050, a DoS vulnerability related to multi-part processing
- Update to 7.0.50
* bugfix release
- Add missing commons-pool-tomcat5 symlink (bnc#847505c#13)
- Update to 7.0.47
* bugfix release
* backport of JSR-356 Java WebSocket 1.0
* package tomcat now requires java7 at lease
- Updated tomcat.keyring to reflect the fact new release is signed by
Violeta Georgieva / D63011C7
see http://osdir.com/ml/dev-tomcat.apache.org/2013-10/msg00849.html
- Add tomcat-dbcp.jar (bnc#847505) back into tomcat lib dir
- Install tomcat-coyote.jar as well
- Remove pointless scriplets
- Move from jpackage-utils to javapackage-tools
- drop a dependency on unecessary -tomcat5 packages
- use commons-dbcp.jar for build
- add missing commons-pool.jar to libdir
- add _constraints to not schedule build on some build machines
workaround for bnc#832762
- Add missing 'su root tomcat' line to logrotate. See also
https://bugzilla.redhat.com/show_bug.cgi?id=790334
- call chown --no-dereference in init script
(bnc#822177#c7/prevents CVE-2013-1976)
- update to 7.0.42 (bugfix release)
see http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- fix file list to be compatible for new rpm
- update to 7.0.39 (bugfix release)
- install only systemd unit files on openSUSE 12.1+
* and call proper code when init script still exists
- add a proper scripplets for -jsvc subpackage
- don't use catalina.out, systemd redirects stderr/stdout to syslog
- don't use and recommends logrotate
- package /etc/ant.d properly, mark only catalina-ant as a config file
- Fix tomcat init scripts generating malformed classpath
(http://youtrack.jetbrains.com/issue/JT-18545)
bnc#804992
- update to 7.0.35 (bugfix release)
require ecj >= 4.2.1, like upstream do
- make gpg-offline work distros after 12.2
- Ensure tomcat stdout/stderr output ends up in catalina.out
- Recommend libtcnative-1-0 >= 1.1.24
- /etc/init.d/tomcate init script fixes:
* Include /usr/bin and /usr/sbin in the PATH
* Fix logic for cleaning the work directories
* Fix typo (log_success_msg lsb function name)
* Fix typo (reload message)
- Require log4j
- Require gpg-offline on 12.2+
- Verify GPG signature.
- update to 7.0.33 (bugfix release)
- update to 7.0.30 (bugfix release)
* SSI and CGI disabled by default
- fix bnc#779538: change the working dir to $CATALINA_BASE
- document the CATALINA_BASE and CATALINA_HOME in tomcat.conf better
- fix rpmlintrc file
- fix bnc#771802 - systemd support is broken
* change type froking to simple as it does not make a sense run java in a
background to emulate that
* remove the need of nested wrappers, so /usr/sbin/tomcat-sysd now relies on
systemd features like User/EnvironmentFile
* workaround the 143 exit code in Stop phase - return 0 in this case
* merge the jsvc into tomcat-sysd code, the -jsvc-sysd is a symlink
* properly use jsvc with pid file to start and stop
- update to 7.0.26 (bugfix release)
- rename package to tomcat in order to emphasise a fact, there is only one
major release of tomcat maintained in distribution
- add manifest files and systemd support (thanks Fedora)
- create tomcat-jsvc package
- update to 7.0.26 (bugfix release)
- fix bnc#747771 - don't use /var/lock/subsys
sync tomcat7 init with tomcat6
- update to 7.0.25 (bugfix release)
- update to 7.0.22 (bugfix release)
- wrote changes and prepare for inclusion to openSUSE distribution
- fix bnc#726307
/etc/tomcat7 is writtable for tomcat group
- update to version 7.0.21
- update to version 7.0.16 (bugfix update)
- add rpmlintrc, digest, init and wrapper scripts and config file
- build require geronimo apis and wsdl4j
- disable webservices in javadoc target
- initial packaging of tomcat7 7.0.6
OBS-URL: https://build.opensuse.org/request/show/548119
OBS-URL: https://build.opensuse.org/package/show/Java:packages/tomcat?expand=0&rev=117
2017-12-04 15:08:14 +00:00
|
|
|
update-alternatives --install %{_javadir}/%{name}-el_api.jar el_api %{_javadir}/%{name}-el-%{elspec}-api.jar 20300
|
|
|
|
|
update-alternatives --install %{_javadir}/%{name}-el_1_0_api.jar el_1_0_api %{_javadir}/%{name}-el-%{elspec}-api.jar 20300
|
2012-06-16 05:18:01 +00:00
|
|
|
|
2015-06-01 08:49:05 +00:00
|
|
|
%preun el-3_0-api
|
2014-07-11 09:18:33 +00:00
|
|
|
if [ $1 -eq 0 ] ; then
|
2016-02-17 18:24:24 +00:00
|
|
|
update-alternatives --remove el_api %{_javadir}/%{name}-el-%{elspec}-api.jar
|
|
|
|
|
update-alternatives --remove el_1_0_api %{_javadir}/%{name}-el-%{elspec}-api.jar
|
2012-06-16 05:18:01 +00:00
|
|
|
fi
|
|
|
|
|
|
2015-06-01 08:49:05 +00:00
|
|
|
%post jsp-2_3-api
|
Accepting request 548119 from home:mateialbu:branches:Java:packages
- Update to Tomcat 9.0.2:
* Major update for tomcat8 from tomcat9
* For full changelog please read upstream changes at:
+ http://tomcat.apache.org/tomcat-9.0-doc/changelog.html
* Rename all tomcat-8.0-* files to tomcat-9.0-*
- Changed patches:
* Deleted: tomcat-8.0-bootstrap-MANIFEST.MF.patch
* Deleted: tomcat-8.0-sle.catalina.policy.patch
* Deleted: tomcat-8.0-tomcat-users-webapp.patch
* Deleted: tomcat-8.0.33-JDTCompiler-java.patch
* Deleted: tomcat-8.0.44-javadoc.patch
* Deleted: tomcat-8.0.9-property-build.windows.patch
* Added: tomcat-9.0-JDTCompiler-java.patch
* Added: tomcat-9.0-bootstrap-MANIFEST.MF.patch
* Added: tomcat-9.0-javadoc.patch
* Added: tomcat-9.0-sle.catalina.policy.patch
* Added: tomcat-9.0-tomcat-users-webapp.patch
- Renamed subpackage tomcat-3_1-api to tomcat-4_0-api
to reflect the new Servlet API version.
- Commented out JAVA_HOME in /etc/tomcat/tomcat.conf
- Added "tomcat-" prefix to lib symlinks under
/usr/share/java to avoid file conflicts with servletapi5
and geronimo-specs
- Fixed wrong %ghost file paths for alternatives symlinks
- Replace references to /var/adm/fillup-templates with new
%_fillupdir macro (boo#1069468)
- Build with JDK 8 to fix runtime errors when running with JDK 7
and 8
- Fix tomcat-digest classpath error (bsc#977410)
- Fix packaged /etc/alternatives symlinks for api libs that caused
rpm -V to report link mismatch (bsc#1019016)
- update to 8.0.47
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Fixed CVE:
- CVE-2017-12617
- rebase tomcat-8.0-sle.catalina.policy.patch
- Added patch:
* tomcat-8.0.44-javadoc.patch
- generate documentation with the same source level as class
files
- fixes build with jdk9
- Version update to 8.0.44:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Fixed CVE:
- CVE-2017-5664 (bsc#1042910)
- New build dependency: javapackages-local
- Version update to 8.0.43: * Another bugfix release, for full details see:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Fixed CVEs:
- CVE-2017-5647 (bnc#1033448)
- CVE-2017-5648 (bnc#1033447)
- CVE-2016-8745
- Renamed and rebased patches:
* tomcat-7.0-sle.catalina.policy.patch -> tomcat-8.0-sle.catalina.policy.patch
- Enable optional setenv.sh script. See section
"(3.4) Using the "setenv" script (optional, recommended)" in
http://tomcat.apache.org/tomcat-8.0-doc/RUNNING.txt
(bnc#1002662)
- Fix file conflicts when upgrading from SLES 12 to SLES 12 SP1 (bnc#1023412).
Added explicit obsoletes for tomcat-el-2_2-api, tomcat-jsp-2_2-api,
tomcat-servlet-3_0-api
- update to 8.0.39: (boo#1003911)
* Improve handling of I/O errors with async processing
* Fail earlier on invalid HTTP request
- includes changes from 8.0.38:
* Refactoring the non-container thread Async complete()/dispatch()
handling to remove the possibility of deadlock
* Improved UTF-8 handling for the RewriteValve
- includes changes from 8.0.37:
* Treat paths used to obtain a request dispatcher as encoded
(configurable)
* Various jdbc-pool fixes
- drop tomcat-8.0.36-jar-scanner-loop.patch, upstream
- Switch to commons-dbcp2 fate#321029
- Backport fix for inifinite loop in the jar scanner for 8.0.36. (bnc#993862)
Added: tomcat-8.0.36-jar-scanner-loop.patch
- Version update to 8.0.36:
* Another bugfix release for the 8.0 series. Full details:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.36_(markt)
- CVE fixed by the version update:
- CVE-2016-3092 (bnc#986359)
- Fixed a deployment error in the examples webapp by changing the context.xml format to the new one
introduced by Tomcat 8. See http://tomcat.apache.org/migration-8.html#Web_application_resources
- fix maven fragments paths to build in multiple distribution
versions
- Version update to 8.0.33:
* Another bugfix release for 8.0 series, full details:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.33_(markt)
- Rebase tomcat-8.0-tomcat-users-webapp.patch
- Rebase tomcat-7.0.53-JDTCompiler-java.patch
to tomcat-8.0.33-JDTCompiler-java.patch
- Fix fixme for the prereq preamble value
- It seems systemd prints error on adding the @ services to macros
so do not do that
- package was partly merged with the scripts used in the
Fedora distribution
- support running multiple tomcat instances on the same server
(fate#317783)
- add catalina-jmx-remote.jar (fate#318403)
- remove sysvinit support: systemd is required
- update changes file for CVE information
- Fixed CVEs:
- CVE-2015-5346 (bnc#967814) in 8.0.32
- CVE-2015-5351 (bnc#967812) in 8.0.32
- CVE-2016-0706 (bnc#967815) in 8.0.32
- CVE-2016-0714 (bnc#967964) in 8.0.32
- CVE-2016-0763 (bnc#967966) in 8.0.32
- CVE-2015-5345 (bnc#967965) in 8.0.30
- CVE-2015-5174 (bnc#967967) in 8.0.27
- Version update to 8.0.32:
* Another bugfix release for 8.0 series, full details:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.32_(markt)
- Rebase patch:
* tomcat-8.0.9-property-build.windows.patch
- update to Tomcat 8.0.28
* Multiple fixes, read upstream changelog at:
https://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.28_(markt)
- Some whitespace cleanups
- Remove pointless conflicts on provide/obsolete symbols
- Version bump to 8.0.23 fate#318913:
* Multiple testfixes all around, read upstream changelog at:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.23_(markt)
- Fix previous commit. Fix one rpmlint warning
- Drop gpg verification from spec, it is done by obs
- Fix build with new jpackage-tools
- update to Tomcat 8.0.18:
* Major update for tomcat8 from tomcat7
* For full changelog please read upstream changes at:
+ http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Rename all tomcat-7.0-* files to tomcat-8.0-*
* Update keyring file
- Update windows patch to apply again:
* Deleted: tomcat-7.0.52-property-build.windows.patch
* Added: tomcat-8.0.9-property-build.windows.patch
* Added:tomcat-8.0-tomcat-users-webapp.patch
* Deleted: tomcat-7.0-tomcat-users-webapp.patch
* Added: tomcat-8.0-bootstrap-MANIFEST.MF.patch
* Deleted: tomcat-7.0-bootstrap-MANIFEST.MF.patch
- Version 1.1.30 or higher is required for APR listener (bnc#914725)
- SLE12 has different path for the "rm" command than older versions.
To avoid possible clashes, the entire coreutils must be provided.
(bnc#894292)
- Fixed Security Manager policies, which makes unable properly
run webapps by default. (bnc#891264)
Added: tomcat-7.0-sle.catalina.policy.patch
- Missing security manager policy file prevents Tomcat to start
with systemd. (bnc#890995)
- Tomcat 7.0.55 requires ecj 4.4.0
- include the tomcat websocket implementation (tomcat7-websocket)
- Update to 7.0.55
* Update to the Eclipse JDT Compiler 4.4
* Better error handling when the error occurs after the response
has been committed
* Various improvements to the Mapper including fixing some
concurrency bugs
* See http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- build tomcat-embed as a subpackage
- Drop two unused defines
- touch the alternatives files to avoid build errors
in older versions
- Do not define default defattr as it is pointless.
- One file here was not supposed to be ghost.
- Fix once more the alternatives.
- Add path to rm command.
- Silence loads of warnings by rpmlintrc
- Cleanup with spec-cleaner and format few things a bit.
- Remove few deps not really needed for sle11.
- Drop unused files obs.bl and local.lb
- Drop unused collections-tomcat-build.xml
- Version bump to 7.0.54:
* bugfix update
* See http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- Update to 7.0.53
* bugfix release
* Update the Eclipse JDT compiler to enable full Java 8 support in JSPs.
* See http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- Patch for Bug 56373
* See https://issues.apache.org/bugzilla/show_bug.cgi?id=56373
* tomcat-7.0.53-JDTCompiler-java.patch
- Rename tomcat-7.0.2-property-build.windows.patch to
tomcat-7.0.52-property-build.windows.patch
- remove saxon build requirement for sles
- disable bytecode check for sles
- remove unknown option from fillup_only macro
- wrap systemd %pre[un]/%post[un] in conditional
- specify required ant version
- Update to 7.0.52
* bugfix release
* Fix CVE-2014-0050, a DoS vulnerability related to multi-part processing
- Update to 7.0.50
* bugfix release
- Add missing commons-pool-tomcat5 symlink (bnc#847505c#13)
- Update to 7.0.47
* bugfix release
* backport of JSR-356 Java WebSocket 1.0
* package tomcat now requires java7 at lease
- Updated tomcat.keyring to reflect the fact new release is signed by
Violeta Georgieva / D63011C7
see http://osdir.com/ml/dev-tomcat.apache.org/2013-10/msg00849.html
- Add tomcat-dbcp.jar (bnc#847505) back into tomcat lib dir
- Install tomcat-coyote.jar as well
- Remove pointless scriplets
- Move from jpackage-utils to javapackage-tools
- drop a dependency on unecessary -tomcat5 packages
- use commons-dbcp.jar for build
- add missing commons-pool.jar to libdir
- add _constraints to not schedule build on some build machines
workaround for bnc#832762
- Add missing 'su root tomcat' line to logrotate. See also
https://bugzilla.redhat.com/show_bug.cgi?id=790334
- call chown --no-dereference in init script
(bnc#822177#c7/prevents CVE-2013-1976)
- update to 7.0.42 (bugfix release)
see http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- fix file list to be compatible for new rpm
- update to 7.0.39 (bugfix release)
- install only systemd unit files on openSUSE 12.1+
* and call proper code when init script still exists
- add a proper scripplets for -jsvc subpackage
- don't use catalina.out, systemd redirects stderr/stdout to syslog
- don't use and recommends logrotate
- package /etc/ant.d properly, mark only catalina-ant as a config file
- Fix tomcat init scripts generating malformed classpath
(http://youtrack.jetbrains.com/issue/JT-18545)
bnc#804992
- update to 7.0.35 (bugfix release)
require ecj >= 4.2.1, like upstream do
- make gpg-offline work distros after 12.2
- Ensure tomcat stdout/stderr output ends up in catalina.out
- Recommend libtcnative-1-0 >= 1.1.24
- /etc/init.d/tomcate init script fixes:
* Include /usr/bin and /usr/sbin in the PATH
* Fix logic for cleaning the work directories
* Fix typo (log_success_msg lsb function name)
* Fix typo (reload message)
- Require log4j
- Require gpg-offline on 12.2+
- Verify GPG signature.
- update to 7.0.33 (bugfix release)
- update to 7.0.30 (bugfix release)
* SSI and CGI disabled by default
- fix bnc#779538: change the working dir to $CATALINA_BASE
- document the CATALINA_BASE and CATALINA_HOME in tomcat.conf better
- fix rpmlintrc file
- fix bnc#771802 - systemd support is broken
* change type froking to simple as it does not make a sense run java in a
background to emulate that
* remove the need of nested wrappers, so /usr/sbin/tomcat-sysd now relies on
systemd features like User/EnvironmentFile
* workaround the 143 exit code in Stop phase - return 0 in this case
* merge the jsvc into tomcat-sysd code, the -jsvc-sysd is a symlink
* properly use jsvc with pid file to start and stop
- update to 7.0.26 (bugfix release)
- rename package to tomcat in order to emphasise a fact, there is only one
major release of tomcat maintained in distribution
- add manifest files and systemd support (thanks Fedora)
- create tomcat-jsvc package
- update to 7.0.26 (bugfix release)
- fix bnc#747771 - don't use /var/lock/subsys
sync tomcat7 init with tomcat6
- update to 7.0.25 (bugfix release)
- update to 7.0.22 (bugfix release)
- wrote changes and prepare for inclusion to openSUSE distribution
- fix bnc#726307
/etc/tomcat7 is writtable for tomcat group
- update to version 7.0.21
- update to version 7.0.16 (bugfix update)
- add rpmlintrc, digest, init and wrapper scripts and config file
- build require geronimo apis and wsdl4j
- disable webservices in javadoc target
- initial packaging of tomcat7 7.0.6
OBS-URL: https://build.opensuse.org/request/show/548119
OBS-URL: https://build.opensuse.org/package/show/Java:packages/tomcat?expand=0&rev=117
2017-12-04 15:08:14 +00:00
|
|
|
update-alternatives --install %{_javadir}/%{name}-jsp.jar jsp \
|
2012-06-16 05:18:01 +00:00
|
|
|
%{_javadir}/%{name}-jsp-%{jspspec}-api.jar 20200
|
|
|
|
|
|
2015-06-01 08:49:05 +00:00
|
|
|
%postun jsp-2_3-api
|
2014-07-11 09:18:33 +00:00
|
|
|
if [ $1 -eq 0 ] ; then
|
2016-02-17 18:24:24 +00:00
|
|
|
update-alternatives --remove jsp \
|
2012-06-16 05:18:01 +00:00
|
|
|
%{_javadir}/%{name}-jsp-%{jspspec}-api.jar
|
|
|
|
|
fi
|
|
|
|
|
|
2017-12-02 23:45:46 +00:00
|
|
|
%post servlet-4_0-api
|
2020-11-02 16:37:37 +00:00
|
|
|
update-alternatives --install %{_javadir}/servlet.jar servlet \
|
2012-06-16 05:18:01 +00:00
|
|
|
%{_javadir}/%{name}-servlet-%{servletspec}-api.jar 30000
|
2020-11-02 16:37:37 +00:00
|
|
|
# Fix for bsc#1092163.
|
|
|
|
|
# Keep the /usr/share/java/tomcat-servlet.jar symlink for compatibility.
|
2021-03-19 05:27:29 +00:00
|
|
|
# In case of update from an older version where /usr/share/java/tomcat-servlet.jar is an alternatives symlink
|
2020-11-02 16:37:37 +00:00
|
|
|
# the update-alternatives in the new version will cause a rename tomcat-servlet.jar -> servlet.jar.
|
|
|
|
|
# This makes sure the tomcat-servlet.jar is recreated if it's missing because of the rename.
|
2021-03-19 05:27:29 +00:00
|
|
|
if [ ! -f %{_javadir}/%{name}-servlet.jar ]; then
|
2020-11-02 16:37:37 +00:00
|
|
|
echo "Recreating symlink %{_javadir}/%{name}-servlet.jar"
|
|
|
|
|
ln -s %{_javadir}/%{name}-servlet-%{servletspec}-api.jar %{_javadir}/%{name}-servlet.jar
|
|
|
|
|
fi
|
2012-06-16 05:18:01 +00:00
|
|
|
|
2017-12-02 23:45:46 +00:00
|
|
|
%postun servlet-4_0-api
|
2014-07-11 09:18:33 +00:00
|
|
|
if [ $1 -eq 0 ] ; then
|
2021-03-19 05:27:29 +00:00
|
|
|
if [ ! -f %{_sysconfdir}/alternatives/servlet ]; then
|
2023-09-21 20:06:00 +00:00
|
|
|
# %{_sysconfdir}/alternatives/servlet was removed on uninstall.
|
2020-11-02 16:37:37 +00:00
|
|
|
# Create a broken symlink to make sure update-alternatives works correctly and falls back
|
|
|
|
|
# to servletapi5 or servletapi4 if they're installed.
|
|
|
|
|
ln -s %{_javadir}/%{name}-servlet-%{servletspec}-api.jar %{_sysconfdir}/alternatives/servlet
|
|
|
|
|
fi
|
2016-02-17 18:24:24 +00:00
|
|
|
update-alternatives --remove servlet \
|
2012-06-16 05:18:01 +00:00
|
|
|
%{_javadir}/%{name}-servlet-%{servletspec}-api.jar
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%post lib
|
2013-11-04 14:49:19 +00:00
|
|
|
# those links are no longer needed
|
2014-07-10 15:10:16 +00:00
|
|
|
rm -f \
|
2013-11-04 14:49:19 +00:00
|
|
|
%{libdir}/\[commons-collections-tomcat5\].jar \
|
|
|
|
|
%{libdir}/\[commons-dbcp-tomcat5\].jar \
|
|
|
|
|
%{libdir}/\[commons-pool-tomcat5\].jar \
|
|
|
|
|
%{libdir}/\[ecj\].jar >/dev/null 2>&1
|
2012-06-16 05:18:01 +00:00
|
|
|
|
2019-02-05 18:26:47 +00:00
|
|
|
%post webapps
|
2024-02-15 08:20:13 +00:00
|
|
|
chown -R tomcat:tomcat %{tomcatappdir}/examples/META-INF
|
|
|
|
|
runuser -u tomcat -g tomcat -- xsltproc --output %{tomcatappdir}/examples/META-INF/context.xml %{confdir}/allowLinking.xslt %{tomcatappdir}/examples/META-INF/context.xml
|
2024-01-16 08:40:50 +00:00
|
|
|
if [ ! -e %{_datadir}/%{name}/webapps/examples ]; then
|
|
|
|
|
ln -sf %{tomcatappdir}/examples %{_datadir}/%{name}/webapps/examples
|
|
|
|
|
fi
|
|
|
|
|
#use the same context.xml for sample war
|
2024-02-15 08:20:13 +00:00
|
|
|
mkdir -p %{tomcatappdir}/ROOT/META-INF
|
|
|
|
|
chown -R tomcat:tomcat %{tomcatappdir}/ROOT/META-INF
|
|
|
|
|
runuser -u tomcat -g tomcat -- xsltproc --output %{tomcatappdir}/ROOT/META-INF/context.xml %{confdir}/allowLinking.xslt %{tomcatappdir}/examples/META-INF/context.xml
|
|
|
|
|
if [ ! -e %{_datadir}/%{name}/webapps/ROOT ]; then
|
|
|
|
|
ln -sf %{tomcatappdir}/ROOT %{_datadir}/%{name}/webapps/ROOT
|
|
|
|
|
fi
|
|
|
|
|
#use the same context.xml for sample war
|
2024-01-16 08:40:50 +00:00
|
|
|
mkdir -p %{tomcatappdir}/webapps/sample/META-INF
|
2024-02-15 08:20:13 +00:00
|
|
|
chown -R tomcat:tomcat %{tomcatappdir}/sample/META-INF
|
|
|
|
|
runuser -u tomcat -g tomcat -- xsltproc --output %{tomcatappdir}/sample/META-INF/context.xml %{confdir}/allowLinking.xslt %{tomcatappdir}/examples/META-INF/context.xml
|
2024-01-16 08:40:50 +00:00
|
|
|
if [ ! -e %{_datadir}/%{name}/webapps/sample ]; then
|
|
|
|
|
ln -sf %{tomcatappdir}/sample %{_datadir}/%{name}/webapps/sample
|
|
|
|
|
fi
|
2019-02-05 18:26:47 +00:00
|
|
|
|
|
|
|
|
%postun webapps
|
|
|
|
|
if [ $1 -eq 0 ]; then # uninstall only
|
2024-01-16 08:40:50 +00:00
|
|
|
rm %{tomcatappdir}/ROOT/META-INF/context.xml
|
|
|
|
|
rm %{tomcatappdir}/sample/META-INF/context.xml
|
2019-02-05 18:26:47 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%post admin-webapps
|
2024-02-15 08:20:13 +00:00
|
|
|
chown -R tomcat:tomcat %{tomcatappdir}/manager/META-INF
|
|
|
|
|
runuser -u tomcat -g tomcat -- xsltproc --output %{tomcatappdir}/manager/META-INF/context.xml %{confdir}/allowLinking.xslt %{tomcatappdir}/manager/META-INF/context.xml
|
2024-01-16 08:40:50 +00:00
|
|
|
if [ ! -e %{_datadir}/%{name}/webapps/manager ]; then
|
|
|
|
|
ln -sf %{tomcatappdir}/manager %{_datadir}/%{name}/webapps/manager
|
|
|
|
|
fi
|
2023-01-17 12:37:11 +00:00
|
|
|
|
2024-02-15 08:20:13 +00:00
|
|
|
chown -R tomcat:tomcat %{tomcatappdir}/host-manager/META-INF
|
|
|
|
|
runuser -u tomcat -g tomcat -- xsltproc --output %{tomcatappdir}/host-manager/META-INF/context.xml %{confdir}/allowLinking.xslt %{tomcatappdir}/host-manager/META-INF/context.xml
|
2024-01-16 08:40:50 +00:00
|
|
|
if [ ! -e %{_datadir}/%{name}/webapps/host-manager ]; then
|
|
|
|
|
ln -sf %{tomcatappdir}/host-manager %{_datadir}/%{name}/webapps/host-manager
|
2019-02-05 18:26:47 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%post docs-webapp
|
2024-02-15 08:20:13 +00:00
|
|
|
chown -R tomcat:tomcat %{tomcatappdir}/docs/META-INF
|
|
|
|
|
runuser -u tomcat -g tomcat -- xsltproc --output %{tomcatappdir}/docs/META-INF/context.xml %{confdir}/allowLinking.xslt %{tomcatappdir}/docs/META-INF/context.xml
|
2024-01-16 08:40:50 +00:00
|
|
|
if [ ! -e %{_datadir}/%{name}/webapps/docs ]; then
|
|
|
|
|
ln -sf %{tomcatappdir}/docs %{_datadir}/%{name}/webapps/docs
|
2019-02-05 18:26:47 +00:00
|
|
|
fi
|
|
|
|
|
|
2012-06-16 05:18:01 +00:00
|
|
|
%files
|
|
|
|
|
%doc {LICENSE,NOTICE,RELEASE*}
|
|
|
|
|
%attr(0755,root,root) %{_bindir}/%{name}-digest
|
|
|
|
|
%attr(0755,root,root) %{_bindir}/%{name}-tool-wrapper
|
2016-04-07 12:59:42 +00:00
|
|
|
%attr(0755,root,root) %{_sbindir}/%{name}
|
2012-06-16 05:18:01 +00:00
|
|
|
%attr(0644,root,root) %{_unitdir}/%{name}.service
|
2016-04-07 12:59:42 +00:00
|
|
|
%{_sbindir}/rc%{name}
|
|
|
|
|
%attr(0644,root,root) %{_unitdir}/%{name}@.service
|
|
|
|
|
%attr(0755,root,root) %dir %{_libexecdir}/%{name}
|
|
|
|
|
%attr(0755,root,root) %dir %{_localstatedir}/lib/tomcats
|
|
|
|
|
%attr(0755,root,root) %{_libexecdir}/%{name}/functions
|
|
|
|
|
%attr(0755,root,root) %{_libexecdir}/%{name}/preamble
|
|
|
|
|
%attr(0755,root,root) %{_libexecdir}/%{name}/server
|
2012-06-16 05:18:01 +00:00
|
|
|
#bnc#565901
|
2013-07-23 14:35:12 +00:00
|
|
|
%{bindir}/catalina.sh
|
2012-06-16 05:18:01 +00:00
|
|
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
2016-04-07 12:59:42 +00:00
|
|
|
%attr(0755,root,tomcat) %dir %{basedir}
|
|
|
|
|
%attr(0755,root,tomcat) %dir %{confdir}
|
|
|
|
|
%attr(0775,root,tomcat) %dir %{appdir}
|
2023-01-17 12:37:11 +00:00
|
|
|
%attr(0770,tomcat,tomcat) %dir %{logdir}
|
2016-04-07 12:59:42 +00:00
|
|
|
%attr(0660,tomcat,tomcat) %{logdir}/catalina.out
|
2020-07-30 21:16:33 +00:00
|
|
|
%attr(0770,root,tomcat) %dir %{cachedir}
|
|
|
|
|
%attr(0775,root,tomcat) %dir %{cachedir}/Catalina
|
|
|
|
|
|
|
|
|
|
# tomcat group writtable dirs - bnc#625415
|
2016-04-07 12:59:42 +00:00
|
|
|
%attr(0770,root,tomcat) %dir %{tempdir}
|
|
|
|
|
%attr(0770,root,tomcat) %dir %{workdir}
|
2019-02-05 18:26:47 +00:00
|
|
|
%attr(0775,root,tomcat) %dir %{tomcatappdir}
|
2020-07-30 21:16:33 +00:00
|
|
|
|
2013-07-23 14:35:12 +00:00
|
|
|
%{confdir}/Catalina
|
2020-07-30 21:16:33 +00:00
|
|
|
%attr(0755,root,tomcat) %dir %{confdir}/conf.d
|
|
|
|
|
%attr(0644,root,tomcat) %{confdir}/conf.d/README
|
|
|
|
|
%attr(0644,root,tomcat) %config(noreplace) %{confdir}/%{name}.conf
|
|
|
|
|
%attr(0644,root,tomcat) %config(noreplace) %{confdir}/*.policy
|
|
|
|
|
%attr(0644,root,tomcat) %config(noreplace) %{confdir}/*.properties
|
|
|
|
|
%attr(0644,root,tomcat) %config(noreplace) %{confdir}/context.xml
|
|
|
|
|
%attr(0644,root,tomcat) %config(noreplace) %{confdir}/server.xml
|
|
|
|
|
# keep tomcat-users.xml readable only by root and tomcat group
|
|
|
|
|
%attr(0640,root,tomcat) %config(noreplace) %{confdir}/tomcat-users.xml
|
|
|
|
|
%attr(0644,root,tomcat) %config(noreplace) %{confdir}/web.xml
|
|
|
|
|
%attr(0644,root,tomcat) %config(noreplace) %{confdir}/jaspic-providers.xml
|
|
|
|
|
%attr(0755,root,tomcat) %dir %{homedir}
|
|
|
|
|
%attr(0644,root,tomcat) %{bindir}/bootstrap.jar
|
|
|
|
|
%attr(0644,root,tomcat) %{bindir}/catalina-tasks.xml
|
2012-06-16 05:18:01 +00:00
|
|
|
%{homedir}/lib
|
|
|
|
|
%{homedir}/temp
|
|
|
|
|
%{homedir}/work
|
2024-01-16 08:40:50 +00:00
|
|
|
%{homedir}/webapps
|
2012-06-16 05:18:01 +00:00
|
|
|
%{homedir}/logs
|
|
|
|
|
%{homedir}/conf
|
2020-07-30 21:16:33 +00:00
|
|
|
%attr(0644,root,tomcat) %{_fillupdir}/sysconfig.%{name}
|
2024-01-16 08:40:50 +00:00
|
|
|
%attr(0644,root,tomcat) %{confdir}/allowLinking.xslt
|
|
|
|
|
%attr(0644,root,tomcat) %{confdir}/valve.xslt
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
%files admin-webapps
|
2020-07-30 21:16:33 +00:00
|
|
|
%defattr(0644,root,tomcat,0755)
|
2019-02-05 18:26:47 +00:00
|
|
|
%{tomcatappdir}/host-manager
|
|
|
|
|
%config(noreplace) %{tomcatappdir}/host-manager/META-INF/context.xml
|
|
|
|
|
%{tomcatappdir}/manager
|
|
|
|
|
%config(noreplace) %{tomcatappdir}/manager/META-INF/context.xml
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
%files docs-webapp
|
2019-02-05 18:26:47 +00:00
|
|
|
%{tomcatappdir}/docs
|
2012-06-16 05:18:01 +00:00
|
|
|
|
2019-01-26 08:09:06 +00:00
|
|
|
%files el-3_0-api -f output/dist/src/res/maven/.mfiles-el-api
|
2012-06-16 05:18:01 +00:00
|
|
|
%{_javadir}/%{name}-el-%{elspec}-api.jar
|
|
|
|
|
%{_javadir}/%{name}-el-api.jar
|
|
|
|
|
%{libdir}/%{name}-el-%{elspec}-api.jar
|
Accepting request 548119 from home:mateialbu:branches:Java:packages
- Update to Tomcat 9.0.2:
* Major update for tomcat8 from tomcat9
* For full changelog please read upstream changes at:
+ http://tomcat.apache.org/tomcat-9.0-doc/changelog.html
* Rename all tomcat-8.0-* files to tomcat-9.0-*
- Changed patches:
* Deleted: tomcat-8.0-bootstrap-MANIFEST.MF.patch
* Deleted: tomcat-8.0-sle.catalina.policy.patch
* Deleted: tomcat-8.0-tomcat-users-webapp.patch
* Deleted: tomcat-8.0.33-JDTCompiler-java.patch
* Deleted: tomcat-8.0.44-javadoc.patch
* Deleted: tomcat-8.0.9-property-build.windows.patch
* Added: tomcat-9.0-JDTCompiler-java.patch
* Added: tomcat-9.0-bootstrap-MANIFEST.MF.patch
* Added: tomcat-9.0-javadoc.patch
* Added: tomcat-9.0-sle.catalina.policy.patch
* Added: tomcat-9.0-tomcat-users-webapp.patch
- Renamed subpackage tomcat-3_1-api to tomcat-4_0-api
to reflect the new Servlet API version.
- Commented out JAVA_HOME in /etc/tomcat/tomcat.conf
- Added "tomcat-" prefix to lib symlinks under
/usr/share/java to avoid file conflicts with servletapi5
and geronimo-specs
- Fixed wrong %ghost file paths for alternatives symlinks
- Replace references to /var/adm/fillup-templates with new
%_fillupdir macro (boo#1069468)
- Build with JDK 8 to fix runtime errors when running with JDK 7
and 8
- Fix tomcat-digest classpath error (bsc#977410)
- Fix packaged /etc/alternatives symlinks for api libs that caused
rpm -V to report link mismatch (bsc#1019016)
- update to 8.0.47
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Fixed CVE:
- CVE-2017-12617
- rebase tomcat-8.0-sle.catalina.policy.patch
- Added patch:
* tomcat-8.0.44-javadoc.patch
- generate documentation with the same source level as class
files
- fixes build with jdk9
- Version update to 8.0.44:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Fixed CVE:
- CVE-2017-5664 (bsc#1042910)
- New build dependency: javapackages-local
- Version update to 8.0.43: * Another bugfix release, for full details see:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Fixed CVEs:
- CVE-2017-5647 (bnc#1033448)
- CVE-2017-5648 (bnc#1033447)
- CVE-2016-8745
- Renamed and rebased patches:
* tomcat-7.0-sle.catalina.policy.patch -> tomcat-8.0-sle.catalina.policy.patch
- Enable optional setenv.sh script. See section
"(3.4) Using the "setenv" script (optional, recommended)" in
http://tomcat.apache.org/tomcat-8.0-doc/RUNNING.txt
(bnc#1002662)
- Fix file conflicts when upgrading from SLES 12 to SLES 12 SP1 (bnc#1023412).
Added explicit obsoletes for tomcat-el-2_2-api, tomcat-jsp-2_2-api,
tomcat-servlet-3_0-api
- update to 8.0.39: (boo#1003911)
* Improve handling of I/O errors with async processing
* Fail earlier on invalid HTTP request
- includes changes from 8.0.38:
* Refactoring the non-container thread Async complete()/dispatch()
handling to remove the possibility of deadlock
* Improved UTF-8 handling for the RewriteValve
- includes changes from 8.0.37:
* Treat paths used to obtain a request dispatcher as encoded
(configurable)
* Various jdbc-pool fixes
- drop tomcat-8.0.36-jar-scanner-loop.patch, upstream
- Switch to commons-dbcp2 fate#321029
- Backport fix for inifinite loop in the jar scanner for 8.0.36. (bnc#993862)
Added: tomcat-8.0.36-jar-scanner-loop.patch
- Version update to 8.0.36:
* Another bugfix release for the 8.0 series. Full details:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.36_(markt)
- CVE fixed by the version update:
- CVE-2016-3092 (bnc#986359)
- Fixed a deployment error in the examples webapp by changing the context.xml format to the new one
introduced by Tomcat 8. See http://tomcat.apache.org/migration-8.html#Web_application_resources
- fix maven fragments paths to build in multiple distribution
versions
- Version update to 8.0.33:
* Another bugfix release for 8.0 series, full details:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.33_(markt)
- Rebase tomcat-8.0-tomcat-users-webapp.patch
- Rebase tomcat-7.0.53-JDTCompiler-java.patch
to tomcat-8.0.33-JDTCompiler-java.patch
- Fix fixme for the prereq preamble value
- It seems systemd prints error on adding the @ services to macros
so do not do that
- package was partly merged with the scripts used in the
Fedora distribution
- support running multiple tomcat instances on the same server
(fate#317783)
- add catalina-jmx-remote.jar (fate#318403)
- remove sysvinit support: systemd is required
- update changes file for CVE information
- Fixed CVEs:
- CVE-2015-5346 (bnc#967814) in 8.0.32
- CVE-2015-5351 (bnc#967812) in 8.0.32
- CVE-2016-0706 (bnc#967815) in 8.0.32
- CVE-2016-0714 (bnc#967964) in 8.0.32
- CVE-2016-0763 (bnc#967966) in 8.0.32
- CVE-2015-5345 (bnc#967965) in 8.0.30
- CVE-2015-5174 (bnc#967967) in 8.0.27
- Version update to 8.0.32:
* Another bugfix release for 8.0 series, full details:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.32_(markt)
- Rebase patch:
* tomcat-8.0.9-property-build.windows.patch
- update to Tomcat 8.0.28
* Multiple fixes, read upstream changelog at:
https://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.28_(markt)
- Some whitespace cleanups
- Remove pointless conflicts on provide/obsolete symbols
- Version bump to 8.0.23 fate#318913:
* Multiple testfixes all around, read upstream changelog at:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.23_(markt)
- Fix previous commit. Fix one rpmlint warning
- Drop gpg verification from spec, it is done by obs
- Fix build with new jpackage-tools
- update to Tomcat 8.0.18:
* Major update for tomcat8 from tomcat7
* For full changelog please read upstream changes at:
+ http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Rename all tomcat-7.0-* files to tomcat-8.0-*
* Update keyring file
- Update windows patch to apply again:
* Deleted: tomcat-7.0.52-property-build.windows.patch
* Added: tomcat-8.0.9-property-build.windows.patch
* Added:tomcat-8.0-tomcat-users-webapp.patch
* Deleted: tomcat-7.0-tomcat-users-webapp.patch
* Added: tomcat-8.0-bootstrap-MANIFEST.MF.patch
* Deleted: tomcat-7.0-bootstrap-MANIFEST.MF.patch
- Version 1.1.30 or higher is required for APR listener (bnc#914725)
- SLE12 has different path for the "rm" command than older versions.
To avoid possible clashes, the entire coreutils must be provided.
(bnc#894292)
- Fixed Security Manager policies, which makes unable properly
run webapps by default. (bnc#891264)
Added: tomcat-7.0-sle.catalina.policy.patch
- Missing security manager policy file prevents Tomcat to start
with systemd. (bnc#890995)
- Tomcat 7.0.55 requires ecj 4.4.0
- include the tomcat websocket implementation (tomcat7-websocket)
- Update to 7.0.55
* Update to the Eclipse JDT Compiler 4.4
* Better error handling when the error occurs after the response
has been committed
* Various improvements to the Mapper including fixing some
concurrency bugs
* See http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- build tomcat-embed as a subpackage
- Drop two unused defines
- touch the alternatives files to avoid build errors
in older versions
- Do not define default defattr as it is pointless.
- One file here was not supposed to be ghost.
- Fix once more the alternatives.
- Add path to rm command.
- Silence loads of warnings by rpmlintrc
- Cleanup with spec-cleaner and format few things a bit.
- Remove few deps not really needed for sle11.
- Drop unused files obs.bl and local.lb
- Drop unused collections-tomcat-build.xml
- Version bump to 7.0.54:
* bugfix update
* See http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- Update to 7.0.53
* bugfix release
* Update the Eclipse JDT compiler to enable full Java 8 support in JSPs.
* See http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- Patch for Bug 56373
* See https://issues.apache.org/bugzilla/show_bug.cgi?id=56373
* tomcat-7.0.53-JDTCompiler-java.patch
- Rename tomcat-7.0.2-property-build.windows.patch to
tomcat-7.0.52-property-build.windows.patch
- remove saxon build requirement for sles
- disable bytecode check for sles
- remove unknown option from fillup_only macro
- wrap systemd %pre[un]/%post[un] in conditional
- specify required ant version
- Update to 7.0.52
* bugfix release
* Fix CVE-2014-0050, a DoS vulnerability related to multi-part processing
- Update to 7.0.50
* bugfix release
- Add missing commons-pool-tomcat5 symlink (bnc#847505c#13)
- Update to 7.0.47
* bugfix release
* backport of JSR-356 Java WebSocket 1.0
* package tomcat now requires java7 at lease
- Updated tomcat.keyring to reflect the fact new release is signed by
Violeta Georgieva / D63011C7
see http://osdir.com/ml/dev-tomcat.apache.org/2013-10/msg00849.html
- Add tomcat-dbcp.jar (bnc#847505) back into tomcat lib dir
- Install tomcat-coyote.jar as well
- Remove pointless scriplets
- Move from jpackage-utils to javapackage-tools
- drop a dependency on unecessary -tomcat5 packages
- use commons-dbcp.jar for build
- add missing commons-pool.jar to libdir
- add _constraints to not schedule build on some build machines
workaround for bnc#832762
- Add missing 'su root tomcat' line to logrotate. See also
https://bugzilla.redhat.com/show_bug.cgi?id=790334
- call chown --no-dereference in init script
(bnc#822177#c7/prevents CVE-2013-1976)
- update to 7.0.42 (bugfix release)
see http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- fix file list to be compatible for new rpm
- update to 7.0.39 (bugfix release)
- install only systemd unit files on openSUSE 12.1+
* and call proper code when init script still exists
- add a proper scripplets for -jsvc subpackage
- don't use catalina.out, systemd redirects stderr/stdout to syslog
- don't use and recommends logrotate
- package /etc/ant.d properly, mark only catalina-ant as a config file
- Fix tomcat init scripts generating malformed classpath
(http://youtrack.jetbrains.com/issue/JT-18545)
bnc#804992
- update to 7.0.35 (bugfix release)
require ecj >= 4.2.1, like upstream do
- make gpg-offline work distros after 12.2
- Ensure tomcat stdout/stderr output ends up in catalina.out
- Recommend libtcnative-1-0 >= 1.1.24
- /etc/init.d/tomcate init script fixes:
* Include /usr/bin and /usr/sbin in the PATH
* Fix logic for cleaning the work directories
* Fix typo (log_success_msg lsb function name)
* Fix typo (reload message)
- Require log4j
- Require gpg-offline on 12.2+
- Verify GPG signature.
- update to 7.0.33 (bugfix release)
- update to 7.0.30 (bugfix release)
* SSI and CGI disabled by default
- fix bnc#779538: change the working dir to $CATALINA_BASE
- document the CATALINA_BASE and CATALINA_HOME in tomcat.conf better
- fix rpmlintrc file
- fix bnc#771802 - systemd support is broken
* change type froking to simple as it does not make a sense run java in a
background to emulate that
* remove the need of nested wrappers, so /usr/sbin/tomcat-sysd now relies on
systemd features like User/EnvironmentFile
* workaround the 143 exit code in Stop phase - return 0 in this case
* merge the jsvc into tomcat-sysd code, the -jsvc-sysd is a symlink
* properly use jsvc with pid file to start and stop
- update to 7.0.26 (bugfix release)
- rename package to tomcat in order to emphasise a fact, there is only one
major release of tomcat maintained in distribution
- add manifest files and systemd support (thanks Fedora)
- create tomcat-jsvc package
- update to 7.0.26 (bugfix release)
- fix bnc#747771 - don't use /var/lock/subsys
sync tomcat7 init with tomcat6
- update to 7.0.25 (bugfix release)
- update to 7.0.22 (bugfix release)
- wrote changes and prepare for inclusion to openSUSE distribution
- fix bnc#726307
/etc/tomcat7 is writtable for tomcat group
- update to version 7.0.21
- update to version 7.0.16 (bugfix update)
- add rpmlintrc, digest, init and wrapper scripts and config file
- build require geronimo apis and wsdl4j
- disable webservices in javadoc target
- initial packaging of tomcat7 7.0.6
OBS-URL: https://build.opensuse.org/request/show/548119
OBS-URL: https://build.opensuse.org/package/show/Java:packages/tomcat?expand=0&rev=117
2017-12-04 15:08:14 +00:00
|
|
|
%{_javadir}/%{name}-el_1_0_api.jar
|
|
|
|
|
%{_javadir}/%{name}-el_api.jar
|
2017-12-04 10:14:09 +00:00
|
|
|
%ghost %{_sysconfdir}/alternatives/el_1_0_api
|
|
|
|
|
%ghost %{_sysconfdir}/alternatives/el_api
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
|
%doc %{_javadocdir}/%{name}
|
|
|
|
|
|
2019-01-26 08:09:06 +00:00
|
|
|
%files jsp-2_3-api -f output/dist/src/res/maven/.mfiles-jsp-api
|
2012-06-16 05:18:01 +00:00
|
|
|
%{_javadir}/%{name}-jsp-%{jspspec}-api.jar
|
|
|
|
|
%{_javadir}/%{name}-jsp-api.jar
|
Accepting request 548119 from home:mateialbu:branches:Java:packages
- Update to Tomcat 9.0.2:
* Major update for tomcat8 from tomcat9
* For full changelog please read upstream changes at:
+ http://tomcat.apache.org/tomcat-9.0-doc/changelog.html
* Rename all tomcat-8.0-* files to tomcat-9.0-*
- Changed patches:
* Deleted: tomcat-8.0-bootstrap-MANIFEST.MF.patch
* Deleted: tomcat-8.0-sle.catalina.policy.patch
* Deleted: tomcat-8.0-tomcat-users-webapp.patch
* Deleted: tomcat-8.0.33-JDTCompiler-java.patch
* Deleted: tomcat-8.0.44-javadoc.patch
* Deleted: tomcat-8.0.9-property-build.windows.patch
* Added: tomcat-9.0-JDTCompiler-java.patch
* Added: tomcat-9.0-bootstrap-MANIFEST.MF.patch
* Added: tomcat-9.0-javadoc.patch
* Added: tomcat-9.0-sle.catalina.policy.patch
* Added: tomcat-9.0-tomcat-users-webapp.patch
- Renamed subpackage tomcat-3_1-api to tomcat-4_0-api
to reflect the new Servlet API version.
- Commented out JAVA_HOME in /etc/tomcat/tomcat.conf
- Added "tomcat-" prefix to lib symlinks under
/usr/share/java to avoid file conflicts with servletapi5
and geronimo-specs
- Fixed wrong %ghost file paths for alternatives symlinks
- Replace references to /var/adm/fillup-templates with new
%_fillupdir macro (boo#1069468)
- Build with JDK 8 to fix runtime errors when running with JDK 7
and 8
- Fix tomcat-digest classpath error (bsc#977410)
- Fix packaged /etc/alternatives symlinks for api libs that caused
rpm -V to report link mismatch (bsc#1019016)
- update to 8.0.47
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Fixed CVE:
- CVE-2017-12617
- rebase tomcat-8.0-sle.catalina.policy.patch
- Added patch:
* tomcat-8.0.44-javadoc.patch
- generate documentation with the same source level as class
files
- fixes build with jdk9
- Version update to 8.0.44:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Fixed CVE:
- CVE-2017-5664 (bsc#1042910)
- New build dependency: javapackages-local
- Version update to 8.0.43: * Another bugfix release, for full details see:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Fixed CVEs:
- CVE-2017-5647 (bnc#1033448)
- CVE-2017-5648 (bnc#1033447)
- CVE-2016-8745
- Renamed and rebased patches:
* tomcat-7.0-sle.catalina.policy.patch -> tomcat-8.0-sle.catalina.policy.patch
- Enable optional setenv.sh script. See section
"(3.4) Using the "setenv" script (optional, recommended)" in
http://tomcat.apache.org/tomcat-8.0-doc/RUNNING.txt
(bnc#1002662)
- Fix file conflicts when upgrading from SLES 12 to SLES 12 SP1 (bnc#1023412).
Added explicit obsoletes for tomcat-el-2_2-api, tomcat-jsp-2_2-api,
tomcat-servlet-3_0-api
- update to 8.0.39: (boo#1003911)
* Improve handling of I/O errors with async processing
* Fail earlier on invalid HTTP request
- includes changes from 8.0.38:
* Refactoring the non-container thread Async complete()/dispatch()
handling to remove the possibility of deadlock
* Improved UTF-8 handling for the RewriteValve
- includes changes from 8.0.37:
* Treat paths used to obtain a request dispatcher as encoded
(configurable)
* Various jdbc-pool fixes
- drop tomcat-8.0.36-jar-scanner-loop.patch, upstream
- Switch to commons-dbcp2 fate#321029
- Backport fix for inifinite loop in the jar scanner for 8.0.36. (bnc#993862)
Added: tomcat-8.0.36-jar-scanner-loop.patch
- Version update to 8.0.36:
* Another bugfix release for the 8.0 series. Full details:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.36_(markt)
- CVE fixed by the version update:
- CVE-2016-3092 (bnc#986359)
- Fixed a deployment error in the examples webapp by changing the context.xml format to the new one
introduced by Tomcat 8. See http://tomcat.apache.org/migration-8.html#Web_application_resources
- fix maven fragments paths to build in multiple distribution
versions
- Version update to 8.0.33:
* Another bugfix release for 8.0 series, full details:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.33_(markt)
- Rebase tomcat-8.0-tomcat-users-webapp.patch
- Rebase tomcat-7.0.53-JDTCompiler-java.patch
to tomcat-8.0.33-JDTCompiler-java.patch
- Fix fixme for the prereq preamble value
- It seems systemd prints error on adding the @ services to macros
so do not do that
- package was partly merged with the scripts used in the
Fedora distribution
- support running multiple tomcat instances on the same server
(fate#317783)
- add catalina-jmx-remote.jar (fate#318403)
- remove sysvinit support: systemd is required
- update changes file for CVE information
- Fixed CVEs:
- CVE-2015-5346 (bnc#967814) in 8.0.32
- CVE-2015-5351 (bnc#967812) in 8.0.32
- CVE-2016-0706 (bnc#967815) in 8.0.32
- CVE-2016-0714 (bnc#967964) in 8.0.32
- CVE-2016-0763 (bnc#967966) in 8.0.32
- CVE-2015-5345 (bnc#967965) in 8.0.30
- CVE-2015-5174 (bnc#967967) in 8.0.27
- Version update to 8.0.32:
* Another bugfix release for 8.0 series, full details:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.32_(markt)
- Rebase patch:
* tomcat-8.0.9-property-build.windows.patch
- update to Tomcat 8.0.28
* Multiple fixes, read upstream changelog at:
https://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.28_(markt)
- Some whitespace cleanups
- Remove pointless conflicts on provide/obsolete symbols
- Version bump to 8.0.23 fate#318913:
* Multiple testfixes all around, read upstream changelog at:
http://tomcat.apache.org/tomcat-8.0-doc/changelog.html#Tomcat_8.0.23_(markt)
- Fix previous commit. Fix one rpmlint warning
- Drop gpg verification from spec, it is done by obs
- Fix build with new jpackage-tools
- update to Tomcat 8.0.18:
* Major update for tomcat8 from tomcat7
* For full changelog please read upstream changes at:
+ http://tomcat.apache.org/tomcat-8.0-doc/changelog.html
* Rename all tomcat-7.0-* files to tomcat-8.0-*
* Update keyring file
- Update windows patch to apply again:
* Deleted: tomcat-7.0.52-property-build.windows.patch
* Added: tomcat-8.0.9-property-build.windows.patch
* Added:tomcat-8.0-tomcat-users-webapp.patch
* Deleted: tomcat-7.0-tomcat-users-webapp.patch
* Added: tomcat-8.0-bootstrap-MANIFEST.MF.patch
* Deleted: tomcat-7.0-bootstrap-MANIFEST.MF.patch
- Version 1.1.30 or higher is required for APR listener (bnc#914725)
- SLE12 has different path for the "rm" command than older versions.
To avoid possible clashes, the entire coreutils must be provided.
(bnc#894292)
- Fixed Security Manager policies, which makes unable properly
run webapps by default. (bnc#891264)
Added: tomcat-7.0-sle.catalina.policy.patch
- Missing security manager policy file prevents Tomcat to start
with systemd. (bnc#890995)
- Tomcat 7.0.55 requires ecj 4.4.0
- include the tomcat websocket implementation (tomcat7-websocket)
- Update to 7.0.55
* Update to the Eclipse JDT Compiler 4.4
* Better error handling when the error occurs after the response
has been committed
* Various improvements to the Mapper including fixing some
concurrency bugs
* See http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- build tomcat-embed as a subpackage
- Drop two unused defines
- touch the alternatives files to avoid build errors
in older versions
- Do not define default defattr as it is pointless.
- One file here was not supposed to be ghost.
- Fix once more the alternatives.
- Add path to rm command.
- Silence loads of warnings by rpmlintrc
- Cleanup with spec-cleaner and format few things a bit.
- Remove few deps not really needed for sle11.
- Drop unused files obs.bl and local.lb
- Drop unused collections-tomcat-build.xml
- Version bump to 7.0.54:
* bugfix update
* See http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- Update to 7.0.53
* bugfix release
* Update the Eclipse JDT compiler to enable full Java 8 support in JSPs.
* See http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- Patch for Bug 56373
* See https://issues.apache.org/bugzilla/show_bug.cgi?id=56373
* tomcat-7.0.53-JDTCompiler-java.patch
- Rename tomcat-7.0.2-property-build.windows.patch to
tomcat-7.0.52-property-build.windows.patch
- remove saxon build requirement for sles
- disable bytecode check for sles
- remove unknown option from fillup_only macro
- wrap systemd %pre[un]/%post[un] in conditional
- specify required ant version
- Update to 7.0.52
* bugfix release
* Fix CVE-2014-0050, a DoS vulnerability related to multi-part processing
- Update to 7.0.50
* bugfix release
- Add missing commons-pool-tomcat5 symlink (bnc#847505c#13)
- Update to 7.0.47
* bugfix release
* backport of JSR-356 Java WebSocket 1.0
* package tomcat now requires java7 at lease
- Updated tomcat.keyring to reflect the fact new release is signed by
Violeta Georgieva / D63011C7
see http://osdir.com/ml/dev-tomcat.apache.org/2013-10/msg00849.html
- Add tomcat-dbcp.jar (bnc#847505) back into tomcat lib dir
- Install tomcat-coyote.jar as well
- Remove pointless scriplets
- Move from jpackage-utils to javapackage-tools
- drop a dependency on unecessary -tomcat5 packages
- use commons-dbcp.jar for build
- add missing commons-pool.jar to libdir
- add _constraints to not schedule build on some build machines
workaround for bnc#832762
- Add missing 'su root tomcat' line to logrotate. See also
https://bugzilla.redhat.com/show_bug.cgi?id=790334
- call chown --no-dereference in init script
(bnc#822177#c7/prevents CVE-2013-1976)
- update to 7.0.42 (bugfix release)
see http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
- fix file list to be compatible for new rpm
- update to 7.0.39 (bugfix release)
- install only systemd unit files on openSUSE 12.1+
* and call proper code when init script still exists
- add a proper scripplets for -jsvc subpackage
- don't use catalina.out, systemd redirects stderr/stdout to syslog
- don't use and recommends logrotate
- package /etc/ant.d properly, mark only catalina-ant as a config file
- Fix tomcat init scripts generating malformed classpath
(http://youtrack.jetbrains.com/issue/JT-18545)
bnc#804992
- update to 7.0.35 (bugfix release)
require ecj >= 4.2.1, like upstream do
- make gpg-offline work distros after 12.2
- Ensure tomcat stdout/stderr output ends up in catalina.out
- Recommend libtcnative-1-0 >= 1.1.24
- /etc/init.d/tomcate init script fixes:
* Include /usr/bin and /usr/sbin in the PATH
* Fix logic for cleaning the work directories
* Fix typo (log_success_msg lsb function name)
* Fix typo (reload message)
- Require log4j
- Require gpg-offline on 12.2+
- Verify GPG signature.
- update to 7.0.33 (bugfix release)
- update to 7.0.30 (bugfix release)
* SSI and CGI disabled by default
- fix bnc#779538: change the working dir to $CATALINA_BASE
- document the CATALINA_BASE and CATALINA_HOME in tomcat.conf better
- fix rpmlintrc file
- fix bnc#771802 - systemd support is broken
* change type froking to simple as it does not make a sense run java in a
background to emulate that
* remove the need of nested wrappers, so /usr/sbin/tomcat-sysd now relies on
systemd features like User/EnvironmentFile
* workaround the 143 exit code in Stop phase - return 0 in this case
* merge the jsvc into tomcat-sysd code, the -jsvc-sysd is a symlink
* properly use jsvc with pid file to start and stop
- update to 7.0.26 (bugfix release)
- rename package to tomcat in order to emphasise a fact, there is only one
major release of tomcat maintained in distribution
- add manifest files and systemd support (thanks Fedora)
- create tomcat-jsvc package
- update to 7.0.26 (bugfix release)
- fix bnc#747771 - don't use /var/lock/subsys
sync tomcat7 init with tomcat6
- update to 7.0.25 (bugfix release)
- update to 7.0.22 (bugfix release)
- wrote changes and prepare for inclusion to openSUSE distribution
- fix bnc#726307
/etc/tomcat7 is writtable for tomcat group
- update to version 7.0.21
- update to version 7.0.16 (bugfix update)
- add rpmlintrc, digest, init and wrapper scripts and config file
- build require geronimo apis and wsdl4j
- disable webservices in javadoc target
- initial packaging of tomcat7 7.0.6
OBS-URL: https://build.opensuse.org/request/show/548119
OBS-URL: https://build.opensuse.org/package/show/Java:packages/tomcat?expand=0&rev=117
2017-12-04 15:08:14 +00:00
|
|
|
%{_javadir}/%{name}-jsp.jar
|
2017-12-04 10:14:09 +00:00
|
|
|
%ghost %{_sysconfdir}/alternatives/jsp
|
2017-09-19 09:08:57 +00:00
|
|
|
|
2019-01-26 08:09:06 +00:00
|
|
|
%files lib -f output/dist/src/res/maven/.mfiles
|
2012-06-16 05:18:01 +00:00
|
|
|
%{libdir}
|
|
|
|
|
%dir %{bindir}
|
|
|
|
|
%{bindir}/tomcat-juli.jar
|
|
|
|
|
%exclude %{libdir}/%{name}-el-%{elspec}-api.jar
|
2014-09-08 12:23:03 +00:00
|
|
|
%exclude %{libdir}/%{name}*-embed-*.jar
|
2012-06-16 05:18:01 +00:00
|
|
|
# bnc#418664
|
2013-04-19 13:06:53 +00:00
|
|
|
%dir %{_sysconfdir}/ant.d
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/catalina-ant
|
2012-06-16 05:18:01 +00:00
|
|
|
|
2019-01-26 08:09:06 +00:00
|
|
|
%files embed -f output/dist/src/res/maven/.mfiles-embed
|
2014-09-08 12:23:03 +00:00
|
|
|
%dir %{libdir}
|
|
|
|
|
|
2019-01-26 08:09:06 +00:00
|
|
|
%files servlet-4_0-api -f output/dist/src/res/maven/.mfiles-servlet-api
|
2018-12-05 08:10:56 +00:00
|
|
|
%license LICENSE
|
2012-06-16 05:18:01 +00:00
|
|
|
%{_javadir}/%{name}-servlet-%{servletspec}-api.jar
|
|
|
|
|
%{_javadir}/%{name}-servlet-api.jar
|
2017-12-04 10:14:09 +00:00
|
|
|
%{_javadir}/%{name}-servlet.jar
|
2020-11-02 16:37:37 +00:00
|
|
|
%{_javadir}/servlet.jar
|
2017-12-04 10:14:09 +00:00
|
|
|
%ghost %{_sysconfdir}/alternatives/servlet
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
%files webapps
|
2020-11-02 16:37:37 +00:00
|
|
|
%defattr(0644,root,tomcat,0755)
|
2012-06-16 05:18:01 +00:00
|
|
|
#bnc#520532
|
2019-02-05 18:26:47 +00:00
|
|
|
%config(noreplace) %{tomcatappdir}/ROOT
|
|
|
|
|
%{tomcatappdir}/examples
|
2024-01-16 08:40:50 +00:00
|
|
|
%config(noreplace) %{tomcatappdir}/examples/META-INF/context.xml
|
2019-02-05 18:26:47 +00:00
|
|
|
%{tomcatappdir}/sample
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
%files jsvc
|
|
|
|
|
%defattr(755,root,root,0755)
|
|
|
|
|
%attr(0644,root,root) %{_unitdir}/%{name}-jsvc.service
|
2016-04-07 12:59:42 +00:00
|
|
|
%{_sbindir}/rc%{name}-jsvc
|
2012-06-16 05:18:01 +00:00
|
|
|
|
|
|
|
|
%changelog
|