Blame SPECS/tomcat.spec

828cdb
# Copyright (c) 2000-2008, JPackage Project
828cdb
# All rights reserved.
828cdb
#
828cdb
# Redistribution and use in source and binary forms, with or without
828cdb
# modification, are permitted provided that the following conditions
828cdb
# are met:
828cdb
#
828cdb
# 1. Redistributions of source code must retain the above copyright
828cdb
#    notice, this list of conditions and the following disclaimer.
828cdb
# 2. Redistributions in binary form must reproduce the above copyright
828cdb
#    notice, this list of conditions and the following disclaimer in the
828cdb
#    documentation and/or other materials provided with the
828cdb
#    distribution.
828cdb
# 3. Neither the name of the JPackage Project nor the names of its
828cdb
#    contributors may be used to endorse or promote products derived
828cdb
#    from this software without specific prior written permission.
828cdb
#
828cdb
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
828cdb
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
828cdb
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
828cdb
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
828cdb
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
828cdb
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
828cdb
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
828cdb
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
828cdb
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
828cdb
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
828cdb
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
828cdb
#
828cdb
828cdb
%global jspspec 2.2
828cdb
%global major_version 7
828cdb
%global minor_version 0
828cdb
%global micro_version 76
828cdb
%global packdname apache-tomcat-%{version}-src
828cdb
%global servletspec 3.0
828cdb
%global elspec 2.2
828cdb
%global tcuid 53
828cdb
828cdb
# FHS 2.3 compliant tree structure - http://www.pathname.com/fhs/2.3/
828cdb
%global basedir %{_var}/lib/%{name}
828cdb
%global appdir %{basedir}/webapps
828cdb
%global homedir %{_datadir}/%{name}
828cdb
%global bindir %{homedir}/bin
828cdb
%global confdir %{_sysconfdir}/%{name}
828cdb
%global libdir %{_javadir}/%{name}
828cdb
%global logdir %{_var}/log/%{name}
828cdb
%global cachedir %{_var}/cache/%{name}
828cdb
%global tempdir %{cachedir}/temp
828cdb
%global workdir %{cachedir}/work
828cdb
%global _initrddir %{_sysconfdir}/init.d
828cdb
%global _systemddir /lib/systemd/system
828cdb
828cdb
Name:          tomcat
828cdb
Epoch:         0
828cdb
Version:       %{major_version}.%{minor_version}.%{micro_version}
949ec7
Release:       9%{?dist}
828cdb
Summary:       Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
828cdb
828cdb
Group:         System Environment/Daemons
828cdb
License:       ASL 2.0
828cdb
URL:           http://tomcat.apache.org/
828cdb
Source0:       http://www.apache.org/dist/tomcat/tomcat-%{major_version}/v%{version}/src/%{packdname}.tar.gz
828cdb
Source1:       %{name}-%{major_version}.%{minor_version}.conf
828cdb
Source3:       %{name}-%{major_version}.%{minor_version}.sysconfig
828cdb
Source4:       %{name}-%{major_version}.%{minor_version}.wrapper
828cdb
Source5:       %{name}-%{major_version}.%{minor_version}.logrotate
828cdb
Source6:       %{name}-%{major_version}.%{minor_version}-digest.script
828cdb
Source7:       %{name}-%{major_version}.%{minor_version}-tool-wrapper.script
828cdb
Source8:       servlet-api-OSGi-MANIFEST.MF
828cdb
Source9:       jsp-api-OSGi-MANIFEST.MF
828cdb
Source10:      %{name}-%{major_version}.%{minor_version}-log4j.properties
828cdb
Source11:      %{name}-%{major_version}.%{minor_version}.service
828cdb
Source12:      el-api-OSGi-MANIFEST.MF
828cdb
Source13:      jasper-el-OSGi-MANIFEST.MF
828cdb
Source14:      jasper-OSGi-MANIFEST.MF
828cdb
Source15:      tomcat-api-OSGi-MANIFEST.MF
828cdb
Source16:      tomcat-juli-OSGi-MANIFEST.MF
828cdb
Source20:      %{name}-%{major_version}.%{minor_version}-jsvc.service
828cdb
Source21:      tomcat-functions
828cdb
Source22:      tomcat-preamble
828cdb
Source23:      tomcat-server
828cdb
Source24:      tomcat-named.service
828cdb
Source25:      tomcat-juli-adapters.jar
828cdb
Source26:      tomcat-juli.jar
828cdb
828cdb
Patch0: %{name}-%{major_version}.%{minor_version}-bootstrap-MANIFEST.MF.patch
828cdb
Patch1: %{name}-%{major_version}.%{minor_version}-tomcat-users-webapp.patch
828cdb
Patch2: %{name}-7.0.54-rebase.patch
828cdb
Patch3: %{name}-7.0-catalina-policy.patch
828cdb
Patch4: %{name}-7.0.76-CVE-2017-5664.patch
828cdb
Patch5: %{name}-7.0.76-CVE-2017-5647.patch
828cdb
Patch6: %{name}-7.0.76-CVE-2017-7674.patch
828cdb
Patch7: %{name}-7.0.76-CVE-2017-12617.patch
f789b1
Patch8: patch.rhbz1602060
d3c23e
Patch9: %{name}-7.0.76-CVE-2018-1336.patch
949ec7
Patch10: %{name}-7.0.76-CVE-2018-11784.patch
828cdb
828cdb
BuildArch:     noarch
828cdb
828cdb
BuildRequires: ant
828cdb
#BuildRequires: ant-nodeps
828cdb
BuildRequires: ecj >= 1:4.2.1
828cdb
BuildRequires: findutils
828cdb
BuildRequires: apache-commons-collections
828cdb
BuildRequires: apache-commons-daemon
828cdb
BuildRequires: apache-commons-dbcp
828cdb
BuildRequires: apache-commons-pool
828cdb
BuildRequires: jakarta-taglibs-standard
828cdb
BuildRequires: java-devel >= 1:1.6.0
828cdb
BuildRequires: jpackage-utils >= 0:1.7.0
828cdb
BuildRequires: junit
828cdb
BuildRequires: log4j
828cdb
BuildRequires: geronimo-jaxrpc
828cdb
BuildRequires: wsdl4j
828cdb
BuildRequires: systemd-units
828cdb
Requires:      apache-commons-daemon
828cdb
Requires:      apache-commons-logging
828cdb
Requires:      apache-commons-collections
828cdb
Requires:      apache-commons-dbcp
828cdb
Requires:      apache-commons-pool
828cdb
Requires:      java >= 1:1.6.0
828cdb
Requires:      procps
828cdb
Requires:      %{name}-lib = %{epoch}:%{version}-%{release}
828cdb
Requires(pre):    shadow-utils
828cdb
Requires(post):   chkconfig
828cdb
Requires(preun):  chkconfig
828cdb
Requires(post):   systemd-units
828cdb
Requires(preun):  systemd-units
828cdb
Requires(postun): systemd-units
828cdb
828cdb
%description
828cdb
Tomcat is the servlet container that is used in the official Reference
828cdb
Implementation for the Java Servlet and JavaServer Pages technologies.
828cdb
The Java Servlet and JavaServer Pages specifications are developed by
828cdb
Sun under the Java Community Process.
828cdb
828cdb
Tomcat is developed in an open and participatory environment and
828cdb
released under the Apache Software License version 2.0. Tomcat is intended
828cdb
to be a collaboration of the best-of-breed developers from around the world.
828cdb
828cdb
%package admin-webapps
828cdb
Group: Applications/System
828cdb
Summary: The host-manager and manager web applications for Apache Tomcat
828cdb
Requires: %{name} = %{epoch}:%{version}-%{release}
828cdb
828cdb
%description admin-webapps
828cdb
The host-manager and manager web applications for Apache Tomcat.
828cdb
828cdb
%package docs-webapp
828cdb
Group: Applications/Text
828cdb
Summary: The docs web application for Apache Tomcat
828cdb
Requires: %{name} = %{epoch}:%{version}-%{release}
828cdb
828cdb
%description docs-webapp
828cdb
The docs web application for Apache Tomcat.
828cdb
828cdb
%package javadoc
828cdb
Group: Documentation
828cdb
Summary: Javadoc generated documentation for Apache Tomcat
828cdb
Requires: jpackage-utils
828cdb
828cdb
%description javadoc
828cdb
Javadoc generated documentation for Apache Tomcat.
828cdb
828cdb
%package jsvc
828cdb
Group: System Environment/Daemons
828cdb
Summary: Apache jsvc wrapper for Apache Tomcat as separate service
828cdb
Requires: %{name} = %{epoch}:%{version}-%{release}
828cdb
Requires: apache-commons-daemon-jsvc
828cdb
828cdb
%description jsvc
828cdb
Systemd service and wrapper scripts to start tomcat with jsvc,
828cdb
which allows tomcat to perform some privileged operations
828cdb
(e.g. bind to a port < 1024) and then switch identity to a non-privileged user.
828cdb
828cdb
%package jsp-%{jspspec}-api
828cdb
Group: Development/Libraries
828cdb
Summary: Apache Tomcat JSP API implementation classes
828cdb
Provides: jsp = %{jspspec}
828cdb
Provides: jsp22
828cdb
Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release}
828cdb
Requires(post): chkconfig
828cdb
Requires(postun): chkconfig
828cdb
828cdb
%description jsp-%{jspspec}-api
828cdb
Apache Tomcat JSP API implementation classes.
828cdb
828cdb
%package lib
828cdb
Group: Development/Libraries
828cdb
Summary: Libraries needed to run the Tomcat Web container
828cdb
Requires: %{name}-jsp-%{jspspec}-api = %{epoch}:%{version}-%{release}
828cdb
Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release}
828cdb
Requires: %{name}-el-%{elspec}-api = %{epoch}:%{version}-%{release}
828cdb
Requires: ecj >= 1:4.2.1
828cdb
Requires: apache-commons-collections
828cdb
Requires: apache-commons-dbcp
828cdb
Requires: apache-commons-pool
828cdb
Requires(preun): coreutils
828cdb
828cdb
%description lib
828cdb
Libraries needed to run the Tomcat Web container.
828cdb
828cdb
%package servlet-%{servletspec}-api
828cdb
Group: Development/Libraries
828cdb
Summary: Apache Tomcat Servlet API implementation classes
828cdb
Provides: servlet = %{servletspec}
828cdb
Provides: servlet6
828cdb
Provides: servlet3
828cdb
Requires(post): chkconfig
828cdb
Requires(postun): chkconfig
828cdb
828cdb
%description servlet-%{servletspec}-api
828cdb
Apache Tomcat Servlet API implementation classes.
828cdb
828cdb
%package el-%{elspec}-api
828cdb
Group: Development/Libraries
828cdb
Summary: Expression Language v%{elspec} API
828cdb
Provides: el_1_0_api = %{epoch}:%{version}-%{release}
828cdb
Provides: el_api = %{elspec}
828cdb
Requires(post): chkconfig
828cdb
Requires(postun): chkconfig
828cdb
828cdb
%description el-%{elspec}-api
828cdb
Expression Language %{elspec}.
828cdb
828cdb
%package webapps
828cdb
Group: Applications/Internet
828cdb
Summary: The ROOT and examples web applications for Apache Tomcat
828cdb
Requires: %{name} = %{epoch}:%{version}-%{release}
828cdb
Requires: jakarta-taglibs-standard >= 0:1.1
828cdb
828cdb
%description webapps
828cdb
The ROOT and examples web applications for Apache Tomcat.
828cdb
828cdb
%prep
828cdb
%setup -q -n %{packdname}
828cdb
# remove pre-built binaries and windows files
828cdb
find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "*.gz" -o \
828cdb
   -name "*.jar" -o -name "*.war" -o -name "*.zip" \) -delete
