Blame SPECS/pki-servlet-engine.spec

37323f
# Copyright (c) 2000-2008, JPackage Project
37323f
# All rights reserved.
37323f
#
37323f
# Redistribution and use in source and binary forms, with or without
37323f
# modification, are permitted provided that the following conditions
37323f
# are met:
37323f
#
37323f
# 1. Redistributions of source code must retain the above copyright
37323f
#    notice, this list of conditions and the following disclaimer.
37323f
# 2. Redistributions in binary form must reproduce the above copyright
37323f
#    notice, this list of conditions and the following disclaimer in the
37323f
#    documentation and/or other materials provided with the
37323f
#    distribution.
37323f
# 3. Neither the name of the JPackage Project nor the names of its
37323f
#    contributors may be used to endorse or promote products derived
37323f
#    from this software without specific prior written permission.
37323f
#
37323f
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
37323f
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
37323f
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37323f
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
37323f
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
37323f
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
37323f
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
37323f
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37323f
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37323f
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37323f
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37323f
#
37323f
37323f
%global major_version 9
37323f
%global minor_version 0
9a1c5c
%global micro_version 50
9a1c5c
%global redhat_version 00006
37323f
%global packdname apache-tomcat-%{version}.redhat-%{redhat_version}-src
37323f
37323f
# Specification versions
37323f
%global servletspec 4.0
37323f
%global jspspec 2.3
37323f
%global elspec 3.0
37323f
37323f
%global tcuid 91
37323f
37323f
# FHS 2.3 compliant tree structure - http://www.pathname.com/fhs/2.3/
37323f
%global basedir %{_var}/lib/tomcat
37323f
%global appdir %{basedir}/webapps
37323f
%global homedir %{_datadir}/tomcat
37323f
%global bindir %{homedir}/bin
37323f
%global confdir %{_sysconfdir}/tomcat
37323f
%global libdir %{_javadir}/tomcat
37323f
%global logdir %{_var}/log/tomcat
37323f
%global cachedir %{_var}/cache/tomcat
37323f
%global tempdir %{cachedir}/temp
37323f
%global workdir %{cachedir}/work
37323f
%global _initrddir %{_sysconfdir}/init.d
37323f
%global _systemddir /lib/systemd/system
37323f
37323f
Name:          pki-servlet-engine
37323f
Epoch:         1
37323f
Version:       %{major_version}.%{minor_version}.%{micro_version}
9a1c5c
Release:       1%{?dist}
37323f
Summary:       Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
37323f
Group:         System Environment/Daemons
37323f
License:       ASL 2.0
37323f
URL:           http://tomcat.apache.org/
37323f
37323f
#Source0:       http://www.apache.org/dist/tomcat/tomcat-%%{major_version}/v%%{version}/src/%%{packdname}.tar.gz
37323f
Source0:       tomcat-%{version}.redhat-%{redhat_version}-src.zip
37323f
Source1:       tomcat-%{major_version}.%{minor_version}.conf
37323f
Source3:       tomcat-%{major_version}.%{minor_version}.sysconfig
37323f
Source4:       tomcat-%{major_version}.%{minor_version}.wrapper
37323f
Source6:       tomcat-%{major_version}.%{minor_version}-digest.script
37323f
Source7:       tomcat-%{major_version}.%{minor_version}-tool-wrapper.script
37323f
Source8:       tomcat-%{major_version}.%{minor_version}.service
37323f
Source21:      tomcat-functions
37323f
Source30:      tomcat-preamble
37323f
Source31:      tomcat-server
37323f
Source32:      tomcat-named.service
37323f
37323f
Patch0:        tomcat-%{major_version}.%{minor_version}-bootstrap-MANIFEST.MF.patch
37323f
Patch1:        tomcat-%{major_version}.%{minor_version}-tomcat-users-webapp.patch
9a1c5c
Patch2:        tomcat-%{major_version}.%{minor_version}-catalina-policy.patch
9a1c5c
Patch3:        removeUnusedDependencies.patch
37323f
37323f
BuildArch:     noarch
37323f
37323f
BuildRequires: ant
37323f
BuildRequires: findutils
37323f
BuildRequires: java-devel >= 1:1.8.0
37323f
BuildRequires: jpackage-utils >= 0:1.7.0
37323f
BuildRequires: maven-local
37323f
BuildRequires: systemd-units
37323f
37323f
Requires:      ant
37323f
Requires:      java-headless >= 1:1.8.0
37323f
Requires:      java-devel >= 1:1.8.0
37323f
Requires:      jpackage-utils
37323f
Requires:      procps
37323f
Requires(pre):    shadow-utils
37323f
Requires(post):   chkconfig
37323f
Requires(postun): chkconfig
37323f
Requires(preun):  chkconfig
37323f
Requires(post):   systemd-units
37323f
Requires(preun):  systemd-units
37323f
Requires(postun): systemd-units
37323f
Requires(preun): coreutils
37323f
Requires: pki-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release}
37323f
37323f
# Add bundled so that everyone knows this is Tomcat
1a2fab
Provides: bundled(tomcat) = 9.0.30.redhat-%{redhat_version}
37323f
37323f
Obsoletes:        pki-servlet-container
37323f
37323f
%description
37323f
Tomcat is the servlet engine that is used in the official Reference
37323f
Implementation for the Java Servlet and JavaServer Pages technologies.
37323f
The Java Servlet and JavaServer Pages specifications are developed by
37323f
Sun under the Java Community Process.
37323f
37323f
Tomcat is developed in an open and participatory environment and
37323f
released under the Apache Software License version 2.0. Tomcat is intended
37323f
to be a collaboration of the best-of-breed developers from around the world.
37323f
37323f
%package -n pki-servlet-%{servletspec}-api
37323f
Group: Development/Libraries
37323f
Summary: Apache Tomcat Java Servlet v%{servletspec} API Implementation Classes
37323f
Requires(post): chkconfig
37323f
Requires(postun): chkconfig
37323f
37323f
%description -n pki-servlet-%{servletspec}-api
37323f
Apache Tomcat Servlet API Implementation Classes.
37323f
37323f
%prep
37323f
%setup -q -n %{packdname}
37323f
37323f
# remove pre-built binaries and windows files
37323f
find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "*.gz" -o \
37323f
   -name "*.jar" -o -name "*.war" -o -name "*.zip" \) -delete
