2021-06-08 18:17:56 +00:00
|
|
|
# Workaround for rhbz#1969370: __bootstrap macro is not defined in
|
|
|
|
# CentOS Stream, See https://bugzilla.redhat.com/1969370
|
|
|
|
%global __bootstrap ~bootstrap
|
|
|
|
|
|
|
|
%bcond_without bootstrap
|
2020-10-15 11:56:45 +00:00
|
|
|
|
|
|
|
Name: jakarta-servlet
|
|
|
|
Version: 5.0.0
|
2021-06-08 18:17:56 +00:00
|
|
|
Release: 8%{?dist}
|
2020-10-15 11:56:45 +00:00
|
|
|
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:
|
|
|
|
# https://github.com/eclipse-ee4j/servlet-api/issues/347
|
|
|
|
License: (EPL-2.0 or GPLv2 with exceptions) and ASL 2.0
|
|
|
|
URL: https://github.com/eclipse-ee4j/servlet-api
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2021-06-08 18:17:56 +00:00
|
|
|
Source0: https://github.com/eclipse-ee4j/servlet-api/archive/%{version}-RELEASE/servlet-api-%{version}.tar.gz
|
|
|
|
|
2020-10-15 11:56:45 +00:00
|
|
|
BuildRequires: maven-local
|
2021-06-08 18:17:56 +00:00
|
|
|
%if %{with bootstrap}
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
%else
|
2020-10-15 11:56:45 +00:00
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
2021-06-08 18:17:56 +00:00
|
|
|
%endif
|
2020-10-15 11:56:45 +00:00
|
|
|
|
|
|
|
Provides: glassfish-servlet-api = %{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Jakarta Servlet defines a server-side API for handling HTTP requests
|
|
|
|
and responses.
|
|
|
|
|
2021-06-08 18:17:56 +00:00
|
|
|
%{?javadoc_package}
|
2020-10-15 11:56:45 +00:00
|
|
|
|
|
|
|
%prep
|
2021-06-08 18:17:56 +00:00
|
|
|
%setup -q -n servlet-api-%{version}-RELEASE
|
2020-10-15 11:56:45 +00:00
|
|
|
|
|
|
|
# remove unnecessary dependency on parent POM
|
|
|
|
%pom_remove_parent . api
|
|
|
|
|
|
|
|
# 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 \
|
|
|
|
'<Export-Package>jakarta.servlet.*,javax.servlet.*;version="4.0.0"</Export-Package>' api
|
|
|
|
|
|
|
|
# do not install useless parent POM
|
|
|
|
%mvn_package jakarta.servlet:servlet-parent __noinstall
|
|
|
|
|
|
|
|
# remove unnecessary maven plugins
|
|
|
|
%pom_remove_plugin -r :formatter-maven-plugin
|
|
|
|
%pom_remove_plugin -r :impsort-maven-plugin
|
|
|
|
%pom_remove_plugin -r :maven-enforcer-plugin
|
|
|
|
%pom_remove_plugin -r :maven-javadoc-plugin
|
|
|
|
%pom_remove_plugin -r :maven-source-plugin
|
|
|
|
|
|
|
|
# add maven artifact coordinate aliases for backwards compatibility
|
|
|
|
%mvn_alias jakarta.servlet:jakarta.servlet-api \
|
|
|
|
javax.servlet:javax.servlet-api \
|
|
|
|
javax.servlet:servlet-api
|
|
|
|
|
|
|
|
# add compat symlink for packages constructing the classpath manually
|
|
|
|
%mvn_file :{*} %{name}/@1 glassfish-servlet-api
|
|
|
|
|
|
|
|
%build
|
|
|
|
%mvn_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE.md NOTICE.md
|
|
|
|
%doc README.md
|
|
|
|
|
2021-06-08 18:17:56 +00:00
|
|
|
%changelog
|
|
|
|
* Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.0.0-8
|
|
|
|
- Bootstrap Maven for CentOS Stream 9
|
2020-10-15 11:56:45 +00:00
|
|
|
|
2021-06-08 18:17:56 +00:00
|
|
|
* Wed May 26 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.0.0-7
|
|
|
|
- Re-add provides on glassfish-servlet-api
|
2020-10-15 11:56:45 +00:00
|
|
|
|
2021-06-08 18:17:56 +00:00
|
|
|
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.0.0-6
|
|
|
|
- Bootstrap build
|
|
|
|
- Non-bootstrap build
|
2021-04-16 00:42:18 +00:00
|
|
|
|
2021-02-04 05:07:26 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-10-15 11:56:45 +00:00
|
|
|
* Thu Aug 20 2020 Mat Booth <mat.booth@redhat.com> - 5.0.0-4
|
|
|
|
- Correct mvn_file macro invokation
|
|
|
|
|
|
|
|
* Wed Aug 19 2020 Fabio Valentini <decathorpe@gmail.com> - 5.0.0-3
|
|
|
|
- Add compat symlink for packages constructing the classpath manually.
|
|
|
|
|
|
|
|
* Wed Aug 19 2020 Mat Booth <mat.booth@redhat.com> - 5.0.0-2
|
|
|
|
- Also ship the API in the old javax namespace to aid transition
|
|
|
|
|
|
|
|
* Thu Aug 13 2020 Fabio Valentini <decathorpe@gmail.com> - 5.0.0-1
|
|
|
|
- Initial package renamed from glassfish-servlet-api.
|
|
|
|
|