!1 Package init

Merge pull request !1 from jeff200902/master
This commit is contained in:
openeuler-ci-bot 2020-08-31 10:03:47 +08:00 committed by Gitee
commit 5dafed82f9
4 changed files with 98 additions and 0 deletions

View File

@ -0,0 +1,47 @@
Name: apache-commons-jxpath
Version: 1.3
Release: 1
Summary: Simple XPath interpreter
License: ASL 2.0
URL: http://commons.apache.org/jxpath/
BuildArch: noarch
Source0: http://www.apache.org/dist/commons/jxpath/source/commons-jxpath-%{version}-src.tar.gz
Patch0: commons-jxpath-mockrunner.patch
BuildRequires: maven-local mvn(commons-beanutils:commons-beanutils) mvn(javax.servlet:jsp-api)
BuildRequires: mvn(javax.servlet:servlet-api) mvn(jdom:jdom) mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin) mvn(xerces:xercesImpl)
BuildRequires: mvn(xml-apis:xml-apis)
%description
Defines a simple interpreter of an expression language called XPath.
JXPath applies XPath expressions to graphs of objects of all kinds:
JavaBeans, Maps, Servlet contexts, DOM etc, including mixtures thereof.
%package javadoc
Summary: API documentation for %{name}
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q -n commons-jxpath-%{version}-src
%patch0 -p1
%mvn_file ":{*}" %{name} @1
%mvn_alias : org.apache.commons:
%pom_xpath_inject 'pom:properties' \
'<commons.osgi.import>org.apache.commons.beanutils;resolution:="optional",org.jdom*;resolution:="optional",org.w3c.dom;resolution:="optional",javax.servlet*;resolution:="optional",*</commons.osgi.import>'
%build
%mvn_build -f -- -Dcommons.osgi.symbolicName=org.apache.commons.jxpath
%install
%mvn_install
%files -f .mfiles
%license LICENSE.txt NOTICE.txt
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt
%changelog
* Tue Aug 25 2020 Jeffery.Gao <gaojianxing@huawei.com> - 1.3-1
- Package init

View File

@ -0,0 +1,4 @@
version_control: NA
src_repo: NA
tag_prefix: NA
seperator: NA

Binary file not shown.

View File

@ -0,0 +1,47 @@
diff --git a/pom.xml b/pom.xml
index 1a4f2c4..f5fa596 100644
--- a/pom.xml
+++ b/pom.xml
@@ -160,42 +160,6 @@ under the License.
<version>1.7.0</version>
<optional>true</optional>
</dependency>
- <dependency>
- <groupId>com.mockrunner</groupId>
- <artifactId>mockrunner-jdk1.3-j2ee1.3</artifactId>
- <version>0.4</version>
- <scope>test</scope>
- <exclusions>
- <exclusion>
- <groupId>cglib-nodep</groupId>
- <artifactId>cglib-nodep</artifactId>
- </exclusion>
- <exclusion>
- <groupId>jboss</groupId>
- <artifactId>jboss-jee</artifactId>
- </exclusion>
- <exclusion>
- <groupId>nekohtml</groupId>
- <artifactId>nekohtml</artifactId>
- </exclusion>
- <exclusion>
- <groupId>struts</groupId>
- <artifactId>struts</artifactId>
- </exclusion>
- <exclusion>
- <groupId>oro</groupId>
- <artifactId>oro</artifactId>
- </exclusion>
- <exclusion>
- <groupId>commons-validator</groupId>
- <artifactId>commons-validator</artifactId>
- </exclusion>
- <exclusion>
- <groupId>commons-digester</groupId>
- <artifactId>commons-digester</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
</dependencies>
<reporting>
<plugins>