This commit is contained in:
commit
6b3ef77b1f
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
jetty-9.4.19.v20190610.tar.gz
Normal file
3
jetty-9.4.19.v20190610.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:320b6741aee16710e3139a7a09b5eb3f7ec1af5b251e2472056e6856f3231ebe
|
||||||
|
size 18947159
|
25
jetty-annotations-asm6.patch
Normal file
25
jetty-annotations-asm6.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
--- jetty.project-jetty-9.4.19.v20190610/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/AnnotationParser.java 2019-06-10 18:17:56.000000000 +0200
|
||||||
|
+++ jetty.project-jetty-9.4.19.v20190610/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/AnnotationParser.java 2019-10-04 15:08:54.874014725 +0200
|
||||||
|
@@ -69,8 +69,8 @@
|
||||||
|
public class AnnotationParser
|
||||||
|
{
|
||||||
|
private static final Logger LOG = Log.getLogger(AnnotationParser.class);
|
||||||
|
- private static final int ASM_OPCODE_VERSION = Opcodes.ASM7; //compatibility of api
|
||||||
|
- private static final String ASM_OPCODE_VERSION_STR = "ASM7";
|
||||||
|
+ private static final int ASM_OPCODE_VERSION = Opcodes.ASM6; //compatibility of api
|
||||||
|
+ private static final String ASM_OPCODE_VERSION_STR = "ASM6";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Map of classnames scanned and the first location from which scan occurred
|
||||||
|
@@ -115,11 +115,6 @@
|
||||||
|
asmVersion = Opcodes.ASM6;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
- case 7:
|
||||||
|
- {
|
||||||
|
- asmVersion = Opcodes.ASM7;
|
||||||
|
- break;
|
||||||
|
- }
|
||||||
|
default:
|
||||||
|
{
|
||||||
|
LOG.warn("Unrecognized ASM version, assuming {}", ASM_OPCODE_VERSION_STR);
|
272
jetty-annotations.spec
Normal file
272
jetty-annotations.spec
Normal file
@ -0,0 +1,272 @@
|
|||||||
|
#
|
||||||
|
# spec file for package jetty
|
||||||
|
#
|
||||||
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
# Copyright (c) 2000-2007, JPackage Project
|
||||||
|
#
|
||||||
|
# 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 https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global base_name jetty
|
||||||
|
%global addver .v20190610
|
||||||
|
Name: %{base_name}-annotations
|
||||||
|
Version: 9.4.19
|
||||||
|
Release: 0
|
||||||
|
Summary: The annotations module for Jetty
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
URL: https://www.eclipse.org/jetty/
|
||||||
|
Source0: https://github.com/eclipse/%{base_name}.project/archive/%{base_name}-%{version}%{addver}.tar.gz
|
||||||
|
Patch2: jetty-annotations-asm6.patch
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: maven-local
|
||||||
|
BuildRequires: mvn(javax.annotation:javax.annotation-api)
|
||||||
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||||
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
||||||
|
BuildRequires: mvn(org.eclipse.jetty:jetty-plus) >= %{version}
|
||||||
|
BuildRequires: mvn(org.eclipse.jetty:jetty-webapp) >= %{version}
|
||||||
|
BuildRequires: mvn(org.ow2.asm:asm)
|
||||||
|
BuildRequires: mvn(org.ow2.asm:asm-commons)
|
||||||
|
BuildArch: noarch
|
||||||
|
# jp_minimal doesn't have main package
|
||||||
|
|
||||||
|
%description
|
||||||
|
Jetty is a 100% Java HTTP Server and Servlet Container. This means that you\
|
||||||
|
do not need to configure and run a separate web server (like Apache) in order\
|
||||||
|
to use Java, servlets and JSPs to generate dynamic content. Jetty is a fully\
|
||||||
|
featured web server for static and dynamic content. Unlike separate\
|
||||||
|
server/container solutions, this means that your web server and web\
|
||||||
|
application run in the same process, without interconnection overheads\
|
||||||
|
and complications. Furthermore, as a pure java component, Jetty can be simply\
|
||||||
|
included in your application for demonstration, distribution or deployment.\
|
||||||
|
Jetty is available on all Java supported platforms.
|
||||||
|
|
||||||
|
This package contains annotations module for Jetty
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: Javadoc for %{name}
|
||||||
|
# some MIT-licensed code (from Utf8Appendable) is used to generate javadoc
|
||||||
|
License: (Apache-2.0 OR EPL-1.0) AND MIT
|
||||||
|
|
||||||
|
%description javadoc
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{base_name}.project-%{base_name}-%{version}%{addver}
|
||||||
|
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
|
find . -name "*.?ar" -exec rm {} \;
|
||||||
|
find . -name "*.class" -exec rm {} \;
|
||||||
|
|
||||||
|
# Plugins irrelevant or harmful to building the package
|
||||||
|
%pom_remove_plugin -r :findbugs-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-enforcer-plugin
|
||||||
|
%pom_remove_plugin -r :clirr-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-eclipse-plugin
|
||||||
|
%pom_remove_plugin -r :maven-pmd-plugin
|
||||||
|
%pom_remove_plugin -r :license-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-site-plugin
|
||||||
|
%pom_remove_plugin -r :maven-source-plugin
|
||||||
|
%pom_remove_plugin -r :maven-deploy-plugin
|
||||||
|
%pom_remove_plugin -r :jacoco-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-release-plugin
|
||||||
|
%pom_remove_plugin -r :buildnumber-maven-plugin
|
||||||
|
%pom_remove_plugin -r :h2spec-maven-plugin
|
||||||
|
|
||||||
|
# Unnecessary pom flattening can be skipped
|
||||||
|
%pom_remove_plugin -r :flatten-maven-plugin jetty-bom
|
||||||
|
|
||||||
|
%pom_disable_module aggregates/jetty-all
|
||||||
|
|
||||||
|
# Use proper groupId for apache ant
|
||||||
|
%pom_xpath_replace "pom:groupId[text()='ant']" "<groupId>org.apache.ant</groupId>" jetty-ant/pom.xml
|
||||||
|
|
||||||
|
%pom_remove_dep "com.sun.net.httpserver:http" jetty-http-spi
|
||||||
|
|
||||||
|
%pom_change_dep -r org.mortbay.jasper:apache-jsp org.apache.tomcat:tomcat-jasper
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
# txt artifact - not installable
|
||||||
|
%pom_remove_plugin ":jetty-version-maven-plugin"
|
||||||
|
%pom_xpath_remove "pom:artifactItem[pom:classifier='version']" jetty-home
|
||||||
|
|
||||||
|
# Disable building source release
|
||||||
|
%pom_xpath_remove 'pom:execution[pom:id="sources"]' jetty-home
|
||||||
|
|
||||||
|
# Unwanted JS in javadoc
|
||||||
|
sed -i '/^\s*\*.*<script>/d' jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java
|
||||||
|
|
||||||
|
# only used for integration tests
|
||||||
|
%pom_remove_plugin :maven-invoker-plugin jetty-jspc-maven-plugin
|
||||||
|
|
||||||
|
# These bundles have a dep on Eclipse that is not available on every arch
|
||||||
|
%pom_disable_module jetty-osgi
|
||||||
|
|
||||||
|
# We don't have asciidoctor-maven-plugin
|
||||||
|
%pom_disable_module jetty-documentation
|
||||||
|
%pom_remove_dep -r :jetty-documentation
|
||||||
|
%pom_xpath_remove 'pom:execution[pom:id="unpack-documentation"]' jetty-distribution
|
||||||
|
|
||||||
|
%pom_xpath_remove 'pom:artifactItem[pom:artifactId="libsetuid-osx"]' jetty-home/pom.xml
|
||||||
|
|
||||||
|
# TODO remove when jetty-setuid is packaged
|
||||||
|
%pom_xpath_remove "pom:execution[pom:id[text()='copy-setuid-deps']]" jetty-home/pom.xml
|
||||||
|
|
||||||
|
# We don't have gcloud-java-datastore in Fedora
|
||||||
|
%pom_disable_module jetty-gcloud
|
||||||
|
%pom_disable_module test-gcloud-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :jetty-gcloud-session-manager jetty-home
|
||||||
|
|
||||||
|
# we don't have com.googlecode.xmemcached:xmemcached yet
|
||||||
|
%pom_disable_module jetty-memcached
|
||||||
|
%pom_disable_module test-memcached-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :jetty-memcached-sessions jetty-home
|
||||||
|
|
||||||
|
# Hazelcast in Fedora is too old to build against
|
||||||
|
%pom_disable_module jetty-hazelcast
|
||||||
|
%pom_disable_module test-hazelcast-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :jetty-hazelcast jetty-home
|
||||||
|
|
||||||
|
# Infinispan in Fedora is too old to build against
|
||||||
|
%pom_disable_module jetty-infinispan
|
||||||
|
%pom_disable_module test-infinispan-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :infinispan-embedded jetty-home
|
||||||
|
%pom_remove_dep :infinispan-embedded-query jetty-home
|
||||||
|
%pom_remove_dep :infinispan-remote jetty-home
|
||||||
|
%pom_remove_dep :infinispan-remote-query jetty-home
|
||||||
|
%pom_xpath_remove "pom:execution[pom:id='unpack-infinispan-config']" jetty-home
|
||||||
|
|
||||||
|
# Not currently able to build tests, so can't build benchmarks
|
||||||
|
%pom_disable_module jetty-jmh
|
||||||
|
|
||||||
|
# Distribution tests require internet access, so disable
|
||||||
|
%pom_disable_module test-distribution tests
|
||||||
|
|
||||||
|
# missing conscrypt
|
||||||
|
%pom_disable_module jetty-alpn-conscrypt-server jetty-alpn
|
||||||
|
%pom_disable_module jetty-alpn-conscrypt-client jetty-alpn
|
||||||
|
%pom_remove_dep -r :jetty-alpn-conscrypt-server
|
||||||
|
%pom_remove_dep -r :jetty-alpn-conscrypt-client
|
||||||
|
rm -fr examples/embedded/src/main/java/org/eclipse/jetty/embedded/ManyConnectors.java
|
||||||
|
|
||||||
|
cp %{SOURCE6} .
|
||||||
|
|
||||||
|
# the default location is not allowed by SELinux
|
||||||
|
sed -i '/<SystemProperty name="jetty.state"/d' \
|
||||||
|
jetty-home/src/main/resources%{_sysconfdir}/jetty-started.xml
|
||||||
|
|
||||||
|
# remote-resources only copies about.html
|
||||||
|
%pom_remove_plugin :maven-remote-resources-plugin
|
||||||
|
# packages module configs, we don't need those in minimal
|
||||||
|
%pom_remove_plugin -r :maven-assembly-plugin
|
||||||
|
# only useful when tests are enabled (copies test deps)
|
||||||
|
%pom_remove_plugin :maven-dependency-plugin jetty-client
|
||||||
|
|
||||||
|
# all modules besides the current jetty-annotations
|
||||||
|
%pom_disable_module jetty-ant
|
||||||
|
%pom_disable_module jetty-http2
|
||||||
|
%pom_disable_module jetty-fcgi
|
||||||
|
%pom_disable_module jetty-websocket
|
||||||
|
%pom_disable_module jetty-servlets
|
||||||
|
%pom_disable_module jetty-util-ajax
|
||||||
|
%pom_disable_module apache-jsp
|
||||||
|
%pom_disable_module apache-jstl
|
||||||
|
%pom_disable_module jetty-maven-plugin
|
||||||
|
%pom_disable_module jetty-jspc-maven-plugin
|
||||||
|
%pom_disable_module jetty-deploy
|
||||||
|
%pom_disable_module jetty-start
|
||||||
|
%pom_disable_module jetty-plus
|
||||||
|
%pom_disable_module jetty-jndi
|
||||||
|
%pom_disable_module jetty-cdi
|
||||||
|
%pom_disable_module jetty-spring
|
||||||
|
%pom_disable_module jetty-jaspi
|
||||||
|
%pom_disable_module jetty-rewrite
|
||||||
|
%pom_disable_module jetty-nosql
|
||||||
|
%pom_disable_module jetty-unixsocket
|
||||||
|
%pom_disable_module tests
|
||||||
|
%pom_disable_module examples
|
||||||
|
%pom_disable_module jetty-quickstart
|
||||||
|
%pom_disable_module jetty-distribution
|
||||||
|
%pom_disable_module jetty-runner
|
||||||
|
%pom_disable_module jetty-http-spi
|
||||||
|
%pom_disable_module jetty-alpn
|
||||||
|
%pom_disable_module jetty-home
|
||||||
|
|
||||||
|
# minimal modules built in jetty-minimal package
|
||||||
|
%pom_disable_module jetty-jaas
|
||||||
|
%pom_disable_module jetty-jmx
|
||||||
|
%pom_disable_module jetty-continuation
|
||||||
|
%pom_disable_module jetty-servlet
|
||||||
|
%pom_disable_module jetty-io
|
||||||
|
%pom_disable_module jetty-http
|
||||||
|
%pom_disable_module jetty-xml
|
||||||
|
%pom_disable_module jetty-server
|
||||||
|
%pom_disable_module jetty-client
|
||||||
|
%pom_disable_module jetty-webapp
|
||||||
|
%pom_disable_module jetty-security
|
||||||
|
%pom_disable_module jetty-util
|
||||||
|
%pom_disable_module jetty-proxy
|
||||||
|
|
||||||
|
%mvn_file :{*} %{base_name}/@1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{mvn_package} :jetty-home __noinstall
|
||||||
|
%{mvn_package} :jetty-distribution __noinstall
|
||||||
|
|
||||||
|
# Separate package for POMs
|
||||||
|
%{mvn_package} ':*-project' __noinstall
|
||||||
|
%{mvn_package} ':*-parent' __noinstall
|
||||||
|
%{mvn_package} ':*-bom' __noinstall
|
||||||
|
|
||||||
|
# artifact used by demo
|
||||||
|
%{mvn_package} :test-mock-resources
|
||||||
|
|
||||||
|
%{mvn_package} ':test-*' __noinstall
|
||||||
|
%{mvn_package} ':*-tests' __noinstall
|
||||||
|
%{mvn_package} ':*-it' __noinstall
|
||||||
|
%{mvn_package} ':example-*' __noinstall
|
||||||
|
%{mvn_package} org.eclipse.jetty.tests: __noinstall
|
||||||
|
%{mvn_package} ::war: __noinstall
|
||||||
|
%{mvn_package} :jetty-runner __noinstall
|
||||||
|
|
||||||
|
%{mvn_package} org.eclipse.jetty.cdi: jetty-cdi
|
||||||
|
|
||||||
|
%{mvn_package} ':jetty-alpn*-client' jetty-alpn-client
|
||||||
|
%{mvn_package} ':jetty-alpn*-server' jetty-alpn-server
|
||||||
|
|
||||||
|
%{mvn_package} :apache-jsp jetty-jsp
|
||||||
|
%{mvn_alias} :apache-jsp :jetty-jsp
|
||||||
|
|
||||||
|
# we don't have all necessary dependencies to run tests
|
||||||
|
# missing test dep: org.eclipse.jetty.toolchain:jetty-perf-helper
|
||||||
|
%{mvn_build} -f -s
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_install
|
||||||
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||||||
|
|
||||||
|
# jp_minimal version doesn't contain main package
|
||||||
|
%files -f .mfiles-%{name}
|
||||||
|
%license LICENSE NOTICE.txt
|
||||||
|
|
||||||
|
%files javadoc -f .mfiles-javadoc
|
||||||
|
%license LICENSE NOTICE.txt
|
||||||
|
|
||||||
|
%changelog
|
267
jetty-jndi.spec
Normal file
267
jetty-jndi.spec
Normal file
@ -0,0 +1,267 @@
|
|||||||
|
#
|
||||||
|
# spec file for package jetty
|
||||||
|
#
|
||||||
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
# Copyright (c) 2000-2007, JPackage Project
|
||||||
|
#
|
||||||
|
# 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 https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global base_name jetty
|
||||||
|
%global addver .v20190610
|
||||||
|
Name: %{base_name}-jndi
|
||||||
|
Version: 9.4.19
|
||||||
|
Release: 0
|
||||||
|
Summary: The jndi module for Jetty
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
URL: https://www.eclipse.org/jetty/
|
||||||
|
Source0: https://github.com/eclipse/%{base_name}.project/archive/%{base_name}-%{version}%{addver}.tar.gz
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: maven-local
|
||||||
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||||
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
||||||
|
BuildRequires: mvn(org.eclipse.jetty.orbit:javax.mail.glassfish)
|
||||||
|
BuildRequires: mvn(org.eclipse.jetty:jetty-util) >= %{version}
|
||||||
|
BuildRequires: mvn(org.eclipse.jetty:jetty-webapp) >= %{version}
|
||||||
|
BuildArch: noarch
|
||||||
|
# jp_minimal doesn't have main package
|
||||||
|
|
||||||
|
%description
|
||||||
|
Jetty is a 100% Java HTTP Server and Servlet Container. This means that you\
|
||||||
|
do not need to configure and run a separate web server (like Apache) in order\
|
||||||
|
to use Java, servlets and JSPs to generate dynamic content. Jetty is a fully\
|
||||||
|
featured web server for static and dynamic content. Unlike separate\
|
||||||
|
server/container solutions, this means that your web server and web\
|
||||||
|
application run in the same process, without interconnection overheads\
|
||||||
|
and complications. Furthermore, as a pure java component, Jetty can be simply\
|
||||||
|
included in your application for demonstration, distribution or deployment.\
|
||||||
|
Jetty is available on all Java supported platforms.
|
||||||
|
|
||||||
|
This package contains jndi module for Jetty
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: Javadoc for %{name}
|
||||||
|
# some MIT-licensed code (from Utf8Appendable) is used to generate javadoc
|
||||||
|
License: (Apache-2.0 OR EPL-1.0) AND MIT
|
||||||
|
|
||||||
|
%description javadoc
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{base_name}.project-%{base_name}-%{version}%{addver}
|
||||||
|
|
||||||
|
find . -name "*.?ar" -exec rm {} \;
|
||||||
|
find . -name "*.class" -exec rm {} \;
|
||||||
|
|
||||||
|
# Plugins irrelevant or harmful to building the package
|
||||||
|
%pom_remove_plugin -r :findbugs-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-enforcer-plugin
|
||||||
|
%pom_remove_plugin -r :clirr-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-eclipse-plugin
|
||||||
|
%pom_remove_plugin -r :maven-pmd-plugin
|
||||||
|
%pom_remove_plugin -r :license-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-site-plugin
|
||||||
|
%pom_remove_plugin -r :maven-source-plugin
|
||||||
|
%pom_remove_plugin -r :maven-deploy-plugin
|
||||||
|
%pom_remove_plugin -r :jacoco-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-release-plugin
|
||||||
|
%pom_remove_plugin -r :buildnumber-maven-plugin
|
||||||
|
%pom_remove_plugin -r :h2spec-maven-plugin
|
||||||
|
|
||||||
|
# Unnecessary pom flattening can be skipped
|
||||||
|
%pom_remove_plugin -r :flatten-maven-plugin jetty-bom
|
||||||
|
|
||||||
|
%pom_disable_module aggregates/jetty-all
|
||||||
|
|
||||||
|
# Use proper groupId for apache ant
|
||||||
|
%pom_xpath_replace "pom:groupId[text()='ant']" "<groupId>org.apache.ant</groupId>" jetty-ant/pom.xml
|
||||||
|
|
||||||
|
%pom_remove_dep "com.sun.net.httpserver:http" jetty-http-spi
|
||||||
|
|
||||||
|
%pom_change_dep -r org.mortbay.jasper:apache-jsp org.apache.tomcat:tomcat-jasper
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
# txt artifact - not installable
|
||||||
|
%pom_remove_plugin ":jetty-version-maven-plugin"
|
||||||
|
%pom_xpath_remove "pom:artifactItem[pom:classifier='version']" jetty-home
|
||||||
|
|
||||||
|
# Disable building source release
|
||||||
|
%pom_xpath_remove 'pom:execution[pom:id="sources"]' jetty-home
|
||||||
|
|
||||||
|
# Unwanted JS in javadoc
|
||||||
|
sed -i '/^\s*\*.*<script>/d' jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java
|
||||||
|
|
||||||
|
# only used for integration tests
|
||||||
|
%pom_remove_plugin :maven-invoker-plugin jetty-jspc-maven-plugin
|
||||||
|
|
||||||
|
# These bundles have a dep on Eclipse that is not available on every arch
|
||||||
|
%pom_disable_module jetty-osgi
|
||||||
|
|
||||||
|
# We don't have asciidoctor-maven-plugin
|
||||||
|
%pom_disable_module jetty-documentation
|
||||||
|
%pom_remove_dep -r :jetty-documentation
|
||||||
|
%pom_xpath_remove 'pom:execution[pom:id="unpack-documentation"]' jetty-distribution
|
||||||
|
|
||||||
|
%pom_xpath_remove 'pom:artifactItem[pom:artifactId="libsetuid-osx"]' jetty-home/pom.xml
|
||||||
|
|
||||||
|
# TODO remove when jetty-setuid is packaged
|
||||||
|
%pom_xpath_remove "pom:execution[pom:id[text()='copy-setuid-deps']]" jetty-home/pom.xml
|
||||||
|
|
||||||
|
# We don't have gcloud-java-datastore in Fedora
|
||||||
|
%pom_disable_module jetty-gcloud
|
||||||
|
%pom_disable_module test-gcloud-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :jetty-gcloud-session-manager jetty-home
|
||||||
|
|
||||||
|
# we don't have com.googlecode.xmemcached:xmemcached yet
|
||||||
|
%pom_disable_module jetty-memcached
|
||||||
|
%pom_disable_module test-memcached-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :jetty-memcached-sessions jetty-home
|
||||||
|
|
||||||
|
# Hazelcast in Fedora is too old to build against
|
||||||
|
%pom_disable_module jetty-hazelcast
|
||||||
|
%pom_disable_module test-hazelcast-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :jetty-hazelcast jetty-home
|
||||||
|
|
||||||
|
# Infinispan in Fedora is too old to build against
|
||||||
|
%pom_disable_module jetty-infinispan
|
||||||
|
%pom_disable_module test-infinispan-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :infinispan-embedded jetty-home
|
||||||
|
%pom_remove_dep :infinispan-embedded-query jetty-home
|
||||||
|
%pom_remove_dep :infinispan-remote jetty-home
|
||||||
|
%pom_remove_dep :infinispan-remote-query jetty-home
|
||||||
|
%pom_xpath_remove "pom:execution[pom:id='unpack-infinispan-config']" jetty-home
|
||||||
|
|
||||||
|
# Not currently able to build tests, so can't build benchmarks
|
||||||
|
%pom_disable_module jetty-jmh
|
||||||
|
|
||||||
|
# Distribution tests require internet access, so disable
|
||||||
|
%pom_disable_module test-distribution tests
|
||||||
|
|
||||||
|
# missing conscrypt
|
||||||
|
%pom_disable_module jetty-alpn-conscrypt-server jetty-alpn
|
||||||
|
%pom_disable_module jetty-alpn-conscrypt-client jetty-alpn
|
||||||
|
%pom_remove_dep -r :jetty-alpn-conscrypt-server
|
||||||
|
%pom_remove_dep -r :jetty-alpn-conscrypt-client
|
||||||
|
rm -fr examples/embedded/src/main/java/org/eclipse/jetty/embedded/ManyConnectors.java
|
||||||
|
|
||||||
|
cp %{SOURCE6} .
|
||||||
|
|
||||||
|
# the default location is not allowed by SELinux
|
||||||
|
sed -i '/<SystemProperty name="jetty.state"/d' \
|
||||||
|
jetty-home/src/main/resources%{_sysconfdir}/jetty-started.xml
|
||||||
|
|
||||||
|
# remote-resources only copies about.html
|
||||||
|
%pom_remove_plugin :maven-remote-resources-plugin
|
||||||
|
# packages module configs, we don't need those in minimal
|
||||||
|
%pom_remove_plugin -r :maven-assembly-plugin
|
||||||
|
# only useful when tests are enabled (copies test deps)
|
||||||
|
%pom_remove_plugin :maven-dependency-plugin jetty-client
|
||||||
|
|
||||||
|
# all modules besides the current jetty-jndi
|
||||||
|
%pom_disable_module jetty-ant
|
||||||
|
%pom_disable_module jetty-http2
|
||||||
|
%pom_disable_module jetty-fcgi
|
||||||
|
%pom_disable_module jetty-websocket
|
||||||
|
%pom_disable_module jetty-servlets
|
||||||
|
%pom_disable_module jetty-util-ajax
|
||||||
|
%pom_disable_module apache-jsp
|
||||||
|
%pom_disable_module apache-jstl
|
||||||
|
%pom_disable_module jetty-maven-plugin
|
||||||
|
%pom_disable_module jetty-jspc-maven-plugin
|
||||||
|
%pom_disable_module jetty-deploy
|
||||||
|
%pom_disable_module jetty-start
|
||||||
|
%pom_disable_module jetty-plus
|
||||||
|
%pom_disable_module jetty-annotations
|
||||||
|
%pom_disable_module jetty-cdi
|
||||||
|
%pom_disable_module jetty-spring
|
||||||
|
%pom_disable_module jetty-jaspi
|
||||||
|
%pom_disable_module jetty-rewrite
|
||||||
|
%pom_disable_module jetty-nosql
|
||||||
|
%pom_disable_module jetty-unixsocket
|
||||||
|
%pom_disable_module tests
|
||||||
|
%pom_disable_module examples
|
||||||
|
%pom_disable_module jetty-quickstart
|
||||||
|
%pom_disable_module jetty-distribution
|
||||||
|
%pom_disable_module jetty-runner
|
||||||
|
%pom_disable_module jetty-http-spi
|
||||||
|
%pom_disable_module jetty-alpn
|
||||||
|
%pom_disable_module jetty-home
|
||||||
|
|
||||||
|
# minimal modules built in jetty-minimal package
|
||||||
|
%pom_disable_module jetty-jaas
|
||||||
|
%pom_disable_module jetty-jmx
|
||||||
|
%pom_disable_module jetty-continuation
|
||||||
|
%pom_disable_module jetty-servlet
|
||||||
|
%pom_disable_module jetty-io
|
||||||
|
%pom_disable_module jetty-http
|
||||||
|
%pom_disable_module jetty-xml
|
||||||
|
%pom_disable_module jetty-server
|
||||||
|
%pom_disable_module jetty-client
|
||||||
|
%pom_disable_module jetty-webapp
|
||||||
|
%pom_disable_module jetty-security
|
||||||
|
%pom_disable_module jetty-util
|
||||||
|
%pom_disable_module jetty-proxy
|
||||||
|
|
||||||
|
%mvn_file :{*} %{base_name}/@1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{mvn_package} :jetty-home __noinstall
|
||||||
|
%{mvn_package} :jetty-distribution __noinstall
|
||||||
|
|
||||||
|
# Separate package for POMs
|
||||||
|
%{mvn_package} ':*-project' __noinstall
|
||||||
|
%{mvn_package} ':*-parent' __noinstall
|
||||||
|
%{mvn_package} ':*-bom' __noinstall
|
||||||
|
|
||||||
|
# artifact used by demo
|
||||||
|
%{mvn_package} :test-mock-resources
|
||||||
|
|
||||||
|
%{mvn_package} ':test-*' __noinstall
|
||||||
|
%{mvn_package} ':*-tests' __noinstall
|
||||||
|
%{mvn_package} ':*-it' __noinstall
|
||||||
|
%{mvn_package} ':example-*' __noinstall
|
||||||
|
%{mvn_package} org.eclipse.jetty.tests: __noinstall
|
||||||
|
%{mvn_package} ::war: __noinstall
|
||||||
|
%{mvn_package} :jetty-runner __noinstall
|
||||||
|
|
||||||
|
%{mvn_package} org.eclipse.jetty.cdi: jetty-cdi
|
||||||
|
|
||||||
|
%{mvn_package} ':jetty-alpn*-client' jetty-alpn-client
|
||||||
|
%{mvn_package} ':jetty-alpn*-server' jetty-alpn-server
|
||||||
|
|
||||||
|
%{mvn_package} :apache-jsp jetty-jsp
|
||||||
|
%{mvn_alias} :apache-jsp :jetty-jsp
|
||||||
|
|
||||||
|
# we don't have all necessary dependencies to run tests
|
||||||
|
# missing test dep: org.eclipse.jetty.toolchain:jetty-perf-helper
|
||||||
|
%{mvn_build} -f -s
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_install
|
||||||
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||||||
|
|
||||||
|
# jp_minimal version doesn't contain main package
|
||||||
|
%files -f .mfiles-%{name}
|
||||||
|
%license LICENSE NOTICE.txt
|
||||||
|
|
||||||
|
%files javadoc -f .mfiles-javadoc
|
||||||
|
%license LICENSE NOTICE.txt
|
||||||
|
|
||||||
|
%changelog
|
270
jetty-jsp.spec
Normal file
270
jetty-jsp.spec
Normal file
@ -0,0 +1,270 @@
|
|||||||
|
#
|
||||||
|
# spec file for package jetty
|
||||||
|
#
|
||||||
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
# Copyright (c) 2000-2007, JPackage Project
|
||||||
|
#
|
||||||
|
# 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 https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global base_name jetty
|
||||||
|
%global addver .v20190610
|
||||||
|
Name: %{base_name}-jsp
|
||||||
|
Version: 9.4.19
|
||||||
|
Release: 0
|
||||||
|
Summary: The jsp module for Jetty
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
URL: https://www.eclipse.org/jetty/
|
||||||
|
Source0: https://github.com/eclipse/%{base_name}.project/archive/%{base_name}-%{version}%{addver}.tar.gz
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: maven-local
|
||||||
|
BuildRequires: mvn(javax.servlet:javax.servlet-api)
|
||||||
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||||
|
BuildRequires: mvn(org.apache.tomcat:tomcat-jasper)
|
||||||
|
BuildRequires: mvn(org.apache.tomcat:tomcat-util-scan)
|
||||||
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
||||||
|
BuildRequires: mvn(org.eclipse.jetty:jetty-annotations) >= %{version}
|
||||||
|
BuildRequires: mvn(org.eclipse.jetty:jetty-util) >= %{version}
|
||||||
|
BuildRequires: mvn(org.eclipse.jetty.toolchain:jetty-schemas)
|
||||||
|
BuildArch: noarch
|
||||||
|
# jp_minimal doesn't have main package
|
||||||
|
|
||||||
|
%description
|
||||||
|
Jetty is a 100% Java HTTP Server and Servlet Container. This means that you\
|
||||||
|
do not need to configure and run a separate web server (like Apache) in order\
|
||||||
|
to use Java, servlets and JSPs to generate dynamic content. Jetty is a fully\
|
||||||
|
featured web server for static and dynamic content. Unlike separate\
|
||||||
|
server/container solutions, this means that your web server and web\
|
||||||
|
application run in the same process, without interconnection overheads\
|
||||||
|
and complications. Furthermore, as a pure java component, Jetty can be simply\
|
||||||
|
included in your application for demonstration, distribution or deployment.\
|
||||||
|
Jetty is available on all Java supported platforms.
|
||||||
|
|
||||||
|
This package contains jsp module for Jetty
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: Javadoc for %{name}
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
|
||||||
|
%description javadoc
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{base_name}.project-%{base_name}-%{version}%{addver}
|
||||||
|
|
||||||
|
find . -name "*.?ar" -exec rm {} \;
|
||||||
|
find . -name "*.class" -exec rm {} \;
|
||||||
|
|
||||||
|
# Plugins irrelevant or harmful to building the package
|
||||||
|
%pom_remove_plugin -r :findbugs-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-enforcer-plugin
|
||||||
|
%pom_remove_plugin -r :clirr-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-eclipse-plugin
|
||||||
|
%pom_remove_plugin -r :maven-pmd-plugin
|
||||||
|
%pom_remove_plugin -r :license-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-site-plugin
|
||||||
|
%pom_remove_plugin -r :maven-source-plugin
|
||||||
|
%pom_remove_plugin -r :maven-deploy-plugin
|
||||||
|
%pom_remove_plugin -r :jacoco-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-release-plugin
|
||||||
|
%pom_remove_plugin -r :buildnumber-maven-plugin
|
||||||
|
%pom_remove_plugin -r :h2spec-maven-plugin
|
||||||
|
|
||||||
|
# Unnecessary pom flattening can be skipped
|
||||||
|
%pom_remove_plugin -r :flatten-maven-plugin jetty-bom
|
||||||
|
|
||||||
|
%pom_disable_module aggregates/jetty-all
|
||||||
|
|
||||||
|
# Use proper groupId for apache ant
|
||||||
|
%pom_xpath_replace "pom:groupId[text()='ant']" "<groupId>org.apache.ant</groupId>" jetty-ant/pom.xml
|
||||||
|
|
||||||
|
%pom_remove_dep "com.sun.net.httpserver:http" jetty-http-spi
|
||||||
|
|
||||||
|
%pom_change_dep -r org.mortbay.jasper:apache-jsp org.apache.tomcat:tomcat-jasper
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
# txt artifact - not installable
|
||||||
|
%pom_remove_plugin ":jetty-version-maven-plugin"
|
||||||
|
%pom_xpath_remove "pom:artifactItem[pom:classifier='version']" jetty-home
|
||||||
|
|
||||||
|
# Disable building source release
|
||||||
|
%pom_xpath_remove 'pom:execution[pom:id="sources"]' jetty-home
|
||||||
|
|
||||||
|
# Unwanted JS in javadoc
|
||||||
|
sed -i '/^\s*\*.*<script>/d' jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java
|
||||||
|
|
||||||
|
# only used for integration tests
|
||||||
|
%pom_remove_plugin :maven-invoker-plugin jetty-jspc-maven-plugin
|
||||||
|
|
||||||
|
# These bundles have a dep on Eclipse that is not available on every arch
|
||||||
|
%pom_disable_module jetty-osgi
|
||||||
|
|
||||||
|
# We don't have asciidoctor-maven-plugin
|
||||||
|
%pom_disable_module jetty-documentation
|
||||||
|
%pom_remove_dep -r :jetty-documentation
|
||||||
|
%pom_xpath_remove 'pom:execution[pom:id="unpack-documentation"]' jetty-distribution
|
||||||
|
|
||||||
|
%pom_xpath_remove 'pom:artifactItem[pom:artifactId="libsetuid-osx"]' jetty-home/pom.xml
|
||||||
|
|
||||||
|
# TODO remove when jetty-setuid is packaged
|
||||||
|
%pom_xpath_remove "pom:execution[pom:id[text()='copy-setuid-deps']]" jetty-home/pom.xml
|
||||||
|
|
||||||
|
# We don't have gcloud-java-datastore in Fedora
|
||||||
|
%pom_disable_module jetty-gcloud
|
||||||
|
%pom_disable_module test-gcloud-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :jetty-gcloud-session-manager jetty-home
|
||||||
|
|
||||||
|
# we don't have com.googlecode.xmemcached:xmemcached yet
|
||||||
|
%pom_disable_module jetty-memcached
|
||||||
|
%pom_disable_module test-memcached-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :jetty-memcached-sessions jetty-home
|
||||||
|
|
||||||
|
# Hazelcast in Fedora is too old to build against
|
||||||
|
%pom_disable_module jetty-hazelcast
|
||||||
|
%pom_disable_module test-hazelcast-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :jetty-hazelcast jetty-home
|
||||||
|
|
||||||
|
# Infinispan in Fedora is too old to build against
|
||||||
|
%pom_disable_module jetty-infinispan
|
||||||
|
%pom_disable_module test-infinispan-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :infinispan-embedded jetty-home
|
||||||
|
%pom_remove_dep :infinispan-embedded-query jetty-home
|
||||||
|
%pom_remove_dep :infinispan-remote jetty-home
|
||||||
|
%pom_remove_dep :infinispan-remote-query jetty-home
|
||||||
|
%pom_xpath_remove "pom:execution[pom:id='unpack-infinispan-config']" jetty-home
|
||||||
|
|
||||||
|
# Not currently able to build tests, so can't build benchmarks
|
||||||
|
%pom_disable_module jetty-jmh
|
||||||
|
|
||||||
|
# Distribution tests require internet access, so disable
|
||||||
|
%pom_disable_module test-distribution tests
|
||||||
|
|
||||||
|
# missing conscrypt
|
||||||
|
%pom_disable_module jetty-alpn-conscrypt-server jetty-alpn
|
||||||
|
%pom_disable_module jetty-alpn-conscrypt-client jetty-alpn
|
||||||
|
%pom_remove_dep -r :jetty-alpn-conscrypt-server
|
||||||
|
%pom_remove_dep -r :jetty-alpn-conscrypt-client
|
||||||
|
rm -fr examples/embedded/src/main/java/org/eclipse/jetty/embedded/ManyConnectors.java
|
||||||
|
|
||||||
|
cp %{SOURCE6} .
|
||||||
|
|
||||||
|
# the default location is not allowed by SELinux
|
||||||
|
sed -i '/<SystemProperty name="jetty.state"/d' \
|
||||||
|
jetty-home/src/main/resources%{_sysconfdir}/jetty-started.xml
|
||||||
|
|
||||||
|
# remote-resources only copies about.html
|
||||||
|
%pom_remove_plugin :maven-remote-resources-plugin
|
||||||
|
# packages module configs, we don't need those in minimal
|
||||||
|
%pom_remove_plugin -r :maven-assembly-plugin
|
||||||
|
# only useful when tests are enabled (copies test deps)
|
||||||
|
%pom_remove_plugin :maven-dependency-plugin jetty-client
|
||||||
|
|
||||||
|
# all modules besides the current apache-jsp
|
||||||
|
%pom_disable_module jetty-ant
|
||||||
|
%pom_disable_module jetty-http2
|
||||||
|
%pom_disable_module jetty-fcgi
|
||||||
|
%pom_disable_module jetty-websocket
|
||||||
|
%pom_disable_module jetty-servlets
|
||||||
|
%pom_disable_module jetty-util-ajax
|
||||||
|
%pom_disable_module apache-jstl
|
||||||
|
%pom_disable_module jetty-maven-plugin
|
||||||
|
%pom_disable_module jetty-jspc-maven-plugin
|
||||||
|
%pom_disable_module jetty-deploy
|
||||||
|
%pom_disable_module jetty-start
|
||||||
|
%pom_disable_module jetty-plus
|
||||||
|
%pom_disable_module jetty-annotations
|
||||||
|
%pom_disable_module jetty-jndi
|
||||||
|
%pom_disable_module jetty-cdi
|
||||||
|
%pom_disable_module jetty-spring
|
||||||
|
%pom_disable_module jetty-jaspi
|
||||||
|
%pom_disable_module jetty-rewrite
|
||||||
|
%pom_disable_module jetty-nosql
|
||||||
|
%pom_disable_module jetty-unixsocket
|
||||||
|
%pom_disable_module tests
|
||||||
|
%pom_disable_module examples
|
||||||
|
%pom_disable_module jetty-quickstart
|
||||||
|
%pom_disable_module jetty-distribution
|
||||||
|
%pom_disable_module jetty-runner
|
||||||
|
%pom_disable_module jetty-http-spi
|
||||||
|
%pom_disable_module jetty-alpn
|
||||||
|
%pom_disable_module jetty-home
|
||||||
|
|
||||||
|
|
||||||
|
# minimal modules built in jetty-minimal package
|
||||||
|
%pom_disable_module jetty-jaas
|
||||||
|
%pom_disable_module jetty-jmx
|
||||||
|
%pom_disable_module jetty-continuation
|
||||||
|
%pom_disable_module jetty-servlet
|
||||||
|
%pom_disable_module jetty-io
|
||||||
|
%pom_disable_module jetty-http
|
||||||
|
%pom_disable_module jetty-xml
|
||||||
|
%pom_disable_module jetty-server
|
||||||
|
%pom_disable_module jetty-client
|
||||||
|
%pom_disable_module jetty-webapp
|
||||||
|
%pom_disable_module jetty-security
|
||||||
|
%pom_disable_module jetty-util
|
||||||
|
%pom_disable_module jetty-proxy
|
||||||
|
|
||||||
|
%mvn_file :{*} %{base_name}/@1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{mvn_package} :jetty-home __noinstall
|
||||||
|
%{mvn_package} :jetty-distribution __noinstall
|
||||||
|
|
||||||
|
# Separate package for POMs
|
||||||
|
%{mvn_package} ':*-project' __noinstall
|
||||||
|
%{mvn_package} ':*-parent' __noinstall
|
||||||
|
%{mvn_package} ':*-bom' __noinstall
|
||||||
|
|
||||||
|
# artifact used by demo
|
||||||
|
%{mvn_package} :test-mock-resources
|
||||||
|
|
||||||
|
%{mvn_package} ':test-*' __noinstall
|
||||||
|
%{mvn_package} ':*-tests' __noinstall
|
||||||
|
%{mvn_package} ':*-it' __noinstall
|
||||||
|
%{mvn_package} ':example-*' __noinstall
|
||||||
|
%{mvn_package} org.eclipse.jetty.tests: __noinstall
|
||||||
|
%{mvn_package} ::war: __noinstall
|
||||||
|
%{mvn_package} :jetty-runner __noinstall
|
||||||
|
|
||||||
|
%{mvn_package} org.eclipse.jetty.cdi: jetty-cdi
|
||||||
|
|
||||||
|
%{mvn_package} ':jetty-alpn*-client' jetty-alpn-client
|
||||||
|
%{mvn_package} ':jetty-alpn*-server' jetty-alpn-server
|
||||||
|
|
||||||
|
%{mvn_package} :apache-jsp jetty-jsp
|
||||||
|
%{mvn_alias} :apache-jsp :jetty-jsp
|
||||||
|
|
||||||
|
# we don't have all necessary dependencies to run tests
|
||||||
|
# missing test dep: org.eclipse.jetty.toolchain:jetty-perf-helper
|
||||||
|
%{mvn_build} -f -s
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_install
|
||||||
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||||||
|
|
||||||
|
# jp_minimal version doesn't contain main package
|
||||||
|
%files -f .mfiles-%{name}
|
||||||
|
%license LICENSE NOTICE.txt
|
||||||
|
|
||||||
|
%files javadoc -f .mfiles-javadoc
|
||||||
|
%license LICENSE NOTICE.txt
|
||||||
|
|
||||||
|
%changelog
|
386
jetty-minimal.spec
Normal file
386
jetty-minimal.spec
Normal file
@ -0,0 +1,386 @@
|
|||||||
|
#
|
||||||
|
# spec file for package jetty
|
||||||
|
#
|
||||||
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
# Copyright (c) 2000-2007, JPackage Project
|
||||||
|
#
|
||||||
|
# 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 https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global base_name jetty
|
||||||
|
%global addver .v20190610
|
||||||
|
Name: %{base_name}-minimal
|
||||||
|
Version: 9.4.19
|
||||||
|
Release: 0
|
||||||
|
Summary: Java Webserver and Servlet Container
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
URL: https://www.eclipse.org/jetty/
|
||||||
|
Source0: https://github.com/eclipse/%{base_name}.project/archive/%{base_name}-%{version}%{addver}.tar.gz
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: maven-local
|
||||||
|
BuildRequires: mvn(javax.servlet:javax.servlet-api)
|
||||||
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||||
|
BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin)
|
||||||
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
||||||
|
BuildRequires: mvn(org.slf4j:slf4j-api)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
|
||||||
|
%global desc \
|
||||||
|
Jetty is a 100% Java HTTP Server and Servlet Container. This means that you\
|
||||||
|
do not need to configure and run a separate web server (like Apache) in order\
|
||||||
|
to use Java, servlets and JSPs to generate dynamic content. Jetty is a fully\
|
||||||
|
featured web server for static and dynamic content. Unlike separate\
|
||||||
|
server/container solutions, this means that your web server and web\
|
||||||
|
application run in the same process, without interconnection overheads\
|
||||||
|
and complications. Furthermore, as a pure java component, Jetty can be simply\
|
||||||
|
included in your application for demonstration, distribution or deployment.\
|
||||||
|
Jetty is available on all Java supported platforms.
|
||||||
|
%global extdesc %{desc}\
|
||||||
|
\
|
||||||
|
This package contains
|
||||||
|
%{desc}
|
||||||
|
|
||||||
|
%package -n %{base_name}-client
|
||||||
|
Summary: client module for Jetty
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
|
||||||
|
%description -n %{base_name}-client
|
||||||
|
%{extdesc} %{summary}.
|
||||||
|
|
||||||
|
%package -n %{base_name}-continuation
|
||||||
|
Summary: continuation module for Jetty
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
|
||||||
|
%description -n %{base_name}-continuation
|
||||||
|
%{extdesc} %{summary}.
|
||||||
|
|
||||||
|
%package -n %{base_name}-http
|
||||||
|
Summary: http module for Jetty
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
|
||||||
|
%description -n %{base_name}-http
|
||||||
|
%{extdesc} %{summary}.
|
||||||
|
|
||||||
|
%package -n %{base_name}-http-spi
|
||||||
|
Summary: http-spi module for Jetty
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
|
||||||
|
%description -n %{base_name}-http-spi
|
||||||
|
%{extdesc} %{summary}.
|
||||||
|
|
||||||
|
%package -n %{base_name}-io
|
||||||
|
Summary: io module for Jetty
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
|
||||||
|
%description -n %{base_name}-io
|
||||||
|
%{extdesc} %{summary}.
|
||||||
|
|
||||||
|
%package -n %{base_name}-jaas
|
||||||
|
Summary: jaas module for Jetty
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
|
||||||
|
%description -n %{base_name}-jaas
|
||||||
|
%{extdesc} %{summary}.
|
||||||
|
|
||||||
|
%package -n %{base_name}-jsp
|
||||||
|
Summary: jsp module for Jetty
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
Requires: glassfish-el
|
||||||
|
|
||||||
|
%description -n %{base_name}-jsp
|
||||||
|
%{extdesc} %{summary}.
|
||||||
|
|
||||||
|
%package -n %{base_name}-security
|
||||||
|
Summary: security module for Jetty
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
|
||||||
|
%description -n %{base_name}-security
|
||||||
|
%{extdesc} %{summary}.
|
||||||
|
|
||||||
|
%package -n %{base_name}-server
|
||||||
|
Summary: server module for Jetty
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
|
||||||
|
%description -n %{base_name}-server
|
||||||
|
%{extdesc} %{summary}.
|
||||||
|
|
||||||
|
%package -n %{base_name}-servlet
|
||||||
|
Summary: servlet module for Jetty
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
|
||||||
|
%description -n %{base_name}-servlet
|
||||||
|
%{extdesc} %{summary}.
|
||||||
|
|
||||||
|
%package -n %{base_name}-util
|
||||||
|
Summary: util module for Jetty
|
||||||
|
# Utf8Appendable.java is additionally under MIT license
|
||||||
|
License: (Apache-2.0 OR EPL-1.0) AND MIT
|
||||||
|
|
||||||
|
%description -n %{base_name}-util
|
||||||
|
%{extdesc} %{summary}.
|
||||||
|
|
||||||
|
%package -n %{base_name}-webapp
|
||||||
|
Summary: webapp module for Jetty
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
|
||||||
|
%description -n %{base_name}-webapp
|
||||||
|
%{extdesc} %{summary}.
|
||||||
|
|
||||||
|
%package -n %{base_name}-jmx
|
||||||
|
Summary: jmx module for Jetty
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
|
||||||
|
%description -n %{base_name}-jmx
|
||||||
|
%{extdesc} %{summary}.
|
||||||
|
|
||||||
|
%package -n %{base_name}-xml
|
||||||
|
Summary: xml module for Jetty
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
|
||||||
|
%description -n %{base_name}-xml
|
||||||
|
%{extdesc} %{summary}.
|
||||||
|
|
||||||
|
%package -n %{base_name}-proxy
|
||||||
|
Summary: proxy module for Jetty
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
|
||||||
|
%description -n %{base_name}-proxy
|
||||||
|
%{extdesc} %{summary}.
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: Javadoc for %{name}
|
||||||
|
# some MIT-licensed code (from Utf8Appendable) is used to generate javadoc
|
||||||
|
License: (Apache-2.0 OR EPL-1.0) AND MIT
|
||||||
|
|
||||||
|
%description javadoc
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{base_name}.project-%{base_name}-%{version}%{addver}
|
||||||
|
|
||||||
|
find . -name "*.?ar" -exec rm {} \;
|
||||||
|
find . -name "*.class" -exec rm {} \;
|
||||||
|
|
||||||
|
# Plugins irrelevant or harmful to building the package
|
||||||
|
%pom_remove_plugin -r :findbugs-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-enforcer-plugin
|
||||||
|
%pom_remove_plugin -r :clirr-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-eclipse-plugin
|
||||||
|
%pom_remove_plugin -r :maven-pmd-plugin
|
||||||
|
%pom_remove_plugin -r :license-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-site-plugin
|
||||||
|
%pom_remove_plugin -r :maven-source-plugin
|
||||||
|
%pom_remove_plugin -r :maven-deploy-plugin
|
||||||
|
%pom_remove_plugin -r :jacoco-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-release-plugin
|
||||||
|
%pom_remove_plugin -r :buildnumber-maven-plugin
|
||||||
|
%pom_remove_plugin -r :h2spec-maven-plugin
|
||||||
|
|
||||||
|
# Unnecessary pom flattening can be skipped
|
||||||
|
%pom_remove_plugin -r :flatten-maven-plugin jetty-bom
|
||||||
|
|
||||||
|
%pom_disable_module aggregates/jetty-all
|
||||||
|
|
||||||
|
# Use proper groupId for apache ant
|
||||||
|
%pom_xpath_replace "pom:groupId[text()='ant']" "<groupId>org.apache.ant</groupId>" jetty-ant/pom.xml
|
||||||
|
|
||||||
|
%pom_remove_dep "com.sun.net.httpserver:http" jetty-http-spi
|
||||||
|
|
||||||
|
%pom_change_dep -r org.mortbay.jasper:apache-jsp org.apache.tomcat:tomcat-jasper
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
# txt artifact - not installable
|
||||||
|
%pom_remove_plugin ":jetty-version-maven-plugin"
|
||||||
|
%pom_xpath_remove "pom:artifactItem[pom:classifier='version']" jetty-home
|
||||||
|
|
||||||
|
# Disable building source release
|
||||||
|
%pom_xpath_remove 'pom:execution[pom:id="sources"]' jetty-home
|
||||||
|
|
||||||
|
# Unwanted JS in javadoc
|
||||||
|
sed -i '/^\s*\*.*<script>/d' jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java
|
||||||
|
|
||||||
|
# only used for integration tests
|
||||||
|
%pom_remove_plugin :maven-invoker-plugin jetty-jspc-maven-plugin
|
||||||
|
|
||||||
|
# These bundles have a dep on Eclipse that is not available on every arch
|
||||||
|
%pom_disable_module jetty-osgi
|
||||||
|
|
||||||
|
# We don't have asciidoctor-maven-plugin
|
||||||
|
%pom_disable_module jetty-documentation
|
||||||
|
%pom_remove_dep -r :jetty-documentation
|
||||||
|
%pom_xpath_remove 'pom:execution[pom:id="unpack-documentation"]' jetty-distribution
|
||||||
|
|
||||||
|
%pom_xpath_remove 'pom:artifactItem[pom:artifactId="libsetuid-osx"]' jetty-home/pom.xml
|
||||||
|
|
||||||
|
# TODO remove when jetty-setuid is packaged
|
||||||
|
%pom_xpath_remove "pom:execution[pom:id[text()='copy-setuid-deps']]" jetty-home/pom.xml
|
||||||
|
|
||||||
|
# We don't have gcloud-java-datastore in Fedora
|
||||||
|
%pom_disable_module jetty-gcloud
|
||||||
|
%pom_disable_module test-gcloud-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :jetty-gcloud-session-manager jetty-home
|
||||||
|
|
||||||
|
# we don't have com.googlecode.xmemcached:xmemcached yet
|
||||||
|
%pom_disable_module jetty-memcached
|
||||||
|
%pom_disable_module test-memcached-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :jetty-memcached-sessions jetty-home
|
||||||
|
|
||||||
|
# Hazelcast in Fedora is too old to build against
|
||||||
|
%pom_disable_module jetty-hazelcast
|
||||||
|
%pom_disable_module test-hazelcast-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :jetty-hazelcast jetty-home
|
||||||
|
|
||||||
|
# Infinispan in Fedora is too old to build against
|
||||||
|
%pom_disable_module jetty-infinispan
|
||||||
|
%pom_disable_module test-infinispan-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :infinispan-embedded jetty-home
|
||||||
|
%pom_remove_dep :infinispan-embedded-query jetty-home
|
||||||
|
%pom_remove_dep :infinispan-remote jetty-home
|
||||||
|
%pom_remove_dep :infinispan-remote-query jetty-home
|
||||||
|
%pom_xpath_remove "pom:execution[pom:id='unpack-infinispan-config']" jetty-home
|
||||||
|
|
||||||
|
# Not currently able to build tests, so can't build benchmarks
|
||||||
|
%pom_disable_module jetty-jmh
|
||||||
|
|
||||||
|
# Distribution tests require internet access, so disable
|
||||||
|
%pom_disable_module test-distribution tests
|
||||||
|
|
||||||
|
# missing conscrypt
|
||||||
|
%pom_disable_module jetty-alpn-conscrypt-server jetty-alpn
|
||||||
|
%pom_disable_module jetty-alpn-conscrypt-client jetty-alpn
|
||||||
|
%pom_remove_dep -r :jetty-alpn-conscrypt-server
|
||||||
|
%pom_remove_dep -r :jetty-alpn-conscrypt-client
|
||||||
|
rm -fr examples/embedded/src/main/java/org/eclipse/jetty/embedded/ManyConnectors.java
|
||||||
|
|
||||||
|
cp %{SOURCE6} .
|
||||||
|
|
||||||
|
# the default location is not allowed by SELinux
|
||||||
|
sed -i '/<SystemProperty name="jetty.state"/d' \
|
||||||
|
jetty-home/src/main/resources/etc/jetty-started.xml
|
||||||
|
|
||||||
|
# remote-resources only copies about.html
|
||||||
|
%pom_remove_plugin :maven-remote-resources-plugin
|
||||||
|
# packages module configs, we don't need those in minimal
|
||||||
|
%pom_remove_plugin :maven-assembly-plugin
|
||||||
|
# only useful when tests are enabled (copies test deps)
|
||||||
|
%pom_remove_plugin :maven-dependency-plugin jetty-client
|
||||||
|
|
||||||
|
%pom_disable_module jetty-ant
|
||||||
|
%pom_disable_module jetty-http2
|
||||||
|
%pom_disable_module jetty-fcgi
|
||||||
|
%pom_disable_module jetty-websocket
|
||||||
|
%pom_disable_module jetty-servlets
|
||||||
|
%pom_disable_module jetty-util-ajax
|
||||||
|
%pom_disable_module apache-jsp
|
||||||
|
%pom_disable_module apache-jstl
|
||||||
|
%pom_disable_module jetty-maven-plugin
|
||||||
|
%pom_disable_module jetty-jspc-maven-plugin
|
||||||
|
%pom_disable_module jetty-deploy
|
||||||
|
%pom_disable_module jetty-start
|
||||||
|
%pom_disable_module jetty-plus
|
||||||
|
%pom_disable_module jetty-annotations
|
||||||
|
%pom_disable_module jetty-jndi
|
||||||
|
%pom_disable_module jetty-cdi
|
||||||
|
%pom_disable_module jetty-spring
|
||||||
|
%pom_disable_module jetty-jaspi
|
||||||
|
%pom_disable_module jetty-rewrite
|
||||||
|
%pom_disable_module jetty-nosql
|
||||||
|
%pom_disable_module jetty-unixsocket
|
||||||
|
%pom_disable_module tests
|
||||||
|
%pom_disable_module examples
|
||||||
|
%pom_disable_module jetty-quickstart
|
||||||
|
%pom_disable_module jetty-distribution
|
||||||
|
%pom_disable_module jetty-runner
|
||||||
|
%pom_disable_module jetty-http-spi
|
||||||
|
%pom_disable_module jetty-alpn
|
||||||
|
%pom_disable_module jetty-home
|
||||||
|
|
||||||
|
%mvn_file :{*} %{base_name}/@1
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%{mvn_package} :jetty-home __noinstall
|
||||||
|
%{mvn_package} :jetty-distribution __noinstall
|
||||||
|
|
||||||
|
# Separate package for POMs
|
||||||
|
%{mvn_package} ':*-project' __noinstall
|
||||||
|
%{mvn_package} ':*-parent' __noinstall
|
||||||
|
%{mvn_package} ':*-bom' __noinstall
|
||||||
|
|
||||||
|
# artifact used by demo
|
||||||
|
%{mvn_package} :test-mock-resources
|
||||||
|
|
||||||
|
%{mvn_package} ':test-*' __noinstall
|
||||||
|
%{mvn_package} ':*-tests' __noinstall
|
||||||
|
%{mvn_package} ':*-it' __noinstall
|
||||||
|
%{mvn_package} ':example-*' __noinstall
|
||||||
|
%{mvn_package} org.eclipse.jetty.tests: __noinstall
|
||||||
|
%{mvn_package} ::war: __noinstall
|
||||||
|
%{mvn_package} :jetty-runner __noinstall
|
||||||
|
|
||||||
|
%{mvn_package} org.eclipse.jetty.cdi: jetty-cdi
|
||||||
|
|
||||||
|
%{mvn_package} ':jetty-alpn*-client' jetty-alpn-client
|
||||||
|
%{mvn_package} ':jetty-alpn*-server' jetty-alpn-server
|
||||||
|
|
||||||
|
%{mvn_package} :apache-jsp jetty-jsp
|
||||||
|
%{mvn_alias} :apache-jsp :jetty-jsp
|
||||||
|
|
||||||
|
# we don't have all necessary dependencies to run tests
|
||||||
|
# missing test dep: org.eclipse.jetty.toolchain:jetty-perf-helper
|
||||||
|
%{mvn_build} -f -s
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_install
|
||||||
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||||||
|
|
||||||
|
%files -n %{base_name}-client -f .mfiles-jetty-client
|
||||||
|
|
||||||
|
%files -n %{base_name}-continuation -f .mfiles-jetty-continuation
|
||||||
|
|
||||||
|
%files -n %{base_name}-jaas -f .mfiles-jetty-jaas
|
||||||
|
|
||||||
|
%files -n %{base_name}-io -f .mfiles-jetty-io
|
||||||
|
|
||||||
|
%files -n %{base_name}-server -f .mfiles-jetty-server
|
||||||
|
|
||||||
|
%files -n %{base_name}-servlet -f .mfiles-jetty-servlet
|
||||||
|
|
||||||
|
%files -n %{base_name}-util -f .mfiles-jetty-util
|
||||||
|
%license LICENSE NOTICE.txt LICENSE-MIT
|
||||||
|
|
||||||
|
%files -n %{base_name}-webapp -f .mfiles-jetty-webapp
|
||||||
|
|
||||||
|
%files -n %{base_name}-jmx -f .mfiles-jetty-jmx
|
||||||
|
|
||||||
|
%files -n %{base_name}-xml -f .mfiles-jetty-xml
|
||||||
|
|
||||||
|
%files -n %{base_name}-http -f .mfiles-jetty-http
|
||||||
|
|
||||||
|
%files -n %{base_name}-security -f .mfiles-jetty-security
|
||||||
|
|
||||||
|
%files -n %{base_name}-proxy -f .mfiles-jetty-proxy
|
||||||
|
|
||||||
|
%files javadoc -f .mfiles-javadoc
|
||||||
|
%license LICENSE NOTICE.txt LICENSE-MIT
|
||||||
|
|
||||||
|
%changelog
|
266
jetty-plus.spec
Normal file
266
jetty-plus.spec
Normal file
@ -0,0 +1,266 @@
|
|||||||
|
#
|
||||||
|
# spec file for package jetty
|
||||||
|
#
|
||||||
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
# Copyright (c) 2000-2007, JPackage Project
|
||||||
|
#
|
||||||
|
# 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 https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global base_name jetty
|
||||||
|
%global addver .v20190610
|
||||||
|
Name: %{base_name}-plus
|
||||||
|
Version: 9.4.19
|
||||||
|
Release: 0
|
||||||
|
Summary: The plus module for Jetty
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
URL: https://www.eclipse.org/jetty/
|
||||||
|
Source0: https://github.com/eclipse/%{base_name}.project/archive/%{base_name}-%{version}%{addver}.tar.gz
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: maven-local
|
||||||
|
BuildRequires: mvn(javax.transaction:javax.transaction-api)
|
||||||
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||||
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
||||||
|
BuildRequires: mvn(org.eclipse.jetty:jetty-jndi) >= %{version}
|
||||||
|
BuildRequires: mvn(org.eclipse.jetty:jetty-webapp) >= %{version}
|
||||||
|
BuildArch: noarch
|
||||||
|
# jp_minimal doesn't have main package
|
||||||
|
|
||||||
|
%description
|
||||||
|
Jetty is a 100% Java HTTP Server and Servlet Container. This means that you\
|
||||||
|
do not need to configure and run a separate web server (like Apache) in order\
|
||||||
|
to use Java, servlets and JSPs to generate dynamic content. Jetty is a fully\
|
||||||
|
featured web server for static and dynamic content. Unlike separate\
|
||||||
|
server/container solutions, this means that your web server and web\
|
||||||
|
application run in the same process, without interconnection overheads\
|
||||||
|
and complications. Furthermore, as a pure java component, Jetty can be simply\
|
||||||
|
included in your application for demonstration, distribution or deployment.\
|
||||||
|
Jetty is available on all Java supported platforms.
|
||||||
|
|
||||||
|
This package contains plus module for Jetty
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: Javadoc for %{name}
|
||||||
|
License: Apache-2.0 OR EPL-1.0
|
||||||
|
|
||||||
|
%description javadoc
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{base_name}.project-%{base_name}-%{version}%{addver}
|
||||||
|
|
||||||
|
find . -name "*.?ar" -exec rm {} \;
|
||||||
|
find . -name "*.class" -exec rm {} \;
|
||||||
|
|
||||||
|
# Plugins irrelevant or harmful to building the package
|
||||||
|
%pom_remove_plugin -r :findbugs-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-enforcer-plugin
|
||||||
|
%pom_remove_plugin -r :clirr-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-eclipse-plugin
|
||||||
|
%pom_remove_plugin -r :maven-pmd-plugin
|
||||||
|
%pom_remove_plugin -r :license-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-site-plugin
|
||||||
|
%pom_remove_plugin -r :maven-source-plugin
|
||||||
|
%pom_remove_plugin -r :maven-deploy-plugin
|
||||||
|
%pom_remove_plugin -r :jacoco-maven-plugin
|
||||||
|
%pom_remove_plugin -r :maven-release-plugin
|
||||||
|
%pom_remove_plugin -r :buildnumber-maven-plugin
|
||||||
|
%pom_remove_plugin -r :h2spec-maven-plugin
|
||||||
|
|
||||||
|
# Unnecessary pom flattening can be skipped
|
||||||
|
%pom_remove_plugin -r :flatten-maven-plugin jetty-bom
|
||||||
|
|
||||||
|
%pom_disable_module aggregates/jetty-all
|
||||||
|
|
||||||
|
# Use proper groupId for apache ant
|
||||||
|
%pom_xpath_replace "pom:groupId[text()='ant']" "<groupId>org.apache.ant</groupId>" jetty-ant/pom.xml
|
||||||
|
|
||||||
|
%pom_remove_dep "com.sun.net.httpserver:http" jetty-http-spi
|
||||||
|
|
||||||
|
%pom_change_dep -r org.mortbay.jasper:apache-jsp org.apache.tomcat:tomcat-jasper
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
# txt artifact - not installable
|
||||||
|
%pom_remove_plugin ":jetty-version-maven-plugin"
|
||||||
|
%pom_xpath_remove "pom:artifactItem[pom:classifier='version']" jetty-home
|
||||||
|
|
||||||
|
# Disable building source release
|
||||||
|
%pom_xpath_remove 'pom:execution[pom:id="sources"]' jetty-home
|
||||||
|
|
||||||
|
# Unwanted JS in javadoc
|
||||||
|
sed -i '/^\s*\*.*<script>/d' jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java
|
||||||
|
|
||||||
|
# only used for integration tests
|
||||||
|
%pom_remove_plugin :maven-invoker-plugin jetty-jspc-maven-plugin
|
||||||
|
|
||||||
|
# These bundles have a dep on Eclipse that is not available on every arch
|
||||||
|
%pom_disable_module jetty-osgi
|
||||||
|
|
||||||
|
# We don't have asciidoctor-maven-plugin
|
||||||
|
%pom_disable_module jetty-documentation
|
||||||
|
%pom_remove_dep -r :jetty-documentation
|
||||||
|
%pom_xpath_remove 'pom:execution[pom:id="unpack-documentation"]' jetty-distribution
|
||||||
|
|
||||||
|
%pom_xpath_remove 'pom:artifactItem[pom:artifactId="libsetuid-osx"]' jetty-home/pom.xml
|
||||||
|
|
||||||
|
# TODO remove when jetty-setuid is packaged
|
||||||
|
%pom_xpath_remove "pom:execution[pom:id[text()='copy-setuid-deps']]" jetty-home/pom.xml
|
||||||
|
|
||||||
|
# We don't have gcloud-java-datastore in Fedora
|
||||||
|
%pom_disable_module jetty-gcloud
|
||||||
|
%pom_disable_module test-gcloud-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :jetty-gcloud-session-manager jetty-home
|
||||||
|
|
||||||
|
# we don't have com.googlecode.xmemcached:xmemcached yet
|
||||||
|
%pom_disable_module jetty-memcached
|
||||||
|
%pom_disable_module test-memcached-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :jetty-memcached-sessions jetty-home
|
||||||
|
|
||||||
|
# Hazelcast in Fedora is too old to build against
|
||||||
|
%pom_disable_module jetty-hazelcast
|
||||||
|
%pom_disable_module test-hazelcast-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :jetty-hazelcast jetty-home
|
||||||
|
|
||||||
|
# Infinispan in Fedora is too old to build against
|
||||||
|
%pom_disable_module jetty-infinispan
|
||||||
|
%pom_disable_module test-infinispan-sessions tests/test-sessions
|
||||||
|
%pom_remove_dep :infinispan-embedded jetty-home
|
||||||
|
%pom_remove_dep :infinispan-embedded-query jetty-home
|
||||||
|
%pom_remove_dep :infinispan-remote jetty-home
|
||||||
|
%pom_remove_dep :infinispan-remote-query jetty-home
|
||||||
|
%pom_xpath_remove "pom:execution[pom:id='unpack-infinispan-config']" jetty-home
|
||||||
|
|
||||||
|
# Not currently able to build tests, so can't build benchmarks
|
||||||
|
%pom_disable_module jetty-jmh
|
||||||
|
|
||||||
|
# Distribution tests require internet access, so disable
|
||||||
|
%pom_disable_module test-distribution tests
|
||||||
|
|
||||||
|
# missing conscrypt
|
||||||
|
%pom_disable_module jetty-alpn-conscrypt-server jetty-alpn
|
||||||
|
%pom_disable_module jetty-alpn-conscrypt-client jetty-alpn
|
||||||
|
%pom_remove_dep -r :jetty-alpn-conscrypt-server
|
||||||
|
%pom_remove_dep -r :jetty-alpn-conscrypt-client
|
||||||
|
rm -fr examples/embedded/src/main/java/org/eclipse/jetty/embedded/ManyConnectors.java
|
||||||
|
|
||||||
|
cp %{SOURCE6} .
|
||||||
|
|
||||||
|
# the default location is not allowed by SELinux
|
||||||
|
sed -i '/<SystemProperty name="jetty.state"/d' \
|
||||||
|
jetty-home/src/main/resources%{_sysconfdir}/jetty-started.xml
|
||||||
|
|
||||||
|
# remote-resources only copies about.html
|
||||||
|
%pom_remove_plugin :maven-remote-resources-plugin
|
||||||
|
# packages module configs, we don't need those in minimal
|
||||||
|
%pom_remove_plugin -r :maven-assembly-plugin
|
||||||
|
# only useful when tests are enabled (copies test deps)
|
||||||
|
%pom_remove_plugin :maven-dependency-plugin jetty-client
|
||||||
|
|
||||||
|
# all modules besides the current jetty-plus
|
||||||
|
%pom_disable_module jetty-ant
|
||||||
|
%pom_disable_module jetty-http2
|
||||||
|
%pom_disable_module jetty-fcgi
|
||||||
|
%pom_disable_module jetty-websocket
|
||||||
|
%pom_disable_module jetty-servlets
|
||||||
|
%pom_disable_module jetty-util-ajax
|
||||||
|
%pom_disable_module apache-jsp
|
||||||
|
%pom_disable_module apache-jstl
|
||||||
|
%pom_disable_module jetty-maven-plugin
|
||||||
|
%pom_disable_module jetty-jspc-maven-plugin
|
||||||
|
%pom_disable_module jetty-deploy
|
||||||
|
%pom_disable_module jetty-start
|
||||||
|
%pom_disable_module jetty-jndi
|
||||||
|
%pom_disable_module jetty-annotations
|
||||||
|
%pom_disable_module jetty-cdi
|
||||||
|
%pom_disable_module jetty-spring
|
||||||
|
%pom_disable_module jetty-jaspi
|
||||||
|
%pom_disable_module jetty-rewrite
|
||||||
|
%pom_disable_module jetty-nosql
|
||||||
|
%pom_disable_module jetty-unixsocket
|
||||||
|
%pom_disable_module tests
|
||||||
|
%pom_disable_module examples
|
||||||
|
%pom_disable_module jetty-quickstart
|
||||||
|
%pom_disable_module jetty-distribution
|
||||||
|
%pom_disable_module jetty-runner
|
||||||
|
%pom_disable_module jetty-http-spi
|
||||||
|
%pom_disable_module jetty-alpn
|
||||||
|
%pom_disable_module jetty-home
|
||||||
|
|
||||||
|
# minimal modules built in jetty-minimal package
|
||||||
|
%pom_disable_module jetty-jaas
|
||||||
|
%pom_disable_module jetty-jmx
|
||||||
|
%pom_disable_module jetty-continuation
|
||||||
|
%pom_disable_module jetty-servlet
|
||||||
|
%pom_disable_module jetty-io
|
||||||
|
%pom_disable_module jetty-http
|
||||||
|
%pom_disable_module jetty-xml
|
||||||
|
%pom_disable_module jetty-server
|
||||||
|
%pom_disable_module jetty-client
|
||||||
|
%pom_disable_module jetty-webapp
|
||||||
|
%pom_disable_module jetty-security
|
||||||
|
%pom_disable_module jetty-util
|
||||||
|
%pom_disable_module jetty-proxy
|
||||||
|
|
||||||
|
%mvn_file :{*} %{base_name}/@1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{mvn_package} :jetty-home __noinstall
|
||||||
|
%{mvn_package} :jetty-distribution __noinstall
|
||||||
|
|
||||||
|
# Separate package for POMs
|
||||||
|
%{mvn_package} ':*-project' __noinstall
|
||||||
|
%{mvn_package} ':*-parent' __noinstall
|
||||||
|
%{mvn_package} ':*-bom' __noinstall
|
||||||
|
|
||||||
|
# artifact used by demo
|
||||||
|
%{mvn_package} :test-mock-resources
|
||||||
|
|
||||||
|
%{mvn_package} ':test-*' __noinstall
|
||||||
|
%{mvn_package} ':*-tests' __noinstall
|
||||||
|
%{mvn_package} ':*-it' __noinstall
|
||||||
|
%{mvn_package} ':example-*' __noinstall
|
||||||
|
%{mvn_package} org.eclipse.jetty.tests: __noinstall
|
||||||
|
%{mvn_package} ::war: __noinstall
|
||||||
|
%{mvn_package} :jetty-runner __noinstall
|
||||||
|
|
||||||
|
%{mvn_package} org.eclipse.jetty.cdi: jetty-cdi
|
||||||
|
|
||||||
|
%{mvn_package} ':jetty-alpn*-client' jetty-alpn-client
|
||||||
|
%{mvn_package} ':jetty-alpn*-server' jetty-alpn-server
|
||||||
|
|
||||||
|
%{mvn_package} :apache-jsp jetty-jsp
|
||||||
|
%{mvn_alias} :apache-jsp :jetty-jsp
|
||||||
|
|
||||||
|
# we don't have all necessary dependencies to run tests
|
||||||
|
# missing test dep: org.eclipse.jetty.toolchain:jetty-perf-helper
|
||||||
|
%{mvn_build} -f -s
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_install
|
||||||
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||||||
|
|
||||||
|
# jp_minimal version doesn't contain main package
|
||||||
|
%files -f .mfiles-%{name}
|
||||||
|
%license LICENSE NOTICE.txt
|
||||||
|
|
||||||
|
%files javadoc -f .mfiles-javadoc
|
||||||
|
%license LICENSE NOTICE.txt
|
||||||
|
|
||||||
|
%changelog
|
18
jetty.service
Normal file
18
jetty.service
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Systemd unit file for jetty
|
||||||
|
#
|
||||||
|
# Multiple copies of this service (i.e. multiple concurrently running
|
||||||
|
# jetty servers) are not supported right now. Expect this to come with
|
||||||
|
# future updates
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=Jetty Web Application Server
|
||||||
|
After=syslog.target network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/share/jetty/bin/jetty.sh
|
||||||
|
User=jetty
|
||||||
|
Group=jetty
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user