c26768
%global artifactId javax.servlet.jsp
c26768
%global jspspec 2.3
c26768
%global reltag b02
c26768
c26768
Name:       glassfish-jsp
c26768
Version:    2.3.3
c26768
Release:    0.14.%{reltag}%{?dist}
c26768
Summary:    Glassfish J2EE JSP API implementation
c26768
License:    (CDDL-1.1 or GPLv2 with exceptions) and ASL 2.0
c26768
URL:        http://glassfish.org
c26768
BuildArch:  noarch
c26768
c26768
Source0:    %{artifactId}-%{version}-%{reltag}.tar.xz
c26768
# no source releases, but this will generate tarball for you from an
c26768
# SVN tag
c26768
Source1:    generate_tarball.sh
c26768
Source2:    http://www.apache.org/licenses/LICENSE-2.0.txt
c26768
Source3:    https://javaee.github.io/glassfish/LICENSE.html
c26768
c26768
Patch0:     %{name}-build-eclipse-compilers.patch
c26768
Patch1:     %{name}-port-to-servlet-3.1.patch
c26768
c26768
BuildRequires:  maven-local
c26768
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
c26768
BuildRequires:  mvn(javax.servlet.jsp:javax.servlet.jsp-api)
c26768
BuildRequires:  mvn(net.java:jvnet-parent:pom:)
c26768
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
c26768
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
c26768
BuildRequires:  mvn(org.eclipse.jdt:core)
c26768
BuildRequires:  mvn(org.glassfish:javax.el)
c26768
c26768
Provides:   jsp = %{jspspec}
c26768
Provides:   jsp%{jspspec}
c26768
c26768
Provides:   javax.servlet.jsp
c26768
# make sure the symlinks will be correct
c26768
Requires:  glassfish-jsp-api
c26768
c26768
%description
c26768
This project provides a container independent implementation of JSP
c26768
2.3. The main goals are:
c26768
  * Improves current implementation: bug fixes and performance
c26768
    improvements
c26768
  * Provides API for use by other tools, such as Netbeans
c26768
  * Provides a sandbox for new JSP features; provides a reference
c26768
    implementation of next JSP spec.
