12 Star 0 Fork 5

src-openEuler / apache-commons-jexl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
apache-commons-jexl.spec 2.84 KB
一键复制 编辑 原始数据 按行查看 历史
成子晗 提交于 2020-08-18 09:46 . package init
%global jarname commons-jexl
%global compatver 2.1.0
Name: apache-%{jarname}
Version: 2.1.1
Release: 1
Summary: Java Expression Language (JEXL)
License: ASL 2.0
URL: http://commons.apache.org/jexl
Source0: http://www.apache.org/dist/commons/jexl/source/%{jarname}-%{version}-src.tar.gz
Patch0: 001-Fix-tests.patch
Patch1: apache-commons-jexl-javadoc.patch
Patch2: 0001-Port-to-current-javacc.patch
BuildRequires: maven-local mvn(commons-logging:commons-logging) mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin)
Provides: %{jarname} = %{version}-%{release}
BuildArch: noarch
%description
Java Expression Language (JEXL) is an expression language engine which can be
embedded in applications and frameworks. JEXL is inspired by Jakarta Velocity
and the Expression Language defined in the JavaServer Pages Standard Tag
Library version 1.1 (JSTL) and JavaServer Pages version 2.0 (JSP). While
inspired by JSTL EL, it must be noted that JEXL is not a compatible
implementation of EL as defined in JSTL 1.1 (JSR-052) or JSP 2.0 (JSR-152).
For a compatible implementation of these specifications, see the Commons EL
project.
JEXL attempts to bring some of the lessons learned by the Velocity community
about expression languages in templating to a wider audience. Commons Jelly
needed Velocity-ish method access, it just had to have it.
%package javadoc
Summary: Javadocs for %{name}
Requires: jpackage-utils
Provides: %{jarname}-javadoc = %{version}-%{release}
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q -n %{jarname}-%{version}-src
%patch0 -p1 -b .test
%patch1 -p1 -b .javadoc
%patch2 -p1
%pom_remove_dep org.apache.bsf:bsf-api
find \( -name '*.jar' -o -name '*.class' \) -delete
find -name '*.txt' -exec sed -i 's/\r//' '{}' +
%pom_xpath_set "pom:project/pom:version" %{compatver} jexl2-compat
%pom_xpath_set "pom:dependency[pom:artifactId='commons-jexl']/pom:version" %{version} jexl2-compat
echo "
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.fedoraproject</groupId>
<artifactId>commons-jexl-aggegator</artifactId>
<version>%{version}</version>
<packaging>pom</packaging>
<modules>
<module>.</module>
<module>jexl2-compat</module>
</modules>
</project>" >>aggregator-pom.xml
%mvn_package :commons-jexl-aggegator __noinstall
%build
%mvn_build -- -f aggregator-pom.xml
%install
%mvn_install
%files -f .mfiles
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt
%{_javadir}/%{name}
%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt
%changelog
* Mon Jul 27 2020 chengzihan <chengzihan2@huawei.com> - 2.1.1-1
- Package init
1
https://gitee.com/src-openeuler/apache-commons-jexl.git
git@gitee.com:src-openeuler/apache-commons-jexl.git
src-openeuler
apache-commons-jexl
apache-commons-jexl
openEuler-22.03-LTS

搜索帮助