diff --git a/apache-commons-jxpath.spec b/apache-commons-jxpath.spec new file mode 100644 index 0000000..bd3774a --- /dev/null +++ b/apache-commons-jxpath.spec @@ -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' \ + 'org.apache.commons.beanutils;resolution:="optional",org.jdom*;resolution:="optional",org.w3c.dom;resolution:="optional",javax.servlet*;resolution:="optional",*' + +%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 - 1.3-1 +- Package init diff --git a/apache-commons-jxpath.yaml b/apache-commons-jxpath.yaml new file mode 100644 index 0000000..00bbaf0 --- /dev/null +++ b/apache-commons-jxpath.yaml @@ -0,0 +1,4 @@ +version_control: NA +src_repo: NA +tag_prefix: NA +seperator: NA diff --git a/commons-jxpath-1.3-src.tar.gz b/commons-jxpath-1.3-src.tar.gz new file mode 100644 index 0000000..296fa87 Binary files /dev/null and b/commons-jxpath-1.3-src.tar.gz differ diff --git a/commons-jxpath-mockrunner.patch b/commons-jxpath-mockrunner.patch new file mode 100644 index 0000000..f2587fa --- /dev/null +++ b/commons-jxpath-mockrunner.patch @@ -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. + 1.7.0 + true + +- +- com.mockrunner +- mockrunner-jdk1.3-j2ee1.3 +- 0.4 +- test +- +- +- cglib-nodep +- cglib-nodep +- +- +- jboss +- jboss-jee +- +- +- nekohtml +- nekohtml +- +- +- struts +- struts +- +- +- oro +- oro +- +- +- commons-validator +- commons-validator +- +- +- commons-digester +- commons-digester +- +- +- + + +