Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MarkSigEp
tomcat7
tomcat7.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tomcat7.spec of Package tomcat7
# # spec file for package tomcat7 (Version 7.0.6) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2000-2009, JPackage Project # All rights reserved. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define section free %define jspspec 2.2 %define major_version 7 %define minor_version 0 %define micro_version 6 %define packdname apache-tomcat-%{version}-src %define servletspec 3.0 %define elspec 2.2 %define tcuid 91 # FHS 2.3 compliant tree structure - http://www.pathname.com/fhs/2.3/ %define appdir /srv/%{name}/webapps %define bindir %{_datadir}/%{name}/bin %define confdir %{_sysconfdir}/%{name} %define homedir %{_datadir}/%{name} %define libdir %{_javadir}/%{name} %define logdir %{_localstatedir}/log/%{name} %define cachedir %{_localstatedir}/cache/%{name} %define tempdir %{cachedir}/temp %define workdir %{cachedir}/work %define _initrddir %{_sysconfdir}/init.d Name: tomcat7 Version: %{major_version}.%{minor_version}.%{micro_version} Release: 11.1 Summary: Apache Servlet/JSP Engine, RI for Servlet 3.0/JSP 2.2 API Group: Productivity/Networking/Web/Servers License: Apache Software License .. Url: http://tomcat.apache.org Source0: http://www.apache.org/dist/tomcat/tomcat-7/v%{version}/src/%{packdname}.tar.gz Source1: %{name}-%{major_version}.%{minor_version}.conf Source2: %{name}-%{major_version}.%{minor_version}.init # sysconfig removal - bnc#471639 #Source3: %{name}-%{major_version}.%{minor_version}.sysconfig Source4: %{name}-%{major_version}.%{minor_version}.wrapper Source5: %{name}-%{major_version}.%{minor_version}.logrotate Source6: %{name}-%{major_version}.%{minor_version}-digest.script Source7: %{name}-%{major_version}.%{minor_version}-tool-wrapper.script Source8: %{name}-%{major_version}.%{minor_version}.starter #bnc#653586: offline jasper compiler for spacewalk - rewritten from tomcat5.5/jasper/bin Source100: tomcat7-7.0.jasper.sh Source101: tomcat7-7.0.jspc Source1000: tomcat7-rpmlintrc #PATCH-FIX-UPSTREAM: from jpackage.org package Patch0: %{name}-%{major_version}.%{minor_version}.bootstrap-MANIFEST.MF.patch #PATCH-FIX-UPSTREAM: from jpackage.org package Patch1: %{name}-%{major_version}.%{minor_version}-tomcat-users-webapp.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch BuildRequires: ant BuildRequires: ant-trax BuildRequires: ecj > 3.2.2 BuildRequires: findutils BuildRequires: jakarta-commons-collections BuildRequires: jakarta-commons-daemon BuildRequires: java-devel >= 1.6.0 BuildRequires: jpackage-utils >= 1.7.0 BuildRequires: junit BuildRequires: sed %if %defined suse_version BuildRequires: unzip BuildRequires: jakarta-taglibs-standard >= 1.1 BuildRequires: fdupes Requires(pre): jpackage-utils Recommends: libtcnative-1-0 Recommends: logrotate %endif Requires(pre): %{_sbindir}/groupadd Requires(pre): %{_sbindir}/useradd Requires: jakarta-commons-daemon Requires: jakarta-commons-logging Requires: %{name}-lib = %{version}-%{release} Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(post): findutils Requires(post): coreutils Obsoletes: tomcat6 < %{version} Provides: tomcat7 = %{version} %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 version 2.0. Tomcat is intended to be a collaboration of the best-of-breed developers from around the world. %package admin-webapps License: Apache Software License .. Group: Productivity/Networking/Web/Servers Summary: The host-manager and manager web applications for Apache Tomcat Requires: %{name} = %{version}-%{release} Obsoletes: tomcat6-admin-webapps Provides: tomcat7-admin-webapps = %{version} %description admin-webapps The host-manager and manager web applications for Apache Tomcat. %package docs-webapp License: Apache Software License .. Group: Productivity/Networking/Web/Servers Summary: The docs web application for Apache Tomcat Requires: %{name} = %{version}-%{release} Obsoletes: tomcat6-docs-webapp < %{version} Provides: tomcat7-docs-webapp = %{version} %description docs-webapp The docs web application for Apache Tomcat. %package el-2_2-api License: Apache Software License .. Summary: Expression Language v1.0 API Group: Development/Libraries/Java Provides: %{name}-el-%{elspec}-api = %{version}-%{release} Provides: el_2_2_api = %{version}-%{release} Provides: el_api = 2.2 Requires(preun):%{_sbindir}/update-alternatives Requires(post): %{_sbindir}/update-alternatives %description el-2_2-api Expression Language 2.2. %package javadoc License: Apache Software License .. Group: Productivity/Networking/Web/Servers Summary: Javadoc generated documentation for Apache Tomcat Obsoletes: javadoc < %{version} Provides: javadoc = %{version} %description javadoc Javadoc generated documentation for Apache Tomcat. %package jsp-2_2-api License: Apache Software License .. Group: Productivity/Networking/Web/Servers Summary: Apache Tomcat JSP API implementation classes Provides: jsp = %{jspspec} Provides: jsp22 Provides: %{name}-jsp-2.2-api Requires: %{name}-servlet-3_0-api = %{version}-%{release} Requires(post): %{_sbindir}/update-alternatives Requires(postun): %{_sbindir}/update-alternatives %description jsp-2_2-api Apache Tomcat JSP API implementation classes %package lib License: Apache Software License .. Group: Productivity/Networking/Web/Servers Summary: Libraries needed to run the Tomcat Web container Requires: %{name}-jsp-2_2-api = %{version}-%{release} Requires: %{name}-servlet-3_0-api = %{version}-%{release} Requires: %{name}-el-%{elspec}-api = %{version}-%{release} Requires(post): ecj Requires(post): jakarta-commons-collections-tomcat5 Requires(post): jakarta-commons-dbcp-tomcat5 Requires(post): jakarta-commons-pool-tomcat5 Requires(preun):%{__rm} Obsoletes: tomcat6-lib < %{version} Provides: tomcat7-lib = %{version} %description lib Libraries needed to run the Tomcat Web container %package servlet-3_0-api License: Apache Software License .. Group: Productivity/Networking/Web/Servers Summary: Apache Tomcat Servlet API implementation classes Provides: %{name}-servlet-3.0-api Provides: servlet = %{servletspec} Provides: servlet7 Provides: servlet30 Requires(post): %{_sbindir}/update-alternatives Requires(postun): %{_sbindir}/update-alternatives %description servlet-3_0-api Apache Tomcat Servlet API implementation classes %package webapps License: Apache Software License .. Group: Productivity/Networking/Web/Servers Summary: The ROOT and examples web applications for Apache Tomcat Requires: %{name} = %{version}-%{release} Requires(post): jakarta-taglibs-standard >= 1.1 Obsoletes: tomcat6-webapps < %{version} Provides: tomcat7-webapps = %{version} %description webapps The ROOT and examples web applications for Apache Tomcat %prep %setup -q -n %{packdname} # remove pre-built binaries and windows files find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "*.gz" -o \ -name "*.jar" -o -name "*.war" -o -name "*.zip" \) | xargs -t %{__rm} %patch0 -p1 %patch1 -p0 %build export CLASSPATH= export OPT_JAR_LIST="ant/ant-trax" # remove pre-built binaries and windows files find . \( -name "*.bat" -o -name "*.class" -o -name "*.gz" -o \ -name "*.jar" -o -name "*.zip" \) | xargs -t %{__rm} -f # we don't care about the tarballs and we're going to replace # tomcat-dbcp.jar with jakarta-commons-{collections,dbcp,pool}-tomcat5.jar # so just create a dummy file for later removal touch HACK %if %defined suse_version export CLASSPATH="$(build-classpath xalan-j2-serializer)" export ANT_OPTS=-Xmx500M %endif # who needs a build.properties file anyway %{ant} -v -d -Dbase.path="." \ -Dbuild.compiler="modern" \ -Dcommons-collections.jar="$(build-classpath commons-collections)" \ -Dcommons-daemon.jar="$(build-classpath commons-daemon)" \ -Dcommons-daemon.native.src.tgz="HACK" \ -Dno.build.dbcp \ -Djasper-jdt.jar="$(build-classpath ecj)" \ -Djdt.jar="$(build-classpath ecj)" \ -Dtomcat-dbcp.jar="HACK" \ -Dtomcat-native.tar.gz="HACK" \ -Dversion="%{version}" \ -Dversion.build="%{micro_version}" %{ant} -v -d dist-prepare dist-source javadoc # javadoc generation # remove some jars that we'll replace with symlinks later %{__rm} output/build/bin/commons-daemon.jar \ output/build/lib/ecj.jar # remove the cruft we created %{__rm} output/build/bin/tomcat-native.tar.gz %install # build initial path structure %{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_bindir} %{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sbindir} %{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_javadocdir}/%{name} %{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_initrddir} %{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d %{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_localstatedir}/log/%{name} %if ! %defined suse_version %{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig %endif %{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{appdir} %{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{bindir} %{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{confdir} %{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{libdir} %{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{logdir} %{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{homedir} %{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{tempdir} %{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{cachedir}/Catalina/localhost # move things into place pushd output/build %{__cp} -a bin/*.{jar,xml} ${RPM_BUILD_ROOT}%{bindir} %{__cp} -a conf/*.{policy,properties,xml} ${RPM_BUILD_ROOT}%{confdir} %{__cp} -a lib/*.jar ${RPM_BUILD_ROOT}%{libdir} %{__cp} -a webapps/* ${RPM_BUILD_ROOT}%{appdir} popd %{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \ -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" %{SOURCE1} \ %if %defined suse_version -e "s|\@\@\@JAVAHOME\@\@\@|/etc/alternatives/jre|g" \ %endif > ${RPM_BUILD_ROOT}%{confdir}/%{name}.conf # bnc#471639 %if ! %defined suse_version %{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \ -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" %{SOURCE3} \ > ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name} %endif %{__install} -m 0755 %{SOURCE2} \ ${RPM_BUILD_ROOT}%{_initrddir}/%{name} %{__install} -m 0755 %{SOURCE4} \ ${RPM_BUILD_ROOT}%{_sbindir}/d%{name} #%{__ln_s} %{name} ${RPM_BUILD_ROOT}%{_sbindir}/d%{name} %{__install} -m 0755 %{SOURCE8} \ ${RPM_BUILD_ROOT}%{_sbindir}/%{name} %{__sed} -e "s|\@\@\@TCLOG\@\@\@|%{logdir}|g" %{SOURCE5} \ > ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name} %{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \ -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \ -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE6} \ > ${RPM_BUILD_ROOT}%{_bindir}/%{name}-digest %{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \ -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \ -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE7} \ > ${RPM_BUILD_ROOT}%{_bindir}/%{name}-tool-wrapper pushd ${RPM_BUILD_ROOT}%{_javadir} # create jsp and servlet and el API symlinks %{__mv} %{name}/jsp-api.jar %{name}-jsp-%{jspspec}-api-%{version}.jar %{__mv} %{name}/servlet-api.jar %{name}-servlet-%{servletspec}-api-%{version}.jar %{__mv} %{name}/el-api.jar %{name}-el-%{elspec}-api-%{version}.jar /bin/touch el_1_0_api.jar /bin/touch el_api.jar /bin/touch jsp.jar /bin/touch servlet.jar %{__ln_s} %{name}-jsp-%{jspspec}-api-%{version}.jar %{name}-jsp-%{jspspec}-api.jar %{__ln_s} %{name}-servlet-%{servletspec}-api-%{version}.jar %{name}-servlet-%{servletspec}-api.jar %{__ln_s} %{name}-el-%{elspec}-api-%{version}.jar %{name}-el-%{elspec}-api.jar popd pushd ${RPM_BUILD_ROOT}%{libdir} # fix up jars to include version number for i in *.jar; do j="$(echo $i | %{__sed} -e 's,\.jar$,,')" %{__mv} ${j}.jar ${j}-%{version}.jar %{__ln_s} ${j}-%{version}.jar ${j}.jar done # symlink JSP and servlet and el API jars %{__ln_s} ../%{name}-jsp-%{jspspec}-api-%{version}.jar . %{__ln_s} ../%{name}-servlet-%{servletspec}-api-%{version}.jar . %{__ln_s} ../%{name}-el-%{elspec}-api-%{version}.jar . popd pushd ${RPM_BUILD_ROOT}%{bindir} # fix up jars to include version number for i in *.jar; do j="$(echo $i | %{__sed} -e 's,\.jar$,,')" %{__mv} ${j}.jar ${j}-%{version}.jar %{__ln_s} ${j}-%{version}.jar ${j}.jar done popd # symlink to the FHS locations where we've installed things pushd ${RPM_BUILD_ROOT}%{homedir} %{__ln_s} %{appdir} webapps %{__ln_s} %{confdir} conf %{__ln_s} %{libdir} lib %{__ln_s} %{logdir} logs %{__ln_s} %{tempdir} temp %{__ln_s} %{cachedir} work popd %{_bindir}/build-jar-repository -p ${RPM_BUILD_ROOT}%{libdir} commons-collections-tomcat5 \ commons-dbcp-tomcat5 commons-pool-tomcat5 ecj %if %defined suse_version # bnc#424675 touch %{buildroot}/%{confdir}/Catalina # bnc#418664 install -d -m 0755 ${RPM_BUILD_ROOT}/%{_sysconfdir}/ant.d/ echo "tomcat6/catalina-ant" > ${RPM_BUILD_ROOT}/%{_sysconfdir}/ant.d/catalina-ant %fdupes $RPM_BUILD_ROOT /srv/%{name} install -d -m 755 $RPM_BUILD_ROOT/%{_sbindir} ln -sf %{_initrddir}/%{name} $RPM_BUILD_ROOT/%{_sbindir}/rc%{name} #bnc#565901 ln -sf %{_sbindir}/d%{name} %{buildroot}/%{bindir}/catalina.sh #bnc#653586 - jasper.sh and jspc install -m 0755 %{SOURCE100} %{buildroot}/%{bindir}/jasper.sh install -m 0755 %{SOURCE101} %{buildroot}/%{_bindir}/jspc %endif %clean %{__rm} -rf $RPM_BUILD_ROOT %pre # add the tomcat user and group %if %defined suse_version %{_sbindir}/groupadd -r tomcat 2>/dev/null || : %{_sbindir}/useradd -c "Apache Tomcat" -g tomcat \ -s /bin/sh -r -d %{homedir} tomcat 2>/dev/null || : %else %{_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 %post %if %defined suse_version # Usage: VARIABLE_NAME VARIABLE_VALUE function import_var { MSG="### Imported value from %{_sysconfdir}/sysconfig/%{name}. ###" if [ ! -z "$2" ]; then if [ `grep "^$1" %{confdir}/%{name}.conf` ]; then # add a comment with a previous value sed -i "s@^$1.*@&\n\n$MSG\n#$1=$2@" %{confdir}/%{name}.conf else # move the value echo -e "\n$MSG\n$1=\"$2\"" >> %{confdir}/%{name}.conf fi fi } # sysconfig removal - bnc#471639 if [ -f /etc/sysconfig/%{name} ]; then source %{_sysconfdir}/sysconfig/%{name} import_var JAVA_HOME "$JAVA_HOME" import_var JAVA_OPTS "$JAVA_OPTS" import_var CATALINA_OPTS "$CATALINA_OPTS" echo "Merged settings from '%{_sysconfdir}/sysconfig/%{name}' to '%{confdir}/%{name}.conf'" mv %{_sysconfdir}/sysconfig/%{name} %{_sysconfdir}/%{name}/%{name}.sysconfig.save fi # clean workdir of tomcat6's webapps - bnc#655440#c14 (cd %{workdir}/Catalina/localhost &> /dev/null && \ find _ ROOT docs examples host-manager manager -name '*.java' -or -name '*.class' 2>/dev/null | xargs rm -f) || : %else # install but don't activate /sbin/chkconfig --add %{name} %endif %posttrans #bnc#650130 workaround, the f*kin rpm cannot convert directory to a symlink during update if [ ! -L %{confdir}/Catalina ]; then %{__rm} -f %{confdir}/Catalina/Catalina %{__rm} -rf %{confdir}/Catalina %{__ln_s} %{cachedir}/Catalina %{confdir}/ fi %post el-2_2-api %{_sbindir}/update-alternatives --install %{_javadir}/el_api.jar el_api %{_javadir}/%{name}-el-%{elspec}-api.jar 10000 %{_sbindir}/update-alternatives --install %{_javadir}/el_2_2_api.jar el_2_2_api %{_javadir}/%{name}-el-%{elspec}-api.jar 10000 %preun el-2_2-api if [ "$1" = "0" ]; then %{_sbindir}/update-alternatives --remove el_api %{_javadir}/%{name}-el-%{elspec}-api.jar %{_sbindir}/update-alternatives --remove el_2_2_api %{_javadir}/%{name}-el-%{elspec}-api.jar fi %post jsp-2_2-api %{_sbindir}/update-alternatives --install %{_javadir}/jsp.jar jsp \ %{_javadir}/%{name}-jsp-%{jspspec}-api.jar 20100 %post lib # HACK! The commons-dbcp-tomcat5 needs the tomcat6-lib to build, but tomcat6 # needs this only as post/un dependency to create a symlink, not for build of # itself. This is mainly for succesfully build, in the production case it # should not happen! build-jar-repository %{libdir} \ commons-collections-tomcat5 \ commons-dbcp-tomcat5 \ commons-pool-tomcat5 \ ecj 2>&1 || exit 0 %post servlet-3_0-api %{_sbindir}/update-alternatives --install %{_javadir}/servlet.jar servlet \ %{_javadir}/%{name}-servlet-%{servletspec}-api.jar 20500 %post webapps %{_bindir}/build-jar-repository -p %{appdir}/examples/WEB-INF/lib \ taglibs-core.jar taglibs-standard.jar 2>&1 %preun # clean tempdir and cachedir on removal or upgrade ## % {__rm} -rf %{workdir}/* %{tempdir}/* %if %defined suse_version %stop_on_removal %{name} %else if [ "$1" = "0" ]; then %{_initrddir}/%{name} stop >/dev/null 2>&1 /sbin/chkconfig --del %{name} fi %endif %preun lib if [ "$1" = "0" ]; then %{__rm} -f \ %{libdir}/\[commons-collections-tomcat5\].jar \ %{libdir}/\[commons-dbcp-tomcat5\].jar \ %{libdir}/\[commons-pool-tomcat5\].jar \ %{libdir}/\[ecj\].jar >/dev/null 2>&1 fi %if %defined suse_version %postun %restart_on_update %{name} %insserv_cleanup %endif %postun jsp-2_2-api if [ "$1" = "0" ]; then %{_sbindir}/update-alternatives --remove jsp \ %{_javadir}/%{name}-jsp-%{jspspec}-api.jar fi %postun servlet-3_0-api if [ "$1" = "0" ]; then %{_sbindir}/update-alternatives --remove servlet \ %{_javadir}/%{name}-servlet-%{servletspec}-api.jar fi %files %defattr(0644,root,root,0755) %doc {LICENSE,NOTICE,RELEASE*} %attr(0755,root,root) %{_bindir}/%{name}-digest %attr(0755,root,root) %{_bindir}/%{name}-tool-wrapper %attr(0755,root,root) %{_sbindir}/d%{name} %attr(0755,root,root) %{_sbindir}/%{name} %attr(0755,root,root) %{_initrddir}/%{name} %if %{defined suse_version} #bnc#565901 %attr(0755,root,root) %{bindir}/catalina.sh #bnc#653586 %attr(0755,root,root) %{bindir}/jasper.sh %attr(0755,root,root) %{_bindir}/jspc %endif %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %if ! %defined suse_version %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %endif %dir %{confdir} # % dir %{confdir}/Catalina %ghost %{confdir}/Catalina %config(noreplace) %{confdir}/%{name}.conf %config(noreplace) %{confdir}/*.policy %config(noreplace) %{confdir}/*.properties %config(noreplace) %{confdir}/context.xml %config(noreplace) %{confdir}/server.xml %config(noreplace) %{confdir}/web.xml %verify (not user group) %attr(0660,tomcat,tomcat) %config(noreplace) %{confdir}/tomcat-users.xml %{homedir} %if %{defined suse_version} %dir /srv/%{name} %{_sbindir}/rc%{name} # % {confdir}/Catalina %endif # tomcat group writtable dirs - bnc#625415 %defattr(0664,root,tomcat,0775) %verify (not user group) %dir %{appdir} %verify (not user group) %{cachedir} %verify (not user group) %{logdir} %files admin-webapps %defattr(0644,root,root,0755) %{appdir}/host-manager %{appdir}/manager %files docs-webapp %defattr(0644,root,root,0755) %{appdir}/docs %files el-2_2-api %defattr(0644,root,root,0755) %{_javadir}/%{name}-el-%{elspec}-api-%{version}.jar %{_javadir}/%{name}-el-%{elspec}-api.jar %ghost %{_javadir}/el_1_0_api.jar %ghost %{_javadir}/el_api.jar %files javadoc %defattr(0644,root,root,0755) %{_javadocdir}/%{name} %files jsp-2_2-api %defattr(0644,root,root,0755) %{_javadir}/%{name}-jsp-%{jspspec}-api-%{version}.jar %{_javadir}/%{name}-jsp-%{jspspec}-api.jar %ghost %{_javadir}/jsp.jar %files lib %defattr(0644,root,root,0755) %{libdir} %{libdir}/* # bnc#418664 %config(noreplace) %{_sysconfdir}/ant.d %files servlet-3_0-api %defattr(0644,root,root,0755) %{_javadir}/%{name}-servlet-%{servletspec}-api-%{version}.jar %{_javadir}/%{name}-servlet-%{servletspec}-api.jar %ghost %{_javadir}/servlet.jar %files webapps %defattr(0644,root,root,0755) #bnc#520532 %config(noreplace) %{appdir}/ROOT %{appdir}/examples %changelog * Thu Dec 9 2010 mvyskocil@suse.cz - fix bnc#655440#c14 - clean workdir of tomcat's webapps to be sure our fixed jsps will be redeployed on each update * Thu Nov 25 2010 mvyskocil@suse.cz - fix bnc#655440 - VUL-0: tomcat6: Apache Tomcat Manager application XSS vulnerability (CVE-2010-4172) http://svn.apache.org/viewvc?view=revision&revision=1037779 - fix bnc#653586 - spacewalk 1.2 requires jasper 5.5 * add offline jasper compiler /usr/bin/jspc - unpack tarball to apache-tomcat-$VERSION-src directory directly * Tue Nov 2 2010 mvyskocil@suse.cz - Fix bnc#650130 - Update of tomcat6 not possible (cpio: Is a directory) * workaround the rpm bug - it cannot update directory to symlink * make /etc/tomcat6/Catalina/ as ghost file * create link in %%posttrans * Tue Sep 14 2010 mvyskocil@suse.cz - Update to 6.0.29 (bugfix release) - fix bnc#625415: Tomcat6 does not have permissions to its own directories * also fix the /etc/tomcat6/Catalina link target - revert a setclasspath.sh changes - disable user/group verification of tomcat owned files and directories to allow easy change of the tomcat user without rpm --verify complaints * Thu Jul 15 2010 mvyskocil@suse.cz - Update to 6.0.28 (bugfix release) - fix bnc#565901 - missing catalina.sh again * move catalina.sh to CATALINA_HOME/bin * add jpackage.org compatible CATALINA_HOME/bin/setclasspath.sh - add missing logrotate requires - install scripts with mode 0755 * Wed Feb 3 2010 mvyskocil@suse.cz - Update to 6.0.24 (bugfix release). This obsoletes patch * tomcat6-bug47316.patch - Merged with tomcat6-6.0.18-10.jpp6.src.rpm * return the jpackage.org license header in spec * polish in spec (use more macros) * add logrotate support * add patch to document webapps in %%%%{_sysconfdir}/%%%%{name}/tomcat-users.xml * move %%%%{_bindir}/d%%%%{name} to %%%%{_sbindir}/%%%%{name} and provide symlink to %%%%{_sbindir}/d%%%%{name} * add digest and tool-wrapper scripts * explicitly unset CLASSPATH * explicitly set OPT_JAR_LIST to include ant/ant-trax * build and install sample webapp * use copy instead of move to fix short-circuit install build * version jsp and servlet Provides with their spec versions * make initscript LSB-complaint * add el subpackage * Tue Jan 5 2010 mvyskocil@suse.cz - fixed bnc#565901 - missing catalina.sh * added catalina.sh (link from dtomcat6) to improve upstream compatibility * Wed Sep 30 2009 mvyskocil@suse.cz - fixed bnc#542634: Tomcat NPE on start applied patch from upstream bugzilla https://issues.apache.org/bugzilla/show_bug.cgi?id=47316#c3 * Wed Aug 26 2009 mvyskocil@suse.cz - fixed bnc#520532: marked all webapp/ROOT/* files as config(noreplace) - marked /etc/ant.d/catalina-ant as config(noreplace) * Mon Jun 15 2009 mvyskocil@suse.cz - added a missing -p1 for %%patch0 * Wed Jun 3 2009 mvyskocil@suse.cz - fixed bnc#488061: work directory clean on tomcat stop - update to 6.0.20 - the bugfix release: * MemoryUserDatabase is read-only by default * Allow huge request body packets for AJP13 * Never return an empty HTTP status reason phrase * Prevent double initialisation of JSPs * A node should ignore its own heartbeat messages * Prettry error messages (instead of stacktrace) if shutdown port is disabled * Mon Mar 16 2009 mvyskocil@suse.cz - fixed bnc#418664 - Tomcat6 installation has missing bits - added /etc/ant.d/catalina-ant - another fix for bnc#471639 - tomcat does not start/work * merged a sysconfig and tomcat6.conf to allow a dtomcat6 start works * also fixs (bnc#471639) - fixed bnc#424675 - Access rights to /etc/tomcat6 directory not set right * create a link from /etc/tomcat6/Catalina to /var/cache/tomcat6/Catalina - removed a CATALINA_OPTS from stop in dtcomcat6 (bao#42951) * Wed Feb 25 2009 mvyskocil@suse.cz - fixed bnc#471301: tomcat6 doesn't want to be started when sun java 1.5 is selected - built with -target 1.5 * Mon Feb 9 2009 mvyskocil@suse.cz - Fixed bnc#471639 - tomcat does not start/work - fill up a default JVM in sysconfig - changed a default JAVA_HOME from JRE to SDK in config * Mon Nov 24 2008 mvyskocil@suse.cz - Fixed bnc#446598 - Tomcat6: tomcat6.conf overwrites sysconfig/tomcat6 values * Fri Sep 12 2008 mvyskocil@suse.cz - Update to 6.0.18. This obsoletes patches: apache-tomcat-CVE-2008-1232 apache-tomcat-CVE-2008-1947 apache-tomcat-CVE-2008-2370 apache-tomcat-CVE-2008-2938 * Tue Aug 19 2008 mvyskocil@suse.cz - fix CVE-2008-2938: VUL-0: tomcat5: directory traversal * Wed Aug 6 2008 mvyskocil@suse.cz - fix CVE-2008-1232 and CVE-2008-2370: VUL-0: Apache Tomcat Cross-Site Scripting and Security Bypass [bnc#414657] * Mon Jul 21 2008 mvyskocil@suse.cz - fixed [bnc#394503]: tomcat6 is missing rctomcat6 link - add a /usr/sbin/rctomcat6 symlink - and heavy rewrite and improve of original jpackage tomcat6 init script - add Should-Start and Should-Stop section and values for Default-Start and Default-Stop - removed the echo_success and echo_failure functions and usage - include a /etc/rc.status and use a rc_XXXXX functions instead of echo and return. Plus add a comments with error codes explanations - merge the start/stop/status messages from previous version - use `ps' command instead of pgrep - changes in commands: added a try-restart|force-reload|reload|probe and removed the version|conrestart - fixed [bnc#394499]: add a PreReq to jpackage-utils - fixed [bnc#408253]: tomcat6 fails because if missing commons-xxxx jars - add a removed dependencies to the jakarta-commons-*-tomcat5 packages - fixed a proper link creation in post/n scripts - fixed a build cycle, jakarta-commons-dbcp-tomcat5 needs the tomcat6-lib for build, but the tomcat6-lib has this package in Requires(post). The %%post scripplet is non-fatal if the jars cannot be found (but this would not happens in a production state). * Fri Jun 27 2008 mvyskocil@suse.cz - fixed [bnc#396962]: VUL-0: tomcat5: [SECURITY] CVE-2008-1947: Tomcat host-manager XSS vulnerability - fixed [bnc#403310]: Tomcat startup script uses wrong java.io.tmpdir - the temp directory is in /var/cache/tomcat6/temp * Tue May 6 2008 mvyskocil@suse.cz - fixed a [bnc#383331] - Tomcat cannot compile JSPs - add a ecj requires for tomcat6-lib - create a symlink of ecj.jar to tomcat6 libdir - add a jakarta-taglibs-standard to BuildRequires - use a fdupes to avoid a file duplication waste in /srv - replace a %%{_jvmdir}/jre to /etc/alternatives/jre in JAVAHOME in default tomcat6.conf (this path is architecture independent) - add a %%stop_on_removal to %%preun, %%restart_on_update and %%insserv_cleanup to %%postun to fix some rpmlint warnings - add a $remote_fs dependency to init script * Wed Feb 27 2008 mvyskocil@suse.cz - update to 6.0.16 * Fri Jan 25 2008 coolo@suse.de - don't require the old package names * Fri Jan 25 2008 ro@suse.de - don't use dots in package names * Tue Jan 22 2008 anosek@suse.cz - don't use macros in package names (the %%package lines) which does not work with autobuild. * Thu Dec 20 2007 anosek@suse.cz - don't use static uid/gid for tomcat user and tomcat group * Tue Dec 4 2007 anosek@suse.cz - initial version of tomcat6 package - based on work by jpackage project
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor