Compare commits

...

No commits in common. "c8" and "c8-stream-rhel8" have entirely different histories.

4 changed files with 154 additions and 39 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/jetty-9.4.19.v20190610.tar.gz
SOURCES/jetty-9.4.30.v20200611.tar.gz

View File

@ -1 +1 @@
4dd985caa797f18938d1a3def31bf82bfdb8d961 SOURCES/jetty-9.4.19.v20190610.tar.gz
45ff99f15d38a07462f614dfaffbd578ba91de3a SOURCES/jetty-9.4.30.v20200611.tar.gz

View File

@ -1,26 +1,25 @@
From 46f7ec33b83c28459496739f4d8b91329fb82bc6 Mon Sep 17 00:00:00 2001
From: Michael Simacek <msimacek@redhat.com>
Date: Tue, 2 Jun 2015 22:52:21 +0200
Subject: [PATCH 1/2] Fedora jetty.home
From 7e9bed1ca10901a3cf28775d9563570e94e2280b Mon Sep 17 00:00:00 2001
From: Mat Booth <mat.booth@redhat.com>
Date: Mon, 9 Sep 2019 12:42:10 +0100
Subject: [PATCH] Distro jetty.home
---
.../eclipse/jetty/start/config/CommandLineConfigSource.java | 3 +++
1 file changed, 3 insertions(+)
.../org/eclipse/jetty/start/config/CommandLineConfigSource.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/jetty-start/src/main/java/org/eclipse/jetty/start/config/CommandLineConfigSource.java b/jetty-start/src/main/java/org/eclipse/jetty/start/config/CommandLineConfigSource.java
index f0c9e07..7d2ee3e 100644
index 792413e..5e5cab9 100644
--- a/jetty-start/src/main/java/org/eclipse/jetty/start/config/CommandLineConfigSource.java
+++ b/jetty-start/src/main/java/org/eclipse/jetty/start/config/CommandLineConfigSource.java
@@ -120,6 +120,9 @@ public class CommandLineConfigSource implements ConfigSource
@@ -120,6 +120,8 @@ public class CommandLineConfigSource implements ConfigSource
try
{
Path home = new File(new URI(m.group(1))).getParentFile().toPath();
+ if (home.endsWith("/usr/share/java/jetty"))
+ home = new File(home.toString().replaceAll("java/jetty$", "jetty")).toPath();
+
setProperty(BaseHome.JETTY_HOME,home.toString(),ORIGIN_INTERNAL_FALLBACK);
setProperty(BaseHome.JETTY_HOME, home.toString(), ORIGIN_INTERNAL_FALLBACK);
return home;
}
--
2.19.1
2.20.1

View File

