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