Sync from SUSE:ALP:Source:Standard:1.0 jaxen revision af80c2c6bf4ce0556cb1f52a02e643be

This commit is contained in:
Adrian Schröter 2024-02-19 15:41:00 +01:00
commit c63244dd3a
6 changed files with 362 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<flavor>bootstrap</flavor>
</multibuild>

BIN
jaxen-2.0.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

131
jaxen-build.xml Normal file
View File

@ -0,0 +1,131 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="jaxen" default="package" basedir=".">
<!-- ====================================================================== -->
<!-- Build environment properties -->
<!-- ====================================================================== -->
<property name="project.groupId" value="jaxen"/>
<property name="project.artifactId" value="jaxen"/>
<property name="project.version" value="2.0.0"/>
<property name="compiler.release" value="8"/>
<property name="compiler.source" value="1.${compiler.release}"/>
<property name="compiler.target" value="${compiler.source}"/>
<property name="build.finalName" value="${project.artifactId}-${project.version}"/>
<property name="build.dir" value="target"/>
<property name="build.outputDir" value="${build.dir}/classes"/>
<property name="build.srcDir" value="src/java/main"/>
<property name="build.resourceDir" value="src/main/resources"/>
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
<!-- ====================================================================== -->
<!-- Defining classpaths -->
<!-- ====================================================================== -->
<path id="build.classpath">
<fileset dir="lib">
<include name="**/*"/>
</fileset>
</path>
<!-- ====================================================================== -->
<!-- Cleaning up target -->
<!-- ====================================================================== -->
<target name="clean" description="Clean the output directory">
<delete dir="${build.dir}"/>
</target>
<!-- ====================================================================== -->
<!-- Compilation target -->
<!-- ====================================================================== -->
<target name="compile" description="Compile the code">
<mkdir dir="${build.outputDir}"/>
<javac destdir="${build.outputDir}"
nowarn="false"
debug="true"
encoding="utf-8"
optimize="false"
deprecation="true"
release="${compiler.release}"
target="${compiler.target}"
verbose="false"
fork="false"
source="${compiler.source}">
<src>
<pathelement location="${build.srcDir}"/>
</src>
<classpath refid="build.classpath"/>
</javac>
</target>
<!-- ====================================================================== -->
<!-- Javadoc target -->
<!-- ====================================================================== -->
<target name="javadoc" description="Generates the Javadoc of the application">
<javadoc sourcepath="${build.srcDir}"
packagenames="*"
destdir="${reporting.outputDirectory}/apidocs"
access="protected"
encoding="utf-8"
source="${compiler.source}"
verbose="false"
version="true"
use="true"
author="true"
splitindex="false"
nodeprecated="false"
nodeprecatedlist="false"
notree="false"
noindex="false"
nohelp="false"
nonavbar="false"
serialwarn="false"
charset="ISO-8859-1"
linksource="false"
breakiterator="false">
<classpath refid="build.classpath"/>
</javadoc>
</target>
<!-- ====================================================================== -->
<!-- Package target -->
<!-- ====================================================================== -->
<target name="package" depends="compile" description="Package the application">
<jar jarfile="${build.dir}/${build.finalName}.jar"
compress="true"
index="false"
basedir="${build.outputDir}"
excludes="**/package.html">
<manifest>
<attribute name="Automatic-Module-Name" value="org.jaxen"/>
<attribute name="Bundle-Description" value="Jaxen is a universal XPath engine for Java."/>
<attribute name="Bundle-DocURL" value="http://www.cafeconleche.org/jaxen"/>
<attribute name="Bundle-License" value="https://raw.githubusercontent.com/jaxen-xpath/jaxen/master/LICENSE.txt"/>
<attribute name="Bundle-ManifestVersion" value="2"/>
<attribute name="Bundle-Name" value="jaxen"/>
<attribute name="Bundle-SymbolicName" value="jaxen"/>
<attribute name="Bundle-Vendor" value="The Jaxen Project"/>
<attribute name="Bundle-Version" value="${project.version}"/>
<attribute name="Export-Package" value="org.jaxen.dom4j;version=&quot;${project.version}&quot;;uses:=&quot;org.dom4j.io,org.jaxen,org.jaxen.saxpath&quot;,org.jaxen.dom;version=&quot;${project.version}&quot;;uses:=&quot;org.jaxen,org.jaxen.saxpath,org.w3c.dom&quot;,org.jaxen.expr.iter;version=&quot;${project.version}&quot;;uses:=&quot;org.jaxen&quot;,org.jaxen.expr;version=&quot;${project.version}&quot;;uses:=&quot;org.jaxen,org.jaxen.expr.iter&quot;,org.jaxen.function.ext;version=&quot;${project.version}&quot;;uses:=&quot;org.jaxen&quot;,org.jaxen.function.xslt;version=&quot;${project.version}&quot;;uses:=&quot;org.jaxen&quot;,org.jaxen.function;version=&quot;${project.version}&quot;;uses:=&quot;org.jaxen&quot;,org.jaxen.javabean;version=&quot;${project.version}&quot;;uses:=&quot;org.jaxen,org.jaxen.saxpath&quot;,org.jaxen.jdom;version=&quot;${project.version}&quot;;uses:=&quot;org.jaxen,org.jaxen.saxpath,org.jdom&quot;,org.jaxen.pattern;version=&quot;${project.version}&quot;;uses:=&quot;org.jaxen,org.jaxen.expr,org.jaxen.saxpath&quot;,org.jaxen.saxpath.base;version=&quot;${project.version}&quot;;uses:=&quot;org.jaxen.saxpath&quot;,org.jaxen.saxpath.helpers;version=&quot;${project.version}&quot;;uses:=&quot;org.jaxen.saxpath&quot;,org.jaxen.saxpath;version=&quot;${project.version}&quot;,org.jaxen.util;version=&quot;${project.version}&quot;;uses:=&quot;org.jaxen&quot;,org.jaxen.xom;version=&quot;${project.version}&quot;;uses:=&quot;org.jaxen,org.jaxen.saxpath&quot;,org.jaxen;version=&quot;${project.version}&quot;;uses:=&quot;org.jaxen.expr,org.jaxen.saxpath&quot;"/>
<attribute name="Import-Package" value="javax.xml.parsers;resolution:=optional,nu.xom;resolution:=optional,org.dom4j.io;resolution:=optional,org.dom4j;resolution:=optional,org.jaxen.expr.iter;resolution:=optional,org.jaxen.expr;resolution:=optional,org.jaxen.function.ext;resolution:=optional,org.jaxen.function.xslt;resolution:=optional,org.jaxen.function;resolution:=optional,org.jaxen.saxpath.helpers;resolution:=optional,org.jaxen.saxpath;resolution:=optional,org.jaxen.util;resolution:=optional,org.jaxen;resolution:=optional,org.jdom.input;resolution:=optional,org.jdom;resolution:=optional,org.w3c.dom;resolution:=optional,org.xml.sax;resolution:=optional"/>
<attribute name="Require-Capability" value="osgi.ee;filter:=&quot;(&amp;(osgi.ee=JavaSE)(version=${compiler.target}))&quot;"/>
</manifest>
</jar>
</target>
<!-- ====================================================================== -->
<!-- A dummy target for the package named after the type it creates -->
<!-- ====================================================================== -->
<target name="jar" depends="package" description="Builds the jar for the application"/>
</project>

