1fe81c4
# Break a dependency cycle: apache-commons-jexl -> jacoco -> maven-reporting-api
1fe81c4
#   -> maven-doxia -> apache-commons-configuration -> apache-commons-jexl
1fe81c4
%bcond_with bootstrap
1fe81c4
7b2514a
Name:           apache-commons-jexl
7b2514a
Version:        3.3
7b2514a
Release:        %autorelease
7b2514a
Summary:        Java Expression Language
510b597
7b2514a
License:        Apache-2.0
510b597
BuildArch:      noarch
7b2514a
ExclusiveArch:  %{java_arches} noarch
7b2514a
URL:            https://commons.apache.org/proper/commons-jexl/
7b2514a
Source0:        https://archive.apache.org/dist/commons/jexl/source/commons-jexl-%{version}-src.tar.gz
7b2514a
Source1:        https://archive.apache.org/dist/commons/jexl/source/commons-jexl-%{version}-src.tar.gz.asc
7b2514a
Source2:        https://downloads.apache.org/commons/KEYS
510b597
7b2514a
# Use the codehaus version of javacc-maven-plugin, which is available from
7b2514a
# Fedora, instead of ph-javacc-maven-plugin, which is not.
7b2514a
Patch0:         %{name}-javacc.patch
510b597
7b2514a
BuildRequires:  gnupg2
510b597
BuildRequires:  maven-local
7b2514a
BuildRequires:  mvn(com.google.code.gson:gson)
510b597
BuildRequires:  mvn(commons-logging:commons-logging)
510b597
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
7b2514a
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
7b2514a
BuildRequires:  mvn(org.apache.maven.plugins:maven-compiler-plugin)
7b2514a
BuildRequires:  mvn(org.apache.maven.plugins:maven-jar-plugin)
7b2514a
BuildRequires:  mvn(org.apache.maven.plugins:maven-surefire-plugin)
510b597
BuildRequires:  mvn(org.codehaus.mojo:javacc-maven-plugin)
7b2514a
BuildRequires:  mvn(org.junit.vintage:junit-vintage-engine)
510b597
1fe81c4
%if %{without bootstrap}
1fe81c4
BuildRequires:  mvn(org.jacoco:jacoco-maven-plugin)
1fe81c4
%endif
1fe81c4
510b597
%description
7b2514a
JEXL is a library intended to facilitate the implementation of scripting
7b2514a
features in applications and frameworks written in Java.  JEXL
7b2514a
implements an Expression Language based on some extensions to the JSTL
7b2514a
Expression Language supporting most of the constructs seen in shell
7b2514a
script or ECMAScript.  Its goal is to expose scripting features usable
7b2514a
by technical operatives or consultants working with enterprise
7b2514a
platforms.
510b597
7b2514a
%javadoc_package
510b597
510b597
%prep
7b2514a
%{gpgverify} --data=%{SOURCE0} --signature=%{SOURCE1} --keyring=%{SOURCE2}
7b2514a
%autosetup -n commons-jexl3-%{version}-src -p1
7b2514a
7b2514a
# Remove workaround for fixed JavaCC bug.
7b2514a
# The workaround now causes build failure.
7b2514a
%pom_remove_plugin :maven-antrun-plugin
7b2514a
7b2514a
# Work around @{argLine} expansion failure
7b2514a
%pom_xpath_remove //pom:argLine
7b2514a
7b2514a
# Not needed for RPM builds
7b2514a
%pom_xpath_remove //pom:reporting
7b2514a
%pom_remove_plugin :animal-sniffer-maven-plugin
7b2514a
%pom_remove_plugin :apache-rat-plugin
7b2514a
%pom_remove_plugin :japicmp-maven-plugin
7b2514a
%pom_remove_plugin :maven-checkstyle-plugin
7b2514a
%pom_remove_plugin :maven-javadoc-plugin
7b2514a
%pom_remove_plugin :maven-pmd-plugin
7b2514a
%pom_remove_plugin :maven-scm-publish-plugin
7b2514a
%pom_remove_plugin :spotbugs-maven-plugin
510b597
1fe81c4
# Break a dependency cycle in bootstrap mode
1fe81c4
%if %{with bootstrap}
1fe81c4
%pom_remove_plugin :jacoco-maven-plugin
1fe81c4
%endif
1fe81c4
510b597
%build
7b2514a
%mvn_build
510b597
510b597
%install
510b597
%mvn_install
510b597
510b597
%files -f .mfiles
7b2514a
%doc RELEASE-NOTES.txt
7b2514a
%license LICENSE.txt NOTICE.txt
510b597
510b597
%changelog
7b2514a
%autochangelog