From 63efc9117e2889723a7a3153285584fd40b18290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 14 Oct 2024 13:48:45 +0200 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 apache-commons-jxpath revision e608f2d6b381cb6ae849274725ba1dbe --- .gitattributes | 23 +++++++ apache-commons-jxpath.changes | 48 ++++++++++++++ apache-commons-jxpath.spec | 102 ++++++++++++++++++++++++++++++ build.xml.patch | 38 +++++++++++ commons-jxpath-1.3-manifest.patch | 43 +++++++++++++ commons-jxpath-1.3-src.tar.gz | 3 + commons-jxpath-mockrunner.patch | 47 ++++++++++++++ 7 files changed, 304 insertions(+) create mode 100644 .gitattributes create mode 100644 apache-commons-jxpath.changes create mode 100644 apache-commons-jxpath.spec create mode 100644 build.xml.patch create mode 100644 commons-jxpath-1.3-manifest.patch create mode 100644 commons-jxpath-1.3-src.tar.gz create mode 100644 commons-jxpath-mockrunner.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/apache-commons-jxpath.changes b/apache-commons-jxpath.changes new file mode 100644 index 0000000..5fa60d4 --- /dev/null +++ b/apache-commons-jxpath.changes @@ -0,0 +1,48 @@ +------------------------------------------------------------------- +Thu Feb 28 07:24:19 UTC 2019 - Fridrich Strba + +- Sanitize dependencies +- Build and distribute the javadoc too +- Added patch: + * commons-jxpath-1.3-manifest.patch + - Add OSGi bundle entries +- Modified patch: + * build.xml.patch + - Remove completely the get-deps target that we don't use + +------------------------------------------------------------------- +Tue Feb 5 12:29:04 UTC 2019 - Fridrich Strba + +- Include a manifest in the jar file + +------------------------------------------------------------------- +Sat Oct 20 13:03:03 UTC 2018 - Fridrich Strba + +- Install the provided pom.xml file and generate the mvn(...) + provides + +------------------------------------------------------------------- +Tue May 15 10:47:35 UTC 2018 - fstrba@suse.com + +- Build with source and target 8 + +------------------------------------------------------------------- +Sun May 21 07:54:40 UTC 2017 - tchvatal@suse.com + +- Remove unneeded requires + +------------------------------------------------------------------- +Thu Jun 4 09:42:05 UTC 2015 - tchvatal@suse.com + +- Build with new tomcat + +------------------------------------------------------------------- +Fri Jul 18 13:26:09 UTC 2014 - tchvatal@suse.com + +- Cleanup a bit to be acceptable. + +------------------------------------------------------------------- +Tue Dec 20 14:32:13 UTC 2011 - dmacvicar@suse.de + +- initial package based on Fedora's. Removed maven stuff + diff --git a/apache-commons-jxpath.spec b/apache-commons-jxpath.spec new file mode 100644 index 0000000..ed544d5 --- /dev/null +++ b/apache-commons-jxpath.spec @@ -0,0 +1,102 @@ +# +# spec file for package apache-commons-jxpath +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define base_name jxpath +%define short_name commons-%{base_name} +Name: apache-%{short_name} +Version: 1.3 +Release: 0 +Summary: Simple XPath interpreter +License: Apache-2.0 +Group: Development/Libraries/Java +URL: http://commons.apache.org/%{base_name}/ +Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz +Patch0: %{short_name}-mockrunner.patch +Patch1: build.xml.patch +Patch2: %{short_name}-%{version}-manifest.patch +BuildRequires: ant +BuildRequires: apache-commons-beanutils +BuildRequires: fdupes +BuildRequires: glassfish-servlet-api +BuildRequires: java-devel >= 1.8 +BuildRequires: javapackages-local +BuildRequires: jdom +BuildRequires: tomcat-jsp-2_3-api +Requires: java >= 1.8 +Requires: jdom >= 1.0 +Provides: jakarta-%{short_name} = %{version}-%{release} +Obsoletes: jakarta-%{short_name} < %{version}-%{release} +Provides: %{short_name} = %{version}-%{release} +BuildArch: noarch + +%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} +Group: Documentation/HTML + +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -q -n %{short_name}-%{version}-src +%patch0 -p1 +%patch1 +%patch2 -p1 + +%pom_remove_parent + +%build +mkdir -p target/lib +build-jar-repository -s target/lib commons-beanutils jdom glassfish-servlet-api tomcat-jsp-2.3-api +%{ant} \ + -Dant.build.javac.source=8 -Dant.build.javac.target=8 \ + -lib %{_javadir} \ + jar javadoc + +sed -i "s/@name@/%{short_name}/g" src/conf/MANIFEST.MF +sed -i "s/@fragment@/%{base_name}/g" src/conf/MANIFEST.MF +sed -i "s/@version@/%{version}/g" src/conf/MANIFEST.MF +jar ufm target/%{short_name}.jar src/conf/MANIFEST.MF + +%install +#jar +install -dm 0755 %{buildroot}%{_javadir} +install -pm 644 target/%{short_name}.jar %{buildroot}%{_javadir}/%{name}.jar +ln -sf %{name}.jar %{buildroot}%{_javadir}/%{short_name}.jar +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir} +install -Dpm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom +%add_maven_depmap %{name}.pom %{name}.jar -a org.apache.commons:%{short_name} +# javadoc +install -dm 0755 %{buildroot}%{_javadocdir}/%{name} +cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}/ +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%license LICENSE.txt +%{_javadir}/%{short_name}.jar + +%files javadoc +%license LICENSE.txt +%{_javadocdir}/%{name} + +%changelog diff --git a/build.xml.patch b/build.xml.patch new file mode 100644 index 0000000..431fc8c --- /dev/null +++ b/build.xml.patch @@ -0,0 +1,38 @@ +--- build.xml.orig 2011-01-27 02:16:32.000000000 -0700 ++++ build.xml 2011-01-27 02:17:20.000000000 -0700 +@@ -30,7 +30,7 @@ + + + +- ++ + + + +@@ -52,7 +52,7 @@ + + + +- ++ + + + +@@ -157,7 +157,7 @@ + + + +- ++ + + + diff --git a/commons-jxpath-1.3-manifest.patch b/commons-jxpath-1.3-manifest.patch new file mode 100644 index 0000000..4138de6 --- /dev/null +++ b/commons-jxpath-1.3-manifest.patch @@ -0,0 +1,43 @@ +--- commons-jxpath-1.3-src/src/conf/MANIFEST.MF 2008-07-30 18:31:34.000000000 +0200 ++++ commons-jxpath-1.3-src/src/conf/MANIFEST.MF 2019-02-28 08:35:31.900760859 +0100 +@@ -1,8 +1,38 @@ + Extension-Name: @name@ +-Specification-Title: Jakarta Commons JXPath ++Specification-Title: Commons JXPath + Specification-Vendor: Apache Software Foundation + Specification-Version: 1.0 +-Implementation-Title: org.apache.commons.jxpath ++Implementation-Title: org.apache.commons.@fragment@ + Implementation-Vendor: Apache Software Foundation + Implementation-Version: @version@ ++Bundle-Description: A Java-based implementation of XPath 1.0 that, in ad ++ dition to XML processing, can inspect/modify Java object graphs (the li ++ brary's explicit purpose) and even mixed Java/XML structures. ++Bundle-DocURL: http://commons.apache.org/jxpath/ ++Bundle-License: https://www.apache.org/licenses/LICENSE-2.0.txt ++Bundle-ManifestVersion: 2 ++Bundle-Name: Commons JXPath ++Bundle-SymbolicName: org.apache.commons.@fragment@ ++Bundle-Vendor: The Apache Software Foundation ++Bundle-Version: @version@.0 ++Export-Package: org.apache.commons.@fragment@;version="@version@",org.apache.commo ++ ns.@fragment@.functions;version="@version@",org.apache.commons.@fragment@.ri;version= ++ "@version@",org.apache.commons.@fragment@.ri.axes;version="@version@",org.apache.common ++ s.@fragment@.ri.compiler;version="@version@",org.apache.commons.@fragment@.ri.model;v ++ ersion="@version@",org.apache.commons.@fragment@.ri.model.beans;version="@version@",org ++ .apache.commons.@fragment@.ri.model.container;version="@version@",org.apache.comm ++ ons.@fragment@.ri.model.dom;version="@version@",org.apache.commons.@fragment@.ri.mode ++ l.dynabeans;version="@version@",org.apache.commons.@fragment@.ri.model.dynamic;ve ++ rsion="@version@",org.apache.commons.@fragment@.ri.model.jdom;version="@version@",org.a ++ pache.commons.@fragment@.ri.parser;version="@version@",org.apache.commons.@fragment@. ++ servlet;version="@version@",org.apache.commons.@fragment@.util;version="@version@",org. ++ apache.commons.@fragment@.xml;version="@version@" ++Import-Package: org.apache.commons.beanutils;resolution:=optional,org.jd ++ om;resolution:=optional,org.jdom.input;resolution:=optional,org.w3c.dom ++ ;resolution:=optional,javax.servlet;resolution:=optional,javax.servlet. ++ http;resolution:=optional,javax.servlet.jsp;resolution:=optional,javax. ++ xml.parsers,javax.xml.transform,javax.xml.transform.dom ++Include-Resource: META-INF/NOTICE.txt=NOTICE.txt,META-INF/LICENSE.txt=LI ++ CENSE.txt ++Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))" + diff --git a/commons-jxpath-1.3-src.tar.gz b/commons-jxpath-1.3-src.tar.gz new file mode 100644 index 0000000..079264e --- /dev/null +++ b/commons-jxpath-1.3-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:da314198d75c6da660e2603bd1543a8f5d0b640c5144b748e62e59afc278efe6 +size 285339 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 +- +- +- + + +