diff --git a/1fc8c8d337c2c75b6b15b281f2c69e86110e475f.zip b/1fc8c8d337c2c75b6b15b281f2c69e86110e475f.zip
deleted file mode 100644
index cc92084..0000000
--- a/1fc8c8d337c2c75b6b15b281f2c69e86110e475f.zip
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:a13f9f6fb4af8cd94f21db646d72e086269b7966e4f95a8e682cad30d50680ee
-size 303283
diff --git a/V20220510.tar.gz b/V20220510.tar.gz
deleted file mode 100644
index 1a2a7c6..0000000
--- a/V20220510.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:8f5b1f76c2942eaf57a1aa9a78fe643215a510cb6c83e333bcd6823c825b185a
-size 14317698
diff --git a/_service b/_service
index c5bb0e2..29395e3 100644
--- a/_service
+++ b/_service
@@ -1,5 +1,17 @@
-
- yes
+
+ git
+ https://github.com/relaxng/jing-trang.git
+ V20220510
+ V*
+ @PARENT_TAG@
+ V(.*)
+ lib/*.jar
+ mod/datatype/src/main/org
+
+ *.tar
+ xz
+
+
diff --git a/jing-trang-20220510.tar.xz b/jing-trang-20220510.tar.xz
new file mode 100644
index 0000000..10535fd
--- /dev/null
+++ b/jing-trang-20220510.tar.xz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:51980b105874c783bd354c808fd38d2b35720c2ef8885bd9556295ba365e999f
+size 2799736
diff --git a/jing-trang.changes b/jing-trang.changes
index cf42d32..d830c7e 100644
--- a/jing-trang.changes
+++ b/jing-trang.changes
@@ -1,3 +1,10 @@
+-------------------------------------------------------------------
+Mon Mar 20 18:55:39 UTC 2023 - Fridrich Strba
+
+- Fetch the sources using the source service and filter out stray
+ binaries and other files that we don't want to distribute because
+ of licensing.
+
-------------------------------------------------------------------
Sat Jan 21 15:21:58 UTC 2023 - Thomas Schraitle
diff --git a/jing-trang.spec b/jing-trang.spec
index b6590b3..d215aa9 100644
--- a/jing-trang.spec
+++ b/jing-trang.spec
@@ -16,8 +16,6 @@
#
-%global relaxng_hash 1fc8c8d337c2c75b6b15b281f2c69e86110e475f
-#
Name: jing-trang
Version: 20220510
Release: 0
@@ -25,10 +23,9 @@ Summary: Schema validation and conversion based on RELAX NG
License: BSD-3-Clause
Group: Productivity/Text/Utilities
URL: https://github.com/relaxng/%{name}
-Source0: https://github.com/relaxng/%{name}/archive/V%{version}.tar.gz
-Source1: https://github.com/relaxng/relaxng.org/archive/%{relaxng_hash}.zip
-Source2: https://repo1.maven.org/maven2/org/relaxng/jing/%{version}/jing-%{version}.pom
-Source3: https://repo1.maven.org/maven2/org/relaxng/trang/%{version}/trang-%{version}.pom
+Source0: %{name}-%{version}.tar.xz
+Source1: https://repo1.maven.org/maven2/org/relaxng/jing/%{version}/jing-%{version}.pom
+Source2: https://repo1.maven.org/maven2/org/relaxng/trang/%{version}/trang-%{version}.pom
Source10: dtdinst.1
#
Patch0: 0000-Various-build-fixes.patch
@@ -118,19 +115,14 @@ Requires: jpackage-utils
DTDinst is a program for converting XML DTDs into an XML instance format.
%prep
-%setup -q -a 0
-rmdir relaxng.org
-unzip %{SOURCE1}
-mv relaxng.org-%{relaxng_hash} relaxng.org
+%setup -q
-cp %{SOURCE2} jing.pom
-cp %{SOURCE3} trang.pom
+cp %{SOURCE1} jing.pom
+cp %{SOURCE2} trang.pom
cp %{SOURCE10} .
mv gcj/{trang,jing}.1 .
-rm -r gcj mod/datatype/src/main/org $(find . -name "*.jar")
%patch0 -p1
-# %%patch1 -p1
%patch2 -p1
%patch3 -p1
rm -f \