!1 Package init

Merge pull request !1 from 成子晗/master
This commit is contained in:
openeuler-ci-bot 2020-08-29 16:07:23 +08:00 committed by Gitee
commit 99c5884cf1
3 changed files with 55 additions and 0 deletions

Binary file not shown.

51
apache-commons-ognl.spec Normal file
View File

@ -0,0 +1,51 @@
%global short_name commons-ognl
Name: apache-%{short_name}
Version: 3.0.2
Release: 1
Summary: Object Graph Navigation Library
License: ASL 2.0
URL: http://commons.apache.org/ognl/
Source0: http://apt.linuxfans.org/magic/3.0/sources/SOURCES.a/apache-commons-ognl/apache-commons-ognl-3.0.2.tar.xz
BuildArch: noarch
BuildRequires: jna maven-local mvn(javassist:javassist) mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-parent:pom:) mvn(org.easymock:easymock)
%description
OGNL is an expression language for getting and setting properties of
Java objects, plus other extras such as list projection and selection
and lambda expressions.
%package javadoc
Summary: API documentation for %{name}
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q
%pom_remove_plugin com.mycila.maven-license-plugin:maven-license-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-clean-plugin
rm -r src/test/java/org/apache/commons/ognl/test/ArithmeticAndLogicalOperatorsTest.java \
src/test/java/org/apache/commons/ognl/test/ArrayElementsTest.java \
src/test/java/org/apache/commons/ognl/test/ASTPropertyTest.java \
src/test/java/org/apache/commons/ognl/test/CollectionDirectPropertyTest.java \
src/test/java/org/apache/commons/ognl/test/ConstantTest.java \
src/test/java/org/apache/commons/ognl/test/MethodTest.java \
src/test/java/org/apache/commons/ognl/test/PropertyArithmeticAndLogicalOperatorsTest.java \
src/test/java/org/apache/commons/ognl/test/PropertyTest.java \
src/test/java/org/apache/commons/ognl/test/enhance/TestExpressionCompiler.java
%mvn_file :%{short_name} %{short_name} %{name}
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
%license LICENSE.txt NOTICE.txt
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt
%changelog
* Mon Aug 17 2020 chengzihan <chengzihan2@huawei.com> - 3.0.2-1
- Package init

4
apache-commons-ognl.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: jkuhnert/ognl
tag_prefix: "OGNL_"
seperator: "_"