828cdb
828cdb
%patch0 -p0
828cdb
%patch1 -p0
828cdb
%patch2 -p0
828cdb
%patch3 -p0
828cdb
%patch4 -p0
828cdb
%patch5 -p0
828cdb
%patch6 -p0
828cdb
%patch7 -p0
f789b1
%patch8 -p0
d3c23e
%patch9 -p0
949ec7
%patch10 -p0
828cdb
828cdb
%{__ln_s} $(build-classpath jakarta-taglibs-core) webapps/examples/WEB-INF/lib/jstl.jar
828cdb
%{__ln_s} $(build-classpath jakarta-taglibs-standard) webapps/examples/WEB-INF/lib/standard.jar
828cdb
828cdb
%build
828cdb
export OPT_JAR_LIST="xalan-j2-serializer"
828cdb
828cdb
   # we don't care about the tarballs and we're going to replace
828cdb
   # tomcat-dbcp.jar with apache-commons-{collections,dbcp,pool}-tomcat5.jar
828cdb
   # so just create a dummy file for later removal
828cdb
   touch HACK
828cdb
   %{__mkdir_p} HACKDIR
828cdb
   touch HACKDIR/build.xml
828cdb
   # who needs a build.properties file anyway
828cdb
   %{ant} -Dbase.path="." \
828cdb
      -Dbuild.compiler="modern" \
828cdb
      -Dcommons-collections.jar="$(build-classpath apache-commons-collections)" \
828cdb
      -Dcommons-daemon.jar="$(build-classpath apache-commons-daemon)" \
828cdb
      -Dcommons-daemon.native.src.tgz="HACK" \
828cdb
      -Djasper-jdt.jar="$(build-classpath ecj)" \
828cdb
      -Djdt.jar="$(build-classpath ecj)" \
828cdb
      -Dtomcat-dbcp.jar="$(build-classpath apache-commons-dbcp)" \
828cdb
      -Dtomcat-native.tar.gz="HACK" \
828cdb
      -Dtomcat-native.home="." \
828cdb
      -Dcommons-daemon.native.win.mgr.exe="HACK" \
828cdb
      -Dnsis.exe="HACK" \
828cdb
      -Djaxrpc-lib.jar="$(build-classpath jaxrpc)" \
828cdb
      -Dwsdl4j-lib.jar="$(build-classpath wsdl4j)" \
828cdb
      -Dcommons-pool.home="HACKDIR" \
