diff --git a/apache-commons-ognl-3.0.2.tar.xz b/apache-commons-ognl-3.0.2.tar.xz new file mode 100644 index 0000000..88250a3 Binary files /dev/null and b/apache-commons-ognl-3.0.2.tar.xz differ diff --git a/apache-commons-ognl.spec b/apache-commons-ognl.spec new file mode 100644 index 0000000..8906931 --- /dev/null +++ b/apache-commons-ognl.spec @@ -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 - 3.0.2-1 +- Package init diff --git a/apache-commons-ognl.yaml b/apache-commons-ognl.yaml new file mode 100644 index 0000000..1220572 --- /dev/null +++ b/apache-commons-ognl.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: jkuhnert/ognl +tag_prefix: "OGNL_" +seperator: "_"