62
jaxen.changes Normal file
View File

@ -0,0 +1,62 @@
-------------------------------------------------------------------
Fri Sep 22 00:52:28 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Upgrade to version 2.0.0
* Changes:
+ Despite the major version bump, this should be a drop in
replacement for almost every project, The two major possible
incompatibilities are:
° The minimum supported Java version is now 1.5, up from 1.4
in 1.2.0 and 1.3 in 1.1.6.
° dom4j, XOM, and JDOM are now optional dependencies so if a
project was depending on them to be loaded transitively it
will need to add explicit dependencies to build.
+ On the plus side, this makes classpaths much smaller and less
complex, and will shut up a lot of noise from static analysis
tools.
+ In addition the Jaxen core code is also a little smaller and
has fixed a few minor bugs in XPath evaluation, mostly weird
cases found by fuzzing that are unlikely to arise in practice.
-------------------------------------------------------------------
Thu Aug 24 10:01:18 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Move to a jaxen multibuild package where the *-bootstrap version
is one of the flavours
- Update to 1.2.0
* org.w3c.dom UserDataHandler interface is no longer bundled
since it's available in Java 1.5 and later
* org.jaxen.pattern package has been deprecated and is scheduled
for removal in 2.0
-------------------------------------------------------------------
Sat Mar 19 21:42:10 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Build with source/target levels 8
- Clean-up the build system
- Removed patch:
* jaxen-bootstrap-project_xml.patch
+ not needed in the rewamped build system
-------------------------------------------------------------------
Fri Sep 8 08:20:32 UTC 2017 - fstrba@suse.com
- Build with java target and source level 1.6 in order to allow
building with jdk9
-------------------------------------------------------------------
Mon Sep 9 11:05:56 UTC 2013 - tchvatal@suse.com
- Move from jpackage-utils to javapackage-tools
-------------------------------------------------------------------
Wed May 20 14:12:03 CEST 2009 - mvyskocil@suse.cz
- Used dom4j-1.6.1-debian.tar.bz2 for build
It does not contains a license problematic parts
-------------------------------------------------------------------
Tue May 12 11:02:21 CEST 2009 - mvyskocil@suse.cz
- Initial packaging of jaxen-bootstrap in SUSE (from jpp 5.0)