@ -40,17 +40,17 @@
%global appdir %{jettylibdir}/webapps
%global addver .v20190610
%global addver .v20200611
# minimal version required to build eclipse and thermostat
# eclipse needs: util, server, http, continuation, io, security, servlet
# thermostat needs: server, jaas, webapp
# above modules need: jmx, xml
%bcond_with jp_minimal
%bcond_without jp_minimal
Name: jetty
Version: 9.4.19
Release: 1%{addver}%{?dist}
Version: 9.4.30
Release: 2%{addver}%{?dist}
Summary: Java Webserver and Servlet Container
# Jetty is dual licensed under both ASL 2.0 and EPL 1.0, see NOTICE.txt
@ -63,7 +63,7 @@ Source5: %{name}.service
# MIT license text taken from Utf8Appendable.java
Source6: LICENSE-MIT
Patch1: 0001-Fedora-jetty.home.patch
Patch1: 0001-Distro-jetty.home.patch
BuildRequires: maven-local
BuildRequires: mvn(javax.servlet:javax.servlet-api)
@ -117,7 +117,6 @@ BuildRequires: mvn(org.mongodb:mongo-java-driver)
BuildRequires: mvn(org.ow2.asm:asm)
BuildRequires: mvn(org.ow2.asm:asm-commons)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.springframework:spring-beans)
BuildRequires: mvn(org.mortbay.jetty.alpn:alpn-boot)
BuildRequires: mvn(org.eclipse.jetty.toolchain:jetty-artifact-remote-resources)
@ -132,7 +131,7 @@ BuildRequires: junit5
# duplicate providers, choose one
BuildRequires: jboss-websocket-1.0-api
Requires: jboss-websocket-1.0-api
%endif # without jp_minimal
%endif
BuildArch: noarch
@ -165,7 +164,6 @@ Requires: %{name}-security = %{version}-%{release}
Requires: %{name}-server = %{version}-%{release}
Requires: %{name}-servlet = %{version}-%{release}
Requires: %{name}-servlets = %{version}-%{release}
Requires: %{name}-spring = %{version}-%{release}
Requires: %{name}-start = %{version}-%{release}
Requires: %{name}-unixsocket = %{version}-%{release}
Requires: %{name}-util = %{version}-%{release}
@ -197,10 +195,8 @@ Requires(pre): shadow-utils
Provides: group(%username) = %jtuid
Provides: user(%username) = %jtuid
%endif # without jp_minimal
%endif
# (Added in F25)
Obsoletes: %{name}-monitor < 9.4.0-0.4
# Hazelcast in Fedora is too old for jetty to build against (Added in F29)
Obsoletes: %{name}-hazelcast < 9.4.18-1
# Infinispan in Fedora is too old for jetty to build against (Added in F31)
@ -210,6 +206,49 @@ Obsoletes: %{name}-osgi-alpn < 9.4.18-1
Obsoletes: %{name}-osgi-boot < 9.4.18-1
Obsoletes: %{name}-osgi-boot-jsp < 9.4.18-1
Obsoletes: %{name}-osgi-boot-warurl < 9.4.18-1
# Spring framework removed from Fedora (Added in F32)
Obsoletes: %{name}-spring < 9.4.24-1
%if %{with jp_minimal}
# Remove left-over packages that would have broken deps when built in minimal mode
Obsoletes: %{name}-project < 9.4.20-1
Obsoletes: %{name}-annotations < 9.4.20-1
Obsoletes: %{name}-ant < 9.4.20-1
Obsoletes: %{name}-cdi < 9.4.20-1
Obsoletes: %{name}-deploy < 9.4.20-1
Obsoletes: %{name}-fcgi-client < 9.4.20-1
Obsoletes: %{name}-fcgi-server < 9.4.20-1
Obsoletes: %{name}-http-spi < 9.4.20-1
Obsoletes: %{name}-jaspi < 9.4.20-1
Obsoletes: %{name}-jndi < 9.4.20-1
Obsoletes: %{name}-jsp < 9.4.20-1
Obsoletes: %{name}-jstl < 9.4.20-1
Obsoletes: %{name}-jspc-maven-plugin < 9.4.20-1
Obsoletes: %{name}-maven-plugin < 9.4.20-1
Obsoletes: %{name}-plus < 9.4.20-1
Obsoletes: %{name}-proxy < 9.4.20-1
Obsoletes: %{name}-quickstart < 9.4.20-1
Obsoletes: %{name}-rewrite < 9.4.20-1
Obsoletes: %{name}-servlets < 9.4.20-1
Obsoletes: %{name}-start < 9.4.20-1
Obsoletes: %{name}-unixsocket < 9.4.20-1
Obsoletes: %{name}-util-ajax < 9.4.20-1
Obsoletes: %{name}-websocket-api < 9.4.20-1
Obsoletes: %{name}-websocket-client < 9.4.20-1
Obsoletes: %{name}-websocket-common < 9.4.20-1
Obsoletes: %{name}-websocket-server < 9.4.20-1
Obsoletes: %{name}-websocket-servlet < 9.4.20-1
Obsoletes: %{name}-javax-websocket-client-impl < 9.4.20-1
Obsoletes: %{name}-javax-websocket-server-impl < 9.4.20-1
Obsoletes: %{name}-alpn-client < 9.4.20-1
Obsoletes: %{name}-alpn-server < 9.4.20-1
Obsoletes: %{name}-http2-client < 9.4.20-1
Obsoletes: %{name}-http2-common < 9.4.20-1
Obsoletes: %{name}-http2-hpack < 9.4.20-1
Obsoletes: %{name}-http2-http-client-transport < 9.4.20-1
Obsoletes: %{name}-http2-server < 9.4.20-1
Obsoletes: %{name}-nosql < 9.4.20-1
%endif
%description
%global desc \
@ -228,6 +267,7 @@ Jetty is available on all Java supported platforms.
This package contains
# packages in jp_minimal set
%package client
Summary: client module for Jetty
@ -320,6 +360,7 @@ Summary: xml module for Jetty
%if %{without jp_minimal}
%package project
Summary: POM files for Jetty
Obsoletes: %{name}-websocket-parent < 9.4.0-0.4
@ -414,12 +455,6 @@ Summary: servlets module for Jetty
%description servlets
%{extdesc} %{summary}.
%package spring
Summary: spring module for Jetty
%description spring
%{extdesc} %{summary}.
%package start
Summary: start module for Jetty
@ -540,7 +575,7 @@ Summary: jstl module for Jetty
%description jstl
%{extdesc} %{summary}.
%endif # without jp_minimal
%endif
%package javadoc
Summary: Javadoc for %{name}
@ -559,6 +594,7 @@ find . -name "*.?ar" -exec rm {} \;
find . -name "*.class" -exec rm {} \;
# Plugins irrelevant or harmful to building the package
%pom_remove_plugin -r :maven-checkstyle-plugin
%pom_remove_plugin -r :findbugs-maven-plugin
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_remove_plugin -r :clirr-maven-plugin
@ -587,9 +623,6 @@ find . -name "*.class" -exec rm {} \;
%pom_add_dep 'org.junit.jupiter:junit-jupiter-engine:${junit.version}' tests/test-sessions/test-sessions-common
# Old version of jetty not available for tests, so use this version
%pom_change_dep 'org.eclipse.jetty:jetty-util' 'org.eclipse.jetty:jetty-util:${project.version}' tests/test-webapps/test-servlet-spec/test-spec-webapp
# provided by glassfish-jsp-api that has newer version
%pom_change_dep -r javax.servlet.jsp:jsp-api javax.servlet.jsp:javax.servlet.jsp-api
@ -643,6 +676,9 @@ sed -i '/^\s*\*.*<script>/d' jetty-util/src/main/java/org/eclipse/jetty/util/res
%pom_remove_dep :infinispan-remote-query jetty-home
%pom_xpath_remove "pom:execution[pom:id='unpack-infinispan-config']" jetty-home
# Springframework not available in Fedora
%pom_disable_module jetty-spring
# Not currently able to build tests, so can't build benchmarks
%pom_disable_module jetty-jmh
@ -686,7 +722,6 @@ sed -i '/<SystemProperty name="jetty.state"/d' \
%pom_disable_module jetty-annotations
%pom_disable_module jetty-jndi
%pom_disable_module jetty-cdi
%pom_disable_module jetty-spring
%pom_disable_module jetty-proxy
%pom_disable_module jetty-jaspi
%pom_disable_module jetty-rewrite
@ -700,12 +735,14 @@ sed -i '/<SystemProperty name="jetty.state"/d' \
%pom_disable_module jetty-http-spi
%pom_disable_module jetty-alpn
%pom_disable_module jetty-home
%pom_disable_module jetty-openid
%endif # with jp_minimal
%endif
%build
%mvn_package :jetty-home __noinstall
%mvn_package :jetty-distribution __noinstall
%mvn_package :build-resources __noinstall
# Separate package for POMs
%if %{without jp_minimal}
@ -853,23 +890,41 @@ exit 0
%systemd_postun_with_restart jetty.service
%endif # without jp_minimal
%endif
%files client -f .mfiles-jetty-client
%files continuation -f .mfiles-jetty-continuation
%files jaas -f .mfiles-jetty-jaas
%files io -f .mfiles-jetty-io
%files server -f .mfiles-jetty-server
%files servlet -f .mfiles-jetty-servlet
%files util -f .mfiles-jetty-util
%license LICENSE NOTICE.txt LICENSE-MIT
%files webapp -f .mfiles-jetty-webapp
%files jmx -f .mfiles-jetty-jmx
%files xml -f .mfiles-jetty-xml
%files http -f .mfiles-jetty-http
%files security -f .mfiles-jetty-security
%if %{with jp_minimal}
%files
# Empty metapackage in minimal mode
%endif
%if %{without jp_minimal}
%files -f .mfiles
%{_tmpfilesdir}/%{name}.conf
%config(noreplace) %attr(644, root, root) %{_sysconfdir}/logrotate.d/%{name}
@ -889,48 +944,108 @@ exit 0
%license LICENSE NOTICE.txt LICENSE-MIT
%files annotations -f .mfiles-jetty-annotations
%files ant -f .mfiles-jetty-ant
%files cdi -f .mfiles-jetty-cdi
%files deploy -f .mfiles-jetty-deploy
%files fcgi-client -f .mfiles-fcgi-client
%files fcgi-server -f .mfiles-fcgi-server
%files http-spi -f .mfiles-jetty-http-spi
%files jaspi -f .mfiles-jetty-jaspi
%files jndi -f .mfiles-jetty-jndi
%files jsp -f .mfiles-jetty-jsp
%files jstl -f .mfiles-apache-jstl
%files jspc-maven-plugin -f .mfiles-jetty-jspc-maven-plugin
%files maven-plugin -f .mfiles-jetty-maven-plugin
%files plus -f .mfiles-jetty-plus
%files proxy -f .mfiles-jetty-proxy
%files quickstart -f .mfiles-jetty-quickstart
%files rewrite -f .mfiles-jetty-rewrite
%files servlets -f .mfiles-jetty-servlets
%files start -f .mfiles-jetty-start
%files unixsocket -f .mfiles-jetty-unixsocket
%files util-ajax -f .mfiles-jetty-util-ajax
%files websocket-api -f .mfiles-websocket-api
%files websocket-client -f .mfiles-websocket-client
%files websocket-common -f .mfiles-websocket-common
%files websocket-server -f .mfiles-websocket-server
%files websocket-servlet -f .mfiles-websocket-servlet
%files javax-websocket-client-impl -f .mfiles-javax-websocket-client-impl
%files javax-websocket-server-impl -f .mfiles-javax-websocket-server-impl
%files alpn-client -f .mfiles-jetty-alpn-client
%files alpn-server -f .mfiles-jetty-alpn-server
%files http2-client -f .mfiles-http2-client
%files http2-common -f .mfiles-http2-common
%files http2-hpack -f .mfiles-http2-hpack
%files http2-http-client-transport -f .mfiles-http2-http-client-transport
%files http2-server -f .mfiles-http2-server
%files nosql -f .mfiles-jetty-nosql
%files spring -f .mfiles-jetty-spring
%endif # without jp_minimal
%endif
%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE.txt LICENSE-MIT
%changelog
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 9.4.30-2.v20200611
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
* Thu Jun 18 2020 Mat Booth <mat.booth@redhat.com> - 9.4.30-1.v20200611
- Update to latest upstream release
* Fri Mar 20 2020 Mat Booth <mat.booth@redhat.com> - 9.4.27-1.v20200227
- Update to latest upstream release
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.4.24-3.v20191120
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Dec 12 2019 Mat Booth <mat.booth@redhat.com> - 9.4.24-2.v20191120
- Switch to minimal build. There are too many missing deps for a full build
* Thu Nov 28 2019 Mat Booth <mat.booth@redhat.com> - 9.4.24-1.v20191120
- Update to latest release
- Drop spring module due to missing deps
* Mon Sep 02 2019 Mat Booth <mat.booth@redhat.com> - 9.4.20-1
- Update to latest upstream release
- Obsolete left-over packages that would have broken deps when built in minimal mode
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 9.4.19-2.v20190610
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Wed Jun 12 2019 Mat Booth <mat.booth@redhat.com> - 9.4.19-1.v20190610
- Update to latest upstream release
@ -1148,6 +1263,7 @@ exit 0
* Wed Feb 25 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 9.2.9-1
- Update to upstream version 9.2.9
- CVE-2015-2080
* Thu Jan 22 2015 Michael Simacek <msimacek@redhat.com> - 9.2.7-1
- Update to upstream version 9.2.7