%global namedreltag .Final %global namedversion %{version}%{?namedreltag} Name: undertow Version: 1.4.0 Release: 10 Summary: Java web server using non-blocking IO License: ASL 2.0 URL: http://undertow.io/ Source0: https://github.com/undertow-io/undertow/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz # Remove unavailable methods in jetty-alpn-api-1.1.0 Patch0: undertow-1.4.0-jetty-alpn-api-1.1.0.patch Patch1: CVE-2020-10705.patch Patch2: CVE-2019-3888.patch Patch3: CVE-2020-10719.patch Patch4: CVE-2023-1108.patch Patch5: CVE-2021-3690.patch Patch6: CVE-2023-1973.patch Patch7: CVE-2023-5379.patch Patch8: CVE-2024-4109.patch Patch9: CVE-2017-12196-1.patch Patch10: CVE-2017-12196-2.patch Patch11: CVE-2019-10184-pre.patch Patch12: CVE-2019-10184.patch Patch13: CVE-2019-10212.patch BuildArch: noarch Epoch: 1 BuildRequires: maven-local mvn(junit:junit) mvn(org.eclipse.jetty.alpn:alpn-api) BuildRequires: mvn(org.jboss:jboss-parent:pom:) BuildRequires: mvn(org.jboss.classfilewriter:jboss-classfilewriter) BuildRequires: mvn(org.jboss.logging:jboss-logging) BuildRequires: mvn(org.jboss.logging:jboss-logging-processor) BuildRequires: mvn(org.jboss.logmanager:jboss-logmanager) BuildRequires: mvn(org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec) BuildRequires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec) BuildRequires: mvn(org.jboss.spec.javax.websocket:jboss-websocket-api_1.1_spec) BuildRequires: mvn(org.jboss.xnio:xnio-api) mvn(org.jboss.xnio:xnio-nio) BuildRequires: java-11-openjdk-devel Requires: java-11-openjdk Requires: javapackages-tools %description Java web server using non-blocking IO %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains the API documentation for %{name}. %prep %autosetup -n %{name}-%{namedversion} -p1 rm -rf mac-jdk-fix #Remove test cases suspected of containing viruses rm -rf servlet/src/test/java/io/undertow/servlet/test/proprietry/TransferTestCase.java %pom_disable_module examples %pom_add_dep org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec:1.0.2.Final core %pom_remove_plugin -r :maven-checkstyle-plugin %pom_remove_plugin org.bitstrings.maven.plugins:dependencypath-maven-plugin core %pom_remove_plugin org.bitstrings.maven.plugins:dependencypath-maven-plugin servlet %pom_remove_dep -r io.undertow.build:undertow-checkstyle-config for p in core servlet;do %pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions" " default-jar skip " ${p} done %build export JAVA_HOME=%{_jvmdir}/java-11-openjdk export CFLAGS="${RPM_OPT_FLAGS}" export CXXFLAGS="${RPM_OPT_FLAGS}" %mvn_build -f %install %mvn_install %files -f .mfiles %doc README.md %license LICENSE.txt %files javadoc -f .mfiles-javadoc %license LICENSE.txt %changelog * Tue Mar 04 2025 yaoxin <1024769339@qq.com> - 1:1.4.0-10 - Fix CVE-2017-12196,CVE-2019-10184 and CVE-2019-10212 * Tue Dec 17 2024 liyajie - 1:1.4.0-9 - Fix CVE-2024-4109 * Tue Nov 05 2024 yaoxin - 1:1.4.0-8 - Fix CVE-2021-3690,CVE-2023-1973 and CVE-2023-5379 * Mon Aug 21 2023 yaoxin - 1:1.4.0-7 - Fix build failure caused by jboss-classfilewriter upgrade to 1.3.0 * Tue Jun 13 2023 liyanan - 1:1.4.0-6 - Delete TransferTestCase.java TestCase * Mon Apr 3 2023 mayp - 1:1.4.0-5 - Fix CVE-2023-1108 * Wed Oct 29 2021 wangkai - 1.4.0-4 - Fix CVE-2020-10719 * Wed Oct 28 2021 wangkai - 1.4.0-3 - Fix CVE-2019-3888 * Wed Oct 27 2021 houyingchao - 1.4.0-2 - Fix CVE-2020-10705 * Wed Aug 19 2020 maminjie - 1.4.0-1 - package init