Blame SPECS/tomcat.spec

1a47f7
# Copyright (c) 2000-2008, JPackage Project
1a47f7
# All rights reserved.
1a47f7
#
1a47f7
# Redistribution and use in source and binary forms, with or without
1a47f7
# modification, are permitted provided that the following conditions
1a47f7
# are met:
1a47f7
#
1a47f7
# 1. Redistributions of source code must retain the above copyright
1a47f7
#    notice, this list of conditions and the following disclaimer.
1a47f7
# 2. Redistributions in binary form must reproduce the above copyright
1a47f7
#    notice, this list of conditions and the following disclaimer in the
1a47f7
#    documentation and/or other materials provided with the
1a47f7
#    distribution.
1a47f7
# 3. Neither the name of the JPackage Project nor the names of its
1a47f7
#    contributors may be used to endorse or promote products derived
1a47f7
#    from this software without specific prior written permission.
1a47f7
#
1a47f7
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1a47f7
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1a47f7
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1a47f7
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1a47f7
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1a47f7
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1a47f7
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1a47f7
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1a47f7
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1a47f7
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1a47f7
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1a47f7
#
1a47f7
1a47f7
%global jspspec 2.3
1a47f7
%global major_version 9
1a47f7
%global minor_version 0
1a47f7
%global micro_version 62
1a47f7
%global packdname apache-tomcat-%{version}-src
1a47f7
%global servletspec 4.0
1a47f7
%global elspec 3.0
1a47f7
%global tcuid 53
1a47f7
# Recommended version is specified in java/org/apache/catalina/core/AprLifecycleListener.java
1a47f7
%global native_version 1.2.21
1a47f7
1a47f7
1a47f7
# FHS 2.3 compliant tree structure - http://www.pathname.com/fhs/2.3/
1a47f7
%global basedir %{_var}/lib/%{name}
1a47f7
%global appdir %{basedir}/webapps
1a47f7
%global homedir %{_datadir}/%{name}
1a47f7
%global bindir %{homedir}/bin
1a47f7
%global confdir %{_sysconfdir}/%{name}
1a47f7
%global libdir %{_javadir}/%{name}
1a47f7
%global logdir %{_var}/log/%{name}
1a47f7
%global cachedir %{_var}/cache/%{name}
1a47f7
%global tempdir %{cachedir}/temp
1a47f7
%global workdir %{cachedir}/work
1a47f7
%global _systemddir /lib/systemd/system
1a47f7
1a47f7
Name:          tomcat
1a47f7
Epoch:         1
1a47f7
Version:       %{major_version}.%{minor_version}.%{micro_version}
1a47f7
Release:       11%{?dist}
1a47f7
Summary:       Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
1a47f7
1a47f7
License:       ASL 2.0
1a47f7
URL:           http://tomcat.apache.org/
1a47f7
Source0:       http://www.apache.org/dist/tomcat/tomcat-%{major_version}/v%{version}/src/%{packdname}.tar.gz
1a47f7
Source1:       %{name}-%{major_version}.%{minor_version}.conf
1a47f7
Source3:       %{name}-%{major_version}.%{minor_version}.sysconfig
1a47f7
Source4:       %{name}-%{major_version}.%{minor_version}.wrapper
1a47f7
Source5:       %{name}-%{major_version}.%{minor_version}.logrotate
1a47f7
Source6:       %{name}-%{major_version}.%{minor_version}-digest.script
1a47f7
Source7:       %{name}-%{major_version}.%{minor_version}-tool-wrapper.script
1a47f7
Source11:      %{name}-%{major_version}.%{minor_version}.service
1a47f7
Source21:      tomcat-functions
1a47f7
Source30:      tomcat-preamble
1a47f7
Source31:      tomcat-server
1a47f7
Source32:      tomcat-named.service
1a47f7
Source33:      java-9-start-up-parameters.conf
1a47f7
1a47f7
Patch0:        %{name}-%{major_version}.%{minor_version}-bootstrap-MANIFEST.MF.patch
1a47f7
Patch1:        %{name}-%{major_version}.%{minor_version}-tomcat-users-webapp.patch
1a47f7
Patch2:        %{name}-build.patch
1a47f7
Patch3:        %{name}-%{major_version}.%{minor_version}-catalina-policy.patch
1a47f7
Patch4:        rhbz-1857043.patch
1a47f7
Patch5:        %{name}-%{major_version}.%{minor_version}-JDTCompiler.patch
1a47f7
Patch6:        %{name}-%{major_version}.%{minor_version}-bnd-annotation.patch
1a47f7
# The fixes for memory leak which have been fixed in 9.0.64, remove this patch in the next tomcat update
1a47f7
Patch7:        %{name}-%{major_version}.%{minor_version}-memory-leak.patch
1a47f7
Patch8:        fix-malformed-dtd.patch
1a47f7
1a47f7
BuildArch:     noarch
1a47f7
1a47f7
BuildRequires: ant
1a47f7
BuildRequires: ecj >= 1:4.10
1a47f7
BuildRequires: findutils
1a47f7
BuildRequires: java-devel >= 1:1.8.0
1a47f7
BuildRequires: javapackages-local
1a47f7
BuildRequires: aqute-bnd
1a47f7
BuildRequires: aqute-bndlib
1a47f7
BuildRequires: systemd
1a47f7
1a47f7
Requires:      java-headless >= 1:1.8.0
1a47f7
Requires:      javapackages-tools
1a47f7
Requires:      %{name}-lib = %{epoch}:%{version}-%{release}
1a47f7
%if 0%{?fedora} || 0%{?rhel} > 7
1a47f7
Recommends:    tomcat-native >= %{native_version}
1a47f7
%endif
1a47f7
Requires(pre):    shadow-utils
1a47f7
Requires(post):   systemd
1a47f7
Requires(preun):  systemd
1a47f7
Requires(postun): systemd
1a47f7
1a47f7
# We will change it to an obsoletes whenever the pki team is able to make the switch
1a47f7
Conflicts: pki-servlet-engine <= 1:9.0.50
1a47f7
1a47f7
# added after log4j sub-package was removed
1a47f7
Provides:         %{name}-log4j = %{epoch}:%{version}-%{release}
1a47f7
1a47f7
%description
1a47f7
Tomcat is the servlet container that is used in the official Reference
1a47f7
Implementation for the Java Servlet and JavaServer Pages technologies.
1a47f7
The Java Servlet and JavaServer Pages specifications are developed by
1a47f7
Sun under the Java Community Process.
1a47f7
1a47f7
Tomcat is developed in an open and participatory environment and
1a47f7
released under the Apache Software License version 2.0. Tomcat is intended
1a47f7
to be a collaboration of the best-of-breed developers from around the world.
1a47f7
1a47f7
%package admin-webapps
1a47f7
Summary: The host-manager and manager web applications for Apache Tomcat
1a47f7
Requires: %{name} = %{epoch}:%{version}-%{release}
1a47f7
1a47f7
%description admin-webapps
1a47f7
The host-manager and manager web applications for Apache Tomcat.
1a47f7
1a47f7
%package docs-webapp
1a47f7
Summary: The docs web application for Apache Tomcat
1a47f7
Requires: %{name} = %{epoch}:%{version}-%{release}
1a47f7
1a47f7
%description docs-webapp
1a47f7
The docs web application for Apache Tomcat.
1a47f7
1a47f7
%package jsp-%{jspspec}-api
1a47f7
Summary: Apache Tomcat JavaServer Pages v%{jspspec} API Implementation Classes
1a47f7
Provides: jsp = %{jspspec}
1a47f7
Obsoletes: %{name}-jsp-2.2-api
1a47f7
Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release}
1a47f7
Requires: %{name}-el-%{elspec}-api = %{epoch}:%{version}-%{release}
1a47f7
Conflicts: pki-servlet-engine <= 1:9.0.50
1a47f7
1a47f7
%description jsp-%{jspspec}-api
1a47f7
Apache Tomcat JSP API Implementation Classes.
1a47f7
1a47f7
%package lib
1a47f7
Summary: Libraries needed to run the Tomcat Web container
1a47f7
Requires: %{name}-jsp-%{jspspec}-api = %{epoch}:%{version}-%{release}
1a47f7
Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release}
1a47f7
Requires: %{name}-el-%{elspec}-api = %{epoch}:%{version}-%{release}
1a47f7
Requires: ecj >= 1:4.10
1a47f7
Requires(preun): coreutils
1a47f7
Conflicts: pki-servlet-engine <= 1:9.0.50
1a47f7
1a47f7
%description lib
1a47f7
Libraries needed to run the Tomcat Web container.
1a47f7
1a47f7
%package servlet-%{servletspec}-api
1a47f7
Summary: Apache Tomcat Java Servlet v%{servletspec} API Implementation Classes
1a47f7
Provides: servlet = %{servletspec}
1a47f7
Provides: servlet6
1a47f7
Provides: servlet3
1a47f7
Obsoletes: %{name}-servlet-3.1-api
1a47f7
Conflicts: pki-servlet-4.0-api <= 1:9.0.50
1a47f7
1a47f7
%description servlet-%{servletspec}-api
1a47f7
Apache Tomcat Servlet API Implementation Classes.
1a47f7
1a47f7
%package el-%{elspec}-api
1a47f7
Summary: Apache Tomcat Expression Language v%{elspec} API Implementation Classes
1a47f7
Provides: el_api = %{elspec}
1a47f7
Obsoletes: %{name}-el-2.2-api
1a47f7
Conflicts: pki-servlet-engine <= 1:9.0.50
1a47f7
1a47f7
%description el-%{elspec}-api
1a47f7
Apache Tomcat EL API Implementation Classes.
1a47f7
1a47f7
%package webapps
1a47f7
Summary: The ROOT web application for Apache Tomcat
1a47f7
Requires: %{name} = %{epoch}:%{version}-%{release}
1a47f7
1a47f7
%description webapps
1a47f7
The ROOT web application for Apache Tomcat.
1a47f7
1a47f7
%prep
1a47f7
%setup -q -n %{packdname}
1a47f7
# remove pre-built binaries and windows files
1a47f7
find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "*.gz" -o \
1a47f7
   -name "*.jar" -o -name "*.war" -o -name "*.zip" \) -delete
