From 6dd4f6675f89b929420b1f951ab8f5cfd8a05b762348693f4bacc0ff570c7bc0 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Mon, 23 Sep 2024 08:34:56 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/decentxml?expand=0&rev=14 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + decentxml-1.4-src.zip | 3 ++ decentxml.changes | 26 +++++++++++++ decentxml.spec | 88 +++++++++++++++++++++++++++++++++++++++++++ xmlts20031210.zip | 3 ++ 6 files changed, 144 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 decentxml-1.4-src.zip create mode 100644 decentxml.changes create mode 100644 decentxml.spec create mode 100644 xmlts20031210.zip 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/decentxml-1.4-src.zip b/decentxml-1.4-src.zip new file mode 100644 index 0000000..1739f89 --- /dev/null +++ b/decentxml-1.4-src.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:80444a15f7f40e6b995131aeb11fb8b32209652dc703b275d214780f40cabdc8 +size 174252 diff --git a/decentxml.changes b/decentxml.changes new file mode 100644 index 0000000..6159661 --- /dev/null +++ b/decentxml.changes @@ -0,0 +1,26 @@ +------------------------------------------------------------------- +Mon Sep 23 08:34:50 UTC 2024 - Fridrich Strba + +- Use SOURCE_DATE_EPOCH for reproducible builds + +------------------------------------------------------------------- +Tue Mar 22 07:42:40 UTC 2022 - Fridrich Strba + +- Build with java source and target levels 8 + +------------------------------------------------------------------- +Sun Nov 24 12:14:25 UTC 2019 - Fridrich Strba + +- Specify maven.compiler.release to fix build with jdk9+ and newer + maven-javadoc-plugin + +------------------------------------------------------------------- +Sun Jun 2 21:26:11 UTC 2019 - Jan Engelhardt + +- Trim conjecture from description. +- Encode percent signs in description. + +------------------------------------------------------------------- +Tue May 7 10:41:31 UTC 2019 - Fridrich Strba + +- Initial packaging of decentxml 1.4.0 diff --git a/decentxml.spec b/decentxml.spec new file mode 100644 index 0000000..849cdde --- /dev/null +++ b/decentxml.spec @@ -0,0 +1,88 @@ +# +# spec file for package decentxml +# +# Copyright (c) 2024 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/ +# + + +Name: decentxml +Version: 1.4 +Release: 0 +Summary: XML parser optimized for round-tripping and code reuse +License: BSD-3-Clause +Group: Development/Libraries/Java +URL: http://code.google.com/p/%{name} +Source0: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/decentxml/decentxml-1.4-src.zip +# for running w3c conformance test suite +Source1: http://www.w3.org/XML/Test/xmlts20031210.zip +BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 +BuildRequires: maven-local +BuildRequires: unzip +BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin) +BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) +BuildArch: noarch + +%description +XML parser optimized for round-tripping and code reuse with main +features being: + * Allows 100%% round-tripping, even for weird whitespace between + attributes in the start tag or in the end tag + * Suitable for building editors and filters which want/need to + preserve the original file layout as much as possible + * Error messages have line and column information + * XML 1.1 compatible + +%package javadoc +Summary: API documentation for %{name} +Group: Documentation/HTML + +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -q +# we are looking for xml conformance data one lever above so unzip +# here and symlink there +unzip %{SOURCE1} +ln -sf %{name}-%{version}/xmlconf ../xmlconf +sed -i -e "s|junit-dep|junit|g" pom.xml + +%pom_remove_plugin :maven-javadoc-plugin + +# Don't use deprecated "attached" goal of Maven Assembly Plugin, which +# was removed in version 3.0.0. +%pom_xpath_set "pom:plugin[pom:artifactId='maven-assembly-plugin']/pom:executions/pom:execution/pom:goals/pom:goal[text()='attached']" single + +%build +%{mvn_file} : %{name} +%{mvn_build} -f -- \ +%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} + -Dmaven.compiler.release=8 \ +%endif + -Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \ + -Dsource=8 + +%install +%mvn_install +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%license LICENSE +%doc README + +%files javadoc -f .mfiles-javadoc +%license LICENSE + +%changelog diff --git a/xmlts20031210.zip b/xmlts20031210.zip new file mode 100644 index 0000000..910eb86 --- /dev/null +++ b/xmlts20031210.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f03503040be97dc04eb2fd5c7a448d197e720f069a6c6f33eba1b2c2bb17706 +size 1768066