# Copyright (c) 2000-2008, JPackage Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the # distribution. # 3. Neither the name of the JPackage Project nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # If you want only apis to be built, # give rpmbuild option '--with apisonly' %define with_apisonly %{?_with_apisonly:1}%{!?_with_apisonly:0} %define without_apisonly %{!?_with_apisonly:1}%{?_with_apisonly:0} %define with_adminapps %{?_with_adminapps:1}%{!?_with_adminapps:0} %define without_adminapps %{!?_with_adminapps:1}%{?_with_adminapps:0} # If you don't want direct ecj support to be built in, # while ecj isn't available, give rpmbuild option '--without ecj' %define without_ecj %{?_without_ecj:1}%{!?_without_ecj:0} %define with_ecj %{!?_without_ecj:1}%{?_without_ecj:0} %define full_jname jasper5 %define jname jasper %define majversion 5.5 %define minversion 31 %define servletspec 2.4 %define jspspec 2.0 %define tcuid 91 %define packdname apache-tomcat-%{version}-src # FHS 2.2 compliant tree structure # see http://www.pathname.com/fhs/2.2/ %define confdir %{_sysconfdir}/%{name} # normally this would be _localstatedir instead of _var, see changelog %define logdir %{_var}/log/%{name} %define homedir %{_datadir}/%{name} %define bindir %{_datadir}/%{name}/bin %define tempdir %{_var}/cache/%{name}/temp %define workdir %{_var}/cache/%{name}/work %define appdir %{_var}/lib/%{name}/webapps %define serverdir %{_var}/lib/%{name}/server %define commondir %{_var}/lib/%{name}/common %define shareddir %{_var}/lib/%{name}/shared %define _initrddir %{_sysconfdir}/init.d Name: tomcat5 Epoch: 0 Version: %{majversion}.%{minversion} Release: %mkrel 14 Summary: Apache Servlet/JSP Engine, RI for Servlet 2.4/JSP 2.0 API Group: Development/Java License: ASL 2.0 URL: http://tomcat.apache.org Source0: http://www.apache.org/dist/tomcat/tomcat-5/v%{version}/src/%{packdname}.tar.gz Source1: %{name}-%{majversion}.init Source2: %{name}-%{majversion}.conf Source3: %{name}-%{majversion}.wrapper Source4: %{name}-%{majversion}.logrotate Source5: %{name}-%{majversion}.relink Source6: %{name}-poms-%{version}.tar.bz2 #Source6: %{name}-poms-%{version}.tar.bz2 Source7: jasper-OSGi-MANIFEST.MF Source8: servlet-api-OSGi-MANIFEST.MF Source9: jsp-api-OSGi-MANIFEST.MF Patch0: %{name}-%{majversion}.link_admin_jar.patch Patch1: %{name}-%{majversion}-skip-build-on-install.patch Patch2: %{name}-%{majversion}-jt5-build.patch Patch3: %{name}-%{majversion}-jtc-build.patch Patch4: %{name}-%{majversion}-jtj-build.patch Patch5: %{name}-%{majversion}-javaxssl.patch Patch7: %{name}-%{majversion}-catalina.sh.patch Patch8: %{name}-%{majversion}-jasper.sh.patch Patch9: %{name}-%{majversion}-jspc.sh.patch Patch10: %{name}-%{majversion}-setclasspath.sh.patch Patch12: %{name}-%{majversion}-util-build.patch Patch13: %{name}-%{majversion}-http11-build.patch Patch14: %{name}-%{majversion}-jk-build.patch Patch15: %{name}-%{majversion}-unversioned-commons-logging-jar.patch Patch16: %{name}-%{majversion}-jspc-classpath.patch #FIXME Disable JSP pre-compilation on ppc64, x390x and alpha Patch18: %{name}-%{majversion}-skip-jsp-precompile.patch # XXX: # Seems to be only needed when building with ECJ for java 1.5 since # the default source type for ecj is still 1.4 Patch19: %{name}-%{majversion}-connectors-util-build.patch Patch20: %{name}-%{majversion}-nonative.patch Patch21: disable-adminwebapp.patch Patch22: apache-tomcat-5.5.31-ecj4.patch Patch100: tomcat5-CVE-2011-0013.patch Patch101: tomcat5-CVE-2011-3190.patch Patch102: tomcat5-CVE-2011-2729.patch Patch103: tomcat5-CVE-2011-2526.patch Patch104: tomcat5-CVE-2011-2204.patch Patch105: tomcat5-CVE-2011-1184.patch Patch106: tomcat5-CVE-2012-0022.patch Patch107: tomcat5-CVE-2012-5885_5886_5887.patch BuildArch: noarch BuildRequires: jpackage-utils >= 0:1.7.4 BuildRequires: java-rpmbuild BuildRequires: java-devel >= 0:1.6.0 BuildRequires: ant >= 0:1.6.5 %if %{without_apisonly} %if %{with_ecj} BuildRequires: ecj >= 0:3.3.1.1 %endif BuildRequires: xalan-j2 BuildRequires: apache-commons-beanutils >= 0:1.7 BuildRequires: apache-commons-collections >= 0:3.1 BuildRequires: apache-commons-daemon >= 0:1.0.1 BuildRequires: apache-commons-dbcp >= 0:1.2.1 BuildRequires: apache-commons-digester >= 0:1.7 BuildRequires: apache-commons-logging >= 0:1.0.4 BuildRequires: apache-commons-fileupload >= 0:1.0 BuildRequires: apache-commons-io >= 0:1.3 BuildRequires: apache-commons-modeler >= 0:2.0 BuildRequires: apache-commons-pool >= 0:1.2 BuildRequires: apache-commons-launcher >= 0:0.9 BuildRequires: apache-commons-el >= 0:1.0 BuildRequires: junit >= 0:3.8.1 BuildRequires: regexp >= 0:1.3 BuildRequires: xerces-j2 >= 0:2.7.1 BuildRequires: zip # xml-commons-apis is needed by Xerces-J2 BuildRequires: xml-commons-jaxp-1.3-apis # FIXME taglibs-standard is not listed in the Tomcat build.properties.default BuildRequires: jakarta-taglibs-standard >= 0:1.1.0 # formerly non-free stuff # jta can be provided by geronimo-jta-version-api BuildRequires: jta # javamail can be provided by classpathx-mail BuildRequires: javamail BuildRequires: mx4j Requires(post): xml-commons-jaxp-1.3-apis # libgcj aot-compiled native libraries Requires(post): jpackage-utils >= 0:1.7.4 Requires(post): coreutils Requires(preun): coreutils Requires(post): chkconfig Requires(preun): chkconfig Requires(post): findutils Requires(preun): findutils Requires(pre): shadow-utils Requires(post): apache-commons-dbcp >= 0:1.2.1 Requires(post): apache-commons-collections >= 0:3.1 Requires(post): apache-commons-pool >= 0:1.2 Requires: apache-commons-logging >= 0:1.0.4 Requires(post): apache-commons-logging >= 0:1.0.4 Requires: javamail Requires(post): javamail %if %{with_ecj} Requires: ecj >= 0:3.3.1.1 Requires(post): ecj >= 0:3.3.1.1 %endif %endif Requires: jpackage-utils >= 0:1.7.4 # xml parsing packages Requires: xerces-j2 >= 0:2.7.1 Requires: xml-commons-jaxp-1.3-apis # jakarta-commons packages Requires: apache-commons-daemon >= 0:1.0.1 Requires(post): apache-commons-daemon >= 0:1.0.1 Requires: apache-commons-launcher >= 0:0.9 # alternatives # And it needs its own API subpackages for running Requires: %{name}-common-lib = %{epoch}:%{version}-%{release} Requires: %{name}-server-lib = %{epoch}:%{version}-%{release} # And it needs its own API subpackages before being installed Requires(post): %{name}-common-lib = %{epoch}:%{version}-%{release} Requires(post): %{name}-server-lib = %{epoch}:%{version}-%{release} %description Tomcat is the servlet container that is used in the official Reference Implementation for the Java Servlet and JavaServer Pages technologies. The Java Servlet and JavaServer Pages specifications are developed by Sun under the Java Community Process. Tomcat is developed in an open and participatory environment and released under the Apache Software License. Tomcat is intended to be a collaboration of the best-of-breed developers from around the world. We invite you to participate in this open development project. To learn more about getting involved, click here. %if %{without_apisonly} %package webapps Group: Development/Java # Replace PreReq Requires(pre): %{name} = %{epoch}:%{version}-%{release} Requires(postun): %{name} = %{epoch}:%{version}-%{release} Requires: jakarta-taglibs-standard >= 0:1.1.0 Summary: Web applications for Apache Tomcat Requires(post): jpackage-utils >= 0:1.7.4 Requires(preun): findutils Requires(preun): coreutils %description webapps Web applications for Apache Tomcat %package admin-webapps Group: Development/Java Summary: Administrative web applications for Apache Tomcat Requires(pre): %{name} = %{epoch}:%{version}-%{release} Requires(postun): %{name} = %{epoch}:%{version}-%{release} %if %{with_adminapps} Requires: struts >= 0:1.2.9 BuildRequires: struts Requires(post): struts %endif Requires(post): jpackage-utils >= 0:1.7.4 Requires(post): findutils Requires(post): apache-commons-beanutils Requires(post): apache-commons-collections Requires(post): apache-commons-digester Requires(post): apache-commons-io Requires(post): apache-commons-fileupload Requires(preun): findutils Requires(preun): coreutils %description admin-webapps The administrative web applications (admin and manager) for Apache Tomcat. %endif %package servlet-%{servletspec}-api Group: Development/Java Requires: %{_sbindir}/update-alternatives Summary: Apache Tomcat Servlet implementation classes Obsoletes: servletapi5 Provides: servlet Provides: servlet5 Provides: servlet24 Provides: servletapi5 Provides: servlet_2_4_api %description servlet-%{servletspec}-api Contains the implementation classes of the Apache Tomcat Servlet API (packages javax.servlet). %package servlet-%{servletspec}-api-javadoc Group: Development/Java Summary: Javadoc generated documentation for %{name}-servlet-%{servletspec}-api Obsoletes: servletapi5-javadoc Provides: servletapi5-javadoc Requires(post): coreutils %description servlet-%{servletspec}-api-javadoc Contains the javadoc generated documentation for the implementation classes of the Apache Tomcat Servlet and JSP APIs (packages javax.servlet). %package jsp-%{jspspec}-api Group: Development/Java Requires: %{_sbindir}/update-alternatives Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release} # We need this to indirectly get rid of legacy jsp included in old # servlet packages (one day we will be able to remove this) # Replace PreReq Requires(pre): %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release} Requires(postun): %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release} Summary: Apache Tomcat Servlet and JSP implementation classes Provides: jsp Provides: jsp_2_0_api %description jsp-%{jspspec}-api Contains the implementation classes of the Apache Tomcat JSP API (packages javax.servlet.jsp). %package jsp-%{jspspec}-api-javadoc Group: Development/Java Summary: Javadoc generated documentation for %{name}-jsp-%{jspspec}-api Requires(post): coreutils %description jsp-%{jspspec}-api-javadoc Contains the javadoc generated documentation for the implementation classes of the Apache Tomcat JSP API (packages javax.servlet.jsp). %if %{without_apisonly} %package common-lib Group: Development/Java Summary: Libraries needed to run the Tomcat Web container (part) Requires: java >= 0:1.6.0 Requires(post): jpackage-utils >= 0:1.7.4 Requires: apache-commons-collections >= 0:3.1 Requires(post): apache-commons-collections >= 0:3.1 Requires: apache-commons-dbcp >= 0:1.2.1 Requires(post): apache-commons-dbcp >= 0:1.2.1 Requires: apache-commons-el >= 0:1.0 Requires(post): apache-commons-el >= 0:1.0 # FIXME commons-pool is not listed in the Tomcat build.properties.default Requires: apache-commons-pool >= 0:1.2 Requires(post): apache-commons-pool >= 0:1.2 %if %{with_ecj} Requires: ecj >= 0:3.3.1.1 Requires(post): ecj >= 0:3.3.1.1 %endif # Other subpackages must go in first Requires(post): %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release} Requires(post): %{name}-jsp-%{jspspec}-api = %{epoch}:%{version}-%{release} Requires(post): %{name}-%{jname} = %{epoch}:%{version}-%{release} Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release} Requires: %{name}-jsp-%{jspspec}-api = %{epoch}:%{version}-%{release} Requires: %{name}-%{jname} = %{epoch}:%{version}-%{release} Requires(post): findutils Requires(preun): findutils Requires(post): coreutils Requires(preun): coreutils %description common-lib Libraries needed to run the Tomcat Web container (part) %package server-lib Group: Development/Java Summary: Libraries needed to run the Tomcat Web container (part) Requires(post): jpackage-utils >= 0:1.7.4 Requires: apache-commons-modeler >= 0:2.0 # Other subpackages must go in first Requires: %{name}-%{jname} = %{epoch}:%{version}-%{release} Requires(post): %{name}-%{jname} = %{epoch}:%{version}-%{release} Requires(post): findutils Requires(preun): findutils Requires(post): coreutils Requires(preun): coreutils %description server-lib Libraries needed to run the Tomcat Web container (part) %package %{jname} Group: Development/Java Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release} Summary: Compiler JARs and associated scripts for %{name} Obsoletes: jasper5 Provides: jasper5 %description %{jname} Compiler JARs and associated scripts for %{name} %package %{jname}-javadoc Group: Development/Java Summary: Javadoc generated documentation for %{name}-%{jname} Obsoletes: jasper5-javadoc Provides: jasper5-javadoc %description %{jname}-javadoc Javadoc for generated documentation %{name}-%{jname} %endif %if %{without_apisonly} %if %{with_ecj} %package jasper-eclipse Group: Development/Java Summary: Jasper OSGi Eclipse plugin %description jasper-eclipse Jasper OSGi Eclipse plugin that contains class files from jasper-compiler, jasper-runtime and ECJ. %endif %endif %prep %{__rm} -rf ${RPM_BUILD_DIR}/%{name}-%{version} %setup -q -c -T -a 0 %setup -q -D -T -a 6 cd %{packdname} %patch0 -p0 %patch1 -p0 #%patch2 -p0 %patch3 -p0 %patch4 -p0 %patch5 -p0 %patch7 -p0 %patch8 -p0 #%patch9 -p0 %patch10 -p0 %patch12 -p0 %patch13 -p0 %patch14 -p0 %patch15 -p0 %patch16 -p0 %{__sed} -i -e 's|\@JAVA_HOME\@|%{java_home}|' build/build.xml %ifarch ppc64 s390x alpha %patch18 -p0 %endif %if %{with_ecj} %patch19 -p0 %endif %patch20 -b .sav %patch22 -p0 %patch100 -p0 %patch101 -p0 %patch102 -p0 %patch103 -p0 %patch104 -p0 %patch105 -p0 %patch106 -p0 %patch107 -p0 %if %{without_ecj} %{__rm} %{jname}/src/share/org/apache/jasper/compiler/JDTCompiler.java %endif #find -type f -name '*.jsp' | xargs -t perl -pi -e 's/<html:html locale="true">/<html:html>/g' mkdir commons-launcher pushd commons-launcher jar xf /usr/share/java/commons-launcher.jar cp LauncherBootstrap.class ../.. popd %if %{without_adminapps} %patch21 -b .noadmin %endif %build # remove pre-built binaries for dir in ${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname} ; do find $dir \( -name "*.jar" -o -name "*.class" \) | xargs -t %{__rm} -f done # build jspapi and servletapi as ant dist will require them later pushd ${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/servletapi pushd jsr154 ant -Dservletapi.build="build" \ -Dservletapi.dist="dist" \ -Dbuild.compiler="modern" dist popd pushd jsr152 ant -Dservletapi.build="build" \ -Dservletapi.dist="dist" \ -Dbuild.compiler="modern" dist popd popd %if %{without_apisonly} # build jasper subpackage pushd ${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/%{jname} %{__cat} > build.properties << EOBP ant.jar=$(build-classpath ant) servlet-api.jar=${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/servletapi/jsr154/dist/lib/servlet-api.jar jsp-api.jar=${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/servletapi/jsr152/dist/lib/jsp-api.jar tools.jar=%{java.home}/lib/tools.jar xerces.jar=$(build-classpath xerces-j2) xercesImpl.jar=$(build-classpath jaxp_parser_impl) xmlParserAPIs.jar=$(build-classpath xml-commons-jaxp-1.3-apis) commons-el.jar=$(build-classpath commons-el) commons-collections.jar=$(build-classpath commons-collections) commons-logging.jar=$(build-classpath commons-logging) commons-daemon.jar=$(build-classpath commons-daemon) junit.jar=$(build-classpath junit) %if %{without_apisonly} jasper-compiler-jdt.jar=$(build-classpath ecj) %endif EOBP ant -Djava.home="%{java_home}" -Dbuild.compiler="modern" javadoc popd # build tomcat 5 pushd ${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/build %{__cat} >> build.properties << EOBP version=%{version} version.build=%{minversion} ant.jar=%{_javadir}/ant.jar ant-launcher.jar=%{_javadir}/ant-launcher.jar jtc.home=${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/connectors/ %{jname}.home=${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/%{jname} commons-beanutils.jar=$(build-classpath commons-beanutils) commons-collections.jar=$(build-classpath commons-collections) commons-daemon.jar=$(build-classpath commons-daemon) commons-dbcp.jar=$(build-classpath commons-dbcp) commons-digester.jar=$(build-classpath commons-digester) commons-el.jar=$(build-classpath commons-el) commons-fileupload.jar=$(build-classpath commons-fileupload) commons-io.jar=$(build-classpath commons-io) commons-launcher.jar=$(build-classpath commons-launcher) commons-launcher.bootstrap.class=${RPM_BUILD_DIR}/%{name}-%{version}/LauncherBootstrap.class commons-logging.jar=$(build-classpath commons-logging) commons-logging-api.jar=$(build-classpath commons-logging-api) commons-modeler.jar=$(build-classpath commons-modeler) commons-pool.jar=$(build-classpath commons-pool) jmx.jar=$(build-classpath mx4j/mx4j-jmx.jar) jmx-remote.jar=$(build-classpath mx4j/mx4j-remote.jar) jmx-tools.jar=$(build-classpath mx4j/mx4j-tools.jar) jmxri.jar=$(build-classpath mx4j/mx4j-jmx.jar) junit.jar=$(build-classpath junit) regexp.jar=$(build-classpath regexp) servlet-api.jar=${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/servletapi/jsr154/dist/lib/servlet-api.jar %if %{without_apisonly} jsp-api.jar=${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/servletapi/jsr152/dist/lib/jsp-api.jar %endif servlet.doc=${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/servletapi/jsr154/dist/docs/api xercesImpl.jar=$(build-classpath jaxp_parser_impl) xml-apis.jar=$(build-classpath xml-commons-jaxp-1.3-apis) %if %{with_adminapps} struts.jar=$(build-classpath struts) struts.lib=%{_datadir}/struts %endif mail.jar=$(build-classpath javamail/mail) jta.jar=$(build-classpath jta) jaas.jar=$(build-classpath jaas) jndi.jar=$(build-classpath jndi) jdbc20ext.jar=$(build-classpath jdbc-stdext) jcert.jar=$(build-classpath jsse/jcert) jnet.jar=$(build-classpath jsse/jnet) jsse.jar=$(build-classpath jsse/jsse) servletapi.build.notrequired=true jspapi.build.notrequired=true EOBP ant -Dbuild.compiler="modern" -Djava.home="%{java_home}" init cp ${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/servletapi/jsr154/dist/lib/servlet-api.jar \ ${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/build/build/common/lib/servlet-api.jar ant -Dbuild.compiler="modern" -Djava.home="%{java_home}" -Djdk1.4.present=true -Dtomcat-dbcp.jar=$(build-classpath commons-dbcp) build popd # build the connectors pushd ${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/connectors # use the JARs created above to build export CLASSPATH="${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/servletapi/jsr154/dist/lib/servlet-api.jar:${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/build/build/server/lib/tomcat-util.jar" %{__cat} > build.properties << EOBP ant.jar=%{_javadir}/ant.jar junit.jar=$(build-classpath junit) commons-beanutils.jar=$(build-classpath commons-beanutils) commons-collections.jar=$(build-classpath commons-collections) commons-daemon.jar=$(build-classpath commons-daemon) commons-digester.jar=$(build-classpath commons-digester) commons-fileupload.jar=$(build-classpath commons-fileupload) commons-io.jar=$(build-classpath commons-io) commons-launcher.jar=$(build-classpath commons-launcher) commons-logging.jar=$(build-classpath commons-logging) commons-logging-api.jar=$(build-classpath commons-logging-api) commons-modeler.jar=$(build-classpath commons-modeler) commons-pool.jar=$(build-classpath commons-pool) regexp.jar=$(build-classpath regexp) jmx.jar=$(build-classpath mx4j/mx4j-jmx) mail.jar=$(build-classpath javamail/mail) jta.jar=$(build-classpath jta) jaas.jar=$(build-classpath jaas) jndi.jar=$(build-classpath jndi) jdbc20ext.jar=$(build-classpath jdbc-stdext) jcert.jar=$(build-classpath jsse/jcert) jnet.jar=$(build-classpath jsse/jnet) jsse.jar=$(build-classpath jsse/jsse) tomcat5.home=../../build/build EOBP ant -Dbuild.compiler="modern" -Djava.home="%{java_home}" build popd %endif %if %{without_apisonly} # create jasper-eclipse jar %if %{with_ecj} mkdir -p org.apache.jasper pushd org.apache.jasper unzip -qq ../apache-tomcat-%{version}-src/build/build/common/lib/jasper-compiler.jar unzip -qq ../apache-tomcat-%{version}-src/build/build/common/lib/jasper-runtime.jar \ -x META-INF/MANIFEST.MF org/apache/jasper/compiler/Localizer.class unzip -qq %{_javadir}/ecj.jar -x META-INF/MANIFEST.MF cp -p %{SOURCE7} META-INF/MANIFEST.MF rm -f plugin.properties plugin.xml about.html jdtCompilerAdapter.jar META-INF/eclipse.inf zip -qq -r ../org.apache.jasper_5.5.17.v200706111724.jar . popd %endif %endif # inject OSGi manifests mkdir -p META-INF cp -p %{SOURCE8} META-INF/MANIFEST.MF touch META-INF/MANIFEST.MF zip -u %{packdname}/servletapi/jsr154/dist/lib/servlet-api.jar META-INF/MANIFEST.MF cp -p %{SOURCE9} META-INF/MANIFEST.MF touch META-INF/MANIFEST.MF %if %{without_apisonly} zip -u %{packdname}/servletapi/jsr152/dist/lib/jsp-api.jar META-INF/MANIFEST.MF %endif %install %{__rm} -rf $RPM_BUILD_ROOT %{__install} -d -m 755 ${RPM_BUILD_ROOT}%{_javadir} %if %{without_apisonly} export CLASSPATH="$(build-classpath xalan-j2 xml-commons-jaxp-1.3-apis jakarta-taglibs-core jakarta-taglibs-standard):${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/servletapi/jsr152/dist/lib/jsp-api.jar:${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/servletapi/jsr154/dist/lib/servlet-api.jar" # build initial path structure %{__install} -d -m 755 \ ${RPM_BUILD_ROOT}{%{confdir},%{logdir},%{homedir},%{bindir}} %{__install} -d -m 755 ${RPM_BUILD_ROOT}{%{serverdir},%{tempdir},%{workdir}} %{__install} -d -m 755 ${RPM_BUILD_ROOT}{%{appdir},%{commondir},%{shareddir}} %{__install} -d -m 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d %{__install} -d -m 755 ${RPM_BUILD_ROOT}%{_initrddir} %{__install} -d -m 755 ${RPM_BUILD_ROOT}%{_bindir} %{__install} -d -m 755 ${RPM_BUILD_ROOT}%{_javadir}/%{name} %{__install} -d -m 755 ${RPM_BUILD_ROOT}%{_mavenpomdir} %{__install} -m 755 %{SOURCE5} ${RPM_BUILD_ROOT}%{bindir}/relink # SysV init and configuration %{__install} -d -m 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig # Service-specific configuration file cat > %{name} << EOT # Service-specific configuration file for %{name} services # This will be sourced by the SysV service script after the global # configuration file /etc/%{name}/%{name}.conf, thus allowing values # to be overridden on a per-service way # # NEVER change the init script itself: # To change values for all services make your changes in # /etc/%{name}/%{name}.conf # To change values for a specific service, change it here # To create a new service, create a link from /etc/init.d/<you new service> to # /etc/init.d/%{name} (do not copy the init script) and make a copy of the # /etc/sysconfig/%{name} file to /etc/sysconfig/<you new service> and change # the property values so the two services won't conflict # Register the new service in the system as usual (see chkconfig and similars) # EOT %{__install} -m 0644 %{name} ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name} %{__rm} %{name} %{__install} %{SOURCE1} \ ${RPM_BUILD_ROOT}%{_initrddir}/%{name} # Global configuration file %{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{confdir} %{__cat} > %{name}.conf << EOT # System-wide configuration file for %{name} services # This will be sourced by %{name} and any secondary service # Values will be overridden by service-specific configuration # files in /etc/sysconfig # Use this one to change default values for all services # Change the service specific ones to affect only one service # (see, for instance, /etc/sysconfig/%{name}) # EOT %{__cat} %{SOURCE2} >> %{name}.conf %{__install} -m 0644 %{name}.conf ${RPM_BUILD_ROOT}%{confdir}/%{name}.conf %{__rm} -f %{name}.conf pushd ${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/build export usejikes="false" export OPT_JAR_LIST="ant/ant-nodeps xalan-j2-serializer" ant -Dbuild.compiler="modern" -Djava.home=%{java_home} -Djasper-compiler-jdt.jar=%{_javadir}/ecj.jar -Dtomcat-dbcp.jar=$(build-classpath commons-dbcp) dist pushd dist %{__mv} bin/* ${RPM_BUILD_ROOT}%{bindir} %{__mv} common/* ${RPM_BUILD_ROOT}%{commondir} %{__mv} conf/* ${RPM_BUILD_ROOT}%{confdir} %{__mv} server/* ${RPM_BUILD_ROOT}%{serverdir} %{__mv} shared/* ${RPM_BUILD_ROOT}%{shareddir} %{__mv} webapps/* ${RPM_BUILD_ROOT}%{appdir} popd popd # rename catalina.sh into dtomcat5 to let wrapper take precedence %{__install} ${RPM_BUILD_ROOT}%{bindir}/catalina.sh \ ${RPM_BUILD_ROOT}%{_bindir}/d%{name} %{__rm} -f ${RPM_BUILD_ROOT}%{bindir}/catalina.sh.* \ ${RPM_BUILD_ROOT}%{bindir}/setclasspath.* # Remove leftover files %{__rm} -f ${RPM_BUILD_ROOT}%{bindir}/*.orig # install wrapper as tomcat5 %{__install} %{SOURCE3} ${RPM_BUILD_ROOT}%{_bindir}/%{name} # install logrotate support %{__install} %{SOURCE4} ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name} # remove / reorder non-usefull stuff %{__rm} -rf ${RPM_BUILD_ROOT}%{homedir}/src/ %{__rm} -f ${RPM_BUILD_ROOT}%{bindir}/*.sh ${RPM_BUILD_ROOT}%{bindir}/*.bat # FHS compliance patches, not easy to track them all boys :) for i in ${RPM_BUILD_ROOT}%{confdir}/%{name}.conf \ ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name} \ ${RPM_BUILD_ROOT}%{_bindir}/d%{name} \ ${RPM_BUILD_ROOT}%{_bindir}/%{name} \ ${RPM_BUILD_ROOT}%{_initrddir}/%{name} \ ${RPM_BUILD_ROOT}%{bindir}/relink \ ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name}; do %{__sed} -i \ -e 's|\@\@\@LIBDIR\@\@\@|%{_libdir}|g' \ -e 's|\@\@\@TCCONF\@\@\@|%{confdir}|g' \ -e "s|\@\@\@TCCONF\@\@\@|%{confdir}|g" \ -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \ -e "s|\@\@\@TCBIN\@\@\@|%{bindir}|g" \ -e "s|\@\@\@TCCOMMON\@\@\@|%{commondir}|g" \ -e "s|\@\@\@TCSERVER\@\@\@|%{serverdir}|g" \ -e "s|\@\@\@TCSHARED\@\@\@|%{shareddir}|g" \ -e "s|\@\@\@TCAPP\@\@\@|%{appdir}|g" \ -e "s|\@\@\@TCLOG\@\@\@|%{logdir}|g" $i done %add_to_maven_depmap tomcat tomcat-parent %{version} JPP/%{name} parent %{__install} -m 644 \ ${RPM_BUILD_DIR}/%{name}-%{version}/tomcat5-poms/tomcat-parent-%{version}.pom \ $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-parent.pom # Process bin # Remove local JARs (to be replaced with jpp links in post) pushd ${RPM_BUILD_ROOT}%{bindir} # tomcat-juli will be installed in a public repository %{__mv} tomcat-juli.jar \ ${RPM_BUILD_ROOT}%{_javadir}/%{name}/tomcat-juli-%{version}.jar pushd ${RPM_BUILD_ROOT}%{_javadir}/%{name} %{__ln_s} -f tomcat-juli-%{version}.jar tomcat-juli.jar popd %add_to_maven_depmap tomcat tomcat-juli %{version} JPP/%{name} tomcat-juli %{__install} -m 644 \ ${RPM_BUILD_DIR}/%{name}-%{version}/tomcat5-poms/tomcat-juli-%{version}.pom \ $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-tomcat-juli.pom find . -name "*.jar" -not -name "*bootstrap*" \ -exec %{__rm} -f {} \; popd # Process server/lib # Remove local JARs (to be replaced with jpp links in post) pushd ${RPM_BUILD_ROOT}%{serverdir}/lib find . -name "*.jar" -not -name "catalina*" \ -not -name "servlets-*" \ -not -name "tomcat-*" | xargs -t %{__rm} -f # catalina-ant will be installed in a public repository %{__mv} catalina-ant.jar \ ${RPM_BUILD_ROOT}%{_javadir}/catalina-ant-%{version}.jar pushd ${RPM_BUILD_ROOT}%{_javadir} %{__ln_s} -f catalina-ant-%{version}.jar catalina-ant5.jar popd %add_to_maven_depmap tomcat catalina-ant %{version} JPP catalina-ant5 %{__install} -m 644 \ ${RPM_BUILD_DIR}/%{name}-%{version}/tomcat5-poms/catalina-ant-%{version}.pom \ $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-catalina-ant5.pom # catalina* jars will be installed in a public repository for i in catalina*.jar; do j="`echo $i | %{__sed} -e 's|\.jar$||'`" %{__mv} ${j}.jar \ ${RPM_BUILD_ROOT}%{_javadir}/%{name}/${j}-%{version}.jar pushd ${RPM_BUILD_ROOT}%{_javadir}/%{name} %{__ln_s} -f ${j}-%{version}.jar ${j}.jar popd %add_to_maven_depmap tomcat ${j} %{version} JPP/tomcat5 ${j} %{__install} -m 644 \ ${RPM_BUILD_DIR}/%{name}-%{version}/tomcat5-poms/${j}-%{version}.pom \ $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.tomcat5-${j}.pom done # servlets* jars will be installed in a public repository for i in servlets-*.jar; do j="`echo $i | %{__sed} -e 's|\.jar$||'`" %{__mv} ${j}.jar \ ${RPM_BUILD_ROOT}%{_javadir}/%{name}/${j}-%{version}.jar pushd ${RPM_BUILD_ROOT}%{_javadir}/%{name} %{__ln_s} -f ${j}-%{version}.jar ${j}.jar popd %add_to_maven_depmap tomcat ${j} %{version} JPP/tomcat5 ${j} %{__install} -m 644 \ ${RPM_BUILD_DIR}/%{name}-%{version}/tomcat5-poms/${j}-%{version}.pom \ $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.tomcat5-${j}.pom done # tomcat* jars will be installed in a public repository for i in tomcat-*.jar; do j="`echo $i | %{__sed} -e 's|\.jar$||'`" %{__mv} ${j}.jar \ ${RPM_BUILD_ROOT}%{_javadir}/%{name}/${j}-%{version}.jar pushd ${RPM_BUILD_ROOT}%{_javadir}/%{name} %{__ln_s} -f ${j}-%{version}.jar ${j}.jar popd %add_to_maven_depmap tomcat ${j} %{version} JPP/tomcat5 ${j} %{__install} -m 644 \ ${RPM_BUILD_DIR}/%{name}-%{version}/tomcat5-poms/${j}-%{version}.pom \ $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.tomcat5-${j}.pom done popd %if %{with_adminapps} # Process admin webapp server/webapps/admin mkdir -p ${RPM_BUILD_ROOT}%{serverdir}/webapps/admin/WEB-INF/lib pushd ${RPM_BUILD_ROOT}%{serverdir}/webapps/admin/WEB-INF/lib find . -name "*.jar" -not -name 'catalina-admin*' | xargs -t %{__rm} -f for i in catalina-admin; do %{__mv} ${i}.jar \ ${RPM_BUILD_ROOT}%{_javadir}/%{name}/${i}-%{version}.jar pushd ${RPM_BUILD_ROOT}%{_javadir}/%{name} %{__ln_s} -f ${i}-%{version}.jar ${i}.jar popd %add_to_maven_depmap tomcat ${i} %{version} JPP/tomcat5 ${i} %{__install} -m 644 \ ${RPM_BUILD_DIR}/%{name}-%{version}/tomcat5-poms/${i}-%{version}.pom \ $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.tomcat5-${i}.pom done popd %endif # Process manager webapp server/webapps/manager pushd ${RPM_BUILD_ROOT}%{serverdir}/webapps/manager/WEB-INF/lib find . -name "*.jar" -not -name 'catalina-manager*' | xargs -t %{__rm} -f for i in catalina-manager; do %{__mv} ${i}.jar \ ${RPM_BUILD_ROOT}%{_javadir}/%{name}/${i}-%{version}.jar pushd ${RPM_BUILD_ROOT}%{_javadir}/%{name} %{__ln_s} -f ${i}-%{version}.jar ${i}.jar popd %add_to_maven_depmap tomcat ${i} %{version} JPP/tomcat5 ${i} %{__install} -m 644 \ ${RPM_BUILD_DIR}/%{name}-%{version}/tomcat5-poms/${i}-%{version}.pom \ $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.tomcat5-${i}.pom done popd # Process host-manager webapp server/webapps/host-manager pushd ${RPM_BUILD_ROOT}%{serverdir}/webapps/host-manager/WEB-INF/lib find . -name "*.jar" -not -name 'catalina-host-manager*' \ | xargs -t %{__rm} -f for i in catalina-host-manager; do %{__mv} ${i}.jar \ ${RPM_BUILD_ROOT}%{_javadir}/%{name}/${i}-%{version}.jar pushd ${RPM_BUILD_ROOT}%{_javadir}/%{name} %{__ln_s} -f ${i}-%{version}.jar ${i}.jar popd %add_to_maven_depmap tomcat ${i} %{version} JPP/tomcat5 ${i} %{__install} -m 644 \ ${RPM_BUILD_DIR}/%{name}-%{version}/tomcat5-poms/${i}-%{version}.pom \ $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.tomcat5-${i}.pom done popd # Process common/lib pushd ${RPM_BUILD_ROOT}%{commondir}/lib find . -name "*.jar" -not -name "%{jname}*" \ -not -name "naming*" | xargs -t %{__rm} -f # jasper's jars will be installed in a public repository for i in %{jname}-compiler %{jname}-runtime; do j="`echo $i | %{__sed} -e 's|%{jname}-|%{jname}5-|'`" %{__mv} ${i}.jar ${RPM_BUILD_ROOT}%{_javadir}/${j}-%{version}.jar pushd ${RPM_BUILD_ROOT}%{_javadir} %{__ln_s} -f ${j}-%{version}.jar ${j}.jar popd %add_to_maven_depmap tomcat ${i} %{version} JPP ${j} %{__install} -m 644 \ ${RPM_BUILD_DIR}/%{name}-%{version}/tomcat5-poms/${i}-%{version}.pom \ $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-${j}.pom done # naming* jars will be installed in a public repository for i in naming-*.jar; do j="`echo $i | %{__sed} -e 's|\.jar$||'`" %{__mv} ${j}.jar \ ${RPM_BUILD_ROOT}%{_javadir}/%{name}/${j}-%{version}.jar pushd ${RPM_BUILD_ROOT}%{_javadir}/%{name} %{__ln_s} -f ${j}-%{version}.jar ${j}.jar popd %add_to_maven_depmap tomcat ${j} %{version} JPP/tomcat5 ${j} %{__install} -m 644 \ ${RPM_BUILD_DIR}/%{name}-%{version}/tomcat5-poms/${j}-%{version}.pom \ $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.tomcat5-${j}.pom done popd # Process common/endorsed pushd ${RPM_BUILD_ROOT}%{commondir}/endorsed find . -name "*.jar" | xargs -t %{__rm} -f popd # avoid duplicate servlet.jar %{__rm} -f ${RPM_BUILD_ROOT}%{commondir}/lib/servlet.jar # Add catalina-deployer %{__install} -m 644 %{packdname}/build/deployer/lib/catalina-deployer.jar \ ${RPM_BUILD_ROOT}%{_javadir}/%{name}/catalina-deployer-%{version}.jar pushd ${RPM_BUILD_ROOT}%{_javadir}/%{name} %{__ln_s} -f catalina-deployer-%{version}.jar catalina-deployer.jar popd # Perform FHS translation # (final links) pushd ${RPM_BUILD_ROOT}%{homedir} [ -d bin ] || %{__ln_s} -f %{bindir} bin [ -d common ] || %{__ln_s} -f %{commondir} common [ -d conf ] || %{__ln_s} -f %{confdir} conf [ -d logs ] || %{__ln_s} -f %{logdir} logs [ -d server ] || %{__ln_s} -f %{serverdir} server [ -d shared ] || %{__ln_s} -f %{shareddir} shared [ -d webapps ] || %{__ln_s} -f %{appdir} webapps [ -d work ] || %{__ln_s} -f %{workdir} work [ -d temp ] || %{__ln_s} -f %{tempdir} temp popd %endif # begin servlet api subpackage install pushd ${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/servletapi %{__install} -m 644 jsr154/dist/lib/servlet-api.jar \ ${RPM_BUILD_ROOT}%{_javadir}/%{name}-servlet-%{servletspec}-api-%{version}.jar pushd ${RPM_BUILD_ROOT}%{_javadir} %{__ln_s} -f %{name}-servlet-%{servletspec}-api-%{version}.jar \ %{name}-servlet-%{servletspec}-api.jar # For backward compatibility with old JPP packages %{__ln_s} -f %{name}-servlet-%{servletspec}-api-%{version}.jar \ servletapi5.jar popd # depmap frag for standard alternative %if %{without_apisonly} %add_to_maven_depmap javax.servlet servlet-api %{servletspec} JPP servlet_2_4_api %add_to_maven_depmap tomcat servlet-api %{version} JPP %{name}-servlet-%{servletspec}-api %endif %{__mkdir} -p $RPM_BUILD_ROOT%{_mavenpomdir} ||: %{__install} -m 644 \ ${RPM_BUILD_DIR}/%{name}-%{version}/tomcat5-poms/servlet-api-%{version}.pom \ $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-servlet-%{servletspec}-api.pom # javadoc servlet %{__install} -d -m 755 ${RPM_BUILD_ROOT}%{_javadocdir}/%{name}-servlet-%{servletspec}-api-%{version} %{__cp} -pr jsr154/build/docs/api/* \ ${RPM_BUILD_ROOT}%{_javadocdir}/%{name}-servlet-%{servletspec}-api-%{version} %{__ln_s} -f %{name}-servlet-%{servletspec}-api-%{version} \ ${RPM_BUILD_ROOT}%{_javadocdir}/%{name}-servlet-%{servletspec}-api popd # begin jsp api subpackage install pushd ${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/servletapi %{__install} -m 644 jsr152/dist/lib/jsp-api.jar \ ${RPM_BUILD_ROOT}%{_javadir}/%{name}-jsp-%{jspspec}-api-%{version}.jar pushd ${RPM_BUILD_ROOT}%{_javadir} %{__ln_s} -f %{name}-jsp-%{jspspec}-api-%{version}.jar \ %{name}-jsp-%{jspspec}-api.jar # For backward compatibility with old JPP packages %{__ln_s} -f %{name}-jsp-%{jspspec}-api-%{version}.jar \ jspapi.jar popd %if %{without_apisonly} %add_to_maven_depmap javax.servlet jsp-api %{jspspec} JPP jsp_2_0_api %add_to_maven_depmap tomcat jsp-api %{version} JPP %{name}-jsp-%{jspspec}-api %endif %{__install} -m 644 \ ${RPM_BUILD_DIR}/%{name}-%{version}/tomcat5-poms/jsp-api-%{version}.pom \ $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-jsp-%{jspspec}-api.pom # javadoc jsp %{__install} -d -m 755 ${RPM_BUILD_ROOT}%{_javadocdir}/%{name}-jsp-%{jspspec}-api-%{version} %{__cp} -pr jsr152/build/docs/api/* \ ${RPM_BUILD_ROOT}%{_javadocdir}/%{name}-jsp-%{jspspec}-api-%{version} %{__ln_s} %{name}-jsp-%{jspspec}-api-%{version} \ ${RPM_BUILD_ROOT}%{_javadocdir}/%{name}-jsp-%{jspspec}-api popd %if %{without_apisonly} # begin jasper subpackage install pushd ${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/%{jname} %{__install} -m 755 src/bin/jspc.sh \ ${RPM_BUILD_ROOT}%{_bindir}/jspc5.sh %{__install} -m 755 src/bin/%{jname}.sh \ ${RPM_BUILD_ROOT}%{_bindir}/%{full_jname}.sh popd pushd ${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/container %{__install} -m 755 catalina/src/bin/setclasspath.sh \ ${RPM_BUILD_ROOT}%{_bindir}/%{full_jname}-setclasspath.sh popd # javadoc %{__install} -d -m 755 ${RPM_BUILD_ROOT}%{_javadocdir}/%{jname}-%{version} pushd ${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/%{jname} %{__cp} -pr build/javadoc/* \ ${RPM_BUILD_ROOT}%{_javadocdir}/%{jname}-%{version} %{__ln_s} %{jname}-%{version} ${RPM_BUILD_ROOT}%{_javadocdir}/%{jname} popd %endif %if %{without_apisonly} %if %{with_ecj} %{__install} -d -m 755 ${RPM_BUILD_ROOT}%{_datadir}/eclipse/plugins %{__cp} -p org.apache.jasper_5.5.17.v200706111724.jar ${RPM_BUILD_ROOT}%{_datadir}/eclipse/plugins %endif %endif %if %{without_apisonly} %post %update_maven_depmap # install tomcat5 (but don't activate) /sbin/chkconfig --add %{name} # Remove old automated symlinks for repository in %{bindir} ; do find $repository -name '*.jar' -type l | xargs %{__rm} -f done for repository in %{commondir}/endorsed ; do find $repository -name '\[*\]*.jar' -not -type d | xargs %{__rm} -f done for repository in %{commondir}/lib ; do find $repository -name '\[*\]*.jar' -not -type d | xargs %{__rm} -f done for repository in %{serverdir}/lib ; do find $repository -name '\[*\]*.jar' -not -type d | xargs %{__rm} -f done # Create automated links - since all needed extensions may not have been # installed for this jvm output is muted %{__rm} -f %{bindir}/commons-daemon.jar %{__ln_s} $(build-classpath commons-daemon) %{bindir} 2>&1 %{__rm} -f %{bindir}/commons-logging-api.jar %{__ln_s} $(build-classpath commons-logging-api) %{bindir} 2>&1 %{__rm} -f %{bindir}/tomcat-juli.jar %{__ln_s} $(build-classpath tomcat5/tomcat-juli) %{bindir} 2>&1 build-jar-repository %{commondir}/endorsed jaxp_parser_impl \ xml-commons-jaxp-1.3-apis 2>&1 build-jar-repository %{commondir}/lib commons-collections \ commons-dbcp commons-el commons-pool javamail/mail jsp \ %{name}/naming-factory %{name}/naming-resources servlet \ %{jname}5-compiler %{jname}5-runtime 2>&1 %if %{with_ecj} build-jar-repository %{commondir}/lib ecj 2>&1 %endif build-jar-repository %{serverdir}/lib catalina-ant5 commons-modeler \ %{name}/catalina-ant-jmx %{name}/catalina-cluster %{name}/catalina \ %{name}/catalina-optional %{name}/catalina-storeconfig \ %{name}/servlets-default %{name}/servlets-invoker %{name}/servlets-webdav \ %{name}/tomcat-ajp %{name}/tomcat-apr %{name}/tomcat-coyote \ %{name}/tomcat-http %{name}/tomcat-jkstatus-ant %{name}/tomcat-util 2>&1 %postun %update_maven_depmap %post webapps # Create automated links - since all needed extensions may not have been # installed for this jvm output is muted build-jar-repository %{appdir}/jsp-examples/WEB-INF/lib \ jakarta-taglibs-core jakarta-taglibs-standard 2>&1 %post admin-webapps # Remove old automated symlinks mkdir -p %{serverdir}/webapps/admin/WEB-INF/lib find %{serverdir}/webapps/admin/WEB-INF/lib -name '\[*\]*.jar' -type d \ | xargs %{__rm} -f # Create automated links - since all needed extensions may not have been # installed for this jvm output is muted build-jar-repository %{serverdir}/webapps/admin/WEB-INF/lib \ commons-beanutils commons-collections commons-digester struts \ %{name}/catalina-admin 2>&1 build-jar-repository %{serverdir}/webapps/host-manager/WEB-INF/lib \ %{name}/catalina-host-manager 2>&1 build-jar-repository %{serverdir}/webapps/manager/WEB-INF/lib \ commons-io commons-fileupload %{name}/catalina-manager 2>&1 %endif %post servlet-%{servletspec}-api %{_sbindir}/update-alternatives --install %{_javadir}/servlet.jar servlet \ %{_javadir}/%{name}-servlet-%{servletspec}-api.jar 20400 %{_sbindir}/update-alternatives --install %{_javadir}/servlet_2_4_api.jar servlet_2_4_api \ %{_javadir}/%{name}-servlet-%{servletspec}-api.jar 20400 %post servlet-%{servletspec}-api-javadoc %{__rm} -f %{_javadocdir}/servletapi # legacy symlink %postun servlet-%{servletspec}-api if [ "$1" = "0" ]; then %{_sbindir}/update-alternatives --remove servlet \ %{_javadir}/%{name}-servlet-%{servletspec}-api.jar %{_sbindir}/update-alternatives --remove servlet_2_4_api \ %{_javadir}/%{name}-servlet-%{servletspec}-api.jar fi %post jsp-%{jspspec}-api %{_sbindir}/update-alternatives --install %{_javadir}/jsp.jar jsp \ %{_javadir}/%{name}-jsp-%{jspspec}-api.jar 20000 %{_sbindir}/update-alternatives --install %{_javadir}/jsp_2_0_api.jar jsp_2_0_api \ %{_javadir}/%{name}-jsp-%{jspspec}-api.jar 20000 %post jsp-%{jspspec}-api-javadoc %{__rm} -f %{_javadocdir}/jsp-api # legacy symlink %postun jsp-%{jspspec}-api if [ "$1" = "0" ]; then %{_sbindir}/update-alternatives --remove jsp \ %{_javadir}/%{name}-jsp-%{jspspec}-api.jar %{_sbindir}/update-alternatives --remove jsp_2_0_api \ %{_javadir}/%{name}-jsp-%{jspspec}-api.jar fi %if %{without_apisonly} %preun # Always clean up workdir and tempdir on upgrade/removal %{__rm} -fr %{workdir}/* %{tempdir}/* if [ $1 = 0 ]; then [ -f /var/lock/subsys/%{name} ] && %{_initrddir}/%{name} stop [ -f %{_initrddir}/%{name} ] && /sbin/chkconfig --del %{name} # Remove automated symlinks for repository in %{commondir}/endorsed; do find $repository -name '\[*\]*.jar' -not -type d | xargs %{__rm} -f done for repository in %{commondir}/lib ; do find $repository -name '\[*\]*.jar' -not -type d | xargs %{__rm} -f done for repository in %{serverdir}/lib ; do find $repository -name '\[*\]*.jar' -not -type d | xargs %{__rm} -f done fi %if %{with_adminapps} %preun admin-webapps if [ $1 = 0 ]; then find %{serverdir}/webapps/*/WEB-INF/lib \ -name '\[*\]*.jar' -not -type d | xargs %{__rm} -f fi %endif %preun webapps if [ $1 = 0 ]; then find %{appdir}/jsp-examples/WEB-INF/lib \ -name '\[*\]*.jar' \ -not -type d | xargs %{__rm} -f fi %pre # Add the "tomcat" user and group # we need a shell to be able to use su - later %{_sbindir}/groupadd -g %{tcuid} -r tomcat 2> /dev/null || : %{_sbindir}/useradd -c "Apache Tomcat" -u %{tcuid} -g tomcat \ -s /bin/sh -r -d %{homedir} tomcat 2> /dev/null || : %endif %if %{without_apisonly} %files %defattr(0644,root,root,0755) %doc %{packdname}/LICENSE %doc %{packdname}/build/{RELE*,RUNNING.txt,BENCHMARKS.txt} # symlinks %{_datadir}/%{name}/common %{_datadir}/%{name}/temp %{_datadir}/%{name}/logs %{_datadir}/%{name}/conf %{_datadir}/%{name}/server %{_datadir}/%{name}/shared %{_datadir}/%{name}/work %{_datadir}/%{name}/webapps # Normal directories %dir %{homedir} %dir %{bindir} %dir %{_var}/lib/%{name} %dir %{_var}/cache/%{name} %dir %{commondir} %dir %{commondir}/classes %dir %{commondir}/lib %dir %{commondir}/endorsed %dir %{commondir}/i18n %dir %{serverdir} %dir %{serverdir}/classes %dir %{serverdir}/lib %{serverdir}/lib/*.renametojar %dir %{shareddir} %dir %{shareddir}/classes %dir %{shareddir}/lib # Directories with special permissions %attr(0775,root,tomcat) %dir %{appdir} %attr(0775,root,tomcat) %dir %{confdir} %attr(0770,root,tomcat) %dir %{tempdir} %attr(0770,root,tomcat) %dir %{workdir} %attr(0755,tomcat,tomcat) %dir %{logdir} %attr(0775,root,tomcat) %dir %{confdir}/Catalina %attr(0775,root,tomcat) %dir %{confdir}/Catalina/localhost %attr(0755,root,root) %{_bindir}/* %attr(0755,root,root) %{bindir}/relink %attr(0644,root,root) %{bindir}/*.jar %attr(0644,root,root) %{bindir}/*.xml %attr(0755,root,root) %{_initrddir}/%{name} %attr(0644,root,tomcat) %config(noreplace) %{confdir}/catalina.policy %attr(0644,root,tomcat) %config(noreplace) %{confdir}/catalina.properties %attr(0660,root,tomcat) %config(noreplace) %{confdir}/logging.properties %attr(0660,root,tomcat) %config(noreplace) %{confdir}/tomcat-users.xml %config(noreplace) %{confdir}/%{name}.conf %config(noreplace) %{confdir}/server-minimal.xml %config(noreplace) %{confdir}/server.xml %config(noreplace) %{confdir}/web.xml %config(noreplace) %{confdir}/context.xml %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %{commondir}/i18n/* %{_mavendepmapfragdir}/* %{_mavenpomdir}/JPP.tomcat5-parent.pom %files common-lib %defattr(0644,root,root,0755) %dir %{_javadir}/%{name} %{_javadir}/%{name}/naming*.jar %{_mavenpomdir}/JPP.tomcat5-naming-factory.pom %{_mavenpomdir}/JPP.tomcat5-naming-resources.pom %files server-lib %defattr(0644,root,root,0755) %{_javadir}/catalina*.jar %dir %{_javadir}/%{name} %{_javadir}/%{name}/catalina-ant-jmx*.jar %{_javadir}/%{name}/catalina-cluster*.jar %{_javadir}/%{name}/catalina-deployer*.jar %{_javadir}/%{name}/catalina.jar %{_javadir}/%{name}/catalina-%{version}.jar %{_javadir}/%{name}/catalina-optional*.jar %{_javadir}/%{name}/catalina-storeconfig*.jar %{_javadir}/%{name}/servlets*.jar %{_javadir}/%{name}/tomcat*.jar %{_mavenpomdir}/JPP-catalina-ant5.pom %{_mavenpomdir}/JPP.tomcat5-catalina-ant-jmx.pom %{_mavenpomdir}/JPP.tomcat5-catalina-cluster.pom %{_mavenpomdir}/JPP.tomcat5-catalina.pom %{_mavenpomdir}/JPP.tomcat5-catalina-optional.pom %{_mavenpomdir}/JPP.tomcat5-catalina-storeconfig.pom %{_mavenpomdir}/JPP.tomcat5-servlets-default.pom %{_mavenpomdir}/JPP.tomcat5-servlets-invoker.pom %{_mavenpomdir}/JPP.tomcat5-servlets-webdav.pom %{_mavenpomdir}/JPP.tomcat5-tomcat-ajp.pom %{_mavenpomdir}/JPP.tomcat5-tomcat-apr.pom %{_mavenpomdir}/JPP.tomcat5-tomcat-coyote.pom %{_mavenpomdir}/JPP.tomcat5-tomcat-http.pom %{_mavenpomdir}/JPP.tomcat5-tomcat-juli.pom %{_mavenpomdir}/JPP.tomcat5-tomcat-util.pom %files webapps %defattr(0644,root,tomcat,0775) %dir %{appdir}/servlets-examples %{appdir}/servlets-examples/* %dir %{appdir}/jsp-examples %{appdir}/jsp-examples/* %dir %{appdir}/ROOT %{appdir}/ROOT/* %dir %{appdir}/tomcat-docs %{appdir}/tomcat-docs/* %dir %{appdir}/webdav %{appdir}/webdav/* %files admin-webapps %defattr(0640,root,tomcat,0750) %attr(0660,root,tomcat) %{confdir}/Catalina/localhost/manager.xml %attr(0660,root,tomcat) %{confdir}/Catalina/localhost/host-manager.xml %dir %{appdir}/balancer %{appdir}/balancer/* %dir %{serverdir}/webapps %attr(0644,root,tomcat) %{serverdir}/webapps/* %if %{with_adminapps} %{confdir}/Catalina/localhost/admin.xml %attr(0644,root,root) %{_javadir}/%{name}/catalina-admin*.jar %{_mavenpomdir}/JPP.tomcat5-catalina-admin.pom %endif %attr(0644,root,root) %{_javadir}/%{name}/catalina-manager*.jar %attr(0644,root,root) %{_javadir}/%{name}/catalina-host-manager*.jar %{_mavenpomdir}/JPP.tomcat5-catalina-host-manager.pom %{_mavenpomdir}/JPP.tomcat5-catalina-manager.pom %files %{jname} %defattr(0644,root,root,0755) %doc ${RPM_BUILD_DIR}/%{name}-%{version}/%{packdname}/%{jname}/doc/jspc.html %{_javadir}/%{jname}5-*.jar %attr(0755,root,root) %{_bindir}/%{jname}*.sh %attr(0755,root,root) %{_bindir}/jspc*.sh %{_mavenpomdir}/JPP-jasper5-compiler.pom %{_mavenpomdir}/JPP-jasper5-runtime.pom %files %{jname}-javadoc %defattr(0644,root,root,0755) %{_javadocdir}/%{jname}-%{version} %{_javadocdir}/%{jname} %endif %files servlet-%{servletspec}-api %defattr(0644,root,root,0755) %doc %{packdname}/LICENSE %{_javadir}/%{name}-servlet-%{servletspec}-api*.jar %{_javadir}/servletapi5.jar %{_mavenpomdir}/JPP-tomcat5-servlet-2.4-api.pom %files servlet-%{servletspec}-api-javadoc %defattr(0644,root,root,0755) %{_javadocdir}/%{name}-servlet-%{servletspec}-api-%{version} %{_javadocdir}/%{name}-servlet-%{servletspec}-api %files jsp-%{jspspec}-api %defattr(0644,root,root,0755) %doc %{packdname}/LICENSE %{_javadir}/%{name}-jsp-%{jspspec}-api*.jar %{_javadir}/jspapi.jar %{_mavenpomdir}/JPP-tomcat5-jsp-2.0-api.pom %files jsp-%{jspspec}-api-javadoc %defattr(0644,root,root,0755) %{_javadocdir}/%{name}-jsp-%{jspspec}-api-%{version} %{_javadocdir}/%{name}-jsp-%{jspspec}-api %if %{without_apisonly} %if %{with_ecj} %files jasper-eclipse %defattr(0644,root,root,0755) %dir %{_datadir}/eclipse %dir %{_datadir}/eclipse/plugins %{_datadir}/eclipse/plugins/org.apache.jasper_* %endif %endif %changelog * Fri Mar 01 2013 dmorgan <dmorgan> 0:5.5.31-14.mga3 + Revision: 400729 - Fix error in %%post - Add missing require * Mon Jan 14 2013 umeabot <umeabot> 0:5.5.31-13.mga3 + Revision: 384652 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Jan 08 2013 dmorgan <dmorgan> 0:5.5.31-12.mga3 + Revision: 341492 - Remove wrong require * Sat Jan 05 2013 dmorgan <dmorgan> 0:5.5.31-11.mga3 + Revision: 338828 - Fix build against new ecj + oden <oden> - P107: eh, he he. can't use commas in file names for some reason... (why?) - P107: CVE-2012-3439 was rejected, correct ones are: CVE-2012-5885,5886,5887 - P107: security fix for CVE-2012-3439 (upstream) * Fri Jun 22 2012 dmorgan <dmorgan> 0:5.5.31-8.mga3 + Revision: 262597 - Requires java instead of java-1.6.0 * Fri Jun 22 2012 dmorgan <dmorgan> 0:5.5.31-7.mga3 + Revision: 262592 - Rebuild against openjdk 7 * Sat Apr 21 2012 dmorgan <dmorgan> 0:5.5.31-6.mga2 + Revision: 232287 - Fix CVE-2012-0022 * Sat Dec 31 2011 dmorgan <dmorgan> 0:5.5.31-5.mga2 + Revision: 189159 - Fix CVE-2011-1184, CVE-2011-2204, CVE-2011-2526, CVE-2011-2729, CVE-2011-3190, CVE-2011-0013 ( mga #3099) - Remove struts support ( from fedora ) * Thu Oct 27 2011 dmorgan <dmorgan> 0:5.5.31-4.mga2 + Revision: 158679 - Fix location of the pom files - Fix tomcat5-5.5.init - revert the revert :) - Revert to be able to build eclipse * Wed Feb 09 2011 dmorgan <dmorgan> 0:5.5.31-3.mga1 + Revision: 49476 - Remove redhat requires * Thu Feb 03 2011 dmorgan <dmorgan> 0:5.5.31-2.mga1 + Revision: 46687 - Fix file name - Fix buildrequire - Adapt to mageia - imported package tomcat5 * Tue Nov 9 2010 Alexander Kurtakov <akurtako@redhat.com> 0:5.5.31-2 - No more commons-*-tomcat5 packages. * Thu Oct 21 2010 Alexander Kurtakov <akurtako@redhat.com> 0:5.5.31-1 - New version 5.5.31. - Fix FTBFS - build system has changed a lot upstream. - Drop gcj_support. * Fri Apr 23 2010 Devrim GUNDUZ <devrim@gunduz.org> 0:5.5.29-1.1 - Update to 5.5.29, add a new patch to fix CVE-2010-1157. Fixes #585331. This patch will be removed in 5.5.30. - Remove a patch which is included in 5.5.29. * Tue Mar 2 2010 Devrim GUNDUZ <devrim@gunduz.org> 0:5.5.28-2.1 - Add a patch to fix the following issues (patch will be removed in 5.5.29) : - CVE-2009-2693 - CVE-2009-2901 - CVE-2009-2902 * Mon Nov 9 2009 Devrim GUNDUZ <devrim@gunduz.org> 0:5.5.28-1.1 - Update to 5.5.28, to fix the following issues: * Bug #493381: CVE-2009-0033 * Bug #503978: CVE-2009-0580 * Bug #504153: CVE-2009-0783 * Bug #504753: CVE-2008-5515 * Bug #489028: CVE-2009-0781 Resolves #559738. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:5.5.27-7.4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue May 5 2009 Devrim GUNDUZ <devrim@gunduz.org> 0:5.5.27-6.4 - Fix build problems with --with apisonly. Patch from Karsten Hopp. * Mon Apr 20 2009 Alexander Kurtakov <akurtako@redhat.com> 0:5.5.27-6.3 - Update jasper-OSGi-MANIFEST.MF for eclipse 3.5. * Wed Apr 15 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 0:5.5.27-6.2 - preserve upgrade ordering, clean up CLASSPATH export * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:5.5.27-5.9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Dec 10 2008 David Walluck <dwalluck@redhat.com> 0:5.5.27-6.1 - fix bug #473755 - fix extra newline in initscript * Wed Oct 22 2008 David Walluck <dwalluck@redhat.com> 0:5.5.27-4.9 - revert jasper-eclipse location change as it won't work on noarch * Wed Oct 22 2008 David Walluck <dwalluck@redhat.com> 0:5.5.27-4.8 - change jasper-eclipse location from %%{_datadir} to %%{_libdir} * Tue Oct 14 2008 David Walluck <dwalluck@redhat.com> 0:5.5.27-4.7 - comment out some GCJ files which are not produced during build * Tue Oct 14 2008 David Walluck <dwalluck@redhat.com> 0:5.5.27-4.6 - Fedora-specific changes to disable GCJ support * Tue Oct 14 2008 David Walluck <dwalluck@redhat.com> 0:5.5.27-4.5 - Fedora-specific changes to java requirements and to JAVA_HOME * Tue Oct 14 2008 David Walluck <dwalluck@redhat.com> 0:5.5.27-4.4 - make patches to apply with 0 fuzz again * Mon Oct 13 2008 David Walluck <dwalluck@redhat.com> 0:5.5.27-4.3 - update catalina.sh.patch to apply with 0 fuzz * Mon Oct 13 2008 David Walluck <dwalluck@redhat.com> 0:5.5.27-4.2 - use Fedora-specific changes to various API levels to allow building * Mon Oct 13 2008 David Walluck <dwalluck@redhat.com> 0:5.5.27-4.1 - sync with JPackage 0:5.5.27-4 * Mon Jul 14 2008 Andrew Overholt <overholt@redhat.com> 0:5.5.26-1.5 - Bump OSGi version numbers to match Eclipse SDK 3.4. - Update patches to apply with 0 fuzz. * Thu Jul 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:5.5.26-1.4 - drop repotag * Fri May 23 2008 Todd Zullinger <tmz@pobox.com> 0:5.5.26-1jpp.3 - fix license tag * Tue Feb 12 2008 Devrim GUNDUZ <devrim@commandprompt.com> 0:5.5.26-1jpp.2 - Rebuilt * Fri Feb 8 2008 Devrim GUNDUZ <devrim@commandprompt.com> 0:5.5.26-1jpp.1 - Update to new upstream version, which also fixes the following: * CVE-2007-5342 * CVE-2007-5333 * CVE-2007-5461 * CVE-2007-6286 - Removed patch20, now in upstream. * Sat Jan 5 2008 Devrim GUNDUZ <devrim@commandprompt.com> 0:5.5.25-2jpp.2 - Fix for bz #153187 - Fix for bz #426850 - Fix for bz #312561 - Fix init script, per bz #247077 - Fix builds on alpha, per bz #253827. - Fix init script for bz #380921 - Fix tomcat5.conf and spec file for bz #253605 * Thu Nov 15 2007 Devrim GUNDUZ <devrim@commandprompt.com> 0:5.5.25-1jpp.1 - Updated to 5.5.25, to fix the following issues: * CVE-2007-1355 * CVE-2007-3386 * CVE-2007-3385 * CVE-2007-3382 * CVE-2007-2450, RH bugzilla #244808, #244810, #244812, #363081 * CVE-2007-2449, RH bugzilla #244810, #244812, #244804, #363081 - Applied patch(20) for RH bugzilla #333791, CVE-2007-5461 - Applied patch(21) for RH bugzilla #244803, #244812, #363081, CVE-2007-1358 * Mon Aug 06 2007 Ben Konrath <bkonrath@redhat.com> 0:5.5.23-9jpp.4 - Add jasper-eclipse subpackage which is needed for eclipse 3.3. - Inject OSGi manifest into servlet api jar and jsp api jar. * Mon Jul 23 2007 Vivek Lakshmanan <vivekl at redhat.com> 0:5.5.23-9jpp.3 - Resolves: Bug 246374 * Wed May 16 2007 Vivek Lakshmanan <vivekl at redhat.com> 0:5.5.23-9jpp.2 - Add requires(post) on j-c-*-tomcat5 in tomcat5 package to ensure proper ordering at installation time - Replace more references to ecj with eclipse-ecj * Tue May 15 2007 Vivek Lakshmanan <vivekl at redhat.com> 0:5.5.23-9jpp.1 - Resolve: bug 240242 - Import and merge 0:5.5.23-9jpp from JPP - Fix formatting of spec - Use eclipse-ecj in place of ecj - Apply GCJ specific patches - Use generic jta for now instead of geronimo-jta-1.0.1B-api - Add tomcat-juli.jar since gcc bug 29869 is fixed * Fri May 11 2007 Jason Corley <jason.corley@gmail.com> 0:5.5.23-9jpp - rebuild through mock and centos 4 * Thu May 10 2007 Ralph Apel <r.apel at r-apel.de> 0:5.5.23-8jpp - Make Vendor, Distribution based on macro - Rebuild on FC6 with redhat-rpm-config-8.0.45-9.fc6 installed for newer /usr/lib/rpm/redhat/brp-java-repack-jars * Tue Apr 24 2007 Jason Corley <jason.corley@gmail.com> 0:5.5.23-7jpp - bug 253: init script should be in /etc/init.d per LSB (Ralf Hansen) - bug 257: require /sbin/chkconfig since SuSE has no package chkconfig (Ralf Hansen) - bug 261: jasper5.sh tries to use non-existant jars (Vivek Lakshmanan) * Tue Apr 10 2007 Jason Corley <jason.corley@gmail.com> 0:5.5.23-6jpp - put javamail back in common/lib - remove find/homelinks junk and just explicitly list the symlinks * Fri Mar 16 2007 Jason Corley <jason.corley@gmail.com> 0:5.5.23-5jpp - replace references to jdtcore with ecj * Fri Mar 16 2007 Jason Corley <jason.corley@gmail.com> 0:5.5.23-4jpp - fix circular dep between main package and common-lib - move scriptlets out of common-lib and server-lib and into main package * Mon Mar 5 2007 Jason Corley <jason.corley@gmail.com> 0:5.5.23-3jpp - respin to upload to main repo - remove some unnecessary build-jar-repository links created in post of common-lib and server-lib subpackages - fix chkconfig and lsb comments in init script - rpmlint cleanups - replace eclipse-ecj with ecj * Mon Mar 5 2007 Jason Corley <jason.corley@gmail.com> 0:5.5.23-2jpp - add a line to build.properties creation with the correct version (build.properties.default not updated from 5.5.20) * Mon Mar 5 2007 Jason Corley <jason.corley@gmail.com> 0:5.5.23-1jpp - update to 5.5.23 * Mon Feb 26 2007 Jason Corley <jason.corley@gmail.com> 0:5.5.22-1jpp - update to 5.5.22 - change commons-modeler requirement to 2.0 * Fri Feb 23 2007 Jason Corley <jason.corley@gmail.com> 0:5.5.20-6jpp - update year in copyright text - use -tomcat5 subpackages for j-c-collections, j-c-dbcp, and j-c-pool so that JNDI resources work properly - remove searching for a JVM from %%posts since java is not called - change symlinks to b-j-r links server/lib to - add pre requirement on main package for common-lib subpackage * Mon Jan 29 2007 Vivek Lakshmanan <vivekl at redhat.com> 0:5.5.20-5jpp - Rebuild with a 1.4 JDK instead of JDK 5 - Minor formatting fixes - Add conditional native compilation support - Remove aot-compilation and installation of non-standard jars/collections of java classes as well as corresponding .SOs - Bug 190: set catalina.ext.dirs system property through JAVA_OPTS in tomcat5.conf - Remove echo statements in the install section since rpm install should be silent - Add Requires(X) blocks for pre/post/preun/postun scriptlets - Replace use of PreReq with Requires(pre) + Requires(postun) - Add documentation for sysconfig/tomcat5.conf and /etc/tomcat5.conf (courtesy: pcheung at redhat.com) - Fix maxdepth position in find statement to avoid warning * Sun Jan 14 2007 Jason Corley <jason.corley@gmail.com> 0:5.5.20-4jpp - remove jk2 configs as mod_jk2 has been deprecated upstream - s/Jakarta Tomcat/Apache Tomcat/ - replace jars in admin webapps with build-jar-repository links - silence chatty init script by default * Wed Jan 10 2007 Jason Corley <jason.corley@gmail.com> 0:5.5.20-3jpp - replace _localstatedir with _var since Mandriva seems to think the former is equal to /var/lib while all the other distros have it as /var - macrofy! - use build-jar-repository for jdtcore instead of ln - comment out reloctomcat5 for eventual removal completely from spec - silence post of common-lib and server-lib subpackages - Fixed bugs: Bug 217: LSB init comments in init script (Frank Schwichtenberg) Bug 242: catalina.out incorrect ownership (Pavel Lisy) Bug 245: insecure permissions for temporary and cache directories (Troels Arvin) Bug 245: no status in initscript (Troels Arvin) * Tue Oct 31 2006 Jason Corley <jason.corley@gmail.com> 0:5.5.20-2jpp - some more init script changes - re-add java-devel Requires * Tue Oct 17 2006 Jason Corley <jason.corley@gmail.com> 0:5.5.20-1jpp - 5.5.20 - completely rewritten init script - remove Vendor and Distribution (should be defined in ~/.rpmmacros) - replace perl -pi -e with sed -i -e * Wed Oct 4 2006 Permaine Cheung <pcheung@redhat.com> 0:5.5.17-8jpp - Fix condrestart in init script and location of init script in the spec file. * Mon Oct 2 2006 Permaine Cheung <pcheung@redhat.com> 0:5.5.17-7jpp - Add the new config file, and add the CONNECTOR_PORT variable in it. * Mon Oct 2 2006 Permaine Cheung <pcheung@redhat.com> 0:5.5.17-6jpp - Add the ability to start multiple instances of tomcat on the same machine. * Mon Aug 21 2006 Fernando Nasser <fnasser@redhat.com> 0:5.5.17-5jpp From Andrew Overholt <overholt@redhat.com>: - Silence post common-lib and server-lib. * Thu Jul 27 2006 Fernando Nasser <fnasser@redhat.com> 0:5.5.17-4jpp - Fix regression in relink with changes from Matt Wringe * Fri Jun 30 2006 Ralph Apel <r.apel@r-apel.de> 0:5.5.17-3jpp - Create option --with apisonly to build just tomcat5-servlet-2.4-api, tomcat5-jsp-2.0-api and its -javadoc subpackages - Create option --without ecj to build even when eclipse-ecj not available - Drop several unnecessary export CLASSPATH= * Mon May 15 2006 Fernando Nasser <fnasser@redhat.com> 0:5.5.17-2jpp - Requires on post things that are linked to at post Merge changes from downstream: - Fix line breaks in the tomcat5 init script - Split preun section among main package and the two new subpackages - Move catalina-ant*.jar to the server-lib subpackage to avoid circular dependency with the main package - Remove leading zero from alternative priorities - Rebuild with new classpath-mail as javamail alternative - Update versions of dependencies and move them to library subpackages - Use only jta from geronimo-specs * Mon May 15 2006 Fernando Nasser <fnasser@redhat.com> 0:5.5.17-1jpp - Upgrade to 5.5.17 - Remove jasper2 subdirectory of jasper from patches and this spec file * Wed Apr 19 2006 Ralph Apel <r.apel@r-apel.de> 0:5.5.16-3jpp - Drop jdtCompilerAdapter from build-jar-repository - Use ant-trax in static webapp build - Duplicate admin-webapps jars in _javadir and make them world readable - Direct install of common-lib and server-lib to _javadir and symlink for TC5 * Tue Apr 04 2006 Ralph Apel <r.apel@r-apel.de> 0:5.5.16-2jpp - Require eclipse-ecj >= 3.1.1 and adapt to it * Fri Mar 24 2006 Ralph Apel <r.apel@r-apel.de> 0:5.5.16-1jpp - Upgrade to 5.5.16 * Tue Feb 14 2006 Ralph Apel <r.apel@r-apel.de> 0:5.5.12-2jpp - Fix jta.jar location * Fri Nov 11 2005 Fernando Nasser <fnasser@redhat.com> 0:5.5.12-1jpp - Place jsp in its own subpackage - Fix alternative links to jsp and servlet - Fix alternative priorities to jsp and servlet - Create library subpackages: common-lib and server-lib From Vadim Nasardinov <vadimn@redhat.com> 0:5.5.12-1jpp - Upgrade to 5.5.12 From Deepak Bhole <dbhole@redhat.com> - Fix init script so it works with SELinux * Wed Jun 08 2005 Fernando Nasser <fnasser@redhat.com> 0:5.5.9-1jpp - Merge for upgrade - Change the user to tomcat from tomcat4 - Relax permissions on appdir directory so jonas package can build - Remove spurious links to log4j.jar from common and server/lib - Remove spurious dependency on tyrex (only needed for tomcat4) - Make sure the main package installs first so user tomcat is created - Reinstate ssl code changes so that tomcat can be built with other SDKs and not only with Sun's or BEA's. * Mon May 09 2005 Fernando Nasser <fnasser@redhat.com> 0:5.5.9-1jpp - Upgrade to 5.5.9 - Add jmx to bindir and lower requirement to java 1.4.2 * Fri Feb 04 2005 Jason Corley 0:5.5.7-2jpp - Add provides servletapi5 in addition to obsoletes servletapi5 (Martin Grotzke) * Thu Feb 03 2005 Jason Corley 0:5.5.7-1jpp - Upgrade to current stable release, 5.5.7 * Fri Jan 31 2005 Jason Corley 0:5.5.4-17jpp - Use new eclipse-ecj package to remove old jasper-compiler-jdt.jar hack * Thu Jan 27 2005 Jason Corley 0:5.5.4-16jpp - Attempt to replace non-free jta with free geronimo-specs * Thu Jan 27 2005 Jason Corley 0:5.5.4-15jpp - Clean rebuild * Thu Dec 16 2004 Jason Corley 0:5.5.4-14jpp - First attempt at jasper subpackages * Thu Dec 16 2004 Jason Corley 0:5.5.4-13jpp - Yet another "servletapi" naming scheme change * Tue Dec 14 2004 Jason Corley 0:5.5.4-12jpp - Update the servletapi and servletapi-javadoc subpackages to the way proposed by Gary Benson (based on work by Ralph Apel) in the 5.0.30 RPMs * Wed Dec 08 2004 Jason Corley 0:5.5.4-10jpp - Incorporate Fernando Nasser's javaxssl patch from the tomcat 5.0.28 RPM - Replace find ... -exec's with find | xargs * Tue Dec 07 2004 Jason Corley 0:5.5.4-9jpp - First attempt at the whole servletapi issue - Replace jmxri references with mx4j - Build with JDK 1.4 and require a 1.4 JDK to run - Remove cruft - Clearly lost track of some stuff between changelog entries ;-) * Fri Dec 03 2004 Jason Corley 0:5.5.4-1jpp - First attempt at building 5.5 * Fri Sep 10 2004 Fernando Nasser <fnasser@redhat.com> 0:5.0.27-4jpp - Rebuild using Tyrex 1.0.1 * Sat Sep 04 2004 Fernando Nasser <fnasser@redhat.com> 0:5.0.27-3jpp - Rebuild with Ant 1.6.2 * Fri Jul 16 2004 Kaj J. Niemi <kajtzu@fi.basen.net> 0:5.0.27-2jpp - Oops, don't require mx4j 2.0.1. 1.1.1 or later should be enough. jmxri won't work anymore since tc5 needs mx4j-tools. * Fri Jul 16 2004 Kaj J. Niemi <kajtzu@fi.basen.net> 0:5.0.27-1jpp - Update to 5.0.27 (stable) - Don't remove tomcat4 user/group on uninstall see the mailing list for discussion - build w/ xml-apis.jar instead of xmlParserAPIs.jar (release notes 5.0.27) - Require junit 3.8.1 or newer (release notes 5.0.26) - Require jakarta-commons-dbcp 1.2.1 or newer (release notes 5.0.27) - Require jakarta-commons-logging 1.0.4 or newer (release notes 5.0.27) - Require jakarta-commons-pool 1.1 or newer (release notes 5.0.27) * Wed Jun 09 2004 Kaj J. Niemi <kajtzu@fi.basen.net> 0:5.0.24-3jpp - Change default webapps file permissions from 0640 -> 0644 * Tue Jun 08 2004 Fernando Nasser <fnasser@redhat.com> 0:5.0.24-2jpp - Allow browsing of webapps directory so that JOnAS can build. * Mon May 17 2004 Kaj J. Niemi <kajtzu@fi.basen.net> 0:5.0.24-1jpp - Update to 5.0.24 - Require xerces-j2 2.6.2 (release notes 5.0.21), also require ant < 1.6 as tomcat5 doesn't seem to build cleanly with 1.6 yet. * Fri Mar 19 2004 Kaj J. Niemi <kajtzu@fi.basen.net> 0:5.0.19-2jpp - Set JAVA_ENDORSED_DIRS by default in tomcat5.conf, it is otherwise empty Suggestion from Aleksander Adamowski <aleksander.adamowski@altkom.pl> * Wed Feb 25 2004 Kaj J. Niemi <kajtzu@fi.basen.net> 0:5.0.19-1jpp - Update to 5.0.19 * Fri Jan 23 2004 Kaj J. Niemi <kajtzu@fi.basen.net> 0:5.0.18-1jpp - Update to 5.0.18 - Build catalina before connectors - Hack connectors build - Require xerces-j2 2.6.0 (release notes 5.0.17) * Sat Jan 17 2004 Kaj J. Niemi <kajtzu@fi.basen.net> 0:5.0.16-4jpp - Create TC4 user and group separately, lets TC5 work out of the box on Trustix (Patch from Iain Arnell) * Sat Jan 10 2004 Kaj J. Niemi <kajtzu@fi.basen.net> - 0:5.0.16-3jpp - servletapi5 is required - move confdir/Catalina from admin-webapps to main package (otherwise we end up requiring tomcat5-admin-webapps for struts-webapps) * Sat Jan 10 2004 Kaj J. Niemi <kajtzu@fi.basen.net> - 0:5.0.16-2jpp - Fix conflict with tomcat4 catalina-ant.jar in %%_javadir by renaming it catalina-ant5.jar for now. * Fri Jan 9 2004 Kaj J. Niemi <kajtzu@fi.basen.net> - 0:5.0.16-1jpp - First build for JPackage * Mon Dec 29 2003 Kaj J. Niemi <kajtzu@fi.basen.net> 0:5.0.16-0.11 - Merge changes from tomcat4.init to tomcat5.init * Mon Dec 22 2003 Kaj J. Niemi <kajtzu@fi.basen.net> 0:5.0.16-0.10 - Some jsp-examples require jakarta-taglibs-standard to work * Mon Dec 22 2003 Kaj J. Niemi <kajtzu@fi.basen.net> 0:5.0.16-0.9.1 - Struts should be 1.1 or later according to the release notes - The /admin webapp works now as well - manager.xml needs to be group writeable, otherwise tomcat complains * Fri Dec 19 2003 Kaj J. Niemi <kajtzu@fi.basen.net> 0:5.0.16-0.7 - Accept an older version of xerces-j2 as well. * Fri Dec 19 2003 Kaj J. Niemi <kajtzu@fi.basen.net> 0:5.0.16-0.6 - Require xerces-j2 instead of just jaxp_parser_impl - Require jpackage commons-logging instead of internal version * Wed Dec 17 2003 Kaj J. Niemi <kajtzu@fi.basen.net> 0:5.0.16-0.5 - Tomcat5 isn't beta anymore * Wed Dec 17 2003 Kaj J. Niemi <kajtzu@fi.basen.net> 0:5.0.16-0.beta.4 - Place jspapi, jmxri, commons-el in common/lib as mentioned in the upstream RELEASE-NOTES.txt. This makes jsps actually work. * Wed Dec 17 2003 Kaj J. Niemi <kajtzu@fi.basen.net> 0:5.0.16-0.beta.3 - Separated jakarta-commons-el from tomcat - Require servletapi5 and jakata-commons-el - Added Patch #4 (tomcat5-5.0.16-cluster-pathelement.patch) which fixes build failure when servlet-api is renamed something else than the default - Added Patch #5 (tomcat5-5.0.16-skip-build-on-install.patch) which corrects servletapi/jspapi related build snafu on install. They're already built so it's OK to skip. * Thu Dec 4 2003 Kaj J. Niemi <kajtzu@fi.basen.net> 0:5.0.16-0.beta.1 - 5.0.16 - jakarta-commons-el included here instead of somewhere else for now, packaging unfinished - Patch #3 removes dependency to jsvc.tar.gz which doesn't seem to be anywhere * Tue Aug 5 2003 Kaj J. Niemi <kajtzu@fi.basen.net> 0:5.0.12-0.beta.1 - Based on JPackage.org's tomcat4 .spec - No compat stuff anymore. - First build