1a47f7
1a47f7
%patch0 -p0
1a47f7
%patch1 -p0
1a47f7
%patch2 -p0
1a47f7
%patch3 -p0
1a47f7
%patch4 -p0
1a47f7
%patch5 -p0
1a47f7
%patch6 -p0
1a47f7
%patch7 -p1
1a47f7
%patch8 -p1
1a47f7
1a47f7
# Remove webservices naming resources as it's generally unused
1a47f7
%{__rm} -rf java/org/apache/naming/factory/webservices
1a47f7
1a47f7
# Configure maven files
1a47f7
%mvn_package ":tomcat-el-api" tomcat-el-api
1a47f7
%mvn_alias "org.apache.tomcat:tomcat-el-api" "org.eclipse.jetty.orbit:javax.el"
1a47f7
%mvn_package ":tomcat-jsp-api" tomcat-jsp-api
1a47f7
%mvn_alias "org.apache.tomcat:tomcat-jsp-api" "org.eclipse.jetty.orbit:javax.servlet.jsp"
1a47f7
%mvn_package ":tomcat-servlet-api" tomcat-servlet-api
1a47f7
1a47f7
1a47f7
%build
1a47f7
export OPT_JAR_LIST="xalan-j2-serializer"
1a47f7
# we don't care about the tarballs and we're going to replace
1a47f7
# tomcat-dbcp.jar with apache-commons-{collections,dbcp,pool}-tomcat5.jar
1a47f7
# so just create a dummy file for later removal
1a47f7
touch HACK
1a47f7
1a47f7
# who needs a build.properties file anyway
1a47f7
%{ant} -Dbase.path="." \
1a47f7
  -Dbuild.compiler="modern" \
1a47f7
  -Dcommons-daemon.jar="HACK" \
1a47f7
  -Dcommons-daemon.native.src.tgz="HACK" \
1a47f7
  -Djdt.jar="$(build-classpath ecj/ecj)" \
1a47f7
  -Dtomcat-native.tar.gz="HACK" \
1a47f7
  -Dtomcat-native.home="." \
1a47f7
  -Dcommons-daemon.native.win.mgr.exe="HACK" \
1a47f7
  -Dnsis.exe="HACK" \
1a47f7
  -Djaxrpc-lib.jar="HACK" \
1a47f7
  -Dwsdl4j-lib.jar="HACK" \
1a47f7
  -Dbnd.jar="$(build-classpath aqute-bnd/biz.aQute.bnd)" \
1a47f7
  -Dbnd-annotation.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
1a47f7
  -Dversion="%{version}" \
1a47f7
  -Dversion.build="%{micro_version}" \
1a47f7
  deploy
