2008-04-07 22:37:26 +00:00
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
2011-04-27 05:54:04 +00:00
|
|
|
%global jspspec 2.2
|
|
|
|
%global major_version 7
|
2010-03-29 17:59:55 +00:00
|
|
|
%global minor_version 0
|
2012-01-21 21:52:19 +00:00
|
|
|
%global micro_version 25
|
2010-03-29 17:59:55 +00:00
|
|
|
%global packdname apache-tomcat-%{version}-src
|
2011-04-27 05:54:04 +00:00
|
|
|
%global servletspec 3.0
|
|
|
|
%global elspec 2.2
|
2010-03-29 17:59:55 +00:00
|
|
|
%global tcuid 91
|
2008-04-07 22:37:26 +00:00
|
|
|
|
|
|
|
# FHS 2.3 compliant tree structure - http://www.pathname.com/fhs/2.3/
|
2010-03-29 17:59:55 +00:00
|
|
|
%global basedir %{_var}/lib/%{name}
|
|
|
|
%global appdir %{basedir}/webapps
|
|
|
|
%global homedir %{_datadir}/%{name}
|
2011-06-06 21:23:05 +00:00
|
|
|
%global bindir %{homedir}/bin
|
|
|
|
%global confdir %{_sysconfdir}/%{name}
|
2010-03-29 17:59:55 +00:00
|
|
|
%global libdir %{_javadir}/%{name}
|
|
|
|
%global logdir %{_var}/log/%{name}
|
|
|
|
%global cachedir %{_var}/cache/%{name}
|
|
|
|
%global tempdir %{cachedir}/temp
|
|
|
|
%global workdir %{cachedir}/work
|
|
|
|
%global _initrddir %{_sysconfdir}/init.d
|
2011-06-06 21:23:05 +00:00
|
|
|
%global _systemddir /lib/systemd/system
|
2008-04-07 22:37:26 +00:00
|
|
|
|
2011-04-28 05:35:45 +00:00
|
|
|
Name: tomcat
|
2010-12-02 16:10:02 +00:00
|
|
|
Epoch: 0
|
|
|
|
Version: %{major_version}.%{minor_version}.%{micro_version}
|
2012-01-21 21:52:19 +00:00
|
|
|
Release: 1%{?dist}
|
2010-12-02 16:10:02 +00:00
|
|
|
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
|
|
|
|
|
2011-05-01 22:09:32 +00:00
|
|
|
Group: System Environment/Daemons
|
2010-12-02 16:10:02 +00:00
|
|
|
License: ASL 2.0
|
|
|
|
URL: http://tomcat.apache.org/
|
2011-05-20 21:44:00 +00:00
|
|
|
Source0: http://www.apache.org/dist/tomcat/tomcat-%{major_version}/v%{version}/src/%{packdname}.tar.gz
|
2010-12-02 16:10:02 +00:00
|
|
|
Source1: %{name}-%{major_version}.%{minor_version}.conf
|
|
|
|
Source2: %{name}-%{major_version}.%{minor_version}.init
|
|
|
|
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: servlet-api-OSGi-MANIFEST.MF
|
|
|
|
Source9: jsp-api-OSGi-MANIFEST.MF
|
|
|
|
Source10: %{name}-%{major_version}.%{minor_version}-log4j.properties
|
2011-06-06 21:23:05 +00:00
|
|
|
Source11: %{name}-%{major_version}.%{minor_version}.service
|
2011-09-22 20:35:12 +00:00
|
|
|
Source12: el-api-OSGi-MANIFEST.MF
|
|
|
|
Source13: jasper-el-OSGi-MANIFEST.MF
|
|
|
|
Source14: jasper-OSGi-MANIFEST.MF
|
|
|
|
Source15: tomcat-api-OSGi-MANIFEST.MF
|
|
|
|
Source16: tomcat-juli-OSGi-MANIFEST.MF
|
2011-11-10 21:48:56 +00:00
|
|
|
Source17: %{name}-%{major_version}.%{minor_version}-tomcat-sysd
|
2012-01-11 22:58:04 +00:00
|
|
|
Source18: %{name}-%{major_version}.%{minor_version}-tomcat-jsvc-sysd
|
|
|
|
Source19: %{name}-%{major_version}.%{minor_version}-jsvc.wrapper
|
|
|
|
Source20: %{name}-%{major_version}.%{minor_version}-jsvc.service
|
|
|
|
|
|
|
|
|
2010-12-02 16:10:02 +00:00
|
|
|
Patch0: %{name}-%{major_version}.%{minor_version}-bootstrap-MANIFEST.MF.patch
|
|
|
|
Patch1: %{name}-%{major_version}.%{minor_version}-tomcat-users-webapp.patch
|
2012-01-21 21:52:19 +00:00
|
|
|
#https://issues.apache.org/bugzilla/show_bug.cgi?id=52493
|
|
|
|
Patch2: add_parent_logger_getter.patch
|
2011-04-27 05:54:04 +00:00
|
|
|
|
2010-12-02 16:10:02 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2008-04-07 22:37:26 +00:00
|
|
|
BuildRequires: ant
|
2010-10-05 15:34:55 +00:00
|
|
|
BuildRequires: ant-nodeps
|
2008-09-05 17:14:04 +00:00
|
|
|
BuildRequires: ecj
|
2008-04-07 22:37:26 +00:00
|
|
|
BuildRequires: findutils
|
2011-04-28 05:35:45 +00:00
|
|
|
BuildRequires: apache-commons-collections
|
|
|
|
BuildRequires: apache-commons-daemon
|
|
|
|
BuildRequires: apache-commons-dbcp
|
|
|
|
BuildRequires: apache-commons-pool
|
2010-04-06 19:02:40 +00:00
|
|
|
BuildRequires: jakarta-taglibs-standard
|
2012-01-21 21:52:19 +00:00
|
|
|
BuildRequires: java-devel >= 1:1.6.0
|
2008-04-07 22:37:26 +00:00
|
|
|
BuildRequires: jpackage-utils >= 0:1.7.0
|
|
|
|
BuildRequires: junit
|
2010-06-29 21:51:36 +00:00
|
|
|
BuildRequires: log4j
|
2011-05-04 21:42:20 +00:00
|
|
|
BuildRequires: geronimo-jaxrpc
|
|
|
|
BuildRequires: wsdl4j
|
2011-11-10 21:48:56 +00:00
|
|
|
BuildRequires: systemd-units
|
2011-04-28 05:35:45 +00:00
|
|
|
Requires: apache-commons-daemon
|
|
|
|
Requires: apache-commons-logging
|
|
|
|
Requires: apache-commons-collections
|
|
|
|
Requires: apache-commons-dbcp
|
|
|
|
Requires: apache-commons-pool
|
2012-01-21 21:52:19 +00:00
|
|
|
Requires: java >= 1:1.6.0
|
2010-12-02 16:10:02 +00:00
|
|
|
Requires: procps
|
|
|
|
Requires: %{name}-lib = %{epoch}:%{version}-%{release}
|
|
|
|
Requires(pre): shadow-utils
|
2011-01-03 08:54:46 +00:00
|
|
|
Requires(post): chkconfig
|
|
|
|
Requires(preun): chkconfig
|
|
|
|
Requires(post): redhat-lsb
|
|
|
|
Requires(preun): redhat-lsb
|
2011-11-10 21:48:56 +00:00
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(preun): systemd-units
|
|
|
|
Requires(postun): systemd-units
|
2008-04-07 22:37:26 +00:00
|
|
|
|
|
|
|
%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
|
2011-05-01 22:09:32 +00:00
|
|
|
Group: Applications/System
|
2008-04-07 22:37:26 +00:00
|
|
|
Summary: The host-manager and manager web applications for Apache Tomcat
|
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
%description admin-webapps
|
2008-09-05 17:14:04 +00:00
|
|
|
The host-manager and manager web applications for Apache Tomcat.
|
2008-04-07 22:37:26 +00:00
|
|
|
|
|
|
|
%package docs-webapp
|
2011-05-01 22:09:32 +00:00
|
|
|
Group: Applications/Text
|
2008-04-07 22:37:26 +00:00
|
|
|
Summary: The docs web application for Apache Tomcat
|
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
%description docs-webapp
|
2008-09-05 17:14:04 +00:00
|
|
|
The docs web application for Apache Tomcat.
|
2008-04-07 22:37:26 +00:00
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Group: Documentation
|
|
|
|
Summary: Javadoc generated documentation for Apache Tomcat
|
2011-05-20 21:44:00 +00:00
|
|
|
Requires: jpackage-utils
|
2008-04-07 22:37:26 +00:00
|
|
|
|
|
|
|
%description javadoc
|
2008-09-05 17:14:04 +00:00
|
|
|
Javadoc generated documentation for Apache Tomcat.
|
2008-04-07 22:37:26 +00:00
|
|
|
|
2011-11-10 21:48:56 +00:00
|
|
|
%package systemv
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
Summary: Systemv scripts for Apache Tomcat
|
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
2012-01-21 21:52:19 +00:00
|
|
|
Requires(post): chkconfig
|
|
|
|
Requires(postun): chkconfig
|
2011-11-10 21:48:56 +00:00
|
|
|
|
|
|
|
%description systemv
|
|
|
|
SystemV scripts to start and stop tomcat service
|
|
|
|
|
2012-01-11 22:58:04 +00:00
|
|
|
%package jsvc
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
Summary: Apache jsvc wrapper for Apache Tomcat as separate service
|
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
Requires: apache-commons-daemon-jsvc
|
|
|
|
|
|
|
|
%description jsvc
|
|
|
|
Systemd service and wrapper scripts to start tomcat with jsvc,
|
|
|
|
which allows tomcat to perform some privileged operations
|
|
|
|
(e.g. bind to a port < 1024) and then switch identity to a non-privileged user.
|
|
|
|
|
2008-04-07 22:37:26 +00:00
|
|
|
%package jsp-%{jspspec}-api
|
2011-05-01 22:09:32 +00:00
|
|
|
Group: Development/Libraries
|
2008-04-07 22:37:26 +00:00
|
|
|
Summary: Apache Tomcat JSP API implementation classes
|
|
|
|
Provides: jsp = %{jspspec}
|
2011-04-27 05:54:04 +00:00
|
|
|
Provides: jsp22
|
2008-04-07 22:37:26 +00:00
|
|
|
Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
%description jsp-%{jspspec}-api
|
2008-09-05 17:14:04 +00:00
|
|
|
Apache Tomcat JSP API implementation classes.
|
2008-04-07 22:37:26 +00:00
|
|
|
|
2010-06-29 21:51:36 +00:00
|
|
|
|
2008-04-07 22:37:26 +00:00
|
|
|
%package lib
|
2011-05-01 22:09:32 +00:00
|
|
|
Group: Development/Libraries
|
2008-04-07 22:37:26 +00:00
|
|
|
Summary: Libraries needed to run the Tomcat Web container
|
|
|
|
Requires: %{name}-jsp-%{jspspec}-api = %{epoch}:%{version}-%{release}
|
|
|
|
Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release}
|
2010-06-29 21:51:36 +00:00
|
|
|
Requires: %{name}-el-%{elspec}-api = %{epoch}:%{version}-%{release}
|
2010-04-06 19:02:40 +00:00
|
|
|
Requires: ecj
|
2011-04-28 05:35:45 +00:00
|
|
|
Requires: apache-commons-collections
|
|
|
|
Requires: apache-commons-dbcp
|
|
|
|
Requires: apache-commons-pool
|
2008-04-07 22:37:26 +00:00
|
|
|
Requires(preun): coreutils
|
|
|
|
|
|
|
|
%description lib
|
2008-09-05 17:14:04 +00:00
|
|
|
Libraries needed to run the Tomcat Web container.
|
2008-04-07 22:37:26 +00:00
|
|
|
|
|
|
|
%package servlet-%{servletspec}-api
|
2011-05-01 22:09:32 +00:00
|
|
|
Group: Development/Libraries
|
2008-04-07 22:37:26 +00:00
|
|
|
Summary: Apache Tomcat Servlet API implementation classes
|
|
|
|
Provides: servlet = %{servletspec}
|
|
|
|
Provides: servlet6
|
2011-04-27 05:54:04 +00:00
|
|
|
Provides: servlet3
|
2008-04-07 22:37:26 +00:00
|
|
|
|
|
|
|
%description servlet-%{servletspec}-api
|
2008-09-05 17:14:04 +00:00
|
|
|
Apache Tomcat Servlet API implementation classes.
|
2008-04-07 22:37:26 +00:00
|
|
|
|
2010-06-29 21:51:36 +00:00
|
|
|
%package el-%{elspec}-api
|
2011-05-01 22:09:32 +00:00
|
|
|
Group: Development/Libraries
|
2010-06-29 21:51:36 +00:00
|
|
|
Summary: Expression Language v1.0 API
|
|
|
|
Provides: el_1_0_api = %{epoch}:%{version}-%{release}
|
|
|
|
Provides: el_api = %{elspec}
|
|
|
|
|
|
|
|
%description el-%{elspec}-api
|
|
|
|
Expression Language 1.0.
|
|
|
|
|
2008-04-07 22:37:26 +00:00
|
|
|
%package webapps
|
2011-05-01 22:09:32 +00:00
|
|
|
Group: Applications/Internet
|
2008-04-07 22:37:26 +00:00
|
|
|
Summary: The ROOT and examples web applications for Apache Tomcat
|
|
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
2010-04-06 19:02:40 +00:00
|
|
|
Requires: jakarta-taglibs-standard >= 0:1.1
|
2008-04-07 22:37:26 +00:00
|
|
|
|
|
|
|
%description webapps
|
2008-09-05 17:14:04 +00:00
|
|
|
The ROOT and examples web applications for Apache Tomcat.
|
2008-04-07 22:37:26 +00:00
|
|
|
|
|
|
|
%prep
|
2011-01-03 08:54:46 +00:00
|
|
|
%setup -q -n %{packdname}
|
2008-04-07 22:37:26 +00:00
|
|
|
# remove pre-built binaries and windows files
|
2008-09-05 17:14:04 +00:00
|
|
|
find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "*.gz" -o \
|
2010-12-02 16:15:01 +00:00
|
|
|
-name "*.jar" -o -name "*.war" -o -name "*.zip" \) -delete
|
|
|
|
|
2008-04-07 22:37:26 +00:00
|
|
|
%patch0 -p0
|
|
|
|
%patch1 -p0
|
2012-01-11 10:40:54 +00:00
|
|
|
%patch2 -p0
|
2010-06-29 21:51:36 +00:00
|
|
|
%{__ln_s} $(build-classpath jakarta-taglibs-core) webapps/examples/WEB-INF/lib/jstl.jar
|
|
|
|
%{__ln_s} $(build-classpath jakarta-taglibs-standard) webapps/examples/WEB-INF/lib/standard.jar
|
2008-04-07 22:37:26 +00:00
|
|
|
|
|
|
|
%build
|
2011-01-03 08:54:46 +00:00
|
|
|
export OPT_JAR_LIST="xalan-j2-serializer"
|
2010-06-29 21:51:36 +00:00
|
|
|
# we don't care about the tarballs and we're going to replace
|
2010-12-02 16:10:02 +00:00
|
|
|
# tomcat-dbcp.jar with apache-commons-{collections,dbcp,pool}-tomcat5.jar
|
2010-06-29 21:51:36 +00:00
|
|
|
# so just create a dummy file for later removal
|
|
|
|
touch HACK
|
2011-05-04 21:42:20 +00:00
|
|
|
%{__mkdir_p} HACKDIR
|
|
|
|
touch HACKDIR/build.xml
|
2010-06-29 21:51:36 +00:00
|
|
|
# who needs a build.properties file anyway
|
|
|
|
%{ant} -Dbase.path="." \
|
|
|
|
-Dbuild.compiler="modern" \
|
2010-12-02 16:10:02 +00:00
|
|
|
-Dcommons-collections.jar="$(build-classpath apache-commons-collections)" \
|
|
|
|
-Dcommons-daemon.jar="$(build-classpath apache-commons-daemon)" \
|
2011-01-03 08:54:46 +00:00
|
|
|
-Dcommons-daemon.native.src.tgz="HACK" \
|
2010-06-29 21:51:36 +00:00
|
|
|
-Djasper-jdt.jar="$(build-classpath ecj)" \
|
|
|
|
-Djdt.jar="$(build-classpath ecj)" \
|
2011-05-04 21:42:20 +00:00
|
|
|
-Dtomcat-dbcp.jar="$(build-classpath apache-commons-dbcp)" \
|
2010-06-29 21:51:36 +00:00
|
|
|
-Dtomcat-native.tar.gz="HACK" \
|
2011-05-04 21:42:20 +00:00
|
|
|
-Dtomcat-native.dll.win32="HACK" \
|
|
|
|
-Dtomcat-native.dll.x64="HACK" \
|
|
|
|
-Dtomcat-native.dll.i64="HACK" \
|
|
|
|
-Dcommons-daemon.native.win.mgr.exe="HACK" \
|
|
|
|
-Dnsis.exe="HACK" \
|
|
|
|
-Djaxrpc-lib.jar="$(build-classpath jaxrpc)" \
|
|
|
|
-Dwsdl4j-lib.jar="$(build-classpath wsdl4j)" \
|
|
|
|
-Dcommons-pool.home="HACKDIR" \
|
|
|
|
-Dcommons-dbcp.home="HACKDIR" \
|
|
|
|
-Dno.build.dbcp=true \
|
2011-04-27 05:54:04 +00:00
|
|
|
-Dversion="%{version}" \
|
|
|
|
-Dversion.build="%{micro_version}" \
|
2011-05-04 21:42:20 +00:00
|
|
|
deploy dist-prepare dist-source javadoc
|
2011-04-27 05:54:04 +00:00
|
|
|
|
2008-04-07 22:37:26 +00:00
|
|
|
# remove some jars that we'll replace with symlinks later
|
2011-01-03 08:54:46 +00:00
|
|
|
%{__rm} output/build/bin/commons-daemon.jar \
|
2010-12-02 16:15:01 +00:00
|
|
|
output/build/lib/ecj.jar
|
2008-04-07 22:37:26 +00:00
|
|
|
# remove the cruft we created
|
2011-01-03 08:54:46 +00:00
|
|
|
%{__rm} output/build/bin/tomcat-native.tar.gz
|
|
|
|
pushd output/dist/src/webapps/docs/appdev/sample/src
|
2008-04-07 22:37:26 +00:00
|
|
|
%{__mkdir_p} ../web/WEB-INF/classes
|
|
|
|
%{javac} -cp ../../../../../../../../output/build/lib/servlet-api.jar -d ../web/WEB-INF/classes mypackage/Hello.java
|
|
|
|
pushd ../web
|
|
|
|
%{jar} cf ../../../../../../../../output/build/webapps/docs/appdev/sample/sample.war *
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
2009-04-01 20:29:13 +00:00
|
|
|
# inject OSGi manifests
|
|
|
|
mkdir -p META-INF
|
|
|
|
cp -p %{SOURCE8} META-INF/MANIFEST.MF
|
|
|
|
touch META-INF/MANIFEST.MF
|
2011-01-03 08:54:46 +00:00
|
|
|
zip -u output/build/lib/servlet-api.jar META-INF/MANIFEST.MF
|
2010-03-01 14:44:21 +00:00
|
|
|
cp -p %{SOURCE9} META-INF/MANIFEST.MF
|
|
|
|
touch META-INF/MANIFEST.MF
|
2011-01-03 08:54:46 +00:00
|
|
|
zip -u output/build/lib/jsp-api.jar META-INF/MANIFEST.MF
|
2011-09-22 20:35:12 +00:00
|
|
|
cp -p %{SOURCE12} META-INF/MANIFEST.MF
|
|
|
|
touch META-INF/MANIFEST.MF
|
|
|
|
zip -u output/build/lib/el-api.jar META-INF/MANIFEST.MF
|
|
|
|
cp -p %{SOURCE13} META-INF/MANIFEST.MF
|
|
|
|
touch META-INF/MANIFEST.MF
|
|
|
|
zip -u output/build/lib/jasper-el.jar META-INF/MANIFEST.MF
|
|
|
|
cp -p %{SOURCE14} META-INF/MANIFEST.MF
|
|
|
|
touch META-INF/MANIFEST.MF
|
|
|
|
zip -u output/build/lib/jasper.jar META-INF/MANIFEST.MF
|
|
|
|
cp -p %{SOURCE15} META-INF/MANIFEST.MF
|
|
|
|
touch META-INF/MANIFEST.MF
|
|
|
|
zip -u output/build/lib/tomcat-api.jar META-INF/MANIFEST.MF
|
|
|
|
cp -p %{SOURCE16} META-INF/MANIFEST.MF
|
|
|
|
touch META-INF/MANIFEST.MF
|
|
|
|
zip -u output/build/bin/tomcat-juli.jar META-INF/MANIFEST.MF
|
2009-04-01 20:29:13 +00:00
|
|
|
|
2008-04-07 22:37:26 +00:00
|
|
|
%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}
|
2011-06-06 21:23:05 +00:00
|
|
|
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_systemddir}
|
2008-04-07 22:37:26 +00:00
|
|
|
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
|
|
|
|
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
|
|
|
|
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{appdir}
|
|
|
|
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{bindir}
|
2010-06-29 21:51:36 +00:00
|
|
|
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}
|
|
|
|
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}/Catalina/localhost
|
2008-04-07 22:37:26 +00:00
|
|
|
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{libdir}
|
2010-06-29 21:51:36 +00:00
|
|
|
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{logdir}
|
2011-02-28 22:48:39 +00:00
|
|
|
/bin/touch ${RPM_BUILD_ROOT}%{logdir}/catalina.out
|
2011-05-01 22:09:32 +00:00
|
|
|
/bin/echo "%{name}-%{major_version}.%{minor_version}.%{micro_version} RPM installed" >> ${RPM_BUILD_ROOT}%{logdir}/catalina.out
|
2010-06-29 21:51:36 +00:00
|
|
|
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{homedir}
|
|
|
|
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{tempdir}
|
|
|
|
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{workdir}
|
2011-11-10 21:48:56 +00:00
|
|
|
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_unitdir}
|
2010-03-29 17:59:55 +00:00
|
|
|
|
2008-04-07 22:37:26 +00:00
|
|
|
# move things into place
|
2010-03-29 17:59:55 +00:00
|
|
|
# First copy supporting libs to tomcat lib
|
2011-01-03 08:54:46 +00:00
|
|
|
pushd output/build
|
2008-04-07 22:37:26 +00:00
|
|
|
%{__cp} -a bin/*.{jar,xml} ${RPM_BUILD_ROOT}%{bindir}
|
2010-06-29 21:51:36 +00:00
|
|
|
%{__cp} %{SOURCE10} conf/log4j.properties
|
2008-04-07 22:37:26 +00:00
|
|
|
%{__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
|
|
|
|
# javadoc
|
2011-01-03 08:54:46 +00:00
|
|
|
%{__cp} -a output/dist/webapps/docs/api/* ${RPM_BUILD_ROOT}%{_javadocdir}/%{name}
|
2010-12-02 16:15:01 +00:00
|
|
|
|
2008-04-07 22:37:26 +00:00
|
|
|
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
|
2010-06-29 21:51:36 +00:00
|
|
|
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
|
|
|
|
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE1} \
|
2008-04-07 22:37:26 +00:00
|
|
|
> ${RPM_BUILD_ROOT}%{confdir}/%{name}.conf
|
|
|
|
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
|
2010-06-29 21:51:36 +00:00
|
|
|
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
|
|
|
|
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE3} \
|
2008-04-07 22:37:26 +00:00
|
|
|
> ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name}
|
|
|
|
%{__install} -m 0644 %{SOURCE2} \
|
|
|
|
${RPM_BUILD_ROOT}%{_initrddir}/%{name}
|
|
|
|
%{__install} -m 0644 %{SOURCE4} \
|
|
|
|
${RPM_BUILD_ROOT}%{_sbindir}/%{name}
|
2011-06-06 21:23:05 +00:00
|
|
|
%{__install} -m 0644 %{SOURCE11} \
|
2011-11-10 21:48:56 +00:00
|
|
|
${RPM_BUILD_ROOT}%{_unitdir}/%{name}.service
|
|
|
|
%{__install} -m 0644 %{SOURCE17} \
|
|
|
|
${RPM_BUILD_ROOT}%{_sbindir}/%{name}-sysd
|
2012-01-11 22:58:04 +00:00
|
|
|
%{__install} -m 0644 %{SOURCE19} \
|
|
|
|
${RPM_BUILD_ROOT}%{_sbindir}/%{name}-jsvc
|
|
|
|
%{__install} -m 0644 %{SOURCE20} \
|
|
|
|
${RPM_BUILD_ROOT}%{_unitdir}/%{name}-jsvc.service
|
|
|
|
%{__install} -m 0644 %{SOURCE18} \
|
|
|
|
${RPM_BUILD_ROOT}%{_sbindir}/%{name}-jsvc-sysd
|
2008-04-07 22:37:26 +00:00
|
|
|
%{__ln_s} %{name} ${RPM_BUILD_ROOT}%{_sbindir}/d%{name}
|
|
|
|
%{__sed} -e "s|\@\@\@TCLOG\@\@\@|%{logdir}|g" %{SOURCE5} \
|
|
|
|
> ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name}
|
|
|
|
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
|
2010-06-29 21:51:36 +00:00
|
|
|
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
|
|
|
|
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE6} \
|
2008-04-07 22:37:26 +00:00
|
|
|
> ${RPM_BUILD_ROOT}%{_bindir}/%{name}-digest
|
|
|
|
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
|
2010-06-29 21:51:36 +00:00
|
|
|
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
|
|
|
|
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE7} \
|
2008-04-07 22:37:26 +00:00
|
|
|
> ${RPM_BUILD_ROOT}%{_bindir}/%{name}-tool-wrapper
|
|
|
|
# create jsp and servlet API symlinks
|
|
|
|
pushd ${RPM_BUILD_ROOT}%{_javadir}
|
2010-12-02 16:15:01 +00:00
|
|
|
%{__mv} %{name}/jsp-api.jar %{name}-jsp-%{jspspec}-api.jar
|
2010-12-08 09:41:11 +00:00
|
|
|
%{__ln_s} %{name}-jsp-%{jspspec}-api.jar %{name}-jsp-api.jar
|
2010-12-02 16:15:01 +00:00
|
|
|
%{__mv} %{name}/servlet-api.jar %{name}-servlet-%{servletspec}-api.jar
|
2010-12-08 09:41:11 +00:00
|
|
|
%{__ln_s} %{name}-servlet-%{servletspec}-api.jar %{name}-servlet-api.jar
|
2010-12-02 16:15:01 +00:00
|
|
|
%{__mv} %{name}/el-api.jar %{name}-el-%{elspec}-api.jar
|
2010-12-08 09:41:11 +00:00
|
|
|
%{__ln_s} %{name}-el-%{elspec}-api.jar %{name}-el-api.jar
|
2008-04-07 22:37:26 +00:00
|
|
|
popd
|
2010-04-08 23:50:29 +00:00
|
|
|
|
2011-01-03 08:54:46 +00:00
|
|
|
pushd output/build
|
2010-12-02 16:10:02 +00:00
|
|
|
%{_bindir}/build-jar-repository lib apache-commons-collections \
|
|
|
|
apache-commons-dbcp apache-commons-pool ecj 2>&1
|
|
|
|
# need to use -p here with b-j-r otherwise the examples webapp fails to
|
|
|
|
# load with a java.io.IOException
|
|
|
|
%{_bindir}/build-jar-repository -p webapps/examples/WEB-INF/lib \
|
2010-04-08 23:50:29 +00:00
|
|
|
taglibs-core.jar taglibs-standard.jar 2>&1
|
|
|
|
popd
|
|
|
|
|
2008-04-07 22:37:26 +00:00
|
|
|
pushd ${RPM_BUILD_ROOT}%{libdir}
|
|
|
|
# symlink JSP and servlet API jars
|
2010-12-02 16:15:01 +00:00
|
|
|
%{__ln_s} ../%{name}-jsp-%{jspspec}-api.jar .
|
|
|
|
%{__ln_s} ../%{name}-servlet-%{servletspec}-api.jar .
|
2010-12-08 09:41:11 +00:00
|
|
|
%{__ln_s} ../%{name}-el-%{elspec}-api.jar .
|
2010-12-02 16:15:01 +00:00
|
|
|
%{__ln_s} $(build-classpath apache-commons-collections) commons-collections.jar
|
|
|
|
%{__ln_s} $(build-classpath apache-commons-dbcp) commons-dbcp.jar
|
|
|
|
%{__ln_s} $(build-classpath log4j) log4j.jar
|
2010-06-29 21:51:36 +00:00
|
|
|
%{__ln_s} $(build-classpath ecj) jasper-jdt.jar
|
2010-12-02 16:15:01 +00:00
|
|
|
|
2011-05-01 22:09:32 +00:00
|
|
|
# Link the juli jar here from /usr/share/java/tomcat
|
2010-12-02 16:15:01 +00:00
|
|
|
%{__ln_s} %{bindir}/tomcat-juli.jar .
|
2008-04-07 22:37:26 +00:00
|
|
|
popd
|
2010-12-02 16:15:01 +00:00
|
|
|
|
2008-04-07 22:37:26 +00:00
|
|
|
# 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} %{workdir} work
|
|
|
|
popd
|
|
|
|
|
|
|
|
# install sample webapp
|
|
|
|
%{__mkdir_p} ${RPM_BUILD_ROOT}%{appdir}/sample
|
|
|
|
pushd ${RPM_BUILD_ROOT}%{appdir}/sample
|
|
|
|
%{jar} xf ${RPM_BUILD_ROOT}%{appdir}/docs/appdev/sample/sample.war
|
|
|
|
popd
|
|
|
|
%{__rm} ${RPM_BUILD_ROOT}%{appdir}/docs/appdev/sample/sample.war
|
|
|
|
|
2010-03-26 17:12:38 +00:00
|
|
|
|
2010-03-26 17:07:32 +00:00
|
|
|
# Install the maven metadata
|
|
|
|
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_mavenpomdir}
|
2011-01-03 08:54:46 +00:00
|
|
|
pushd output/dist/src/res/maven
|
2010-12-02 16:04:52 +00:00
|
|
|
for pom in *.pom; do
|
|
|
|
# fix-up version in all pom files
|
|
|
|
sed -i 's/@MAVEN.DEPLOY.VERSION@/%{version}/g' $pom
|
2010-03-26 17:07:32 +00:00
|
|
|
done
|
|
|
|
|
2010-12-02 16:04:52 +00:00
|
|
|
# we won't install dbcp, juli-adapters and juli-extras pom files
|
2012-01-21 21:52:19 +00:00
|
|
|
for libname in annotations-api catalina jasper-el jasper catalina-ha; do
|
|
|
|
%{__cp} -a %{name}-$libname.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-$libname.pom
|
|
|
|
%add_maven_depmap JPP.%{name}-$libname.pom %{name}/$libname.jar
|
2010-12-02 16:04:52 +00:00
|
|
|
done
|
|
|
|
|
2011-04-28 05:35:45 +00:00
|
|
|
# servlet-api jsp-api and el-api are not in tomcat subdir, since they are widely re-used elsewhere
|
2012-01-21 21:52:19 +00:00
|
|
|
for libname in tomcat-jsp-api tomcat-el-api;do
|
|
|
|
%{__cp} -a $libname.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP-$libname.pom
|
|
|
|
%add_maven_depmap JPP-$libname.pom $libname.jar -f "$libname"
|
2010-12-02 16:04:52 +00:00
|
|
|
done
|
|
|
|
|
2012-01-21 21:52:19 +00:00
|
|
|
%{__cp} -a tomcat-servlet-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP-tomcat-servlet-api.pom
|
|
|
|
# Generate a depmap fragment javax.servlet:servlet-api pointing to
|
|
|
|
# tomcat-servlet-3.0-api for backwards compatibility
|
|
|
|
# also provide jetty depmap (originally in jetty package, but it's cleaner to have it here
|
|
|
|
%add_maven_depmap JPP-tomcat-servlet-api.pom tomcat-servlet-api.jar -f "tomcat-servlet-api" -a "javax.servlet:servlet-api,org.mortbay.jetty:servlet-api"
|
|
|
|
|
2010-12-02 16:04:52 +00:00
|
|
|
# two special pom where jar files have different names
|
2011-04-27 05:54:04 +00:00
|
|
|
%{__cp} -a tomcat-tribes.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-catalina-tribes.pom
|
2012-01-21 21:52:19 +00:00
|
|
|
%add_maven_depmap JPP.%{name}-catalina-tribes.pom %{name}/catalina-tribes.jar
|
2010-12-02 16:04:52 +00:00
|
|
|
|
2011-04-27 05:54:04 +00:00
|
|
|
%{__cp} -a tomcat-juli.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-tomcat-juli.pom
|
2012-01-21 21:52:19 +00:00
|
|
|
%add_maven_depmap JPP.%{name}-tomcat-juli.pom %{name}/tomcat-juli.jar
|
2010-03-26 17:07:32 +00:00
|
|
|
|
2008-04-07 22:37:26 +00:00
|
|
|
%pre
|
|
|
|
# add the tomcat user and group
|
|
|
|
%{_sbindir}/groupadd -g %{tcuid} -r tomcat 2>/dev/null || :
|
|
|
|
%{_sbindir}/useradd -c "Apache Tomcat" -u %{tcuid} -g tomcat \
|
2011-03-04 21:09:28 +00:00
|
|
|
-s /bin/nologin -r -d %{homedir} tomcat 2>/dev/null || :
|
2008-04-07 22:37:26 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
# install but don't activate
|
|
|
|
/sbin/chkconfig --add %{name}
|
2011-11-10 21:48:56 +00:00
|
|
|
if [ $1 -eq 1 ]; then
|
|
|
|
#initial installation
|
|
|
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
|
fi
|
2008-04-07 22:37:26 +00:00
|
|
|
|
2012-01-21 21:52:19 +00:00
|
|
|
%post systemv
|
|
|
|
# install but don't activate
|
|
|
|
/sbin/chkconfig --add %{name}
|
|
|
|
|
2008-04-07 22:37:26 +00:00
|
|
|
%post jsp-%{jspspec}-api
|
|
|
|
%{_sbindir}/update-alternatives --install %{_javadir}/jsp.jar jsp \
|
|
|
|
%{_javadir}/%{name}-jsp-%{jspspec}-api.jar 20100
|
|
|
|
|
|
|
|
%post servlet-%{servletspec}-api
|
|
|
|
%{_sbindir}/update-alternatives --install %{_javadir}/servlet.jar servlet \
|
|
|
|
%{_javadir}/%{name}-servlet-%{servletspec}-api.jar 20500
|
|
|
|
|
2010-06-29 21:51:36 +00:00
|
|
|
%post el-%{elspec}-api
|
2010-07-01 18:04:47 +00:00
|
|
|
%{_sbindir}/update-alternatives --install %{_javadir}/elspec.jar elspec \
|
2010-06-29 21:51:36 +00:00
|
|
|
%{_javadir}/%{name}-el-%{elspec}-api.jar 20250
|
|
|
|
|
2012-01-21 21:52:19 +00:00
|
|
|
%preun systemv
|
|
|
|
%{_initrddir}/%{name} stop >/dev/null 2>&1
|
|
|
|
/sbin/chkconfig --del %{name}
|
|
|
|
|
2008-04-07 22:37:26 +00:00
|
|
|
%preun
|
|
|
|
# clean tempdir and workdir on removal or upgrade
|
2011-05-04 21:42:20 +00:00
|
|
|
%{__rm} -rf %{workdir}/* %{tempdir}/*
|
2008-04-07 22:37:26 +00:00
|
|
|
if [ "$1" = "0" ]; then
|
2011-11-10 21:48:56 +00:00
|
|
|
# package removal, not upgrade
|
|
|
|
/bin/systemctl --no-reload disable tomcat.service > /dev/null 2>&1 || :
|
|
|
|
/bin/systemctl stop tomcat.service > /dev/null 2>&1 || :
|
2008-04-07 22:37:26 +00:00
|
|
|
fi
|
|
|
|
|
2010-03-26 17:07:32 +00:00
|
|
|
%postun
|
2011-11-10 21:48:56 +00:00
|
|
|
/bin/systemctl daemon-reload > /dev/null 2>&1 || :
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
#package upgrade, not uninstall
|
|
|
|
/bin/systemctl try-restart tomcat.service > /dev/null 2>&1 || :
|
|
|
|
fi
|
|
|
|
|
2010-03-26 17:07:32 +00:00
|
|
|
|
2008-04-07 22:37:26 +00:00
|
|
|
%postun jsp-%{jspspec}-api
|
|
|
|
if [ "$1" = "0" ]; then
|
|
|
|
%{_sbindir}/update-alternatives --remove jsp \
|
|
|
|
%{_javadir}/%{name}-jsp-%{jspspec}-api.jar
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun servlet-%{servletspec}-api
|
|
|
|
if [ "$1" = "0" ]; then
|
|
|
|
%{_sbindir}/update-alternatives --remove servlet \
|
|
|
|
%{_javadir}/%{name}-servlet-%{servletspec}-api.jar
|
|
|
|
fi
|
|
|
|
|
2010-06-29 21:51:36 +00:00
|
|
|
%postun el-%{elspec}-api
|
|
|
|
if [ "$1" = "0" ]; then
|
|
|
|
%{_sbindir}/update-alternatives --remove elspec \
|
|
|
|
%{_javadir}/%{name}-el-%{elspec}-api.jar
|
|
|
|
fi
|
|
|
|
|
2011-11-10 21:48:56 +00:00
|
|
|
%triggerun -- tomcat < 0:7.0.22-2
|
|
|
|
/usr/bin/systemd-sysv-convert -- save tomcat > /dev/null 2>&1 || :
|
|
|
|
# Run these becasue the SysV package being removed won't do them
|
|
|
|
/sbin/chkconfig --del tomcat > /dev/null 2>&1 || :
|
|
|
|
/bin/systemctl try-restart tomcat.service > /dev/null 2>&1 || :
|
|
|
|
|
2008-04-07 22:37:26 +00:00
|
|
|
%files
|
2011-05-01 22:09:32 +00:00
|
|
|
%defattr(0664,root,tomcat,0755)
|
2011-01-03 08:54:46 +00:00
|
|
|
%doc {LICENSE,NOTICE,RELEASE*}
|
2008-04-07 22:37:26 +00:00
|
|
|
%attr(0755,root,root) %{_bindir}/%{name}-digest
|
|
|
|
%attr(0755,root,root) %{_bindir}/%{name}-tool-wrapper
|
|
|
|
%attr(0755,root,root) %{_sbindir}/%{name}
|
2011-11-10 21:48:56 +00:00
|
|
|
%attr(0644,root,root) %{_unitdir}/%{name}.service
|
|
|
|
%attr(0755,root,root) %{_sbindir}/%{name}-sysd
|
2008-04-07 22:37:26 +00:00
|
|
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
2011-09-26 17:37:13 +00:00
|
|
|
%attr(0755,root,tomcat) %dir %{basedir}
|
2011-05-20 21:44:00 +00:00
|
|
|
%attr(0755,root,tomcat) %dir %{confdir}
|
|
|
|
%defattr(0664,root,tomcat,0770)
|
|
|
|
%attr(0770,root,tomcat) %dir %{logdir}
|
|
|
|
%attr(0660,tomcat,tomcat) %{logdir}/catalina.out
|
|
|
|
%attr(0770,root,tomcat) %dir %{cachedir}
|
|
|
|
%attr(0770,root,tomcat) %dir %{tempdir}
|
|
|
|
%attr(0770,root,tomcat) %dir %{workdir}
|
2011-05-01 22:09:32 +00:00
|
|
|
%defattr(0664,root,tomcat,0775)
|
2011-04-13 19:15:12 +00:00
|
|
|
%attr(0775,root,tomcat) %dir %{appdir}
|
|
|
|
%attr(0775,root,tomcat) %dir %{confdir}/Catalina
|
|
|
|
%attr(0775,root,tomcat) %dir %{confdir}/Catalina/localhost
|
|
|
|
%attr(0664,tomcat,tomcat) %config(noreplace) %{confdir}/%{name}.conf
|
|
|
|
%attr(0664,tomcat,tomcat) %config(noreplace) %{confdir}/*.policy
|
|
|
|
%attr(0664,tomcat,tomcat) %config(noreplace) %{confdir}/*.properties
|
|
|
|
%attr(0664,tomcat,tomcat) %config(noreplace) %{confdir}/context.xml
|
|
|
|
%attr(0664,tomcat,tomcat) %config(noreplace) %{confdir}/server.xml
|
2011-05-01 22:09:32 +00:00
|
|
|
%attr(0660,tomcat,tomcat) %config(noreplace) %{confdir}/tomcat-users.xml
|
|
|
|
%attr(0664,tomcat,tomcat) %config(noreplace) %{confdir}/web.xml
|
2010-06-29 21:51:36 +00:00
|
|
|
%dir %{homedir}
|
|
|
|
%{bindir}/bootstrap.jar
|
|
|
|
%{bindir}/catalina-tasks.xml
|
|
|
|
%{homedir}/lib
|
|
|
|
%{homedir}/temp
|
|
|
|
%{homedir}/webapps
|
|
|
|
%{homedir}/work
|
|
|
|
%{homedir}/logs
|
|
|
|
%{homedir}/conf
|
2008-04-07 22:37:26 +00:00
|
|
|
|
|
|
|
%files admin-webapps
|
2011-05-20 21:44:00 +00:00
|
|
|
%defattr(0664,root,tomcat,0755)
|
2008-04-07 22:37:26 +00:00
|
|
|
%{appdir}/host-manager
|
|
|
|
%{appdir}/manager
|
|
|
|
|
|
|
|
%files docs-webapp
|
2010-12-02 16:15:01 +00:00
|
|
|
%defattr(-,root,root,-)
|
2008-04-07 22:37:26 +00:00
|
|
|
%{appdir}/docs
|
|
|
|
|
|
|
|
%files javadoc
|
2010-12-02 16:15:01 +00:00
|
|
|
%defattr(-,root,root,-)
|
2008-04-07 22:37:26 +00:00
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%files jsp-%{jspspec}-api
|
2010-12-02 16:15:01 +00:00
|
|
|
%defattr(-,root,root,-)
|
2010-06-29 21:51:36 +00:00
|
|
|
%{_javadir}/%{name}-jsp-%{jspspec}*.jar
|
2010-12-08 09:41:11 +00:00
|
|
|
%{_javadir}/%{name}-jsp-api.jar
|
2012-01-21 21:52:19 +00:00
|
|
|
%{_mavenpomdir}/JPP-%{name}-jsp-api.pom
|
|
|
|
%{_mavendepmapfragdir}/%{name}-tomcat-jsp-api
|
2008-04-07 22:37:26 +00:00
|
|
|
|
|
|
|
%files lib
|
2010-12-02 16:15:01 +00:00
|
|
|
%defattr(-,root,root,-)
|
2008-04-07 22:37:26 +00:00
|
|
|
%{libdir}
|
2011-11-10 18:44:19 +00:00
|
|
|
%{bindir}/tomcat-juli.jar
|
2012-01-21 21:52:19 +00:00
|
|
|
%{_mavendepmapfragdir}/%{name}
|
|
|
|
%{_mavenpomdir}/*.pom
|
|
|
|
# Exclude the POMs that are in sub-packages
|
|
|
|
%exclude %{_mavenpomdir}/JPP-*api*.pom
|
2011-05-01 22:09:32 +00:00
|
|
|
%exclude %{libdir}/%{name}-el-%{elspec}-api.jar
|
2008-04-07 22:37:26 +00:00
|
|
|
|
|
|
|
%files servlet-%{servletspec}-api
|
2010-12-02 16:15:01 +00:00
|
|
|
%defattr(-,root,root,-)
|
2011-05-20 21:44:00 +00:00
|
|
|
%doc LICENSE
|
2010-06-29 21:51:36 +00:00
|
|
|
%{_javadir}/%{name}-servlet-%{servletspec}*.jar
|
2010-12-08 09:41:11 +00:00
|
|
|
%{_javadir}/%{name}-servlet-api.jar
|
2012-01-21 21:52:19 +00:00
|
|
|
%{_mavendepmapfragdir}/%{name}-tomcat-servlet-api
|
|
|
|
%{_mavenpomdir}/JPP-%{name}-servlet-api.pom
|
2008-04-07 22:37:26 +00:00
|
|
|
|
2010-06-29 21:51:36 +00:00
|
|
|
%files el-%{elspec}-api
|
2010-12-02 16:15:01 +00:00
|
|
|
%defattr(-,root,root,-)
|
2011-05-20 21:44:00 +00:00
|
|
|
%doc LICENSE
|
2010-12-02 16:15:01 +00:00
|
|
|
%{_javadir}/%{name}-el-%{elspec}-api.jar
|
2010-12-08 09:41:11 +00:00
|
|
|
%{_javadir}/%{name}-el-api.jar
|
2011-06-06 21:23:05 +00:00
|
|
|
%{libdir}/%{name}-el-%{elspec}-api.jar
|
2012-01-21 21:52:19 +00:00
|
|
|
%{_mavenpomdir}/JPP-%{name}-el-api.pom
|
|
|
|
%{_mavendepmapfragdir}/%{name}-tomcat-el-api
|
|
|
|
|
2010-06-29 21:51:36 +00:00
|
|
|
|
2008-04-07 22:37:26 +00:00
|
|
|
%files webapps
|
2011-05-01 22:09:32 +00:00
|
|
|
%defattr(0644,tomcat,tomcat,0755)
|
2008-04-07 22:37:26 +00:00
|
|
|
%{appdir}/ROOT
|
|
|
|
%{appdir}/examples
|
|
|
|
%{appdir}/sample
|
|
|
|
|
2011-11-10 21:48:56 +00:00
|
|
|
%files systemv
|
|
|
|
%defattr(755,root,root,0755)
|
|
|
|
%{_sbindir}/d%{name}
|
|
|
|
%{_initrddir}/%{name}
|
|
|
|
|
2012-01-11 22:58:04 +00:00
|
|
|
%files jsvc
|
|
|
|
%defattr(755,root,root,0755)
|
|
|
|
%{_sbindir}/%{name}-jsvc
|
|
|
|
%{_sbindir}/%{name}-jsvc-sysd
|
|
|
|
%attr(0644,root,root) %{_unitdir}/%{name}-jsvc.service
|
|
|
|
|
2008-04-07 22:37:26 +00:00
|
|
|
%changelog
|
2012-01-21 21:52:19 +00:00
|
|
|
* Sat Jan 21 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.25-1
|
|
|
|
- Updated to 7.0.25
|
|
|
|
- Removed EntityResolver patch (changes already in upstream sources)
|
|
|
|
- Place poms and depmaps in the same package as jars
|
|
|
|
- Added javax.servlet.descriptor to export-package of servlet-api
|
|
|
|
- Move several chkconfig actions and reqs to systemv subpackage
|
|
|
|
- New maven depmaps generation method
|
|
|
|
- Add patch to support java7. (patch sent upstream).
|
|
|
|
- Require java >= 1:1.6.0
|
|
|
|
|
2012-01-21 18:46:52 +00:00
|
|
|
* Fri Jan 13 2012 Krzysztof Daniel <kdaniel@redhat.com> 0:7.0.23-5
|
|
|
|
- Exported javax.servlet.* packages in version 3.0 as 2.6 to make
|
|
|
|
servlet-api compatible with Eclipse.
|
|
|
|
|
2012-01-21 21:52:19 +00:00
|
|
|
* Thu Jan 12 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.23-4
|
2012-01-11 22:58:04 +00:00
|
|
|
- Move jsvc support to subpackage
|
|
|
|
|
|
|
|
* Wed Jan 11 2012 Alexander Kurtakov <akurtako@redhat.com> 0:7.0.23-2
|
|
|
|
- Add EntityResolver setter patch to jasper for jetty's need. (patch sent upstream).
|
|
|
|
|
2012-01-11 21:55:49 +00:00
|
|
|
* Mon Dec 12 2011 Joseph D. Wagner <joe@josephdwagner.info> 0:7.0.23-3
|
2012-01-11 21:28:30 +00:00
|
|
|
- Added support to /usr/sbin/tomcat-sysd and /usr/sbin/tomcat for
|
|
|
|
starting tomcat with jsvc, which allows tomcat to perform some
|
|
|
|
privileged operations (e.g. bind to a port < 1024) and then switch
|
|
|
|
identity to a non-privileged user. Must add USE_JSVC="true" to
|
|
|
|
/etc/tomcat/tomcat.conf or /etc/sysconfig/tomcat.
|
|
|
|
|
2011-11-28 17:30:16 +00:00
|
|
|
* Mon Nov 28 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.23-1
|
|
|
|
- Updated to 7.0.23
|
|
|
|
|
2011-11-10 21:48:56 +00:00
|
|
|
* Fri Nov 11 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.22-2
|
|
|
|
- Move tomcat-juli.jar to lib package
|
|
|
|
- Drop %%update_maven_depmap as in tomcat6
|
|
|
|
- Provide native systemd unit file ported from tomcat6
|
|
|
|
|
2011-10-05 21:06:06 +00:00
|
|
|
* Thu Oct 6 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.22-1
|
|
|
|
- Updated to 7.0.22
|
|
|
|
|
2011-10-03 20:07:17 +00:00
|
|
|
* Mon Oct 03 2011 Rex Dieter <rdieter@fedoraproject.org> - 0:7.0.21-3.1
|
|
|
|
- rebuild (java), rel-eng#4932
|
|
|
|
|
2011-09-26 17:37:13 +00:00
|
|
|
* Mon Sep 26 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.21-3
|
|
|
|
- Fix basedir mode
|
|
|
|
|
2011-09-22 20:35:12 +00:00
|
|
|
* Tue Sep 20 2011 Roland Grunberg <rgrunber@redhat.com> 0:7.0.21-2
|
|
|
|
- Add manifests for el-api, jasper-el, jasper, tomcat, and tomcat-juli.
|
|
|
|
|
2011-09-07 20:14:46 +00:00
|
|
|
* Thu Sep 8 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.21-1
|
|
|
|
- Updated to 7.0.21
|
|
|
|
|
2011-08-15 20:22:02 +00:00
|
|
|
* Mon Aug 15 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.20-3
|
|
|
|
- Require java = 1:1.6.0
|
|
|
|
|
2011-08-15 19:28:31 +00:00
|
|
|
* Mon Aug 15 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.20-2
|
|
|
|
- Require java < 1.7.0
|
|
|
|
|
2011-08-15 17:27:41 +00:00
|
|
|
* Mon Aug 15 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.20-1
|
|
|
|
- Updated to 7.0.20
|
|
|
|
|
2011-07-26 17:54:26 +00:00
|
|
|
* Tue Jul 26 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.19-1
|
|
|
|
- Updated to 7.0.19
|
|
|
|
|
2011-06-20 21:15:48 +00:00
|
|
|
* Tue Jun 21 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.16-1
|
|
|
|
- Updated to 7.0.16
|
|
|
|
|
2011-06-06 21:23:05 +00:00
|
|
|
* Mon Jun 6 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.14-3
|
|
|
|
- Added initial systemd service
|
|
|
|
- Fix some paths
|
|
|
|
|
2011-05-20 21:44:00 +00:00
|
|
|
* Sat May 21 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.14-2
|
|
|
|
- Fixed http source link
|
|
|
|
- Securify some permissions
|
|
|
|
- Added licenses for el-api and servlet-api
|
|
|
|
- Added dependency on jpackage-utils for the javadoc subpackage
|
|
|
|
|
|
|
|
* Sat May 14 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.14-1
|
2011-05-14 13:49:50 +00:00
|
|
|
- Updated to 7.0.14
|
|
|
|
|
2011-05-20 21:44:00 +00:00
|
|
|
* Thu May 5 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.12-4
|
2011-05-04 21:42:20 +00:00
|
|
|
- Provided local paths for libs
|
|
|
|
- Fixed dependencies
|
|
|
|
- Fixed update temp/work cleanup
|
|
|
|
|
2011-05-01 22:09:32 +00:00
|
|
|
* Mon May 2 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.12-3
|
|
|
|
- Fixed package groups
|
|
|
|
- Fixed some permissions
|
|
|
|
- Fixed some links
|
|
|
|
- Removed old tomcat6 crap
|
|
|
|
|
|
|
|
* Thu Apr 28 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.12-2
|
2011-04-28 05:35:45 +00:00
|
|
|
- Package now named just tomcat instead of tomcat7
|
|
|
|
- Removed Provides: %{name}-log4j
|
|
|
|
- Switched to apache-commons-* names instead of jakarta-commons-* .
|
|
|
|
- Remove the old changelog
|
|
|
|
- BR/R java >= 1:1.6.0 , same for java-devel
|
|
|
|
- Removed old tomcat6 crap
|
|
|
|
|
2011-04-27 05:54:04 +00:00
|
|
|
* Wed Apr 27 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.12-1
|
|
|
|
- Tomcat7
|