37323f
37323f
%patch0 -p0
37323f
%patch1 -p0
37323f
%patch2 -p0
37323f
%patch3 -p0
37323f
37323f
# Since we don't support ECJ in RHEL anymore, remove the class that requires it
37323f
%{__rm} -f java/org/apache/jasper/compiler/JDTCompiler.java
37323f
37323f
%build
37323f
export OPT_JAR_LIST="xalan-j2-serializer"
37323f
37323f
# Create a dummy file for later removal
37323f
touch HACK
37323f
37323f
# who needs a build.properties file anyway
37323f
%{ant} -Dbase.path="." \
37323f
  -Dbuild.compiler="modern" \
37323f
  -Dcommons-daemon.jar="HACK" \
37323f
  -Dcommons-daemon.native.src.tgz="HACK" \
37323f
  -Djdt.jar="HACK" \
37323f
  -Dtomcat-native.tar.gz="HACK" \
37323f
  -Dtomcat-native.home="." \
37323f
  -Dcommons-daemon.native.win.mgr.exe="HACK" \
37323f
  -Dnsis.exe="HACK" \
37323f
  deploy dist-prepare dist-source
37323f
37323f
# remove some jars that we don't need
1a2fab
#%%{__rm} output/build/bin/commons-daemon.jar
37323f
37323f
%install
37323f
# build initial path structure
37323f
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_bindir}
37323f
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sbindir}
37323f
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_initrddir}
37323f
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_systemddir}
37323f
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
37323f
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{appdir}
37323f
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{bindir}
37323f
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}
37323f
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}/Catalina/localhost
37323f
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}/conf.d
37323f
/bin/echo "Place your custom *.conf files here. Shell expansion is supported." > ${RPM_BUILD_ROOT}%{confdir}/conf.d/README
37323f
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{libdir}
37323f
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{logdir}
37323f
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{_localstatedir}/lib/tomcats
37323f
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{homedir}
37323f
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{tempdir}
37323f
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{workdir}
37323f
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_unitdir}
37323f
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_libexecdir}/tomcat
37323f
37323f
# move things into place
37323f
# First copy supporting libs to tomcat lib
37323f
pushd output/build
37323f
    %{__cp} -a bin/*.{jar,xml} ${RPM_BUILD_ROOT}%{bindir}
37323f
    %{__cp} -a conf/*.{policy,properties,xml,xsd} ${RPM_BUILD_ROOT}%{confdir}
37323f
    %{__cp} -a lib/*.jar ${RPM_BUILD_ROOT}%{libdir}
37323f
popd
37323f
37323f
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
37323f
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
37323f
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE1} \
37323f
    > ${RPM_BUILD_ROOT}%{confdir}/tomcat.conf
37323f
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
37323f
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
37323f
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE3} \
37323f
    > ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/tomcat
37323f
%{__install} -m 0644 %{SOURCE4} \
37323f
    ${RPM_BUILD_ROOT}%{_sbindir}/tomcat
37323f
%{__install} -m 0644 %{SOURCE8} \
37323f
    ${RPM_BUILD_ROOT}%{_unitdir}/tomcat.service
37323f
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
37323f
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
37323f
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE6} \
37323f
    > ${RPM_BUILD_ROOT}%{_bindir}/tomcat-digest
37323f
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
37323f
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
37323f
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE7} \
37323f
    > ${RPM_BUILD_ROOT}%{_bindir}/tomcat-tool-wrapper
37323f
37323f
%{__install} -m 0644 %{SOURCE21} \
37323f
    ${RPM_BUILD_ROOT}%{_libexecdir}/tomcat/functions
37323f
%{__install} -m 0755 %{SOURCE30} \
37323f
    ${RPM_BUILD_ROOT}%{_libexecdir}/tomcat/preamble
37323f
%{__install} -m 0755 %{SOURCE31} \
37323f
    ${RPM_BUILD_ROOT}%{_libexecdir}/tomcat/server
37323f
%{__install} -m 0644 %{SOURCE32} \
37323f
    ${RPM_BUILD_ROOT}%{_unitdir}/tomcat@.service
37323f
37323f
# Substitute libnames in catalina-tasks.xml
37323f
sed -i \
37323f
   "s,el-api.jar,tomcat-el-%{elspec}-api.jar,;
37323f
    s,servlet-api.jar,tomcat-servlet-%{servletspec}-api.jar,;
37323f
    s,jsp-api.jar,tomcat-jsp-%{jspspec}-api.jar,;" \
37323f
    ${RPM_BUILD_ROOT}%{bindir}/catalina-tasks.xml
37323f
37323f
# create jsp and servlet API symlinks
37323f
pushd ${RPM_BUILD_ROOT}%{_javadir}
37323f
   %{__mv} tomcat/jsp-api.jar tomcat-jsp-%{jspspec}-api.jar
37323f
   %{__ln_s} tomcat-jsp-%{jspspec}-api.jar tomcat-jsp-api.jar
37323f
   %{__mv} tomcat/servlet-api.jar tomcat-servlet-%{servletspec}-api.jar
37323f
   %{__ln_s} tomcat-servlet-%{servletspec}-api.jar tomcat-servlet-api.jar
37323f
   %{__mv} tomcat/el-api.jar tomcat-el-%{elspec}-api.jar
37323f
   %{__ln_s} tomcat-el-%{elspec}-api.jar tomcat-el-api.jar
37323f
popd
37323f
37323f
pushd ${RPM_BUILD_ROOT}%{libdir}
37323f
    # symlink JSP and servlet API jars
37323f
    %{__ln_s} ../../java/tomcat-jsp-%{jspspec}-api.jar .
37323f
    %{__ln_s} ../../java/tomcat-servlet-%{servletspec}-api.jar .
37323f
    %{__ln_s} ../../java/tomcat-el-%{elspec}-api.jar .
37323f
37323f
    # Temporary copy the juli jar here from /usr/share/java/tomcat (for maven depmap)
37323f
    %{__cp} -a ${RPM_BUILD_ROOT}%{bindir}/tomcat-juli.jar ./
37323f
popd
37323f
37323f
# symlink to the FHS locations where we've installed things
37323f
pushd ${RPM_BUILD_ROOT}%{homedir}
37323f
    %{__ln_s} %{appdir} webapps
37323f
    %{__ln_s} %{confdir} conf
37323f
    %{__ln_s} %{libdir} lib
37323f
    %{__ln_s} %{logdir} logs
37323f
    %{__ln_s} %{tempdir} temp
37323f
    %{__ln_s} %{workdir} work
37323f
popd
37323f
37323f
# Install the maven metadata
37323f
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_mavenpomdir}
37323f
pushd output/dist/src/res/maven
37323f
for pom in *.pom; do
37323f
    # fix-up version in all pom files
37323f
    sed -i 's/@MAVEN.DEPLOY.VERSION@/%{version}/g' $pom
37323f
done
37323f
37323f
# we won't install dbcp, juli-adapters and juli-extras pom files
37323f
for libname in annotations-api catalina jasper-el jasper catalina-ha; do
37323f
    %{__cp} -a tomcat-$libname.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-$libname.pom
37323f
    %add_maven_depmap JPP.tomcat-$libname.pom tomcat/$libname.jar
37323f
done
37323f
37323f
# tomcat-util-scan
37323f
%{__cp} -a tomcat-util-scan.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-util-scan.pom
37323f
%add_maven_depmap JPP.tomcat-util-scan.pom tomcat/tomcat-util-scan.jar
37323f
37323f
# tomcat-jni
37323f
%{__cp} -a tomcat-jni.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-jni.pom
37323f
%add_maven_depmap JPP.tomcat-jni.pom tomcat/tomcat-jni.jar
37323f
37323f
# servlet-api jsp-api and el-api are not in tomcat subdir, since they are widely re-used elsewhere
37323f
%{__cp} -a tomcat-jsp-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP-tomcat-jsp-api.pom
37323f
%add_maven_depmap JPP-tomcat-jsp-api.pom tomcat-jsp-api.jar -a "org.eclipse.jetty.orbit:javax.servlet.jsp"
37323f
37323f
%{__cp} -a tomcat-el-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP-tomcat-el-api.pom
37323f
%add_maven_depmap JPP-tomcat-el-api.pom tomcat-el-api.jar -a "org.eclipse.jetty.orbit:javax.el"
37323f
37323f
%{__cp} -a tomcat-servlet-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP-tomcat-servlet-api.pom
37323f
# Generate a depmap fragment javax.servlet:servlet-api pointing to
37323f
# tomcat-servlet-3.0-api for backwards compatibility
37323f
# also provide jetty depmap (originally in jetty package, but it's cleaner to have it here
37323f
%add_maven_depmap JPP-tomcat-servlet-api.pom tomcat-servlet-%{servletspec}-api.jar -f "tomcat-servlet-api"
37323f
37323f
# replace temporary copy with link
37323f
%{__ln_s} -f $(abs2rel %{bindir}/tomcat-juli.jar %{libdir}) ${RPM_BUILD_ROOT}%{libdir}/
37323f
37323f
# two special pom where jar files have different names
37323f
%{__cp} -a tomcat-tribes.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-catalina-tribes.pom
37323f
%add_maven_depmap JPP.tomcat-catalina-tribes.pom tomcat/catalina-tribes.jar
37323f
37323f
%{__cp} -a tomcat-coyote.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-tomcat-coyote.pom
37323f
%add_maven_depmap JPP.tomcat-tomcat-coyote.pom tomcat/tomcat-coyote.jar
37323f
37323f
%{__cp} -a tomcat-juli.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-tomcat-juli.pom
37323f
%add_maven_depmap JPP.tomcat-tomcat-juli.pom tomcat/tomcat-juli.jar
37323f
37323f
%{__cp} -a tomcat-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-tomcat-api.pom
37323f
%add_maven_depmap JPP.tomcat-tomcat-api.pom tomcat/tomcat-api.jar
37323f
37323f
%{__cp} -a tomcat-util.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-tomcat-util.pom
37323f
%add_maven_depmap JPP.tomcat-tomcat-util.pom tomcat/tomcat-util.jar
37323f
37323f
%{__cp} -a tomcat-jdbc.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-tomcat-jdbc.pom
37323f
%add_maven_depmap JPP.tomcat-tomcat-jdbc.pom tomcat/tomcat-jdbc.jar
37323f
37323f
# tomcat-websocket-api
37323f
%{__cp} -a tomcat-websocket-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-websocket-api.pom
37323f
%add_maven_depmap JPP.tomcat-websocket-api.pom tomcat/websocket-api.jar
37323f
37323f
# tomcat-tomcat-websocket
37323f
%{__cp} -a tomcat-websocket.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-tomcat-websocket.pom
37323f
%add_maven_depmap JPP.tomcat-tomcat-websocket.pom tomcat/tomcat-websocket.jar
37323f
37323f
# tomcat-jaspic-api
37323f
%{__cp} -a tomcat-jaspic-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-jaspic-api.pom
37323f
%add_maven_depmap JPP.tomcat-jaspic-api.pom tomcat/jaspic-api.jar
37323f
37323f
# Manually change the metadata filenames
37323f
%{__mv} ${RPM_BUILD_ROOT}%{_datadir}/maven-metadata/%{name}.xml ${RPM_BUILD_ROOT}%{_datadir}/maven-metadata/tomcat.xml
37323f
%{__mv} ${RPM_BUILD_ROOT}%{_datadir}/maven-metadata/%{name}-tomcat-servlet-api.xml ${RPM_BUILD_ROOT}%{_datadir}/maven-metadata/tomcat-servlet-api.xml
37323f
37323f
%pre
37323f
# add the tomcat user and group
37323f
%{_sbindir}/groupadd -g %{tcuid} -r tomcat 2>/dev/null || :
37323f
%{_sbindir}/useradd -c "Apache Tomcat" -u %{tcuid} -g tomcat \
37323f
    -s /sbin/nologin -r -d %{homedir} tomcat 2>/dev/null || :
37323f
37323f
%post
37323f
# install but don't activate
37323f
%systemd_post tomcat.service
37323f
37323f
# Collapse all of the alternatives installations into one
37323f
%{_sbindir}/update-alternatives --install %{_javadir}/jsp.jar jsp \
37323f
    %{_javadir}/tomcat-jsp-%{jspspec}-api.jar 20200
37323f
%{_sbindir}/update-alternatives --install %{_javadir}/servlet.jar servlet \
37323f
    %{_javadir}/tomcat-servlet-%{servletspec}-api.jar 30000
37323f
%{_sbindir}/update-alternatives --install %{_javadir}/elspec.jar elspec \
37323f
   %{_javadir}/tomcat-el-%{elspec}-api.jar 20300
37323f
37323f
%preun
37323f
# clean tempdir and workdir on removal or upgrade
37323f
%{__rm} -rf %{workdir}/* %{tempdir}/*
37323f
%systemd_preun tomcat.service
37323f
37323f
%postun
37323f
%systemd_postun_with_restart tomcat.service
37323f
37323f
# Collapse all of the alternatives removals into one
37323f
if [ "$1" = "0" ]; then
37323f
    %{_sbindir}/update-alternatives --remove jsp \
37323f
        %{_javadir}/tomcat-jsp-%{jspspec}-api.jar
37323f
    %{_sbindir}/update-alternatives --remove servlet \
37323f
        %{_javadir}/tomcat-servlet-%{servletspec}-api.jar
37323f
    %{_sbindir}/update-alternatives --remove elspec \
37323f
        %{_javadir}/tomcat-el-%{elspec}-api.jar
37323f
fi
37323f
37323f
%files 
37323f
%defattr(0664,root,tomcat,0755)
37323f
%doc {LICENSE,NOTICE,RELEASE*}
37323f
%attr(0755,root,root) %{_bindir}/tomcat-digest
37323f
%attr(0755,root,root) %{_bindir}/tomcat-tool-wrapper
37323f
%attr(0755,root,root) %{_sbindir}/tomcat
37323f
%attr(0644,root,root) %{_unitdir}/tomcat.service
37323f
%attr(0644,root,root) %{_unitdir}/tomcat@.service
37323f
%attr(0755,root,root) %dir %{_libexecdir}/tomcat
37323f
%attr(0755,root,root) %dir %{_localstatedir}/lib/tomcats
37323f
%attr(0644,root,root) %{_libexecdir}/tomcat/functions
37323f
%attr(0755,root,root) %{_libexecdir}/tomcat/preamble
37323f
%attr(0755,root,root) %{_libexecdir}/tomcat/server
37323f
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/tomcat
37323f
%attr(0755,root,tomcat) %dir %{basedir}
37323f
%attr(0755,root,tomcat) %dir %{confdir}
37323f
37323f
%defattr(0664,tomcat,root,0770)
37323f
%attr(0770,tomcat,root) %dir %{logdir}
37323f
37323f
%defattr(0664,root,tomcat,0770)
37323f
%attr(0770,root,tomcat) %dir %{cachedir}
37323f
%attr(0770,root,tomcat) %dir %{tempdir}
37323f
%attr(0770,root,tomcat) %dir %{workdir}
37323f
37323f
%defattr(0644,root,tomcat,0775)
37323f
%attr(0775,root,tomcat) %dir %{appdir}
37323f
%attr(0775,root,tomcat) %dir %{confdir}/Catalina
37323f
%attr(0775,root,tomcat) %dir %{confdir}/Catalina/localhost
37323f
%attr(0755,root,tomcat) %dir %{confdir}/conf.d
37323f
%{confdir}/conf.d/README
37323f
%config(noreplace) %{confdir}/tomcat.conf
37323f
%config(noreplace) %{confdir}/*.policy
37323f
%config(noreplace) %{confdir}/*.properties
37323f
%config(noreplace) %{confdir}/context.xml
37323f
%config(noreplace) %{confdir}/server.xml
37323f
%attr(0640,root,tomcat) %config(noreplace) %{confdir}/tomcat-users.xml
37323f
%attr(0664,root,tomcat) %{confdir}/tomcat-users.xsd
37323f
%attr(0664,root,tomcat) %config(noreplace) %{confdir}/jaspic-providers.xml
37323f
%attr(0664,root,tomcat) %{confdir}/jaspic-providers.xsd
37323f
%config(noreplace) %{confdir}/web.xml
37323f
%dir %{homedir}
37323f
%{bindir}/bootstrap.jar
37323f
%{bindir}/catalina-tasks.xml
37323f
%{homedir}/lib
37323f
%{homedir}/temp
37323f
%{homedir}/webapps
37323f
%{homedir}/work
37323f
%{homedir}/logs
37323f
%{homedir}/conf
37323f
37323f
%defattr(-,root,root,-)
37323f
%dir %{libdir}
37323f
%{libdir}/*.jar
37323f
%{_javadir}/*.jar
37323f
%{bindir}/tomcat-juli.jar
37323f
%{_mavenpomdir}/JPP.tomcat-annotations-api.pom
37323f
%{_mavenpomdir}/JPP.tomcat-catalina-ha.pom
37323f
%{_mavenpomdir}/JPP.tomcat-catalina-tribes.pom
37323f
%{_mavenpomdir}/JPP.tomcat-catalina.pom
37323f
%{_mavenpomdir}/JPP.tomcat-jasper-el.pom
37323f
%{_mavenpomdir}/JPP.tomcat-jasper.pom
37323f
%{_mavenpomdir}/JPP.tomcat-tomcat-api.pom
37323f
%{_mavenpomdir}/JPP.tomcat-tomcat-juli.pom
37323f
%{_mavenpomdir}/JPP.tomcat-tomcat-coyote.pom
37323f
%{_mavenpomdir}/JPP.tomcat-tomcat-util.pom
37323f
%{_mavenpomdir}/JPP.tomcat-tomcat-jdbc.pom
37323f
%{_mavenpomdir}/JPP.tomcat-websocket-api.pom
37323f
%{_mavenpomdir}/JPP.tomcat-tomcat-websocket.pom
37323f
%{_mavenpomdir}/JPP.tomcat-jaspic-api.pom
37323f
%{_mavenpomdir}/JPP.tomcat-jni.pom
37323f
%{_mavenpomdir}/JPP.tomcat-util-scan.pom
37323f
%{_mavenpomdir}/JPP-tomcat-jsp-api.pom
37323f
%{_mavenpomdir}/JPP-tomcat-el-api.pom
37323f
%{_datadir}/maven-metadata/tomcat.xml
37323f
%exclude %{_javadir}/tomcat-servlet-%{servletspec}*.jar
37323f
37323f
%files -n pki-servlet-%{servletspec}-api
37323f
%defattr(-,root,root,-)
37323f
%doc LICENSE
37323f
%{_javadir}/tomcat-servlet-%{servletspec}*.jar
37323f
%{_datadir}/maven-metadata/tomcat-servlet-api.xml
37323f
%{_mavenpomdir}/JPP-tomcat-servlet-api.pom
37323f
37323f
%changelog
9a1c5c
* Fri Mar 04 2022 Coty Sutherland <csutherl@redhat.com> - 1:9.0.50-1
9a1c5c
- Update to JWS 5.6.1 distribution
9a1c5c
- Resolves: rhbz#2057162 Rebase pki-servlet-engine to 9.0.50
9a1c5c
42a374
* Fri Jun 11 2021 Coty Sutherland <csutherl@redhat.com> - 1:9.0.30-3
42a374
- Reverts: rhbz#1969366 as it causes other issues
42a374
42a374
* Tue Jun 08 2021 Coty Sutherland <csutherl@redhat.com> - 1:9.0.30-2
42a374
- Resolves: rhbz#1969366 CA instance installation fails with error message
42a374
1a2fab
* Thu Apr 23 2020 Coty Sutherland <csutherl@redhat.com> - 1:9.0.30-1
1a2fab
- Resolves: rhbz#1721684 Rebase pki-servlet-engine to 9.0.30
1a2fab
- Update to JWS 5.3.0 distribution
1a2fab
- Remove new dependencies that PKI doesn't need (and are not provided by RHEL 8)
1a2fab
37323f
* Fri May 31 2019 Endi S. Dewata <edewata@redhat.com> - 1:9.0.7-16
37323f
- Obsoleted pki-servlet-container
37323f
37323f
* Tue Apr 23 2019 Endi S. Dewata <edewata@redhat.com> - 1:9.0.7-15
37323f
- Rename pki-servlet-container into pki-servlet-engine
37323f
37323f
* Mon Mar 04 2019 Coty Sutherland <csutherl@redhat.com> - 1:9.0.7-14
37323f
- Update to JWS 5.0.2 distribution
37323f
- Resolves: rhbz#1658846 CVE-2018-8034 pki-servlet-container: tomcat: host name verification missing in WebSocket client
37323f
- Resolves: rhbz#1579614 CVE-2018-8014 pki-servlet-container: tomcat: Insecure defaults in CORS filter enable 'supportsCredentials' for all origins
37323f
- Resolves: rhbz#1619232 - CVE-2018-8037 pki-servlet-container: tomcat: Due to a mishandling of close in NIO/NIO2 connectors user sessions can get mixed up
37323f
- Resolves: rhbz#1641874 - CVE-2018-11784 pki-servlet-container: tomcat: Open redirect in default servlet
37323f
37323f
* Fri Aug 03 2018 Fraser Tweedale <ftweedal@redhat.com> - 1:9.0.7-13
37323f
- Reinstate Maven artifacts and fix maven-metadata JAR path
37323f
37323f
* Fri Jul 20 2018 Jean-Frederic Clere <jclere@redhat.com> - 1:9.0.7-12
37323f
- Add missing BuildRequires: systemd-units
37323f
37323f
* Fri Jun 22 2018 Coty Sutherland <csutherl@redhat.com> - 1:9.0.7-11
37323f
- Resolves: rhbz#1594139 Cleanup Provides and Requires
37323f
37323f
* Thu Jun 07 2018 Coty Sutherland <csutherl@redhat.com> - 1:9.0.7-10
37323f
- Create packages for FreeIPA that wrap the JWS distribution of Tomcat