c26768
c26768
c26768
%package javadoc
c26768
Summary:    API documentation for %{name}
c26768
c26768
%description javadoc
c26768
%{summary}.
c26768
c26768
%prep
c26768
%setup -q -n %{artifactId}-%{version}-%{reltag}
c26768
%patch0 -p1
c26768
%patch1 -p1
c26768
c26768
%pom_add_dep org.eclipse.jdt:core::provided
c26768
c26768
cp -p %{SOURCE2} LICENSE-ASL-2.0.txt
c26768
cp -p %{SOURCE3} LICENSE-CDDL+GPLv2.html
c26768
c26768
%mvn_alias : "org.eclipse.jetty.orbit:org.apache.jasper.glassfish"
c26768
c26768
# compat symlink
c26768
%mvn_file : %{name}/javax.servlet.jsp %{name}
c26768
c26768
# javadoc generation fails due to strict doclint in JDK 8
c26768
%pom_remove_plugin :maven-javadoc-plugin
c26768
c26768
%build
c26768
%mvn_build
c26768
c26768
%install
c26768
%mvn_install
c26768
c26768
# install j2ee api symlinks
c26768
install -d -m 755 %{buildroot}%{_javadir}/javax.servlet.jsp/
c26768
pushd %{buildroot}%{_javadir}/javax.servlet.jsp/
c26768
for jar in ../%{name}/*jar; do
c26768
    ln -sf $jar .
c26768
done
c26768
# copy jsp-api so that build-classpath will include dep as well
c26768
build-jar-repository -p . glassfish-jsp-api
c26768
xmvn-subst -R %{buildroot} -s .
c26768
popd
c26768
c26768
%files -f .mfiles
c26768
%{_javadir}/javax.servlet.jsp
c26768
%license LICENSE-ASL-2.0.txt LICENSE-CDDL+GPLv2.html
c26768
c26768
%files javadoc -f .mfiles-javadoc
c26768
%license LICENSE-ASL-2.0.txt LICENSE-CDDL+GPLv2.html
c26768
c26768
c26768
%changelog
c26768
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-0.14.b02
c26768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c26768
c26768
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-0.13.b02
c26768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c26768
c26768
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-0.12.b02
c26768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c26768
c26768
* Thu Nov 09 2017 Michael Simacek <msimacek@redhat.com> - 2.3.3-0.11.b02
c26768
- Specify CDDL license version
c26768
- Include correct license file for CDDL
c26768
c26768
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-0.10.b02
c26768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c26768
c26768
* Thu May 25 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.3-0.9.b02
c26768
- Drop javax.servlet:jsp-api alias (it's for API, not impl)
c26768
c26768
* Fri Feb 24 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.3-0.8.b02
c26768
- Fix xmvn-subst invocation
c26768
c26768
* Thu Feb 23 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.3-0.7.b02
c26768
- Simplify J2EE symlink installation
c26768
c26768
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-0.6.b02
c26768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c26768
c26768
* Wed Jun 15 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.3-0.5.b02
c26768
- Add missing build-requires
c26768
c26768
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-0.4.b02
c26768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c26768
c26768
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.3-0.3.b02
c26768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c26768
c26768
* Thu May 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.3-0.2.b02
c26768
- Remove maven-javadoc-plugin execution
c26768
c26768
* Mon Jan 19 2015 Michael Simacek <msimacek@redhat.com> - 2.3.3-0.1.b02
c26768
- Update to upstream version 2.3.3-b02
c26768
c26768
* Mon Jun 9 2014 Alexander Kurtakov <akurtako@redhat.com> 2.3.2-5
c26768
- Rebuild to regen osgi metadata.
c26768
c26768
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-4
c26768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c26768
c26768
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.3.2-3
c26768
- Use Requires: java-headless rebuild (#1067528)
c26768
c26768
* Thu Jan 02 2014 Michal Srb <msrb@redhat.com> - 2.3.2-2
c26768
- Regenerate BR
c26768
c26768
* Thu Jan 02 2014 Michal Srb <msrb@redhat.com> - 2.3.2-1
c26768
- Update to upstream version 2.3.2
c26768
- Port to servlet 3.1
c26768
- Drop group tag
c26768
c26768
* Mon Aug 05 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2.6-11
c26768
- Add javax.servlet.jsp directory and provides
c26768
c26768
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.6-10
c26768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c26768
c26768
* Mon Jun 17 2013 Michal Srb <msrb@redhat.com> - 2.2.6-9
c26768
- Add compat symlink
c26768
c26768
* Fri Jun 07 2013 Michal Srb <msrb@redhat.com> - 2.2.6-8
c26768
- Build with XMvn
c26768
- Fix URL for CDDL license
c26768
c26768
* Mon Mar  4 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.6-7
c26768
- Add depmap for org.eclipse.jetty.orbit
c26768
- Resolves: rhbz#917623
c26768
c26768
* Tue Feb 26 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.6-6
c26768
- Change scope of Eclipse JDT dependency from compile to provided
c26768
- Fix eclipse patch
c26768
c26768
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.6-5
c26768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c26768
c26768
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.2.6-4
c26768
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
c26768
- Replace maven BuildRequires with maven-local
c26768
c26768
* Tue Sep  4 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.6-3
c26768
- Fix license tag
c26768
- Install license files
c26768
c26768
* Thu Aug 30 2012 Krzysztof Daniel <kdaniel@redhat.com> 2.2.6-2
c26768
- Build Eclipse compiler adapters.
c26768
c26768
* Wed Aug 29 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.6-1
c26768
- Update to upstream version 2.2.6
c26768
c26768
* Mon Jul 23 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.5-1
c26768
- Update to upstream version 2.2.5
c26768
c26768
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.3-3
c26768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c26768
c26768
* Wed Apr 11 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2.3-2
c26768
- Add explicit BR/R on java and jpackage-utils
c26768
- Fix whitespace
c26768
c26768
* Wed Mar 21 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2.1-1
c26768
- Initial version of the package