1a47f7
1a47f7
# remove some jars that we'll replace with symlinks later
1a47f7
%{__rm} output/build/bin/commons-daemon.jar output/build/lib/ecj.jar
1a47f7
# Remove the example webapps per Apache Tomcat Security Considerations
1a47f7
# see https://tomcat.apache.org/tomcat-9.0-doc/security-howto.html
1a47f7
%{__rm} -rf output/build/webapps/examples
1a47f7
1a47f7
1a47f7
%install
1a47f7
# build initial path structure
1a47f7
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_bindir}
1a47f7
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sbindir}
1a47f7
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_systemddir}
1a47f7
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
1a47f7
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
1a47f7
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{appdir}
1a47f7
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{bindir}
1a47f7
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}
1a47f7
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}/Catalina/localhost
1a47f7
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}/conf.d
1a47f7
/bin/echo "Place your custom *.conf files here. Shell expansion is supported." > ${RPM_BUILD_ROOT}%{confdir}/conf.d/README
1a47f7
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{libdir}
1a47f7
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{logdir}
1a47f7
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{_localstatedir}/lib/tomcats
1a47f7
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{homedir}
1a47f7
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{tempdir}
1a47f7
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{workdir}
1a47f7
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_unitdir}
1a47f7
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_libexecdir}/%{name}
1a47f7
1a47f7
# move things into place
1a47f7
# First copy supporting libs to tomcat lib
1a47f7
pushd output/build
1a47f7
    %{__cp} -a bin/*.{jar,xml} ${RPM_BUILD_ROOT}%{bindir}
1a47f7
    %{__cp} -a conf/*.{policy,properties,xml,xsd} ${RPM_BUILD_ROOT}%{confdir}
1a47f7
    %{__cp} -a lib/*.jar ${RPM_BUILD_ROOT}%{libdir}
1a47f7
    %{__cp} -a webapps/* ${RPM_BUILD_ROOT}%{appdir}
1a47f7
popd
1a47f7
1a47f7
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
1a47f7
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
1a47f7
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE1} \
1a47f7
    > ${RPM_BUILD_ROOT}%{confdir}/%{name}.conf
1a47f7
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
1a47f7
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
1a47f7
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE3} \
1a47f7
    > ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name}
1a47f7
%{__install} -m 0644 %{SOURCE4} \
1a47f7
    ${RPM_BUILD_ROOT}%{_sbindir}/%{name}
1a47f7
%{__install} -m 0644 %{SOURCE11} \
1a47f7
    ${RPM_BUILD_ROOT}%{_unitdir}/%{name}.service
1a47f7
%{__sed} -e "s|\@\@\@TCLOG\@\@\@|%{logdir}|g" %{SOURCE5} \
1a47f7
    > ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name}.disabled
1a47f7
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
1a47f7
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
1a47f7
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE6} \
1a47f7
    > ${RPM_BUILD_ROOT}%{_bindir}/%{name}-digest
1a47f7
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
1a47f7
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
1a47f7
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE7} \
1a47f7
    > ${RPM_BUILD_ROOT}%{_bindir}/%{name}-tool-wrapper
1a47f7
1a47f7
%{__install} -m 0644 %{SOURCE21} \
1a47f7
    ${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/functions
1a47f7
%{__install} -m 0755 %{SOURCE30} \
1a47f7
    ${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/preamble
1a47f7
%{__install} -m 0755 %{SOURCE31} \
1a47f7
    ${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/server
1a47f7
%{__install} -m 0644 %{SOURCE32} \
1a47f7
    ${RPM_BUILD_ROOT}%{_unitdir}/%{name}@.service
1a47f7
1a47f7
%{__install} -m 0644 %{SOURCE33} ${RPM_BUILD_ROOT}%{confdir}/conf.d/
1a47f7
1a47f7
# Substitute libnames in catalina-tasks.xml
1a47f7
sed -i \
1a47f7
   "s,el-api.jar,%{name}-el-%{elspec}-api.jar,;
1a47f7
    s,servlet-api.jar,%{name}-servlet-%{servletspec}-api.jar,;
1a47f7
    s,jsp-api.jar,%{name}-jsp-%{jspspec}-api.jar,;" \
1a47f7
    ${RPM_BUILD_ROOT}%{bindir}/catalina-tasks.xml
1a47f7
1a47f7
# create jsp and servlet API symlinks
1a47f7
pushd ${RPM_BUILD_ROOT}%{_javadir}
1a47f7
   %{__mv} %{name}/jsp-api.jar %{name}-jsp-%{jspspec}-api.jar
1a47f7
   %{__ln_s} %{name}-jsp-%{jspspec}-api.jar %{name}-jsp-api.jar
1a47f7
   %{__mv} %{name}/servlet-api.jar %{name}-servlet-%{servletspec}-api.jar
1a47f7
   %{__ln_s} %{name}-servlet-%{servletspec}-api.jar %{name}-servlet-api.jar
1a47f7
   %{__mv} %{name}/el-api.jar %{name}-el-%{elspec}-api.jar
1a47f7
   %{__ln_s} %{name}-el-%{elspec}-api.jar %{name}-el-api.jar
1a47f7
popd
1a47f7
1a47f7
pushd output/build
1a47f7
    %{_bindir}/build-jar-repository lib ecj 2>&1
1a47f7
popd
1a47f7
1a47f7
pushd ${RPM_BUILD_ROOT}%{libdir}
1a47f7
    # symlink JSP and servlet API jars
1a47f7
    %{__ln_s} ../../java/%{name}-jsp-%{jspspec}-api.jar .
1a47f7
    %{__ln_s} ../../java/%{name}-servlet-%{servletspec}-api.jar .
1a47f7
    %{__ln_s} ../../java/%{name}-el-%{elspec}-api.jar .
1a47f7
    %{__ln_s} $(build-classpath ecj/ecj) jasper-jdt.jar
1a47f7
popd
1a47f7
1a47f7
# symlink to the FHS locations where we've installed things
1a47f7
pushd ${RPM_BUILD_ROOT}%{homedir}
1a47f7
    %{__ln_s} %{appdir} webapps
1a47f7
    %{__ln_s} %{confdir} conf
1a47f7
    %{__ln_s} %{libdir} lib
1a47f7
    %{__ln_s} %{logdir} logs
1a47f7
    %{__ln_s} %{tempdir} temp
1a47f7
    %{__ln_s} %{workdir} work
1a47f7
popd
1a47f7
1a47f7
# Install the maven metadata for the spec impl artifacts as other projects use them
1a47f7
#%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_mavenpomdir}
1a47f7
pushd res/maven
1a47f7
    for pom in tomcat-el-api.pom tomcat-jsp-api.pom tomcat-servlet-api.pom; do
1a47f7
        # fix-up version in all pom files
1a47f7
        sed -i 's/@MAVEN.DEPLOY.VERSION@/%{version}/g' $pom
1a47f7
    done
1a47f7
popd
1a47f7
1a47f7
# Configure and install maven artifacts
1a47f7
%mvn_artifact res/maven/tomcat-el-api.pom output/build/lib/el-api.jar
1a47f7
%mvn_artifact res/maven/tomcat-jsp-api.pom output/build/lib/jsp-api.jar
1a47f7
%mvn_artifact res/maven/tomcat-servlet-api.pom output/build/lib/servlet-api.jar
1a47f7
%mvn_install
1a47f7
1a47f7
%pre
1a47f7
# add the tomcat user and group
1a47f7
getent group tomcat >/dev/null || %{_sbindir}/groupadd -f -g %{tcuid} -r tomcat
1a47f7
if ! getent passwd tomcat >/dev/null ; then
1a47f7
    if ! getent passwd %{tcuid} >/dev/null ; then
1a47f7
        %{_sbindir}/useradd -r -u %{tcuid} -g tomcat -d %{homedir} -s /sbin/nologin -c "Apache Tomcat" tomcat
1a47f7
        # Tomcat uses a reserved ID, so there should never be an else
1a47f7
    fi
1a47f7
fi
1a47f7
exit 0
1a47f7
1a47f7
%post
1a47f7
# install but don't activate
1a47f7
%systemd_post %{name}.service
1a47f7
1a47f7
%post jsp-%{jspspec}-api
1a47f7
%{_sbindir}/update-alternatives --install %{_javadir}/jsp.jar jsp \
1a47f7
    %{_javadir}/%{name}-jsp-%{jspspec}-api.jar 20200
1a47f7
1a47f7
%post servlet-%{servletspec}-api
1a47f7
%{_sbindir}/update-alternatives --install %{_javadir}/servlet.jar servlet \
1a47f7
    %{_javadir}/%{name}-servlet-%{servletspec}-api.jar 30000
1a47f7
1a47f7
%post el-%{elspec}-api
1a47f7
%{_sbindir}/update-alternatives --install %{_javadir}/elspec.jar elspec \
1a47f7
   %{_javadir}/%{name}-el-%{elspec}-api.jar 20300
1a47f7
1a47f7
%preun
1a47f7
# clean tempdir and workdir on removal or upgrade
1a47f7
%{__rm} -rf %{workdir}/* %{tempdir}/*
1a47f7
%systemd_preun %{name}.service
1a47f7
1a47f7
%postun
1a47f7
%systemd_postun_with_restart %{name}.service 
1a47f7
1a47f7
%postun jsp-%{jspspec}-api
1a47f7
if [ "$1" = "0" ]; then
1a47f7
    %{_sbindir}/update-alternatives --remove jsp \
1a47f7
        %{_javadir}/%{name}-jsp-%{jspspec}-api.jar
1a47f7
fi
1a47f7
1a47f7
%postun servlet-%{servletspec}-api
1a47f7
if [ "$1" = "0" ]; then
1a47f7
    %{_sbindir}/update-alternatives --remove servlet \
1a47f7
        %{_javadir}/%{name}-servlet-%{servletspec}-api.jar
1a47f7
fi
1a47f7
1a47f7
%postun el-%{elspec}-api
1a47f7
if [ "$1" = "0" ]; then
1a47f7
    %{_sbindir}/update-alternatives --remove elspec \
1a47f7
        %{_javadir}/%{name}-el-%{elspec}-api.jar
1a47f7
fi
1a47f7
1a47f7
%files 
1a47f7
%defattr(0664,root,tomcat,0755)
1a47f7
%doc {LICENSE,NOTICE,RELEASE*}
1a47f7
%attr(0755,root,root) %{_bindir}/%{name}-digest
1a47f7
%attr(0755,root,root) %{_bindir}/%{name}-tool-wrapper
1a47f7
%attr(0755,root,root) %{_sbindir}/%{name}
1a47f7
%attr(0644,root,root) %{_unitdir}/%{name}.service
1a47f7
%attr(0644,root,root) %{_unitdir}/%{name}@.service
1a47f7
%attr(0755,root,root) %dir %{_libexecdir}/%{name}
1a47f7
%attr(0755,root,root) %dir %{_localstatedir}/lib/tomcats
1a47f7
%attr(0644,root,root) %{_libexecdir}/%{name}/functions
1a47f7
%attr(0755,root,root) %{_libexecdir}/%{name}/preamble
1a47f7
%attr(0755,root,root) %{_libexecdir}/%{name}/server
1a47f7
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
1a47f7
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}.disabled
1a47f7
%attr(0755,root,tomcat) %dir %{basedir}
1a47f7
%attr(0755,root,tomcat) %dir %{confdir}
1a47f7
1a47f7
%defattr(0664,tomcat,root,0770)
1a47f7
%attr(0770,tomcat,root) %dir %{logdir}
1a47f7
1a47f7
%defattr(0664,root,tomcat,0770)
1a47f7
%attr(0770,root,tomcat) %dir %{cachedir}
1a47f7
%attr(0770,root,tomcat) %dir %{tempdir}
1a47f7
%attr(0770,root,tomcat) %dir %{workdir}
1a47f7
1a47f7
%defattr(0644,root,tomcat,0775)
1a47f7
%attr(0775,root,tomcat) %dir %{appdir}
1a47f7
%attr(0775,root,tomcat) %dir %{confdir}/Catalina
1a47f7
%attr(0775,root,tomcat) %dir %{confdir}/Catalina/localhost
1a47f7
%attr(0755,root,tomcat) %dir %{confdir}/conf.d
1a47f7
%{confdir}/conf.d/README
1a47f7
%{confdir}/conf.d/java-9-start-up-parameters.conf
1a47f7
%config(noreplace) %{confdir}/%{name}.conf
1a47f7
%config(noreplace) %{confdir}/*.policy
1a47f7
%config(noreplace) %{confdir}/*.properties
1a47f7
%config(noreplace) %{confdir}/context.xml
1a47f7
%config(noreplace) %{confdir}/server.xml
1a47f7
%attr(0640,root,tomcat) %config(noreplace) %{confdir}/tomcat-users.xml
1a47f7
%attr(0664,root,tomcat) %{confdir}/tomcat-users.xsd
1a47f7
%attr(0664,root,tomcat) %config(noreplace) %{confdir}/jaspic-providers.xml
1a47f7
%attr(0664,root,tomcat) %{confdir}/jaspic-providers.xsd
1a47f7
%config(noreplace) %{confdir}/web.xml
1a47f7
%dir %{homedir}
1a47f7
%{bindir}/bootstrap.jar
1a47f7
%{bindir}/catalina-tasks.xml
1a47f7
%{homedir}/lib
1a47f7
%{homedir}/temp
1a47f7
%{homedir}/webapps
1a47f7
%{homedir}/work
1a47f7
%{homedir}/logs
1a47f7
%{homedir}/conf
1a47f7
1a47f7
%files admin-webapps
1a47f7
%defattr(0664,root,tomcat,0755)
1a47f7
%{appdir}/host-manager
1a47f7
%{appdir}/manager
1a47f7
1a47f7
%files docs-webapp
1a47f7
%{appdir}/docs
1a47f7
1a47f7
%files lib
1a47f7
%dir %{libdir}
1a47f7
%{libdir}/*.jar
1a47f7
%{_javadir}/*.jar
1a47f7
%{bindir}/tomcat-juli.jar
1a47f7
%exclude %{libdir}/%{name}-el-%{elspec}-api.jar
1a47f7
%exclude %{_javadir}/%{name}-servlet-%{servletspec}*.jar
1a47f7
%exclude %{_javadir}/%{name}-el-%{elspec}-api.jar
1a47f7
%exclude %{_javadir}/%{name}-jsp-%{jspspec}*.jar
1a47f7
1a47f7
%files jsp-%{jspspec}-api -f .mfiles-tomcat-jsp-api
1a47f7
%{_javadir}/%{name}-jsp-%{jspspec}*.jar
1a47f7
1a47f7
%files servlet-%{servletspec}-api -f .mfiles-tomcat-servlet-api
1a47f7
%doc LICENSE
1a47f7
%{_javadir}/%{name}-servlet-%{servletspec}*.jar
1a47f7
1a47f7
%files el-%{elspec}-api -f .mfiles-tomcat-el-api
1a47f7
%doc LICENSE
1a47f7
%{_javadir}/%{name}-el-%{elspec}-api.jar
1a47f7
%{libdir}/%{name}-el-%{elspec}-api.jar
1a47f7
1a47f7
%files webapps
1a47f7
%defattr(0644,tomcat,tomcat,0755)
1a47f7
%{appdir}/ROOT
1a47f7
1a47f7
1a47f7
%changelog
1a47f7
* Thu Feb 23 2023 Hui Wang <huwang@redhat.com> - 1:9.0.62-11
1a47f7
- Bump release so that the NVR on RHEL-9 is higher than RHEL-8
1a47f7
1a47f7
* Wed Feb 15 2023 Hui Wang <huwang@redhat.com> - 1:9.0.62-4
1a47f7
- Bump release to run the tier1 test
1a47f7
1a47f7
* Tue Feb 07 2023 Coty Sutherland <csutherl@redhat.com> - 1:9.0.62-3
1a47f7
- Add conflicts declaration to the appropriate subpackages
1a47f7
- Fix malformed DTD file that caused problems with rpminspect
1a47f7
1a47f7
* Fri Feb 03 2023 Hui Wang <huwang@redhat.com> - 1:9.0.62-2
1a47f7
- Add conflicts with the pki-servlet-engine package
1a47f7
1a47f7
* Mon Jan 16 2023 Hui Wang <huwang@redhat.com> - 1:9.0.62-1
1a47f7
- Update to 9.0.62. Related: rhbz#2160511
1a47f7
- Remove examples webapps from subpackage
1a47f7
- Remove maven artifacts from build as they aren't very useful
1a47f7
- Drop JSVC support as it's not very useful these days
1a47f7
- Drop geronimo-saaj as it's no longer required
1a47f7
- Drop geronimo-jaxrpc, which provided the webservices naming factory resources that are generally unused
1a47f7
- Cleaning up some unused deps and system properties
1a47f7
- Add Java 9 start-up parameters to allow reflection
1a47f7
- Add bnd-annotation which is in bndlib
1a47f7
- Add fixes for memory leak which have been fixed in 9.0.64
1a47f7
1a47f7
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1:9.0.44-2
1a47f7
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
1a47f7
1a47f7
* Thu Mar 18 2021 Hui Wang <huwang@redhat.com> - 1:9.0.44-1
1a47f7
- Update to 9.0.44
1a47f7
1a47f7
* Wed Feb 03 2021 Hui Wang <huwang@redhat.com> - 1:9.0.43-1
1a47f7
- Update to 9.0.43
1a47f7
1a47f7
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:9.0.41-2
1a47f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1a47f7
1a47f7
* Wed Dec 09 2020 Hui Wang <huwang@redhat.com> - 1:9.0.41-1
1a47f7
- Update to 9.0.41
1a47f7
1a47f7
* Wed Nov 18 2020 Hui Wang <huwang@redhat.com> - 1:9.0.40-1
1a47f7
- Update to 9.0.40
1a47f7
1a47f7
* Mon Oct 12 2020 Hui Wang <huwang@redhat.com> - 1:9.0.39-1
1a47f7
- Update to 9.0.39
1a47f7
1a47f7
* Wed Sep 16 2020 Hui Wang <huwang@redhat.com> - 1:9.0.38-1
1a47f7
- Update to 9.0.38
1a47f7
1a47f7
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:9.0.37-4
1a47f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1a47f7
1a47f7
* Fri Jul 24 2020 Coty Sutherland <csutherl@redhat.com> - 1:9.0.37-3
1a47f7
- Related: rhbz#1857043 Temporarily remove OSGi metadata from tomcat jars
1a47f7
1a47f7
* Mon Jul 20 2020 Coty Sutherland <csutherl@redhat.com> - 1:9.0.37-2
1a47f7
- Resolves: rhbz#1857043 Add patch to reinclude o.a.t.util.net.jsse and o.a.t.util.moduler.modules in tomcat-coyote.jar
1a47f7
1a47f7
* Mon Jul 13 2020 Coty Sutherland <csutherl@redhat.com> - 1:9.0.37-1
1a47f7
- Update to 9.0.37
1a47f7
1a47f7
* Sat Jul 11 2020 Jiri Vanek <jvanek@redhat.com> - 1:9.0.36-2
1a47f7
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
1a47f7
1a47f7
* Wed Jun 10 2020 Hui Wang <huwang@redhat.com> - 1:9.0.36-1
1a47f7
- Upgrade to 9.0.36
1a47f7
1a47f7
* Sun May 31 2020 Hui Wang <huwang@redhat.com> - 1:9.0.35-2
1a47f7
- Upgrade to 9.0.35
1a47f7
1a47f7
* Wed Apr 22 2020 Coty Sutherland <csutherl@redhat.com> - 1:9.0.34-2
1a47f7
- Add updated catalina.policy patch to allow ECJ usage under the Security Manager
1a47f7
1a47f7
* Tue Apr 21 2020 Coty Sutherland <csutherl@redhat.com> - 1:9.0.34-1
1a47f7
- Update to 9.0.34
1a47f7
1a47f7
* Thu Mar 05 2020 Coty Sutherland <csutherl@redhat.com> - 1:9.0.31-1
1a47f7
- Update to 9.0.31
1a47f7
- Resolves: rhbz#1806398 - CVE-2020-1938 tomcat: Apache Tomcat AJP File Read/Inclusion Vulnerability
1a47f7
1a47f7
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:9.0.30-2
1a47f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1a47f7
1a47f7
* Fri Dec 20 2019 Coty Sutherland <csutherl@redhat.com> - 1:9.0.30-1
1a47f7
- Update to 9.0.30
1a47f7
1a47f7
* Thu Sep 26 2019 Coty Sutherland <csutherl@redhat.com> - 1:9.0.26-2
1a47f7
- Resolves: rhbz#1510522 man page uid and gid mismatch for service accounts
1a47f7
1a47f7
* Thu Sep 26 2019 Coty Sutherland <csutherl@redhat.com> - 1:9.0.26-1
1a47f7
- Update to 9.0.26
1a47f7
- Resolves: rhbz#1523112 tomcat systemd does not cope with - in service names
1a47f7
- Resolves: rhbz#1510896 Problem to start tomcat with a user whose group has a name different to the user
1a47f7
1a47f7
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:9.0.21-3
1a47f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1a47f7
1a47f7
* Wed Jul 17 2019 Coty Sutherland <csutherl@redhat.com> - 1:9.0.21-2
1a47f7
- Update build-classpath calls to ECJ to specify the JAR we want to use
1a47f7
1a47f7
* Tue Jun 18 2019 Coty Sutherland <csutherl@redhat.com> - 1:9.0.21-1
1a47f7
- Update to 9.0.21
1a47f7
1a47f7
* Tue Apr 02 2019 Coty Sutherland <csutherl@redhat.com> - 1:9.0.13-4
1a47f7
- Remove javadoc subpackage to drop the jpackage-utils dependency
1a47f7
1a47f7
* Wed Feb 20 2019 Coty Sutherland <csutherl@redhat.com> - 1:9.0.13-3
1a47f7
- Remove OSGi MANIFEST files, these are now included in the upstream Tomcat distribution (as of 9.0.10)
1a47f7
- Remove unused dependencies, apache-commons-collections, apache-commons-daemon, apache-commons-pool, junit
1a47f7
1a47f7
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:9.0.13-2
1a47f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1a47f7
1a47f7
* Thu Dec 13 2018 Coty Sutherland <csutherl@redhat.com> - 1:9.0.13-1
1a47f7
- Update to 9.0.13
1a47f7
- Resolves: rhbz#1636513 - CVE-2018-11784 tomcat: Open redirect in default servlet
1a47f7
1a47f7
* Sun Oct 14 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1:9.0.10-2
1a47f7
- Drop legcy sys-v bits
1a47f7
1a47f7
* Tue Jul 31 2018 Coty Sutherland <csutherl@redhat.com> - 1:9.0.10-1
1a47f7
- Update to 9.0.10
1a47f7
- Resolves: rhbz#1624929 - CVE-2018-1336 tomcat: A bug in the UTF-8 decoder can lead to DoS
1a47f7
- Resolves: rhbz#1579612 - CVE-2018-8014 tomcat: Insecure defaults in CORS filter enable 'supportsCredentials' for all origins
1a47f7
- Resolves: rhbz#1607586 - CVE-2018-8034 tomcat: host name verification missing in WebSocket client
1a47f7
- Resolves: rhbz#1607584 - CVE-2018-8037 tomcat: Due to a mishandling of close in NIO/NIO2 connectors user sessions can get mixed up
1a47f7
1a47f7
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:9.0.7-2
1a47f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1a47f7
1a47f7
* Tue May 01 2018 Coty Sutherland <csutherl@redhat.com> - 1:9.0.7-1
1a47f7
- Update to 9.0.7
1a47f7
1a47f7
* Thu Mar 15 2018 Coty Sutherland <csutherl@redhat.com> - 1:8.5.29-1
1a47f7
- Update to 8.5.29
1a47f7
- Resolves: rhbz#1548290 CVE-2018-1304 tomcat: Incorrect handling of empty string URL in security constraints can lead to unitended exposure of resources
1a47f7
- Resolves: rhbz#1548284 CVE-2018-1305 tomcat: Late application of security constraints can lead to resource exposure for unauthorised users
1a47f7
1a47f7
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1:8.0.49-2
1a47f7
- Escape macros in %%changelog
1a47f7
1a47f7
* Thu Feb 01 2018 Coty Sutherland <csutherl@redhat.com> - 1:8.0.49-1
1a47f7
- Update to 8.0.49
1a47f7
1a47f7
* Tue Dec 12 2017 Merlin Mathesius <mmathesi@redhat.com> - 1:8.0.47-3
1a47f7
- Cleanup spec file conditionals
1a47f7
1a47f7
* Tue Oct 24 2017 Troy Dawson <tdawson@redhat.com> - 1:8.0.47-2
1a47f7
- Change "zip -u" to "zip"
1a47f7
- Resolves: rhbz#1495241 [tomcat] zip -u in spec file causes race condition
1a47f7
1a47f7
* Wed Oct 04 2017 Coty Sutherland <csutherl@redhat.com> - 1:8.0.47-1
1a47f7
- Update to 8.0.47
1a47f7
- Resolves: rhbz#1497682 CVE-2017-12617 tomcat: Remote Code Execution bypass for CVE-2017-12615
1a47f7
1a47f7
* Mon Aug 21 2017 Coty Sutherland <csutherl@redhat.com> - 1:8.0.46-1
1a47f7
- Update to 8.0.46
1a47f7
- Resolves: rhbz#1480620 CVE-2017-7674 tomcat: Cache Poisoning
1a47f7
1a47f7
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:8.0.44-2
1a47f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1a47f7
1a47f7
* Fri Jun 09 2017 Coty Sutherland <csutherl@redhat.com> - 1:8.0.44-1
1a47f7
- Resolves: rhbz#1459160 CVE-2017-5664 tomcat: Security constrained bypass in error page mechanism
1a47f7
1a47f7
* Tue Apr 11 2017 Coty Sutherland <csutherl@redhat.com> - 1:8.0.43-1
1a47f7
- Update to 8.0.43
1a47f7
1a47f7
* Fri Mar 31 2017 Coty Sutherland <csutherl@redhat.com> - 1:8.0.42-1
1a47f7
- Update to 8.0.42
1a47f7
1a47f7
* Thu Feb 16 2017 Coty Sutherland <csutherl@redhat.com> - 1:8.0.41-1
1a47f7
- Update to 8.0.41
1a47f7
- Resolves: rhbz#1403825 CVE-2016-8745 tomcat: information disclosure due to incorrect Processor sharing
1a47f7
1a47f7
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:8.0.39-2
1a47f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1a47f7
1a47f7
* Tue Nov 29 2016 Coty Sutherland <csutherl@redhat.com> - 1:8.0.39-1
1a47f7
- Update to 8.0.39
1a47f7
- Resolves: rhbz#1397493 CVE-2016-6816 CVE-2016-6817 CVE-2016-8735 tomcat: various flaws
1a47f7
1a47f7
* Tue Oct 25 2016 Coty Sutherland <csutherl@redhat.com> - 1:8.0.38-1
1a47f7
- Update to 8.0.38
1a47f7
1a47f7
* Sun Oct 23 2016 Coty Sutherland <csutherl@redhat.com> - 1:8.0.37-3
1a47f7
- Resolves: rhbz#1383216 CVE-2016-6325 tomcat: tomcat writable config files allow privilege escalation
1a47f7
- Resolves: rhbz#1382310 CVE-2016-5425 tomcat: Local privilege escalation via systemd-tmpfiles service
1a47f7
1a47f7
* Tue Sep 13 2016 Coty Sutherland <csutherl@redhat.com> - 1:8.0.37-1
1a47f7
- Rebase to 8.0.37
1a47f7
- Resolves: rhbz#1375581 CVE-2016-5388 CGI sets environmental variable based on user supplied Proxy request header
1a47f7
- Resolves: rhbz#1370262 catalina.out is no longer in use in the main package, but still gets rotated
1a47f7
1a47f7
* Thu Aug 11 2016 Coty Sutherland <csutherl@redhat.com> - 1:8.0.36-2
1a47f7
- Related: rhbz#1349469 Correct typo in changelog entry
1a47f7
1a47f7
* Mon Aug 08 2016 Coty Sutherland <csutherl@redhat.com> - 1:8.0.36-1
1a47f7
- Resolves: rhbz#1349469 CVE-2016-3092 tomcat: Usage of vulnerable FileUpload package can result in denial of service (updates to 8.0.36)
1a47f7
- Resolves: rhbz#1364056 The command tomcat-digest doesn't work
1a47f7
- Resolves: rhbz#1363884 The tomcat-tool-wrapper script is broken
1a47f7
- Resolves: rhbz#1347864 The systemd service unit does not allow tomcat to shut down gracefully
1a47f7
- Resolves: rhbz#1347835 The security manager doesn't work correctly (JSPs cannot be compiled)
1a47f7
- Resolves: rhbz#1341853 rpm -V tomcat fails on /var/log/tomcat/catalina.out
1a47f7
- Resolves: rhbz#1341850 tomcat-jsvc.service has TOMCAT_USER value hard-coded
1a47f7
- Resolves: rhbz#1359737 Missing maven depmap for the following artifacts: org.apache.tomcat:tomcat-websocket, org.apache.tomcat:tomcat-websocket-api
1a47f7
- Resolves: asfbz#59960  Building javadocs with java8 fails
1a47f7
1a47f7
* Wed Mar 2 2016 Ivan Afonichev <ivan.afonichev@gmail.com> - 1:8.0.32-4
1a47f7
- Revert sysconfig migration changes, resolves: rhbz#1311771, rhbz#1311905
1a47f7
- Add /etc/tomcat/conf.d/ with shell expansion support, resolves rhbz#1293636
1a47f7
1a47f7
* Sat Feb 27 2016 Ivan Afonichev <ivan.afonichev@gmail.com> - 1:8.0.32-3
1a47f7
- Load sysconfig from tomcat.conf, resolves: rhbz#1311771, rhbz#1311905
1a47f7
- Set default javax.sql.DataSource factory to apache commons one, resolves rhbz#1214381
1a47f7
1a47f7
* Sun Feb 21 2016 Ivan Afonichev <ivan.afonichev@gmail.com> - 1:8.0.32-2
1a47f7
- Fix symlinks from $CATALINA_HOME/lib perspective, resolves: rhbz#1308685
1a47f7
1a47f7
* Thu Feb 11 2016 Ivan Afonichev <ivan.afonichev@gmail.com> - 1:8.0.32-1
1a47f7
- Updated to 8.0.32
1a47f7
- Remove log4j support. It has never been working actually. See rhbz#1236297
1a47f7
- Move shipped config to /etc/sysconfig/tomcat. /etc/tomcat/tomcat.conf can now be used to override it with shell expansion, resolves rhbz#1293636
1a47f7
- Recommend tomcat-native, resolves: rhbz#1243132
1a47f7
1a47f7
* Wed Feb 10 2016 Coty Sutherland <csutherl@redhat.com> 1:8.0.26-4
1a47f7
- Resolves: rhbz#1286800 Failed to start component due to wrong allowLinking="true" in context.xml
1a47f7
- Program /bin/nologin does not exist (#1302718)
1a47f7
1a47f7
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:8.0.26-3
1a47f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1a47f7
1a47f7
* Wed Nov 11 2015 Robert Scheck <robert@fedoraproject.org> 1:8.0.26-2
1a47f7
- CATALINA_OPTS are only read when SECURITY_MANAGER is true (#1147105)
1a47f7
1a47f7
* Thu Aug 27 2015 Alexander Kurtakov <akurtako@redhat.com> 1:8.0.26-1
1a47f7
- Update to 8.0.26.
1a47f7
1a47f7
* Fri Jul 10 2015 Alexander Kurtakov <akurtako@redhat.com> 1:8.0.24-2
1a47f7
- Update to 8.0.24.
1a47f7
1a47f7
* Fri Jun 19 2015 Alexander Kurtakov <akurtako@redhat.com> 1:8.0.23-2
1a47f7
- Drop javax.el:el-api alias.
1a47f7
1a47f7
* Thu Jun 18 2015 Alexander Kurtakov <akurtako@redhat.com> 1:8.0.23-1
1a47f7
- Update to 8.0.23.
1a47f7
1a47f7
* Thu Jun 18 2015 Alexander Kurtakov <akurtako@redhat.com> 1:8.0.20-3
1a47f7
- Drop jetty alias for servlet.
1a47f7
1a47f7
* Tue Jun 09 2015 Michal Srb <msrb@redhat.com> - 1:8.0.20-2
1a47f7
- Fix metadata for org.apache.tomcat:{tomcat-jni,tomcat-util-scan}
1a47f7
1a47f7
* Thu Mar 5 2015 Alexander Kurtakov <akurtako@redhat.com> 1:8.0.18-5
1a47f7
- Rebuild against tomcat-taglibs-standard.
1a47f7
1a47f7
* Wed Mar 4 2015 Alexander Kurtakov <akurtako@redhat.com> 1:8.0.18-4
1a47f7
- Fix epoch bumped el_1_0_api that would override all other glassfish/jboss/etc. due to wrong epoch.
1a47f7
- Drop old provides. 
1a47f7
1a47f7
* Tue Mar 03 2015 Stephen Gallagher <sgallagh@redhat.com> 1:8.0.18-3
1a47f7
- Bump epoch to maintain upgrade path from Fedora 22
1a47f7
1a47f7
* Mon Feb 16 2015 Michal Srb <msrb@redhat.com> - 0:8.0.18-2
1a47f7
- Install POM files for org.apache.tomcat:{tomcat-jni,tomcat-util-scan}
1a47f7
1a47f7
* Sun Feb 15 2015 Ivan Afonichev <ivan.afonichev@gmail.com> 0:8.0.18-1
1a47f7
- Updated to 8.0.18
1a47f7
1a47f7
* Sat Sep 20 2014 Ivan Afonichev <ivan.afonichev@gmail.com> 0:8.0.12-1
1a47f7
- Updated to 8.0.12
1a47f7
- Substitute libnames in catalina-tasks.xml, resolves: rhbz#1126439
1a47f7
- Use CATALINA_OPTS only on start, resolves: rhbz#1051194
1a47f7
1a47f7
* Mon Jun 16 2014 Michal Srb <msrb@redhat.com> - 0:7.0.54-3
1a47f7
- jsp-api requires el-api
1a47f7
1a47f7
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:7.0.54-2
1a47f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1a47f7
1a47f7
* Thu Jun 5 2014 Alexander Kurtakov <akurtako@redhat.com> 0:7.0.54-1
1a47f7
- Update to upstream 7.0.54 - fixes compile with Java 8.
1a47f7
1a47f7
* Wed May 21 2014 Alexander Kurtakov <akurtako@redhat.com> 0:7.0.52-3
1a47f7
- Drop servlet/el api provides to reduce user machines ending with both.
1a47f7
1a47f7
* Sun Mar 30 2014 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.52-2
1a47f7
- Don't provide maven javax.jsp:jsp-api and javax.servlet.jsp:javax.servlet.jsp-api resolves: rhbz#1076949
1a47f7
- Move log4j support into subpackage, resolves: rhbz#1027716
1a47f7
1a47f7
* Wed Mar 26 2014 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.52-1
1a47f7
- Updated to 7.0.52
1a47f7
- Rewrite jsvc implementation, resolves: rhbz#1051743
1a47f7
- Switch to java-headless R, resolves: rhbz#1068566
1a47f7
- Create and own %%{_localstatedir}/lib/tomcats, resolves: rhbz#1026741
1a47f7
- Add pom for tomcat-jdbc, resolves: rhbz#1011003 
1a47f7
1a47f7
* Tue Jan 21 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:7.0.47-3
1a47f7
- Fix installation of Maven metadata for tomcat-juli.jar
1a47f7
- Resolves: rhbz#1033664
1a47f7
1a47f7
* Wed Jan 15 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:7.0.47-2
1a47f7
- Rebuild for bug #1033664
1a47f7
1a47f7
* Sun Nov 03 2013 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.47-1
1a47f7
- Updated to 7.0.47
1a47f7
- Fix java.security.policy
1a47f7
1a47f7
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:7.0.42-3
1a47f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1a47f7
1a47f7
* Fri Jul 12 2013 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.42-2
1a47f7
- Remove jpackage-utils R
1a47f7
1a47f7
* Thu Jul 11 2013 Dmitry Tikhonov <squall.sama@gmail.com> 0:7.0.42-1
1a47f7
- Updated to 7.0.42
1a47f7
1a47f7
* Tue Jun 11 2013 Paul Komkoff <i@stingr.net> 0:7.0.40-3
1a47f7
- Dropped systemv inits. Bye-bye.
1a47f7
- Updated the systemd wrappers to allow running multiple instances.
1a47f7
  Added wrapper scripts to do that, ported the original non-named
1a47f7
  service file to work with the same wrappers, updated
1a47f7
  /usr/sbin/tomcat to call systemctl.
1a47f7
1a47f7
* Sat May 11 2013 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.40-1
1a47f7
- Updated to 7.0.40
1a47f7
- Resolves: rhbz 956569 added missing commons-pool link
1a47f7
- Remove ant-nodeps BR
1a47f7
1a47f7
* Mon Mar  4 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:7.0.37-2
1a47f7
- Add depmaps for org.eclipse.jetty.orbit
1a47f7
- Resolves: rhbz#917626
1a47f7
1a47f7
* Wed Feb 20 2013 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.39-1
1a47f7
- Updated to 7.0.39
1a47f7
1a47f7
* Wed Feb 20 2013 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.37-1
1a47f7
- Updated to 7.0.37
1a47f7
1a47f7
* Mon Feb 4 2013 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.35-1
1a47f7
- Updated to 7.0.35
1a47f7
- systemd SuccessExitStatus=143 for proper stop exit code processing
1a47f7
1a47f7
* Mon Dec 24 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.34-1
1a47f7
- Updated to 7.0.34
1a47f7
- ecj >= 4.2.1 now required
1a47f7
- Resolves: rhbz 889395 concat classpath correctly; chdir to $CATALINA_HOME
1a47f7
1a47f7
* Fri Dec 7 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.33-2
1a47f7
- Resolves: rhbz 883806 refix logdir ownership 
1a47f7
1a47f7
* Sun Dec 2 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.33-1
1a47f7
- Updated to 7.0.33
1a47f7
- Resolves: rhbz 873620 need chkconfig for update-alternatives
1a47f7
1a47f7
* Wed Oct 17 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.32-1
1a47f7
- Updated to 7.0.32
1a47f7
- Resolves: rhbz 842620 symlinks to taglibs
1a47f7
1a47f7
* Fri Aug 24 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.29-1
1a47f7
- Updated to 7.0.29
1a47f7
- Add pidfile as tmpfile
1a47f7
- Use systemd for running as unprivileged user
1a47f7
- Resolves: rhbz 847751 upgrade path was broken
1a47f7
- Resolves: rhbz 850343 use new systemd-rpm macros
1a47f7
1a47f7
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:7.0.28-2
1a47f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1a47f7
1a47f7
* Mon Jul 2 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.28-1
1a47f7
- Updated to 7.0.28
1a47f7
- Resolves: rhbz 820119 Remove bundled apache-commons-dbcp
1a47f7
- Resolves: rhbz 814900 Added tomcat-coyote POM
1a47f7
- Resolves: rhbz 810775 Remove systemv stuff from %%post scriptlet
1a47f7
- Remove redhat-lsb R 
1a47f7
1a47f7
* Mon Apr 9 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.27-2
1a47f7
- Fixed native download hack
1a47f7
1a47f7
* Sat Apr 7 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.27-1
1a47f7
- Updated to 7.0.27
1a47f7
- Fixed jakarta-taglibs-standard BR and R
1a47f7
1a47f7
* Wed Mar 21 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:7.0.26-2
1a47f7
- Add more depmaps to J2EE apis to help jetty/glassfish updates
1a47f7
1a47f7
* Wed Mar 14 2012 Juan Hernandez <juan.hernandez@redhat.com> 0:7.0.26-2
1a47f7
- Added the POM files for tomcat-api and tomcat-util (#803495)
1a47f7
1a47f7
* Wed Feb 22 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.26-1
1a47f7
- Updated to 7.0.26
1a47f7
- Bug 790334: Change ownership of logdir for logrotate
1a47f7
1a47f7
* Thu Feb 16 2012 Krzysztof Daniel <kdaniel@redhat.com> 0:7.0.25-4
1a47f7
- Bug 790694: Priorities of jsp, servlet and el packages updated.
1a47f7
1a47f7
* Wed Feb 8 2012 Krzysztof Daniel <kdaniel@redhat.com> 0:7.0.25-3
1a47f7
- Dropped indirect dependecy to tomcat 5
1a47f7
1a47f7
* Sun Jan 22 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.25-2
1a47f7
- Added hack for maven depmap of tomcat-juli absolute link [ -f ] pass correctly
1a47f7
1a47f7
* Sat Jan 21 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.25-1
1a47f7
- Updated to 7.0.25
1a47f7
- Removed EntityResolver patch (changes already in upstream sources)
1a47f7
- Place poms and depmaps in the same package as jars
1a47f7
- Added javax.servlet.descriptor to export-package of servlet-api
1a47f7
- Move several chkconfig actions and reqs to systemv subpackage
1a47f7
- New maven depmaps generation method
1a47f7
- Add patch to support java7. (patch sent upstream).
1a47f7
- Require java >= 1:1.6.0
1a47f7
1a47f7
* Fri Jan 13 2012 Krzysztof Daniel <kdaniel@redhat.com> 0:7.0.23-5
1a47f7
- Exported javax.servlet.* packages in version 3.0 as 2.6 to make
1a47f7
  servlet-api compatible with Eclipse.
1a47f7
1a47f7
* Thu Jan 12 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.23-4
1a47f7
- Move jsvc support to subpackage
1a47f7
1a47f7
* Wed Jan 11 2012 Alexander Kurtakov <akurtako@redhat.com> 0:7.0.23-2
1a47f7
- Add EntityResolver setter patch to jasper for jetty's need. (patch sent upstream).
1a47f7
1a47f7
* Mon Dec 12 2011 Joseph D. Wagner <joe@josephdwagner.info> 0:7.0.23-3
1a47f7
- Added support to /usr/sbin/tomcat-sysd and /usr/sbin/tomcat for
1a47f7
  starting tomcat with jsvc, which allows tomcat to perform some
1a47f7
  privileged operations (e.g. bind to a port < 1024) and then switch
1a47f7
  identity to a non-privileged user. Must add USE_JSVC="true" to
1a47f7
  /etc/tomcat/tomcat.conf or /etc/sysconfig/tomcat.
1a47f7
1a47f7
* Mon Nov 28 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.23-1
1a47f7
- Updated to 7.0.23
1a47f7
1a47f7
* Fri Nov 11 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.22-2
1a47f7
- Move tomcat-juli.jar to lib package
1a47f7
- Drop %%update_maven_depmap as in tomcat6
1a47f7
- Provide native systemd unit file ported from tomcat6
1a47f7
1a47f7
* Thu Oct 6 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.22-1
1a47f7
- Updated to 7.0.22
1a47f7
1a47f7
* Mon Oct 03 2011 Rex Dieter <rdieter@fedoraproject.org> - 0:7.0.21-3.1
1a47f7
- rebuild (java), rel-eng#4932
1a47f7
1a47f7
* Mon Sep 26 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.21-3
1a47f7
- Fix basedir mode
1a47f7
1a47f7
* Tue Sep 20 2011 Roland Grunberg <rgrunber@redhat.com> 0:7.0.21-2
1a47f7
- Add manifests for el-api, jasper-el, jasper, tomcat, and tomcat-juli.
1a47f7
1a47f7
* Thu Sep 8 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.21-1
1a47f7
- Updated to 7.0.21
1a47f7
1a47f7
* Mon Aug 15 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.20-3
1a47f7
- Require java = 1:1.6.0
1a47f7
1a47f7
* Mon Aug 15 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.20-2
1a47f7
- Require java < 1.7.0
1a47f7
1a47f7
* Mon Aug 15 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.20-1
1a47f7
- Updated to 7.0.20
1a47f7
1a47f7
* Tue Jul 26 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.19-1
1a47f7
- Updated to 7.0.19
1a47f7
1a47f7
* Tue Jun 21 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.16-1
1a47f7
- Updated to 7.0.16
1a47f7
1a47f7
* Mon Jun 6 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.14-3
1a47f7
- Added initial systemd service
1a47f7
- Fix some paths
1a47f7
1a47f7
* Sat May 21 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.14-2
1a47f7
- Fixed http source link
1a47f7
- Securify some permissions
1a47f7
- Added licenses for el-api and servlet-api
1a47f7
- Added dependency on jpackage-utils for the javadoc subpackage
1a47f7
1a47f7
* Sat May 14 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.14-1
1a47f7
- Updated to 7.0.14
1a47f7
1a47f7
* Thu May 5 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.12-4
1a47f7
- Provided local paths for libs
1a47f7
- Fixed dependencies
1a47f7
- Fixed update temp/work cleanup
1a47f7
1a47f7
* Mon May 2 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.12-3
1a47f7
- Fixed package groups
1a47f7
- Fixed some permissions
1a47f7
- Fixed some links
1a47f7
- Removed old tomcat6 crap
1a47f7
1a47f7
* Thu Apr 28 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.12-2
1a47f7
- Package now named just tomcat instead of tomcat7
1a47f7
- Removed Provides:  %%{name}-log4j
1a47f7
- Switched to apache-commons-* names instead of jakarta-commons-* .
1a47f7
- Remove the old changelog
1a47f7
- BR/R java >= 1:1.6.0 , same for java-devel
1a47f7
- Removed old tomcat6 crap
1a47f7
1a47f7
* Wed Apr 27 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.12-1
1a47f7
- Tomcat7