828cdb
      -Dcommons-dbcp.home="HACKDIR" \
828cdb
      -Dno.build.dbcp=true \
828cdb
      -Dversion="%{version}" \
828cdb
      -Dversion.build="%{micro_version}" \
828cdb
      -Djava.7.home=%{java_home} \
828cdb
      deploy dist-prepare dist-source javadoc
828cdb
828cdb
    # remove some jars that we'll replace with symlinks later
828cdb
   %{__rm} output/build/bin/commons-daemon.jar \
828cdb
           output/build/lib/ecj.jar \
828cdb
           output/build/lib/apache-commons-dbcp.jar
828cdb
828cdb
    # remove the cruft we created
828cdb
   %{__rm} output/build/bin/tomcat-native.tar.gz
828cdb
pushd output/dist/src/webapps/docs/appdev/sample/src
828cdb
%{__mkdir_p} ../web/WEB-INF/classes
828cdb
%{javac} -cp ../../../../../../../../output/build/lib/servlet-api.jar -d ../web/WEB-INF/classes mypackage/Hello.java
828cdb
pushd ../web
828cdb
%{jar} cf ../../../../../../../../output/build/webapps/docs/appdev/sample/sample.war *
828cdb
popd
828cdb
popd
828cdb
828cdb
# inject OSGi manifests
828cdb
mkdir -p META-INF
828cdb
cp -p %{SOURCE8} META-INF/MANIFEST.MF
828cdb
touch META-INF/MANIFEST.MF
828cdb
zip -u output/build/lib/servlet-api.jar META-INF/MANIFEST.MF
828cdb
cp -p %{SOURCE9} META-INF/MANIFEST.MF
828cdb
touch META-INF/MANIFEST.MF
828cdb
zip -u output/build/lib/jsp-api.jar META-INF/MANIFEST.MF
828cdb
cp -p %{SOURCE12} META-INF/MANIFEST.MF
828cdb
touch META-INF/MANIFEST.MF
828cdb
zip -u output/build/lib/el-api.jar META-INF/MANIFEST.MF
828cdb
cp -p %{SOURCE13} META-INF/MANIFEST.MF
828cdb
touch META-INF/MANIFEST.MF
828cdb
zip -u output/build/lib/jasper-el.jar META-INF/MANIFEST.MF
828cdb
cp -p %{SOURCE14} META-INF/MANIFEST.MF
828cdb
touch META-INF/MANIFEST.MF
828cdb
zip -u output/build/lib/jasper.jar META-INF/MANIFEST.MF
828cdb
cp -p %{SOURCE15} META-INF/MANIFEST.MF
828cdb
touch META-INF/MANIFEST.MF
828cdb
zip -u output/build/lib/tomcat-api.jar META-INF/MANIFEST.MF
828cdb
cp -p %{SOURCE16} META-INF/MANIFEST.MF
828cdb
touch META-INF/MANIFEST.MF
828cdb
zip -u output/build/bin/tomcat-juli.jar META-INF/MANIFEST.MF
828cdb
828cdb
%install
828cdb
# build initial path structure
828cdb
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_bindir}
828cdb
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sbindir}
828cdb
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_javadocdir}/%{name}
828cdb
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_initrddir}
828cdb
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_systemddir}
828cdb
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
828cdb
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
828cdb
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{appdir}
828cdb
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{bindir}
828cdb
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}
828cdb
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}/Catalina/localhost
828cdb
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}/conf.d
828cdb
/bin/echo "Place your custom *.conf files here. Shell expansion is supported." > ${RPM_BUILD_ROOT}%{confdir}/conf.d/README
828cdb
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{libdir}
828cdb
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{logdir}
828cdb
/bin/touch ${RPM_BUILD_ROOT}%{logdir}/catalina.out
828cdb
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{_localstatedir}/lib/tomcats
828cdb
/bin/echo "%{name}-%{major_version}.%{minor_version}.%{micro_version} RPM installed" >> ${RPM_BUILD_ROOT}%{logdir}/catalina.out
828cdb
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{homedir}
828cdb
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{tempdir}
828cdb
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{workdir}
828cdb
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_unitdir}
828cdb
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_libexecdir}/%{name}
828cdb
828cdb
# move things into place
828cdb
# First copy supporting libs to tomcat lib
828cdb
pushd output/build
828cdb
    %{__cp} -a bin/*.{jar,xml} ${RPM_BUILD_ROOT}%{bindir}
828cdb
    %{__cp} %{SOURCE10} conf/log4j.properties
828cdb
    %{__cp} -a conf/*.{policy,properties,xml} ${RPM_BUILD_ROOT}%{confdir}
828cdb
    %{__cp} -a lib/*.jar ${RPM_BUILD_ROOT}%{libdir}
828cdb
    %{__cp} -a webapps/* ${RPM_BUILD_ROOT}%{appdir}
828cdb
popd
828cdb
# javadoc
828cdb
%{__cp} -a output/dist/webapps/docs/api/* ${RPM_BUILD_ROOT}%{_javadocdir}/%{name}
828cdb
828cdb
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
828cdb
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
828cdb
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE1} \
828cdb
    > ${RPM_BUILD_ROOT}%{confdir}/%{name}.conf
828cdb
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
828cdb
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
828cdb
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE3} \
828cdb
    > ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name}
828cdb
%{__install} -m 0644 %{SOURCE4} \
828cdb
    ${RPM_BUILD_ROOT}%{_sbindir}/%{name}
828cdb
%{__install} -m 0644 %{SOURCE11} \
828cdb
    ${RPM_BUILD_ROOT}%{_unitdir}/%{name}.service
828cdb
%{__install} -m 0644 %{SOURCE20} \
828cdb
    ${RPM_BUILD_ROOT}%{_unitdir}/%{name}-jsvc.service
828cdb
# %{__ln_s} %{name} ${RPM_BUILD_ROOT}%{_sbindir}/d%{name}
828cdb
%{__sed} -e "s|\@\@\@TCLOG\@\@\@|%{logdir}|g" %{SOURCE5} \
828cdb
    > ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name}
828cdb
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
828cdb
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
828cdb
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE6} \
828cdb
    > ${RPM_BUILD_ROOT}%{_bindir}/%{name}-digest
828cdb
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
828cdb
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
828cdb
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE7} \
828cdb
    > ${RPM_BUILD_ROOT}%{_bindir}/%{name}-tool-wrapper
828cdb
828cdb
%{__install} -m 0644 %{SOURCE21} \
828cdb
    ${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/functions         
828cdb
%{__install} -m 0755 %{SOURCE22} \
828cdb
    ${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/preamble          
828cdb
%{__install} -m 0755 %{SOURCE23} \
828cdb
    ${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/server            
828cdb
%{__install} -m 0644 %{SOURCE24} \
828cdb
    ${RPM_BUILD_ROOT}%{_unitdir}/%{name}@.service 
828cdb
828cdb
# create jsp and servlet API symlinks
828cdb
pushd ${RPM_BUILD_ROOT}%{_javadir}
828cdb
   %{__mv} %{name}/jsp-api.jar %{name}-jsp-%{jspspec}-api.jar
828cdb
   %{__ln_s} %{name}-jsp-%{jspspec}-api.jar %{name}-jsp-api.jar
828cdb
   %{__mv} %{name}/servlet-api.jar %{name}-servlet-%{servletspec}-api.jar
828cdb
   %{__ln_s} %{name}-servlet-%{servletspec}-api.jar %{name}-servlet-api.jar
828cdb
   %{__mv} %{name}/el-api.jar %{name}-el-%{elspec}-api.jar
828cdb
   %{__ln_s} %{name}-el-%{elspec}-api.jar %{name}-el-api.jar
828cdb
popd
828cdb
828cdb
pushd output/build
828cdb
    %{_bindir}/build-jar-repository lib apache-commons-collections \
828cdb
                                        apache-commons-dbcp apache-commons-pool ecj 2>&1
828cdb
    # need to use -p here with b-j-r otherwise the examples webapp fails to
828cdb
    # load with a java.io.IOException
828cdb
    %{_bindir}/build-jar-repository -p webapps/examples/WEB-INF/lib \
828cdb
    taglibs-core.jar taglibs-standard.jar 2>&1
828cdb
popd
828cdb
828cdb
pushd ${RPM_BUILD_ROOT}%{libdir}
828cdb
    # symlink JSP and servlet API jars
828cdb
    %{__ln_s} ../%{name}-jsp-%{jspspec}-api.jar .
828cdb
    %{__ln_s} ../%{name}-servlet-%{servletspec}-api.jar .
828cdb
    %{__ln_s} ../%{name}-el-%{elspec}-api.jar .
828cdb
    %{__ln_s} $(build-classpath apache-commons-collections) commons-collections.jar
828cdb
    %{__ln_s} $(build-classpath apache-commons-dbcp) commons-dbcp.jar
828cdb
    %{__ln_s} $(build-classpath apache-commons-pool) commons-pool.jar
828cdb
    %{__ln_s} $(build-classpath log4j) log4j.jar
828cdb
    %{__ln_s} $(build-classpath ecj) jasper-jdt.jar
828cdb
828cdb
    # Temporary copy the juli jar here from /usr/share/java/tomcat (for maven depmap)
828cdb
    %{__cp} -a ${RPM_BUILD_ROOT}%{bindir}/tomcat-juli.jar ./
828cdb
828cdb
    # Add extras JULI jars
828cdb
    %{__mkdir} extras
828cdb
    pushd extras
828cdb
        %{__cp} -p %{SOURCE25} .
828cdb
        %{__cp} -p %{SOURCE26} .
828cdb
    popd
828cdb
popd
828cdb
828cdb
# symlink to the FHS locations where we've installed things
828cdb
pushd ${RPM_BUILD_ROOT}%{homedir}
828cdb
    %{__ln_s} %{appdir} webapps
828cdb
    %{__ln_s} %{confdir} conf
828cdb
    %{__ln_s} %{libdir} lib
828cdb
    %{__ln_s} %{logdir} logs
828cdb
    %{__ln_s} %{tempdir} temp
828cdb
    %{__ln_s} %{workdir} work
828cdb
popd
828cdb
828cdb
# install sample webapp
828cdb
%{__mkdir_p} ${RPM_BUILD_ROOT}%{appdir}/sample
828cdb
pushd ${RPM_BUILD_ROOT}%{appdir}/sample
828cdb
%{jar} xf ${RPM_BUILD_ROOT}%{appdir}/docs/appdev/sample/sample.war
828cdb
popd
828cdb
%{__rm} ${RPM_BUILD_ROOT}%{appdir}/docs/appdev/sample/sample.war
828cdb
828cdb
# Allow linking for example webapp
828cdb
%{__mkdir_p} ${RPM_BUILD_ROOT}%{appdir}/examples/META-INF
828cdb
pushd ${RPM_BUILD_ROOT}%{appdir}/examples/META-INF
828cdb
echo ''>context.xml
828cdb
echo '<Context allowLinking="true"/>'>>context.xml
828cdb
popd
828cdb
828cdb
pushd ${RPM_BUILD_ROOT}%{appdir}/examples/WEB-INF/lib
828cdb
%{__ln_s} -f $(build-classpath jakarta-taglibs-core) jstl.jar
828cdb
%{__ln_s} -f $(build-classpath jakarta-taglibs-standard) standard.jar
828cdb
popd
828cdb
828cdb
828cdb
# Install the maven metadata
828cdb
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_mavenpomdir}
828cdb
pushd output/dist/src/res/maven
828cdb
for pom in *.pom; do
828cdb
    # fix-up version in all pom files
828cdb
    sed -i 's/@MAVEN.DEPLOY.VERSION@/%{version}/g' $pom
828cdb
done
828cdb
828cdb
# we won't install dbcp, juli-adapters and juli-extras pom files
828cdb
for libname in annotations-api catalina jasper-el jasper catalina-ha; do
828cdb
    %{__cp} -a %{name}-$libname.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-$libname.pom
828cdb
    %add_maven_depmap JPP.%{name}-$libname.pom %{name}/$libname.jar
828cdb
done
828cdb
828cdb
# servlet-api jsp-api and el-api are not in tomcat subdir, since they are widely re-used elsewhere
828cdb
%{__cp} -a tomcat-jsp-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP-tomcat-jsp-api.pom
828cdb
%add_maven_depmap JPP-tomcat-jsp-api.pom tomcat-jsp-api.jar -f "tomcat-jsp-api" -a "javax.servlet.jsp:javax.servlet.jsp-api,javax.servlet:jsp-api,org.eclipse.jetty.orbit:javax.servlet.jsp"
828cdb
828cdb
%{__cp} -a tomcat-el-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP-tomcat-el-api.pom
828cdb
%add_maven_depmap JPP-tomcat-el-api.pom tomcat-el-api.jar -f "tomcat-el-api" -a "javax.el:javax.el-api,javax.el:el-api,org.eclipse.jetty.orbit:javax.el"
828cdb
828cdb
%{__cp} -a tomcat-servlet-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP-tomcat-servlet-api.pom
828cdb
# Generate a depmap fragment javax.servlet:servlet-api pointing to
828cdb
# tomcat-servlet-3.0-api for backwards compatibility
828cdb
# also provide jetty depmap (originally in jetty package, but it's cleaner to have it here
828cdb
%add_maven_depmap JPP-tomcat-servlet-api.pom tomcat-servlet-api.jar -f "tomcat-servlet-api" -a "javax.servlet:servlet-api,javax.servlet:javax.servlet-api,org.mortbay.jetty:servlet-api,org.eclipse.jetty.orbit:javax.servlet"
828cdb
828cdb
# two special pom where jar files have different names
828cdb
%{__cp} -a tomcat-tribes.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-catalina-tribes.pom
828cdb
%add_maven_depmap JPP.%{name}-catalina-tribes.pom %{name}/catalina-tribes.jar
828cdb
828cdb
%{__cp} -a tomcat-coyote.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-tomcat-coyote.pom
828cdb
%add_maven_depmap JPP.%{name}-tomcat-coyote.pom %{name}/tomcat-coyote.jar
828cdb
828cdb
%{__cp} -a tomcat-juli.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-tomcat-juli.pom
828cdb
%add_maven_depmap JPP.%{name}-tomcat-juli.pom %{name}/tomcat-juli.jar
828cdb
828cdb
%{__cp} -a tomcat-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-tomcat-api.pom
828cdb
%add_maven_depmap JPP.%{name}-tomcat-api.pom %{name}/tomcat-api.jar
828cdb
828cdb
%{__cp} -a tomcat-util.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-tomcat-util.pom
828cdb
%add_maven_depmap JPP.%{name}-tomcat-util.pom %{name}/tomcat-util.jar
828cdb
828cdb
# replace temporary copy with link
828cdb
%{__ln_s} -f %{bindir}/tomcat-juli.jar ${RPM_BUILD_ROOT}%{libdir}/
828cdb
828cdb
828cdb
%pre
828cdb
# add the tomcat user and group
828cdb
getent group tomcat >/dev/null || %{_sbindir}/groupadd -f -g %{tcuid} -r tomcat
828cdb
if ! getent passwd tomcat >/dev/null ; then
828cdb
    if ! getent passwd %{tcuid} >/dev/null ; then
828cdb
        %{_sbindir}/useradd -r -u %{tcuid} -g tomcat -d %{homedir} -s /sbin/nologin -c "Apache Tomcat" tomcat
828cdb
        # Tomcat uses a reserved ID, so there should never be an else
828cdb
    fi
828cdb
fi
828cdb
exit 0
828cdb
828cdb
%post
828cdb
# install but don't activate
828cdb
%systemd_post %{name}.service
828cdb
828cdb
%post jsp-%{jspspec}-api
828cdb
%{_sbindir}/update-alternatives --install %{_javadir}/jsp.jar jsp \
828cdb
    %{_javadir}/%{name}-jsp-%{jspspec}-api.jar 20200
828cdb
828cdb
%post servlet-%{servletspec}-api
828cdb
%{_sbindir}/update-alternatives --install %{_javadir}/servlet.jar servlet \
828cdb
    %{_javadir}/%{name}-servlet-%{servletspec}-api.jar 30000
828cdb
828cdb
%post el-%{elspec}-api
828cdb
%{_sbindir}/update-alternatives --install %{_javadir}/elspec.jar elspec \
828cdb
   %{_javadir}/%{name}-el-%{elspec}-api.jar 20300
828cdb
828cdb
%preun
828cdb
# clean tempdir and workdir on removal or upgrade
828cdb
%{__rm} -rf %{workdir}/* %{tempdir}/*
828cdb
%systemd_preun %{name}.service
828cdb
828cdb
%postun
828cdb
%systemd_postun_with_restart %{name}.service 
828cdb
828cdb
%postun jsp-%{jspspec}-api
828cdb
if [ "$1" = "0" ]; then
828cdb
    %{_sbindir}/update-alternatives --remove jsp \
828cdb
        %{_javadir}/%{name}-jsp-%{jspspec}-api.jar
828cdb
fi
828cdb
828cdb
%postun servlet-%{servletspec}-api
828cdb
if [ "$1" = "0" ]; then
828cdb
    %{_sbindir}/update-alternatives --remove servlet \
828cdb
        %{_javadir}/%{name}-servlet-%{servletspec}-api.jar
828cdb
fi
828cdb
828cdb
%postun el-%{elspec}-api
828cdb
if [ "$1" = "0" ]; then
828cdb
    %{_sbindir}/update-alternatives --remove elspec \
828cdb
        %{_javadir}/%{name}-el-%{elspec}-api.jar
828cdb
fi
828cdb
828cdb
%triggerun -- tomcat < 0:7.0.22-2
828cdb
/usr/bin/systemd-sysv-convert -- save tomcat > /dev/null 2>&1 || :
828cdb
# Run these becasue the SysV package being removed won't do them
828cdb
/sbin/chkconfig --del tomcat > /dev/null 2>&1 || :
828cdb
/bin/systemctl try-restart tomcat.service > /dev/null 2>&1 || :
828cdb
828cdb
%files
828cdb
%defattr(0664,root,tomcat,0755)
828cdb
%doc {LICENSE,NOTICE,RELEASE*}
828cdb
%attr(0755,root,root) %{_bindir}/%{name}-digest
828cdb
%attr(0755,root,root) %{_bindir}/%{name}-tool-wrapper
828cdb
%attr(0755,root,root) %{_sbindir}/%{name}
828cdb
%attr(0644,root,root) %{_unitdir}/%{name}.service
828cdb
%attr(0644,root,root) %{_unitdir}/%{name}@.service
828cdb
%attr(0755,root,root) %dir %{_libexecdir}/%{name}
828cdb
%attr(0755,root,root) %dir %{_localstatedir}/lib/tomcats
828cdb
%attr(0644,root,root) %{_libexecdir}/%{name}/functions
828cdb
%attr(0755,root,root) %{_libexecdir}/%{name}/preamble
828cdb
%attr(0755,root,root) %{_libexecdir}/%{name}/server
828cdb
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
828cdb
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
828cdb
%attr(0755,root,tomcat) %dir %{basedir}
828cdb
%attr(0755,root,tomcat) %dir %{confdir}
828cdb
828cdb
%defattr(0664,tomcat,root,0770)
828cdb
%attr(0770,tomcat,root) %dir %{logdir}
828cdb
828cdb
%defattr(0664,root,tomcat,0770)
828cdb
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
828cdb
%attr(0770,root,tomcat) %dir %{cachedir}
828cdb
%attr(0770,root,tomcat) %dir %{tempdir}
828cdb
%attr(0770,root,tomcat) %dir %{workdir}
828cdb
828cdb
%defattr(0644,root,tomcat,0775)
828cdb
%attr(0775,root,tomcat) %dir %{appdir}
828cdb
%attr(0775,root,tomcat) %dir %{confdir}/Catalina
828cdb
%attr(0775,root,tomcat) %dir %{confdir}/Catalina/localhost
828cdb
%attr(0755,root,tomcat) %dir %{confdir}/conf.d
828cdb
%{confdir}/conf.d/README
828cdb
%config(noreplace) %{confdir}/%{name}.conf
828cdb
%config(noreplace) %{confdir}/*.policy
828cdb
%config(noreplace) %{confdir}/*.properties
828cdb
%config(noreplace) %{confdir}/context.xml
828cdb
%config(noreplace) %{confdir}/server.xml
828cdb
%attr(0640,root,tomcat) %config(noreplace) %{confdir}/tomcat-users.xml
828cdb
%config(noreplace) %{confdir}/web.xml
828cdb
%dir %{homedir}
828cdb
%{bindir}/bootstrap.jar
828cdb
%{bindir}/catalina-tasks.xml
828cdb
%{homedir}/lib
828cdb
%{homedir}/temp
828cdb
%{homedir}/webapps
828cdb
%{homedir}/work
828cdb
%{homedir}/logs
828cdb
%{homedir}/conf
828cdb
828cdb
%files admin-webapps
828cdb
%defattr(0664,root,tomcat,0755)
828cdb
%{appdir}/host-manager
828cdb
%{appdir}/manager
828cdb
%config(noreplace) %{appdir}/manager/WEB-INF/web.xml
828cdb
%config(noreplace) %{appdir}/host-manager/WEB-INF/web.xml
828cdb
828cdb
%files docs-webapp
828cdb
%defattr(-,root,root,-)
828cdb
%{appdir}/docs
828cdb
828cdb
%files javadoc
828cdb
%defattr(-,root,root,-)
828cdb
%{_javadocdir}/%{name}
828cdb
828cdb
%files jsp-%{jspspec}-api
828cdb
%defattr(-,root,root,-)
828cdb
%{_javadir}/%{name}-jsp-%{jspspec}*.jar
828cdb
%{_javadir}/%{name}-jsp-api.jar
828cdb
%{_mavenpomdir}/JPP-%{name}-jsp-api.pom
828cdb
%{_mavendepmapfragdir}/%{name}-tomcat-jsp-api
828cdb
828cdb
%files lib
828cdb
%defattr(-,root,root,-)
828cdb
%{libdir}
828cdb
%{bindir}/tomcat-juli.jar
828cdb
%{_mavendepmapfragdir}/%{name}
828cdb
%{_mavenpomdir}/JPP.%{name}-annotations-api.pom
828cdb
%{_mavenpomdir}/JPP.%{name}-catalina-ha.pom
828cdb
%{_mavenpomdir}/JPP.%{name}-catalina-tribes.pom
828cdb
%{_mavenpomdir}/JPP.%{name}-catalina.pom
828cdb
%{_mavenpomdir}/JPP.%{name}-jasper-el.pom
828cdb
%{_mavenpomdir}/JPP.%{name}-jasper.pom
828cdb
%{_mavenpomdir}/JPP.%{name}-tomcat-api.pom
828cdb
%{_mavenpomdir}/JPP.%{name}-tomcat-juli.pom
828cdb
%{_mavenpomdir}/JPP.%{name}-tomcat-coyote.pom
828cdb
%{_mavenpomdir}/JPP.%{name}-tomcat-util.pom
828cdb
828cdb
%exclude %{libdir}/%{name}-el-%{elspec}-api.jar
828cdb
828cdb
%files servlet-%{servletspec}-api
828cdb
%defattr(-,root,root,-)
828cdb
%doc LICENSE
828cdb
%{_javadir}/%{name}-servlet-%{servletspec}*.jar
828cdb
%{_javadir}/%{name}-servlet-api.jar
828cdb
%{_mavendepmapfragdir}/%{name}-tomcat-servlet-api
828cdb
%{_mavenpomdir}/JPP-%{name}-servlet-api.pom
828cdb
828cdb
%files el-%{elspec}-api
828cdb
%defattr(-,root,root,-)
828cdb
%doc LICENSE
828cdb
%{_javadir}/%{name}-el-%{elspec}-api.jar
828cdb
%{_javadir}/%{name}-el-api.jar
828cdb
%{libdir}/%{name}-el-%{elspec}-api.jar
828cdb
%{_mavenpomdir}/JPP-%{name}-el-api.pom
828cdb
%{_mavendepmapfragdir}/%{name}-tomcat-el-api
828cdb
828cdb
828cdb
%files webapps
828cdb
%defattr(0644,tomcat,tomcat,0755)
828cdb
%{appdir}/ROOT
828cdb
%{appdir}/examples
828cdb
%{appdir}/sample
828cdb
828cdb
%files jsvc
828cdb
%defattr(755,root,root,0755)
828cdb
%attr(0644,root,root) %{_unitdir}/%{name}-jsvc.service
828cdb
828cdb
%changelog
949ec7
* Tue Feb 12 2019 Coty Sutherland <csutherl@redhat.com> 0:7.0.76-9
949ec7
- Resolves: rhbz#1641873 CVE-2018-11784 tomcat: Open redirect in default servlet
d3c23e
949ec7
* Fri Oct 12 2018 Coty Sutherland <csutherl@redhat.com> 0:7.0.76-8
949ec7
- Resolves: rhbz#1608607 CVE-2018-1336 tomcat: A bug in the UTF 8 decoder can lead to DoS
949ec7
949ec7
* Tue Jul 24 2018 Jean-Frederic Clere <jclere@redhat.com> 0:7.0.76-7
949ec7
- Resolves: rhbz#1602060 Deadlock occurs while sending to a closing session
f789b1
828cdb
* Wed Nov 08 2017 Coty Sutherland <csutherl@redhat.com> 0:7.0.76-6
828cdb
- Related: rhbz#1505762 Remove erroneous useradd
828cdb
828cdb
* Tue Nov 07 2017 Coty Sutherland <csutherl@redhat.com> 0:7.0.76-5
828cdb
- Resolves: rhbz#1485453 man page uid and gid mismatch for service accounts
828cdb
- Resolves: rhbz#1505762 Problem to start tomcat with a user whose group has a name different to the user
828cdb
828cdb
* Mon Nov 06 2017 Coty Sutherland <csutherl@redhat.com> 0:7.0.76-3
828cdb
- Resolves: rhbz#1498343 CVE-2017-12615 CVE-2017-12617 tomcat: various flaws
828cdb
- Resolves: rhbz#1495655 CVE-2017-7674 tomcat: Vary header not added by CORS filter leading to cache poisoning
828cdb
- Resolves: rhbz#1470597 CVE-2017-5647 Add follow up revision
828cdb
828cdb
* Thu Jun 08 2017 Coty Sutherland <csutherl@redhat.com> 0:7.0.76-2
828cdb
- Resolves: rhbz#1459747 CVE-2017-5664 tomcat: Security constrained bypass in error page mechanism
828cdb
- Resolves: rhbz#1441481 CVE-2017-5647 tomcat: Incorrect handling of pipelined requests when send file was used
828cdb
828cdb
* Wed Mar 29 2017 Coty Sutherland <csutherl@redhat.com> - 0:7.0.76-1
828cdb
- Resolves: rhbz#1414895 Rebase tomcat to the current release
828cdb
828cdb
* Thu Aug 25 2016 Coty Sutherland <csutherl@redhat.com> - 0:7.0.69-10
828cdb
- Related: rhbz#1368122
828cdb
828cdb
* Tue Aug 23 2016 Coty Sutherland <csutherl@redhat.com> - 0:7.0.69-9
828cdb
- Resolves: rhbz#1362213 Tomcat: CGI sets environmental variable based on user supplied Proxy request header
828cdb
- Resolves: rhbz#1368122
828cdb
828cdb
* Wed Aug 03 2016 Coty Sutherland <csutherl@redhat.com> - 0:7.0.69-7
828cdb
- Resolves: rhbz#1362545
828cdb
828cdb
* Fri Jul 08 2016 Coty Sutherland <csutherl@redhat.com> - 0:7.0.69-6
828cdb
- Related: rhbz#1201409 Added /etc/sysconfig/tomcat to the systemd unit for tomcat-jsvc.service
828cdb
828cdb
* Fri Jul 01 2016 Coty Sutherland <csutherl@redhat.com> - 0:7.0.69-5
828cdb
- Resolves: rhbz#1347860 The systemd service unit does not allow tomcat to shut down gracefully
828cdb
828cdb
* Mon Jun 27 2016 Coty Sutherland <csutherl@redhat.com> - 0:7.0.69-4
828cdb
- Resolves: rhbz#1350438 CVE-2016-3092 tomcat: Usage of vulnerable FileUpload package can result in denial of service
828cdb
828cdb
* Fri Jun 17 2016 Coty Sutherland <csutherl@redhat.com> - 0:7.0.69-3
828cdb
- Resolves: rhbz#1347774 The security manager doesn't work correctly (JSPs cannot be compiled)
828cdb
828cdb
* Tue Jun 07 2016 Coty Sutherland <csutherl@redhat.com> - 0:7.0.69-2
828cdb
- Rebase Resolves: rhbz#1311622 Getting NoSuchElementException while handling attributes with empty string value in tomcat
828cdb
- Rebase Resolves: rhbz#1320853 Add HSTS support
828cdb
- Rebase Resolves: rhbz#1293292 CVE-2014-7810 tomcat: Tomcat/JBossWeb: security manager bypass via EL expressions
828cdb
- Rebase Resolves: rhbz#1347144 CVE-2016-0706 tomcat: security manager bypass via StatusManagerServlet
828cdb
- Rebase Resolves: rhbz#1347139 CVE-2015-5346 tomcat: Session fixation
828cdb
- Rebase Resolves: rhbz#1347136 CVE-2015-5345 tomcat: directory disclosure
828cdb
- Rebase Resolves: rhbz#1347129 CVE-2015-5174 tomcat: URL Normalization issue
828cdb
- Rebase Resolves: rhbz#1347146 CVE-2016-0763 tomcat: security manager bypass via setGlobalContext()
828cdb
- Rebase Resolves: rhbz#1347142 CVE-2016-0714 tomcat: Security Manager bypass via persistence mechanisms
828cdb
- Rebase Resolves: rhbz#1347133 CVE-2015-5351 tomcat: CSRF token leak
828cdb
828cdb
* Mon Jun 06 2016 Coty Sutherland <csutherl@redhat.com> - 0:7.0.69-1
828cdb
- Resolves: rhbz#1287928 Rebase to tomcat 7.0.69
828cdb
- Resolves: rhbz#1327326 rpm -V tomcat fails on /var/log/tomcat/catalina.out
828cdb
- Resolves: rhbz#1277197 tomcat user has non-existing default shell set
828cdb
- Resolves: rhbz#1240279 The command tomcat-digest doesn't work with RHEL 7
828cdb
- Resolves: rhbz#1229476 Tomcat startup ONLY options
828cdb
- Resolves: rhbz#1133070 Need to include full implementation of tomcat-juli.jar and tomcat-juli-adapters.jar
828cdb
- Resolves: rhbz#1201409 Fix the broken tomcat-jsvc service unit
828cdb
- Resolves: rhbz#1221896 tomcat.service loads /etc/sysconfig/tomcat without shell expansion
828cdb
- Resolves: rhbz#1208402 Mark web.xml in tomcat-admin-webapps as config file
828cdb
828cdb
* Tue Mar 24 2015 David Knox <dknox@redhat.com> - 0:7.0.54-2
828cdb
- Resolves: CVE-2014-0227
828cdb
828cdb
* Wed Sep 17 2014 David Knox <dknox@redhat.com> - 0:7.0.54-1
828cdb
- Resolves: rhbz#1141372 - Remove systemv artifacts. Add new systemd 
828cdb
- artifacts. Rebase on 7.0.54.
828cdb
828cdb
* Wed Jun 18 2014 David Knox <dknox@redhat.com> - 0:7.0.43-6
828cdb
- Resolves: CVE-2014-0099
828cdb
- Resolves: CVE-2014-0096
828cdb
- Resolves: CVE-2014-0075
828cdb
828cdb
* Wed Apr 16 2014 David Knox <dknox@redhat.com> - 0:7.0.42-5
828cdb
- Related: CVE-2013-4286
828cdb
- Related: CVE-2013-4322
828cdb
- Related: CVE-2014-0050
828cdb
- revisit patches for above. 
828cdb
828cdb
* Thu Mar 20 2014 David Knox <dknox@redhat.com> - 0:7.0.42-4
828cdb
- Related: rhbz#1056696 correct packaging for sbin tomcat
828cdb
828cdb
* Thu Mar 20 2014 David Knox <dknox@redhat.com> - 0:7.0.42-3
828cdb
- Related: CVE-2013-4286. increment build number. missed doing
828cdb
- it. 
828cdb
- Resolves: rhbz#1038183 remove BR for ant-nodeps. it's
828cdb
- no long used.
828cdb
828cdb
* Wed Jan 22 2014 David Knox <dknox@redhat.com> - 0:7.0.42-2
828cdb
- Resolves: rhbz#1056673 Invocation of useradd with shell
828cdb
- other than sbin nologin
828cdb
- Resolves: rhbz#1056677 preun systemv scriptlet unconditionally
828cdb
- stops service
828cdb
- Resolves: rhbz#1056696 init.d tomcat does not conform to RHEL7
828cdb
- systemd rules. systemv subpackage is removed.
828cdb
- Resolves: CVE-2013-4286
828cdb
- Resolves: CVE-2013-4322
828cdb
- Resolves: CVE-2014-0050
828cdb
- Built for rhel-7 RC
828cdb
828cdb
* Tue Jan 21 2014 David Knox <dknox@redhat.com> - 0:7.0.42-1
828cdb
- Resolves: rhbz#1051657 update to 7.0.42. Ant-nodeps is
828cdb
- deprecated.
828cdb
828cdb
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 07.0.40-3
828cdb
- Mass rebuild 2013-12-27
828cdb
828cdb
* Sat May 11 2013 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.40-1
828cdb
- Updated to 7.0.40
828cdb
- Resolves: rhbz 956569 added missing commons-pool link
828cdb
828cdb
* Mon Mar  4 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:7.0.37-2
828cdb
- Add depmaps for org.eclipse.jetty.orbit
828cdb
- Resolves: rhbz#917626
828cdb
828cdb
* Wed Feb 20 2013 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.39-1
828cdb
- Updated to 7.0.39
828cdb
828cdb
* Wed Feb 20 2013 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.37-1
828cdb
- Updated to 7.0.37
828cdb
828cdb
* Mon Feb 4 2013 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.35-1
828cdb
- Updated to 7.0.35
828cdb
- systemd SuccessExitStatus=143 for proper stop exit code processing
828cdb
828cdb
* Mon Dec 24 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.34-1
828cdb
- Updated to 7.0.34
828cdb
- ecj >= 4.2.1 now required
828cdb
- Resolves: rhbz 889395 concat classpath correctly; chdir to $CATALINA_HOME
828cdb
828cdb
* Fri Dec 7 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.33-2
828cdb
- Resolves: rhbz 883806 refix logdir ownership 
828cdb
828cdb
* Sun Dec 2 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.33-1
828cdb
- Updated to 7.0.33
828cdb
- Resolves: rhbz 873620 need chkconfig for update-alternatives
828cdb
828cdb
* Wed Oct 17 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.32-1
828cdb
- Updated to 7.0.32
828cdb
- Resolves: rhbz 842620 symlinks to taglibs
828cdb
828cdb
* Fri Aug 24 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.29-1
828cdb
- Updated to 7.0.29
828cdb
- Add pidfile as tmpfile
828cdb
- Use systemd for running as unprivileged user
828cdb
- Resolves: rhbz 847751 upgrade path was broken
828cdb
- Resolves: rhbz 850343 use new systemd-rpm macros
828cdb
828cdb
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:7.0.28-2
828cdb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
828cdb
828cdb
* Mon Jul 2 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.28-1
828cdb
- Updated to 7.0.28
828cdb
- Resolves: rhbz 820119 Remove bundled apache-commons-dbcp
828cdb
- Resolves: rhbz 814900 Added tomcat-coyote POM
828cdb
- Resolves: rhbz 810775 Remove systemv stuff from %post scriptlet
828cdb
- Remove redhat-lsb R 
828cdb
828cdb
* Mon Apr 9 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.27-2
828cdb
- Fixed native download hack
828cdb
828cdb
* Sat Apr 7 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.27-1
828cdb
- Updated to 7.0.27
828cdb
- Fixed jakarta-taglibs-standard BR and R
828cdb
828cdb
* Wed Mar 21 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:7.0.26-2
828cdb
- Add more depmaps to J2EE apis to help jetty/glassfish updates
828cdb
828cdb
* Wed Mar 14 2012 Juan Hernandez <juan.hernandez@redhat.com> 0:7.0.26-2
828cdb
- Added the POM files for tomcat-api and tomcat-util (#803495)
828cdb
828cdb
* Wed Feb 22 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.26-1
828cdb
- Updated to 7.0.26
828cdb
- Bug 790334: Change ownership of logdir for logrotate
828cdb
828cdb
* Thu Feb 16 2012 Krzysztof Daniel <kdaniel@redhat.com> 0:7.0.25-4
828cdb
- Bug 790694: Priorities of jsp, servlet and el packages updated.
828cdb
828cdb
* Wed Feb 8 2012 Krzysztof Daniel <kdaniel@redhat.com> 0:7.0.25-3
828cdb
- Dropped indirect dependecy to tomcat 5
828cdb
828cdb
* Sun Jan 22 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.25-2
828cdb
- Added hack for maven depmap of tomcat-juli absolute link [ -f ] pass correctly
828cdb
828cdb
* Sat Jan 21 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.25-1
828cdb
- Updated to 7.0.25
828cdb
- Removed EntityResolver patch (changes already in upstream sources)
828cdb
- Place poms and depmaps in the same package as jars
828cdb
- Added javax.servlet.descriptor to export-package of servlet-api
828cdb
- Move several chkconfig actions and reqs to systemv subpackage
828cdb
- New maven depmaps generation method
828cdb
- Add patch to support java7. (patch sent upstream).
828cdb
- Require java >= 1:1.6.0
828cdb
828cdb
* Fri Jan 13 2012 Krzysztof Daniel <kdaniel@redhat.com> 0:7.0.23-5
828cdb
- Exported javax.servlet.* packages in version 3.0 as 2.6 to make
828cdb
  servlet-api compatible with Eclipse.
828cdb
828cdb
* Thu Jan 12 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.23-4
828cdb
- Move jsvc support to subpackage
828cdb
828cdb
* Wed Jan 11 2012 Alexander Kurtakov <akurtako@redhat.com> 0:7.0.23-2
828cdb
- Add EntityResolver setter patch to jasper for jetty's need. (patch sent upstream).
828cdb
828cdb
* Mon Dec 12 2011 Joseph D. Wagner <joe@josephdwagner.info> 0:7.0.23-3
828cdb
- Added support to /usr/sbin/tomcat-sysd and /usr/sbin/tomcat for
828cdb
  starting tomcat with jsvc, which allows tomcat to perform some
828cdb
  privileged operations (e.g. bind to a port < 1024) and then switch
828cdb
  identity to a non-privileged user. Must add USE_JSVC="true" to
828cdb
  /etc/tomcat/tomcat.conf or /etc/sysconfig/tomcat.
828cdb
828cdb
* Mon Nov 28 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.23-1
828cdb
- Updated to 7.0.23
828cdb
828cdb
* Fri Nov 11 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.22-2
828cdb
- Move tomcat-juli.jar to lib package
828cdb
- Drop %%update_maven_depmap as in tomcat6
828cdb
- Provide native systemd unit file ported from tomcat6
828cdb
828cdb
* Thu Oct 6 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.22-1
828cdb
- Updated to 7.0.22
828cdb
828cdb
* Mon Oct 03 2011 Rex Dieter <rdieter@fedoraproject.org> - 0:7.0.21-3.1
828cdb
- rebuild (java), rel-eng#4932
828cdb
828cdb
* Mon Sep 26 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.21-3
828cdb
- Fix basedir mode
828cdb
828cdb
* Tue Sep 20 2011 Roland Grunberg <rgrunber@redhat.com> 0:7.0.21-2
828cdb
- Add manifests for el-api, jasper-el, jasper, tomcat, and tomcat-juli.
828cdb
828cdb
* Thu Sep 8 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.21-1
828cdb
- Updated to 7.0.21
828cdb
828cdb
* Mon Aug 15 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.20-3
828cdb
- Require java = 1:1.6.0
828cdb
828cdb
* Mon Aug 15 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.20-2
828cdb
- Require java < 1.7.0
828cdb
828cdb
* Mon Aug 15 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.20-1
828cdb
- Updated to 7.0.20
828cdb
828cdb
* Tue Jul 26 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.19-1
828cdb
- Updated to 7.0.19
828cdb
828cdb
* Tue Jun 21 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.16-1
828cdb
- Updated to 7.0.16
828cdb
828cdb
* Mon Jun 6 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.14-3
828cdb
- Added initial systemd service
828cdb
- Fix some paths
828cdb
828cdb
* Sat May 21 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.14-2
828cdb
- Fixed http source link
828cdb
- Securify some permissions
828cdb
- Added licenses for el-api and servlet-api
828cdb
- Added dependency on jpackage-utils for the javadoc subpackage
828cdb
828cdb
* Sat May 14 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.14-1
828cdb
- Updated to 7.0.14
828cdb
828cdb
* Thu May 5 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.12-4
828cdb
- Provided local paths for libs
828cdb
- Fixed dependencies
828cdb
- Fixed update temp/work cleanup
828cdb
828cdb
* Mon May 2 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.12-3
828cdb
- Fixed package groups
828cdb
- Fixed some permissions
828cdb
- Fixed some links
828cdb
- Removed old tomcat6 crap
828cdb
828cdb
* Thu Apr 28 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.12-2
828cdb
- Package now named just tomcat instead of tomcat7
828cdb
- Removed Provides:  %{name}-log4j
828cdb
- Switched to apache-commons-* names instead of jakarta-commons-* .
828cdb
- Remove the old changelog
828cdb
- BR/R java >= 1:1.6.0 , same for java-devel
828cdb
- Removed old tomcat6 crap
828cdb
828cdb
* Wed Apr 27 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.12-1
828cdb
- Tomcat7