%global namedreltag -b08
%global namedversion %{version}%{?namedreltag}
Name: glassfish-el
Version: 3.0.1
Release: 0.7.b08%{?dist}
Summary: J2EE Expression Language Implementation
License: CDDL-1.1 or GPLv2 with exceptions
URL: http://uel.java.net
# svn export https://svn.java.net/svn/uel~svn/tags/javax.el-3.0.1-b08/ glassfish-el-3.0.1-b08
# rm -r glassfish-el-3.0.1-b08/fonts
# rm -r glassfish-el-3.0.1-b08/parent-pom
# rm -r glassfish-el-3.0.1-b08/repo
# rm -r glassfish-el-3.0.1-b08/spec
# rm -r glassfish-el-3.0.1-b08/uel
# rm -r glassfish-el-3.0.1-b08/www
# tar cJf glassfish-el-3.0.1-b08.tar.xz glassfish-el-3.0.1-b08
Source0: %{name}-%{namedversion}-clean.tar.xz
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires: mvn(org.apache.maven.surefire:surefire-junit47)
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin)
BuildRequires: mvn(org.glassfish:legal)
BuildArch: noarch
%description
This project provides an implementation of the Expression Language (EL).
The main goals are:
* Improves current implementation: bug fixes and performance improvements
* Provides API for use by other tools, such as Netbeans
%package api
Summary: Expression Language 3.0 API
License: (CDDL or GPLv2 with exceptions) and ASL 2.0
%description api
Expression Language 3.0 API.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n %{name}-%{namedversion}
cp -p %{SOURCE1} .
%pom_remove_plugin -r :findbugs-maven-plugin
%pom_remove_plugin -r :findbugs-maven-plugin api
%pom_remove_plugin -r :glassfish-copyright-maven-plugin
# Useless tasks
%pom_remove_plugin -r :maven-release-plugin
%pom_remove_plugin -r :maven-release-plugin api
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-source-plugin api
# Fix javadoc task
%pom_xpath_remove "pom:plugin[pom:artifactId ='maven-javadoc-plugin']/pom:executions/pom:execution/pom:goals"
%pom_xpath_remove "pom:plugin[pom:artifactId ='maven-javadoc-plugin']/pom:executions/pom:execution/pom:goals" api
%pom_xpath_remove "pom:plugin[pom:artifactId ='maven-javadoc-plugin']/pom:executions/pom:execution/pom:configuration/pom:sourcepath"
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions/pom:execution/pom:configuration" "-Xdoclint:none"
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions/pom:execution/pom:configuration" "-Xdoclint:none" api
# Fix apis version
%pom_xpath_set "pom:project/pom:version" %{namedversion} api
# Add missing build dep
%pom_add_dep javax.el:javax.el-api:'${project.version}'
# Move code without build-helper plugin in the proper folder
%pom_remove_plugin -r :build-helper-maven-plugin
mv impl/src/main src
# Do not use ant
%pom_add_plugin org.codehaus.mojo:javacc-maven-plugin:2.6 . "
jjtree-javacc
jjtree-javacc
src/main/java/com/sun/el/parser
src/main/java/com/sun/el/parser
"
# Fix impl resources path
%pom_xpath_remove "pom:build/pom:resources/pom:resource"
%pom_xpath_inject "pom:build/pom:resources" "
src/main/java
**/*.properties
**/*.xml
"
# This is a dummy POM added just to ease building in the RPM platforms
cat > pom-parent.xml << EOF
4.0.0
org.glassfish.web
javax.el-root
%{namedversion}
pom
%{name} Parent
api
pom.xml
EOF
%mvn_file javax.el:javax.el-api %{name}-api
%mvn_alias javax.el:javax.el-api "javax.el:el-api" "org.glassfish:javax.el-api"
%mvn_file org.glassfish:javax.el %{name}
%mvn_alias org.glassfish:javax.el "org.eclipse.jetty.orbit:com.sun.el" "org.glassfish.web:javax.el" "org.glassfish:javax.el-impl"
%mvn_package :javax.el-root __noinstall
%build
%mvn_build -s -- -f pom-parent.xml
%install
%mvn_install
cp -p api/target/classes/META-INF/LICENSE.txt .
cp -p api/src/main/javadoc/doc-files/*-spec-license.html .
%files -f .mfiles-javax.el
%files api -f .mfiles-javax.el-api
%license LICENSE.txt LICENSE-2.0.txt *-spec-license.html
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt LICENSE-2.0.txt
%changelog
* Wed Feb 07 2018 Fedora Release Engineering - 3.0.1-0.7.b08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Nov 09 2017 Michael Simacek - 3.0.1-0.6.b08
- Specify CDDL license version
* Wed Jul 26 2017 Fedora Release Engineering - 3.0.1-0.5.b08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering - 3.0.1-0.4.b08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Fri Oct 14 2016 Mat Booth - 3.0.1-0.3.b08
- Rebuild
* Wed Oct 12 2016 gil cattaneo 3.0.1-0.2.b08
- use default bundle plugin settings
* Mon Oct 03 2016 gil cattaneo 3.0.1-0.1.b08
- update to 3.0.1-b08
* Wed Feb 03 2016 Fedora Release Engineering - 3.0.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering - 3.0.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Mon Aug 4 2014 Mikolaj Izdebski - 3.0.0-4
- Fix build-requires on jvnet-parent
* Sat Jun 07 2014 Fedora Release Engineering - 3.0.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Tue Mar 04 2014 Stanislav Ochotnicky - 3.0.0-2
- Use Requires: java-headless rebuild (#1067528)
* Mon Dec 09 2013 Michal Srb - 3.0.0-1
- Update to upstream version 3.0.0
* Mon Aug 12 2013 Alexander Kurtakov 2.2.5-5
- Move xmvn customizations to prep.
* Wed Aug 07 2013 gil cattaneo 2.2.5-4
- switch to XMvn, fix for rhbz#992384
- install license file
* Sat Aug 03 2013 Fedora Release Engineering - 2.2.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Mar 6 2013 Mikolaj Izdebski - 2.2.5-2
- Add depmap for org.eclipse.jetty.orbit
- Resolves: rhbz#918514
* Fri Feb 1 2013 David Xie - 2.2.5-1
- Initial version of package