From e34563de9a12105ff80e2b123a43b694f60dae01 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Tue, 10 Dec 2024 20:09:40 +0100 Subject: [PATCH] package created using the webbuild interface [release 20220510-1mamba;Mon Dec 09 2024] --- README.md | 2 ++ jing.sh | 2 ++ jing.spec | 44 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 jing.sh create mode 100644 jing.spec diff --git a/README.md b/README.md index 0d9f5ee..52db7ce 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # jing +Schema validation and conversion based on RELAX NG. + diff --git a/jing.sh b/jing.sh new file mode 100644 index 0000000..9bd32df --- /dev/null +++ b/jing.sh @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/java -jar /usr/share/java/jing/jing.jar "$@" diff --git a/jing.spec b/jing.spec new file mode 100644 index 0000000..566a84d --- /dev/null +++ b/jing.spec @@ -0,0 +1,44 @@ +Name: jing +Version: 20220510 +Release: 1mamba +Summary: Schema validation and conversion based on RELAX NG +Group: Development/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.thaiopensource.com/relaxng/ +Source: https://github.com/relaxng/jing-trang/releases/download/V%{version}/jing-%{version}.zip +Source1: jing.sh +License: BSD +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: javapackages +Requires: java-runtime + +%description +Schema validation and conversion based on RELAX NG. + +%prep +%setup -q + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +install -D -m644 bin/jing.jar %{buildroot}%{_javadir}/jing/jing.jar +ln -s jing.jar %{buildroot}%{_javadir}/jing/jing-%{version}.jar +install -D -m755 %{SOURCE1} %{buildroot}%{_bindir}/jing + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/jing +%{_javadir}/jing/jing-%{version}.jar +%{_javadir}/jing/jing.jar + +%changelog +* Mon Dec 09 2024 Silvan Calarco 20220510-1mamba +- package created using the webbuild interface