From a5e2fb655c99dc3c56feeb904bb77fac1d579601 Mon Sep 17 00:00:00 2001 From: Mat Booth Date: Wed, 19 Aug 2020 10:37:03 +0100 Subject: [PATCH] Also ship the API in the old javax namespace to aid transition --- jakarta-servlet.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/jakarta-servlet.spec b/jakarta-servlet.spec index 04a57b5..c2a3e6f 100644 --- a/jakarta-servlet.spec +++ b/jakarta-servlet.spec @@ -2,7 +2,7 @@ Name: jakarta-servlet Version: 5.0.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Server-side API for handling HTTP requests and responses # most of the project is EPL-2.0 or GPLv2 w/exceptions, # but some files still have Apache-2.0 license headers: @@ -47,6 +47,13 @@ This package contains the API documentation for %{name}. # do not build specification documentation %pom_disable_module spec +# Copy to old package name +# TODO: Remove when all dependencies are migrated from javax.servlet to jakarta.servlet +cp -pr api/src/main/java/jakarta api/src/main/java/javax +sed -i -e 's/jakarta\./javax./g' $(find api/src/main/java/javax -name *.java) +%pom_xpath_replace pom:instructions/pom:Export-Package \ + 'jakarta.servlet.*,javax.servlet.*;version="4.0.0"' api + # do not install useless parent POM %mvn_package jakarta.servlet:servlet-parent __noinstall @@ -80,6 +87,9 @@ This package contains the API documentation for %{name}. %changelog +* Wed Aug 19 2020 Mat Booth - 5.0.0-2 +- Also ship the API in the old javax namespace to aid transition + * Thu Aug 13 2020 Fabio Valentini - 5.0.0-1 - Initial package renamed from glassfish-servlet-api.