From 5d58c52ecaef789ba80aa67d12a7852701d0ba2930466e967ef793ca022829f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 13:59:07 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main jaxen revision af80c2c6bf4ce0556cb1f52a02e643be --- .gitattributes | 23 ++++++++ _multibuild | 3 + jaxen-2.0.0.tar.gz | 3 + jaxen-build.xml | 131 ++++++++++++++++++++++++++++++++++++++++++ jaxen.changes | 62 ++++++++++++++++++++ jaxen.spec | 140 +++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 362 insertions(+) create mode 100644 .gitattributes create mode 100644 _multibuild create mode 100644 jaxen-2.0.0.tar.gz create mode 100644 jaxen-build.xml create mode 100644 jaxen.changes create mode 100644 jaxen.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /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/_multibuild b/_multibuild new file mode 100644 index 0000000..655ec81 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + bootstrap + diff --git a/jaxen-2.0.0.tar.gz b/jaxen-2.0.0.tar.gz new file mode 100644 index 0000000..dfe78ff --- /dev/null +++ b/jaxen-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3a8e75ccc7d4c8bd07e36f52a0c18a199188710731bcf1a38c552de90ead14c +size 348084 diff --git a/jaxen-build.xml b/jaxen-build.xml new file mode 100644 index 0000000..0771c04 --- /dev/null +++ b/jaxen-build.xml @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jaxen.changes b/jaxen.changes new file mode 100644 index 0000000..ad3dcff --- /dev/null +++ b/jaxen.changes @@ -0,0 +1,62 @@ +------------------------------------------------------------------- +Fri Sep 22 00:52:28 UTC 2023 - Fridrich Strba + +- 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 + +- 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 + +- 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) + diff --git a/jaxen.spec b/jaxen.spec new file mode 100644 index 0000000..3d20bde --- /dev/null +++ b/jaxen.spec @@ -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