140
jaxen.spec Normal file
View File

@ -0,0 +1,140 @@
#
# spec file
#
# Copyright (c) 2023 SUSE LLC
#
# 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/
#
%global base_name jaxen
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "bootstrap"
%bcond_without bootstrap
%else
%bcond_with bootstrap
%endif
Version: 2.0.0
Release: 0
Summary: An XPath engine written in Java
License: BSD-3-Clause
URL: https://github.com/jaxen-xpath/jaxen
Source0: %{url}/archive/v%{version}/%{base_name}-%{version}.tar.gz
Source1: %{base_name}-build.xml
BuildRequires: ant
BuildRequires: javapackages-local >= 6
BuildRequires: jdom
BuildArch: noarch
%if %{with bootstrap}
Name: %{base_name}-bootstrap
%else
Name: %{base_name}
%endif
%if %{without bootstrap}
BuildRequires: %{base_name}-bootstrap
BuildRequires: dom4j-bootstrap
BuildRequires: fdupes
BuildRequires: xom
#!BuildIgnore: %{base_name}
#!BuildIgnore: mvn(jaxen:jaxen)
Conflicts: %{base_name}-bootstrap
Obsoletes: %{base_name}-bootstrap
%else
Conflicts: %{base_name}
%endif
%description
Jaxen is an open source XPath library written in Java. It is adaptable
to many different object models, including DOM, XOM, dom4j, and JDOM.
Is it also possible to write adapters that treat non-XML trees such as compiled
Java byte code or Java beans as XML, thus enabling you to query these trees
with XPath too.
%if %{without bootstrap}
%package demo
Summary: Samples for %{name}
Requires: %{name} = %{version}-%{release}
%description demo
%{summary}.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
%{summary}.
%endif
%prep
%setup -q -n %{base_name}-%{version}
cp %{SOURCE1} core/build.xml
%if %{with bootstrap}
rm -rf core/src/java/main/org/jaxen/dom4j
%pom_remove_dep -r dom4j:dom4j
rm -rf core/src/java/main/org/jaxen/xom
%pom_remove_dep -r xom:xom
%endif
%build
mkdir -p core/lib
build-jar-repository -s core/lib jdom
%if %{without bootstrap}
build-jar-repository -s core/lib dom4j xom
%endif
pushd core
%{ant} jar
%if %{without bootstrap}
%{ant} javadoc
%endif
popd
%install
# jar
install -dm 0755 %{buildroot}%{_javadir}
install -pm 0644 core/target/%{base_name}-%{version}.jar %{buildroot}%{_javadir}/%{base_name}.jar
%if %{without bootstrap}
# pom
install -dm 0755 %{buildroot}%{_mavenpomdir}
%{mvn_install_pom} core/pom.xml %{buildroot}%{_mavenpomdir}/%{base_name}.pom
%add_maven_depmap %{base_name}.pom %{base_name}.jar
# demo
install -d -m 755 %{buildroot}%{_datadir}/%{base_name}/samples
cp -pr core/src/java/samples/* %{buildroot}%{_datadir}/%{base_name}/samples
%fdupes -s %{buildroot}%{_datadir}/%{base_name}
# javadoc
install -dm 0755 %{buildroot}%{_javadocdir}/%{base_name}
cp -r core/target/site/apidocs %{buildroot}%{_javadocdir}/%{base_name}
%fdupes -s %{buildroot}%{_javadocdir}/%{base_name}
%files -f .mfiles
%license LICENSE.txt
%files javadoc
%license LICENSE.txt
%{_javadocdir}/%{base_name}
%files demo
%{_datadir}/%{base_name}
%else
%files
%{_javadir}/%{base_name}.jar
%endif
%changelog