| |
@@ -28,14 +28,23 @@
|
| |
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| |
#
|
| |
|
| |
+ # Java server pages version
|
| |
%global jspspec 2.3
|
| |
- %global major_version 8
|
| |
+
|
| |
+ # Tomcat Release Version
|
| |
+ %global major_version 9
|
| |
%global minor_version 0
|
| |
- %global micro_version 47
|
| |
+ %global micro_version 1
|
| |
%global packdname apache-tomcat-%{version}-src
|
| |
- %global servletspec 3.1
|
| |
- %global elspec 3.0
|
| |
+ # Servlet version
|
| |
+ %global servletspec 4.0
|
| |
+
|
| |
+ # Unified Expression Language Version
|
| |
+ %global elspec 3.1
|
| |
+
|
| |
+ # The tomcat user's UID
|
| |
%global tcuid 91
|
| |
+
|
| |
#Recommended version is specified in java/org/apache/catalina/core/AprLifecycleListener.java
|
| |
%global native_version 1.1.33
|
| |
|
| |
@@ -70,14 +79,7 @@
|
| |
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
|
| |
Source11: %{name}-%{major_version}.%{minor_version}.service
|
| |
- 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
|
| |
Source20: %{name}-%{major_version}.%{minor_version}-jsvc.service
|
| |
Source21: tomcat-functions
|
| |
Source30: tomcat-preamble
|
| |
@@ -85,21 +87,21 @@
|
| |
Source32: tomcat-named.service
|
| |
|
| |
Patch0: %{name}-%{major_version}.%{minor_version}-bootstrap-MANIFEST.MF.patch
|
| |
- Patch1: %{name}-%{major_version}.%{minor_version}-tomcat-users-webapp.patch
|
| |
- Patch2: %{name}-8.0.36-CompilerOptionsV9.patch
|
| |
|
| |
BuildArch: noarch
|
| |
|
| |
BuildRequires: ant
|
| |
- BuildRequires: ecj >= 1:4.4.0
|
| |
+
|
| |
+ # JDT Core batch compiler
|
| |
+ BuildRequires: ecj >= 1:4.7.1
|
| |
BuildRequires: findutils
|
| |
BuildRequires: apache-commons-collections
|
| |
BuildRequires: apache-commons-daemon
|
| |
BuildRequires: apache-commons-dbcp
|
| |
BuildRequires: apache-commons-pool
|
| |
BuildRequires: tomcat-taglibs-standard
|
| |
- BuildRequires: java-devel >= 1:1.6.0
|
| |
- BuildRequires: jpackage-utils >= 0:1.7.0
|
| |
+ BuildRequires: java-devel >= 1:1.8.0
|
| |
+ BuildRequires: jpackage-utils >= 0:1.7.5
|
| |
%if 0%{?fedora} >= 27
|
| |
# add_maven_depmap is deprecated, using javapackages-local for now
|
| |
# See https://fedora-java.github.io/howto/latest/#_add_maven_depmap_macro
|
| |
@@ -114,11 +116,15 @@
|
| |
Requires: apache-commons-collections
|
| |
Requires: apache-commons-dbcp
|
| |
Requires: apache-commons-pool
|
| |
- Requires: java-headless >= 1:1.6.0
|
| |
+ Requires: java-headless >= 1:1.8.0
|
| |
Requires: jpackage-utils
|
| |
Requires: procps
|
| |
Requires: %{name}-lib = %{epoch}:%{version}-%{release}
|
| |
+
|
| |
+ %if 0%{?fedora}
|
| |
Recommends: tomcat-native >= %{native_version}
|
| |
+ %endif
|
| |
+
|
| |
Requires(pre): shadow-utils
|
| |
Requires(post): chkconfig
|
| |
Requires(preun): chkconfig
|
| |
@@ -241,10 +247,6 @@
|
| |
find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "*.gz" -o \
|
| |
-name "*.jar" -o -name "*.war" -o -name "*.zip" \) -delete
|
| |
|
| |
- %patch0 -p0
|
| |
- %patch1 -p0
|
| |
- %patch2 -p0
|
| |
-
|
| |
%{__ln_s} $(build-classpath tomcat-taglibs-standard/taglibs-standard-impl) webapps/examples/WEB-INF/lib/jstl.jar
|
| |
%{__ln_s} $(build-classpath tomcat-taglibs-standard/taglibs-standard-compat) webapps/examples/WEB-INF/lib/standard.jar
|
| |
|
| |
@@ -295,30 +297,6 @@
|
| |
popd
|
| |
popd
|
| |
|
| |
- # inject OSGi manifests
|
| |
- mkdir -p META-INF
|
| |
- cp -p %{SOURCE8} META-INF/MANIFEST.MF
|
| |
- touch META-INF/MANIFEST.MF
|
| |
- zip output/build/lib/servlet-api.jar META-INF/MANIFEST.MF
|
| |
- cp -p %{SOURCE9} META-INF/MANIFEST.MF
|
| |
- touch META-INF/MANIFEST.MF
|
| |
- zip output/build/lib/jsp-api.jar META-INF/MANIFEST.MF
|
| |
- cp -p %{SOURCE12} META-INF/MANIFEST.MF
|
| |
- touch META-INF/MANIFEST.MF
|
| |
- zip output/build/lib/el-api.jar META-INF/MANIFEST.MF
|
| |
- cp -p %{SOURCE13} META-INF/MANIFEST.MF
|
| |
- touch META-INF/MANIFEST.MF
|
| |
- zip output/build/lib/jasper-el.jar META-INF/MANIFEST.MF
|
| |
- cp -p %{SOURCE14} META-INF/MANIFEST.MF
|
| |
- touch META-INF/MANIFEST.MF
|
| |
- zip output/build/lib/jasper.jar META-INF/MANIFEST.MF
|
| |
- cp -p %{SOURCE15} META-INF/MANIFEST.MF
|
| |
- touch META-INF/MANIFEST.MF
|
| |
- zip output/build/lib/tomcat-api.jar META-INF/MANIFEST.MF
|
| |
- cp -p %{SOURCE16} META-INF/MANIFEST.MF
|
| |
- touch META-INF/MANIFEST.MF
|
| |
- zip output/build/bin/tomcat-juli.jar META-INF/MANIFEST.MF
|
| |
-
|
| |
%install
|
| |
# build initial path structure
|
| |
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_bindir}
|
| |
@@ -611,6 +589,9 @@
|
| |
%attr(0775,root,tomcat) %dir %{confdir}/Catalina
|
| |
%attr(0775,root,tomcat) %dir %{confdir}/Catalina/localhost
|
| |
%attr(0755,root,tomcat) %dir %{confdir}/conf.d
|
| |
+
|
| |
+ %attr(0755,root,tomcat) %{confdir}/jaspic-providers.xml
|
| |
+
|
| |
%{confdir}/conf.d/README
|
| |
%config(noreplace) %{confdir}/%{name}.conf
|
| |
%config(noreplace) %{confdir}/*.policy
|
| |
@@ -690,6 +671,11 @@
|
| |
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
|
| |
|
| |
%changelog
|
| |
+ * Tue Oct 24 2017 Bagira <punches.chris@gmail.com> 1:9.0.1-1
|
| |
+ - Update to 9.0.1
|
| |
+ - Removed previous tomcat patches
|
| |
+ - Removed OSGi Manifest hacks
|
| |
+
|
| |
* Tue Oct 24 2017 Troy Dawson <tdawson@redhat.com> - 1:8.0.47-2
|
| |
- Change "zip -u" to "zip"
|
| |
- Resolves: rhbz#1495241 [tomcat] zip -u in spec file causes race condition
|
| |
@@ -1044,3 +1030,4 @@
|
| |
|
| |
* Wed Apr 27 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.12-1
|
| |
- Tomcat7
|
| |
+
|
| |