Updated to 8.0.32

- Remove log4j support. It has never been working actually. See rhbz#1236297
This commit is contained in:
Ivan Afonichev 2016-02-04 18:04:14 +03:00
parent 3bf9b4c925
commit 7977e008b9
2 changed files with 12 additions and 23 deletions

View File

@ -1 +1 @@
866415a62d9f5ba0422cad7d890ab35a apache-tomcat-8.0.26-src.tar.gz f8a1a0f811f6ffe0a4ccc1132c442d8b apache-tomcat-8.0.32-src.tar.gz

View File

@ -31,7 +31,7 @@
%global jspspec 2.3 %global jspspec 2.3
%global major_version 8 %global major_version 8
%global minor_version 0 %global minor_version 0
%global micro_version 26 %global micro_version 32
%global packdname apache-tomcat-%{version}-src %global packdname apache-tomcat-%{version}-src
%global servletspec 3.1 %global servletspec 3.1
%global elspec 3.0 %global elspec 3.0
@ -54,7 +54,7 @@
Name: tomcat Name: tomcat
Epoch: 1 Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version} Version: %{major_version}.%{minor_version}.%{micro_version}
Release: 4%{?dist} Release: 1%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
Group: System Environment/Daemons Group: System Environment/Daemons
@ -69,7 +69,6 @@ Source6: %{name}-%{major_version}.%{minor_version}-digest.script
Source7: %{name}-%{major_version}.%{minor_version}-tool-wrapper.script Source7: %{name}-%{major_version}.%{minor_version}-tool-wrapper.script
Source8: servlet-api-OSGi-MANIFEST.MF Source8: servlet-api-OSGi-MANIFEST.MF
Source9: jsp-api-OSGi-MANIFEST.MF Source9: jsp-api-OSGi-MANIFEST.MF
Source10: %{name}-%{major_version}.%{minor_version}-log4j.properties
Source11: %{name}-%{major_version}.%{minor_version}.service Source11: %{name}-%{major_version}.%{minor_version}.service
Source12: el-api-OSGi-MANIFEST.MF Source12: el-api-OSGi-MANIFEST.MF
Source13: jasper-el-OSGi-MANIFEST.MF Source13: jasper-el-OSGi-MANIFEST.MF
@ -98,7 +97,6 @@ BuildRequires: tomcat-taglibs-standard
BuildRequires: java-devel >= 1:1.6.0 BuildRequires: java-devel >= 1:1.6.0
BuildRequires: jpackage-utils >= 0:1.7.0 BuildRequires: jpackage-utils >= 0:1.7.0
BuildRequires: junit BuildRequires: junit
BuildRequires: log4j
BuildRequires: geronimo-jaxrpc BuildRequires: geronimo-jaxrpc
BuildRequires: wsdl4j BuildRequires: wsdl4j
BuildRequires: systemd-units BuildRequires: systemd-units
@ -118,6 +116,9 @@ Requires(post): systemd-units
Requires(preun): systemd-units Requires(preun): systemd-units
Requires(postun): systemd-units Requires(postun): systemd-units
# added after log4j sub-package was removed
Provides: %{name}-log4j = %{epoch}:%{version}-%{release}
%description %description
Tomcat is the servlet container that is used in the official Reference Tomcat is the servlet container that is used in the official Reference
Implementation for the Java Servlet and JavaServer Pages technologies. Implementation for the Java Servlet and JavaServer Pages technologies.
@ -176,14 +177,6 @@ Requires(postun): chkconfig
%description jsp-%{jspspec}-api %description jsp-%{jspspec}-api
Apache Tomcat JSP API implementation classes. Apache Tomcat JSP API implementation classes.
%package log4j
Group: Applications/Internet
Summary: Log4j support for Apache Tomcat
Requires: log4j
%description log4j
Log4j support for Apache Tomcat
%package lib %package lib
Group: Development/Libraries Group: Development/Libraries
Summary: Libraries needed to run the Tomcat Web container Summary: Libraries needed to run the Tomcat Web container
@ -344,7 +337,6 @@ zip -u output/build/bin/tomcat-juli.jar META-INF/MANIFEST.MF
# First copy supporting libs to tomcat lib # First copy supporting libs to tomcat lib
pushd output/build pushd output/build
%{__cp} -a bin/*.{jar,xml} ${RPM_BUILD_ROOT}%{bindir} %{__cp} -a bin/*.{jar,xml} ${RPM_BUILD_ROOT}%{bindir}
%{__cp} %{SOURCE10} conf/log4j.properties
%{__cp} -a conf/*.{policy,properties,xml} ${RPM_BUILD_ROOT}%{confdir} %{__cp} -a conf/*.{policy,properties,xml} ${RPM_BUILD_ROOT}%{confdir}
%{__cp} -a lib/*.jar ${RPM_BUILD_ROOT}%{libdir} %{__cp} -a lib/*.jar ${RPM_BUILD_ROOT}%{libdir}
%{__cp} -a webapps/* ${RPM_BUILD_ROOT}%{appdir} %{__cp} -a webapps/* ${RPM_BUILD_ROOT}%{appdir}
@ -420,7 +412,6 @@ pushd ${RPM_BUILD_ROOT}%{libdir}
%{__ln_s} $(build-classpath apache-commons-collections) commons-collections.jar %{__ln_s} $(build-classpath apache-commons-collections) commons-collections.jar
%{__ln_s} $(build-classpath apache-commons-dbcp) commons-dbcp.jar %{__ln_s} $(build-classpath apache-commons-dbcp) commons-dbcp.jar
%{__ln_s} $(build-classpath apache-commons-pool) commons-pool.jar %{__ln_s} $(build-classpath apache-commons-pool) commons-pool.jar
%{__ln_s} $(build-classpath log4j) log4j.jar
%{__ln_s} $(build-classpath ecj) jasper-jdt.jar %{__ln_s} $(build-classpath ecj) jasper-jdt.jar
# Temporary copy the juli jar here from /usr/share/java/tomcat (for maven depmap) # Temporary copy the juli jar here from /usr/share/java/tomcat (for maven depmap)
@ -623,8 +614,6 @@ fi
%{homedir}/logs %{homedir}/logs
%{homedir}/conf %{homedir}/conf
%exclude %{confdir}/log4j.properties
%files admin-webapps %files admin-webapps
%defattr(0664,root,tomcat,0755) %defattr(0664,root,tomcat,0755)
%{appdir}/host-manager %{appdir}/host-manager
@ -642,11 +631,6 @@ fi
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_javadir}/%{name}-jsp-%{jspspec}*.jar %{_javadir}/%{name}-jsp-%{jspspec}*.jar
%files log4j
%defattr(0664,root,tomcat,0755)
%config(noreplace) %{confdir}/log4j.properties
%{libdir}/log4j.jar
%files lib -f output/dist/src/res/maven/.mfiles-tomcat-lib %files lib -f output/dist/src/res/maven/.mfiles-tomcat-lib
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{libdir} %{libdir}
@ -664,7 +648,6 @@ fi
%{_mavenpomdir}/JPP.%{name}-tomcat-jdbc.pom %{_mavenpomdir}/JPP.%{name}-tomcat-jdbc.pom
%{_datadir}/maven-metadata/tomcat.xml %{_datadir}/maven-metadata/tomcat.xml
%exclude %{libdir}/%{name}-el-%{elspec}-api.jar %exclude %{libdir}/%{name}-el-%{elspec}-api.jar
%exclude %{libdir}/log4j.jar
%files servlet-%{servletspec}-api -f output/dist/src/res/maven/.mfiles-tomcat-servlet-api %files servlet-%{servletspec}-api -f output/dist/src/res/maven/.mfiles-tomcat-servlet-api
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -688,6 +671,12 @@ fi
%attr(0644,root,root) %{_unitdir}/%{name}-jsvc.service %attr(0644,root,root) %{_unitdir}/%{name}-jsvc.service
%changelog %changelog
<<<<<<< HEAD
* Thu Feb 11 2016 Ivan Afonichev <ivan.afonichev@gmail.com> - 1:8.0.32-1
- Updated to 8.0.32
- Remove log4j support. It has never been working actually. See rhbz#1236297
- Move shipped config to /etc/sysconfig/tomcat. /etc/tomcat/tomcat.conf can now be used to override it with shell expansion, resolves rhbz#1293636
* Wed Feb 10 2016 Coty Sutherland <csutherl@redhat.com> 1:8.0.26-4 * Wed Feb 10 2016 Coty Sutherland <csutherl@redhat.com> 1:8.0.26-4
- Resolves: rhbz#1286800 Failed to start component due to wrong allowLinking="true" in context.xml - Resolves: rhbz#1286800 Failed to start component due to wrong allowLinking="true" in context.xml
- Program /bin/nologin does not exist (#1302718) - Program /bin/nologin does not exist (#1302718)