11Vendor: Microsoft Corporation
22Distribution: Azure Linux
3- #
4- # spec file for package jdepend
5- #
6- # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
7- #
8- # All modifications and additions to the file contributed by third parties
9- # remain the property of their copyright owners, unless otherwise agreed
10- # upon. The license for this file, and modifications and additions to the
11- # file, is the same license as for the pristine package itself (unless the
12- # license for the pristine package is not an Open Source License, in which
13- # case the license is the MIT License). An "Open Source License" is a
14- # license that conforms to the Open Source Definition (Version 1.9)
15- # published by the Open Source Initiative.
16-
17- # Please submit bugfixes or comments via https://bugs.opensuse.org/
18- #
19-
20-
21- %define section free
223Name: jdepend
23- Version: 2.9.1
24- Release: 96 %{?dist }
4+ Version: 2.10
5+ Release: 1 %{?dist }
256Summary: Java Design Quality Metrics
26- License: BSD-3-Clause
27- Group: Development/Libraries/Java
28- URL: http://www.clarkware.com/
29- Source0: %{url }software/%{name }-%{version }.tar.bz2
30- Source1: https://repo1.maven.org/maven2/jdepend/%{name }/%{version }/%{name }-%{version }.pom
31- Patch0: jdepend-target16.patch
32- BuildRequires: ant
33- BuildRequires: java-devel
7+ License: MIT
8+ URL: https://github.com/clarkware/jdepend
9+ #BuildArch: noarch
10+ #ExclusiveArch: %{java_arches} noarch
11+
12+ Source0: https://github.com/clarkware/jdepend/archive/refs/tags/2.10.tar.gz#/jdepend-2.10.tar.gz
13+
3414BuildRequires: javapackages-local -bootstrap
35- Obsoletes: %{name }-javadoc
3615BuildArch: noarch
16+ BuildRequires: ant
17+ # TODO Remove in Fedora 46
3718
19+
3820%description
3921JDepend traverses a set of Java class and source file directories and
4022generates design quality metrics for each Java package. JDepend allows
@@ -55,49 +37,44 @@ extensibility, reusability, and maintainability to effectively manage
5537and control package dependencies.
5638
5739This package contains demonstration and sample files for JDepend.
58-
40+
5941%prep
60- %setup -q
42+ %autosetup -p1
6143# remove all binary libs
62- find . -name " *.jar" -exec rm -f {} \;
44+ find . -name " *.jar" -delete
6345# fix strange permissions
6446find . -type d -exec chmod 755 {} \;
65- %patch 0 -b .target15
66-
47+ find . -type f -exec chmod 644 {} \;
48+
6749%build
6850ant jar
69-
51+
7052%install
7153# jars
7254install -d -m 755 %{buildroot }%{_javadir }
7355install -m 644 dist/%{name }-%{version }.jar \
7456 %{buildroot }%{_javadir }/%{name }-%{version }.jar
75- (cd %{buildroot}%{_javadir} && for jar in * -%{version}* ; do ln -sf ${jar} ${jar/ -% {version} /}; done)
7657
77- # pom
78- install -d -m 755 %{buildroot}%{_mavenpomdir}
79- install -m 655 %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}-%{version}.pom
80- %add_maven_depmap %{name}-%{version}.pom %{name}-%{version}.jar
58+ # provide unversioned symlink for convenience
59+ (cd %{buildroot }%{_javadir } && ln -sf %{name }-%{version }.jar %{name }.jar)
8160
82- # demo
61+ # demo files
8362install -d -m 755 %{buildroot }%{_datadir }/%{name }
8463cp -pr sample %{buildroot }%{_datadir }/%{name }
8564
65+
8666%files
87- %license LICENSE
88- %doc CHANGES README
89- %{_javadir}/*
90- %{_mavenpomdir}/*
91- %if %{defined _maven_repository}
92- %{_mavendepmapfragdir}/%{name}
93- %else
94- %{_datadir}/maven-metadata/%{name}.xml*
95- %endif
67+ %license LICENSE.md
68+ %doc README.md CHANGELOG.md docs
69+ %{_javadir }/jdepend* .jar
9670
9771%files demo
9872%{_datadir }/%{name }
9973
10074%changelog
75+ *
Mon Nov 17 2025 Akarsh Chaudhary <[email protected] > -
2.10-1 76+ - Upgrade to version 2.10 (license: MIT).
77+ - License verified
10178*
Thu Oct 14 2021 Pawel Winogrodzki <[email protected] > -
2.9.1-96 10279- Converting the 'Release' tag to the '[number].[distribution]' format.
10380
0 commit comments