commit 732ba9658a86c0f02c27a1f947cd23c8cb301cbb49c973ef94982da7fd6efabb Author: Adrian Schröter Date: Sat May 4 02:13:49 2024 +0200 Sync from SUSE:SLFO:Main xom revision d9ac31ac8ca02d7575c777f2002ecc03 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/_service b/_service new file mode 100644 index 0000000..f184a40 --- /dev/null +++ b/_service @@ -0,0 +1,17 @@ + + + git + https://github.com/elharo/xom.git + v1.3.9 + v* + @PARENT_TAG@ + v(.*) + lib/* + lib2/* + + + *.tar + xz + + + diff --git a/xom-1.3.9.tar.xz b/xom-1.3.9.tar.xz new file mode 100644 index 0000000..0c29139 --- /dev/null +++ b/xom-1.3.9.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:09cff38f32eab2b44720105f362b8f1e68bd9e7f95f1b8163a29b0ee2639b06e +size 3361104 diff --git a/xom-build.patch b/xom-build.patch new file mode 100644 index 0000000..8e407da --- /dev/null +++ b/xom-build.patch @@ -0,0 +1,179 @@ +diff --git a/build.xml b/build.xml +index 201e497..e408abf 100644 +--- a/build.xml ++++ b/build.xml +@@ -65,12 +65,12 @@ subject line. The XOM home page is https://xom.nu/ + + + +- + + + + + ++ + + + +@@ -89,7 +89,7 @@ subject line. The XOM home page is https://xom.nu/ + + + +- ++ + + + +@@ -97,7 +97,7 @@ subject line. The XOM home page is https://xom.nu/ + + + +- ++ + + + +@@ -183,15 +183,15 @@ XOM Build file + + + +- + + +@@ -271,21 +271,13 @@ XOM Build file + + + +- +- + +- +- +- +- +- + + + +@@ -345,7 +337,7 @@ XOM Build file + + + +- ++ + + +@@ -392,7 +384,9 @@ XOM Build file + noindex="false" + windowtitle="${Name} ${version} API" + docencoding="UTF-8" ++ encoding="UTF-8" + charset="UTF-8" ++ source="1.8" + link="http://www.junit.org/junit/javadoc/3.8.1" + doctitle="${Name} ${version}" + bottom="Copyright 2002-${year} <a href='https://www.elharo.com/'>Elliotte Rusty Harold</a> +@@ -436,7 +430,9 @@ XOM Build file + noindex="false" + windowtitle="${Name} ${version} API" + docencoding="UTF-8" ++ enconding="UTF-8" + charset="UTF-8" ++ source="1.8" + noqualifier="java.lang:java.io" + link="http://www.junit.org/junit/javadoc/3.8.1" + doctitle="${Name} ${version}" +@@ -454,8 +450,8 @@ XOM Build file + debug="${debug}" + optimize="${optimize}" + deprecation="${deprecation}" +- target="1.6" +- source="1.6" ++ target="1.8" ++ source="1.8" + encoding="UTF-8" + includeAntRuntime="false" + includes="nu/xom/tools/*"> +@@ -720,7 +716,7 @@ XOM Build file + + +- ++ + + + +@@ -740,40 +736,6 @@ XOM Build file + + + +- +- +- +- +- +- +- +- +- +- + + + diff --git a/xom.changes b/xom.changes new file mode 100644 index 0000000..d38e023 --- /dev/null +++ b/xom.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Aug 23 17:05:38 UTC 2023 - Fridrich Strba + +- Initial packaging as standalone package with version 1.3.9 diff --git a/xom.spec b/xom.spec new file mode 100644 index 0000000..b0a4765 --- /dev/null +++ b/xom.spec @@ -0,0 +1,109 @@ +# +# spec file for package xom +# +# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2000-2005, JPackage Project +# +# 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/ +# + + +Name: xom +Version: 1.3.9 +Release: 0 +Summary: XML Object Model +License: LGPL-2.0-only +URL: https://github.com/elharo/xom +Source0: %{name}-%{version}.tar.xz +Patch0: %{name}-build.patch +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: javapackages-local >= 6 +BuildRequires: jaxen-bootstrap +BuildRequires: junit +BuildRequires: xerces-j2 +BuildRequires: xml-apis +BuildArch: noarch + +%description +XOM is a new XML object model. It is an open source (LGPL), +tree-based API for processing XML with Java that strives +for correctness, simplicity, and performance, in that order. +XOM is designed to be easy to learn and easy to use. It +works very straight-forwardly, and has a very shallow +learning curve. Assuming you're already familiar with XML, +you should be able to get up and running with XOM very quickly. + +%package javadoc +Summary: API documentation for %{name} + +%description javadoc +This package provides %{summary}. + +%package demo +Summary: Samples for %{name} +Requires: %{name} = %{version}-%{release} + +%description demo +This package provides %{summary}. + +%prep +%setup -q +%patch0 -p1 + +%build +mkdir -p lib +pushd lib +ln -sf $(build-classpath junit) junit.jar +ln -sf $(build-classpath xerces-j2) xercesImpl-2.12.2.jar +ln -sf $(build-classpath xml-apis) xml-apis-1.4.01.jar +ln -sf $(build-classpath jaxen) jaxen-1.1.6.jar +popd + +%{ant} jar samples javadoc maven + +mv build/maven2/project.xml build/maven2/pom.xml +%pom_add_dep jaxen:jaxen build/maven2/pom.xml + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir} +install -pm 0644 build/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar + +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir} +%{mvn_install_pom} build/maven2/pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom +%add_maven_depmap %{name}.pom %{name}.jar -a com.io7m.xom:xom + +# javadoc +install -d -m 755 %{buildroot}%{_javadocdir}/%{name} +cp -pr build/apidocs/* %{buildroot}%{_javadocdir}/%{name} +%fdupes -s %{buildroot}%{_javadocdir}/%{name} + +# demo +install -d -m 755 %{buildroot}%{_datadir}/%{name} +install -m 644 build/xom-samples.jar %{buildroot}%{_datadir}/%{name} + +%files -f .mfiles +%doc README.txt Todo.txt lgpl.txt +%license LICENSE.txt + +%files javadoc +%{_javadocdir}/%{name} +%license LICENSE.txt +%doc lgpl.txt + +%files demo +%dir %{_datadir}/%{name} +%{_datadir}/%{name}/xom-samples.jar + +%changelog