Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package jdepend for openSUSE:Factory checked 
in at 2024-05-01 14:55:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/jdepend (Old)
 and      /work/SRC/openSUSE:Factory/.jdepend.new.1880 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "jdepend"

Wed May  1 14:55:38 2024 rev:22 rq:1170982 version:2.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/jdepend/jdepend.changes  2022-06-19 
21:10:32.850097876 +0200
+++ /work/SRC/openSUSE:Factory/.jdepend.new.1880/jdepend.changes        
2024-05-01 14:55:52.832663788 +0200
@@ -1,0 +2,8 @@
+Tue Apr 30 12:06:20 UTC 2024 - Fridrich Strba <fst...@suse.com>
+
+- Simplify the spec:
+  * remove old macros,
+  * avoid versioned jars,
+  * build and distribute javadoc
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ jdepend.spec ++++++
--- /var/tmp/diff_new_pack.onhA9s/_old  2024-05-01 14:55:53.284680187 +0200
+++ /var/tmp/diff_new_pack.onhA9s/_new  2024-05-01 14:55:53.288680333 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package jdepend
 #
-# Copyright (c) 2022 SUSE LLC
+# 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
@@ -16,7 +16,6 @@
 #
 
 
-%define section                free
 Name:           jdepend
 Version:        2.10
 Release:        0
@@ -27,9 +26,9 @@
 Source0:        
https://github.com/clarkware/jdepend/archive/refs/tags/%{version}.tar.gz
 Source1:        %{name}-%{version}.pom
 BuildRequires:  ant
+BuildRequires:  fdupes
 BuildRequires:  java-devel
-BuildRequires:  javapackages-local
-Obsoletes:      %{name}-javadoc
+BuildRequires:  javapackages-local >= 6
 BuildArch:      noarch
 
 %description
@@ -53,6 +52,13 @@
 
 This package contains demonstration and sample files for JDepend.
 
+%package javadoc
+Summary:        Javadoc for %{name}
+Group:          Documentation/HTML
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
 %prep
 %setup -q
 # remove all binary libs
@@ -62,37 +68,36 @@
 %{ant} \
        -Dant.build.javac.source=1.8 \
        -Dant.build.javac.target=1.8 \
-       jar
+       jar javadoc
 
 %install
 # jars
-install -d -m 755 %{buildroot}%{_javadir}
-install -m 644 dist/%{name}-%{version}.jar \
-    %{buildroot}%{_javadir}/%{name}-%{version}.jar
-(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} 
${jar/-%{version}/}; done)
+install -d -m 0755 %{buildroot}%{_javadir}
+install -p -m 0644 dist/%{name}-%{version}.jar \
+    %{buildroot}%{_javadir}/%{name}.jar
 
 # pom
-install -d -m 755 %{buildroot}%{_mavenpomdir}
-install -m 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}-%{version}.pom
-%add_maven_depmap %{name}-%{version}.pom %{name}-%{version}.jar
+install -d -m 0755 %{buildroot}%{_mavenpomdir}
+%{mvn_install_pom} %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}.pom
+%add_maven_depmap %{name}.pom %{name}.jar
+
+# javadoc
+install -d -m 0755 %{buildroot}%{_javadocdir}
+cp -pr build/docs/api %{buildroot}%{_javadocdir}/%{name}
+%fdupes -s %{buildroot}%{_javadocdir}/%{name}
 
 # # demo
 install -d -m 755 %{buildroot}%{_datadir}/%{name}
 cp -pr sample %{buildroot}%{_datadir}/%{name}
+%fdupes -s %{buildroot}%{_datadir}/%{name}
 
-%files
-%defattr(0644,root,root,0755)
+%files -f .mfiles
 %license LICENSE.md
 %doc CHANGELOG.md README.md
-%{_javadir}/*
-%{_mavenpomdir}/*
-%if %{defined _maven_repository}
-%{_mavendepmapfragdir}/%{name}
-%else
-%{_datadir}/maven-metadata/%{name}.xml*
-%endif
+
+%files javadoc
+%{_javadocdir}/%{name}
 
 %files demo
-%defattr(0644,root,root,0755)
 %{_datadir}/%{name}
 

Reply via email to