File project.diff of Package schemaspy
--- schemaspy.spec.orig
+++ schemaspy.spec
@@ -18,19 +18,34 @@
Name: schemaspy
-Version: 5.0.0
+Version: 6.2.4
Release: 0
Summary: Tool for analyzing and graphing database schemas
License: LGPL-2.1-only
Group: Productivity/Databases/Tools
-URL: https://schemaspy.sourceforge.net/
-Source0: schemaSpy_%{version}.source.jar
+URL: https://schemaspy.org/
+Source0: https://github.com/schemaspy/schemaspy/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: schemaspy.1
# PATCH-FIX-OPENSUSE driver-location.patch
Patch0: driver-location.patch
-BuildRequires: java-devel >= 1.8
-BuildRequires: javapackages-tools
-BuildRequires: unzip
+
+#BuildRequires: mvn(com.github.spullara.mustache.java:compiler)
+#BuildRequires: mvn(com.vladsch.flexmark:flexmark)
+BuildRequires: mvn(org.json:json)
+#BuildRequires: mvn(org.openjdk.nashorn:nashorn-core)
+#BuildRequires: mvn(org.springframework.boot:spring-boot)
+#BuildRequires: mvn(org.springframework.boot:spring-boot-autoconfigure)
+#BuildRequires: mvn(org.springframework:spring-beans)
+#BuildRequires: mvn(org.springframework:spring-context)
+#BuildRequires: mvn(org.springframework:spring-core)
+
+BuildRequires: mvn(org.slf4j:log4j-over-slf4j)
+BuildRequires: mvn(org.slf4j:slf4j-api)
+BuildRequires: mvn(org.slf4j:slf4j-simple)
+
+BuildRequires: mvn(xalan:xalan)
+
+BuildRequires: maven-local
Requires: graphviz
Requires: graphviz-gd
Requires: java >= 1.8
@@ -55,36 +70,70 @@ been isolated to configuration files and
all of the vendor-specific SQL is optional.
%prep
-%setup -q -c
-%patch -P 0 -p1
+%setup -q
+#%%patch -P 0 -p1
+#%%{mvn_file} : %{name}
+
+%pom_remove_dep :junit
+%pom_remove_dep :junit-bom
+
+# https://github.com/vsch/flexmark-java
+%pom_remove_dep com.vladsch.flexmark:flexmark:
+%pom_remove_dep com.vladsch.flexmark:flexmark-profile-pegdown:
+
+# https://github.com/spring-projects/spring-framework
+%pom_remove_dep org.springframework.boot:spring-boot-dependencies
+%pom_remove_dep org.springframework.boot:spring-boot-starter:
+%pom_remove_dep org.springframework.boot:spring-boot:
+%pom_remove_dep org.springframework.boot:spring-boot-autoconfigure:
+%pom_remove_dep org.springframework:spring-core:
+%pom_remove_dep org.springframework:spring-context:
+%pom_remove_dep org.springframework:spring-beans:
+
+# nashorn is already packaged on OBS
+# https://build.opensuse.org/package/show/Java:packages/nashorn
+%pom_remove_dep org.openjdk.nashorn:nashorn-core:
+
+#https://github.com/spullara/mustache.java
+%pom_remove_dep com.github.spullara.mustache.java:
+
+%pom_remove_plugin org.apache.maven.plugins:maven-failsafe-plugin
+%pom_remove_plugin org.apache.maven.plugins:maven-enforcer-plugin
+%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin
+%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin
+%pom_remove_plugin org.springframework.boot:spring-boot-maven-plugin
%build
-mkdir classes
-javac -source 1.8 -target 1.8 -d classes `find net -name '*.java' -print`
-jar \
-%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 17}%{!?pkg_vcmp:0}
- --date="$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)" \
-%endif
- --create --file=%{name}-%{version}.jar \
- META-INF/MANIFEST.MF *.* images -C classes . `find net -name '*.properties'`
+#mvn package -e -X -Dmaven.test.skip
+#%%{mvn_build} -f -X
+%{mvn_build} -f
+
+#mkdir classes
+#javac -source 1.8 -target 1.8 -d classes `find net -name '*.java' -print`
+#jar \
+#%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 17}%{!?pkg_vcmp:0}
+# --date="$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)" \
+#%endif
+# --create --file=%{name}-%{version}.jar \
+# META-INF/MANIFEST.MF *.* images -C classes . `find net -name '*.properties'`
%install
# JAR file
-install -d %{buildroot}%{_javadir}
-install %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
-
+#install -d %{buildroot}%{_javadir}
+#install %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+#
# Man page
-install -d %{buildroot}%{_mandir}/man1
-install %{_sourcedir}/%{name}.1 %{buildroot}%{_mandir}/man1
+#install -d %{buildroot}%{_mandir}/man1
+#install %{_sourcedir}/%{name}.1 %{buildroot}%{_mandir}/man1
# Command line script
-%jpackage_script net.sourceforge.schemaspy.Main "" "" %{name} %{name}
+#%%jpackage_script net.sourceforge.schemaspy.Main "" "" %{name} %{name}
%files
-%attr(0755,root,root) %{_bindir}/%{name}
-%defattr(0644,root,root,0755)
-%{_javadir}/*
-%{_mandir}/man1/*
+#%%attr(0755,root,root) %{_bindir}/%{name}
+#%%defattr(0644,root,root,0755)
+#%%{_javadir}/*
+#%%{_mandir}/man1/*
%changelog