Skip to content

Commit ea0ee67

Browse files
authored
Upgrading jdepend to Version-2.10 (microsoft#15110)
1 parent 7af29b7 commit ea0ee67

File tree

5 files changed

+31
-90
lines changed

5 files changed

+31
-90
lines changed

SPECS-EXTENDED/jdepend/jdepend-2.9.1.pom

Lines changed: 0 additions & 6 deletions
This file was deleted.

SPECS-EXTENDED/jdepend/jdepend-target16.patch

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"Signatures": {
3-
"jdepend-2.9.1.pom": "dff3f46da3fda5de23a0d84b941ab7a105979df07064c6ba0d1817310c2633e4",
4-
"jdepend-2.9.1.tar.bz2": "1381c76064f8e96a7b29b04ba3cb0a6f7ee27b700fd08e358e043bfdd82be1e6"
3+
"jdepend-2.10.tar.gz": "8c19f5d62127c11c20976ae130d1914a64f0115e5113810c38fe53bf8715378b"
54
}
65
}

SPECS-EXTENDED/jdepend/jdepend.spec

Lines changed: 28 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,22 @@
11
Vendor: Microsoft Corporation
22
Distribution: 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
223
Name: jdepend
23-
Version: 2.9.1
24-
Release: 96%{?dist}
4+
Version: 2.10
5+
Release: 1%{?dist}
256
Summary: 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+
3414
BuildRequires: javapackages-local-bootstrap
35-
Obsoletes: %{name}-javadoc
3615
BuildArch: noarch
16+
BuildRequires: ant
17+
# TODO Remove in Fedora 46
3718

19+
3820
%description
3921
JDepend traverses a set of Java class and source file directories and
4022
generates design quality metrics for each Java package. JDepend allows
@@ -55,49 +37,44 @@ extensibility, reusability, and maintainability to effectively manage
5537
and control package dependencies.
5638

5739
This 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
6446
find . -type d -exec chmod 755 {} \;
65-
%patch 0 -b .target15
66-
47+
find . -type f -exec chmod 644 {} \;
48+
6749
%build
6850
ant jar
69-
51+
7052
%install
7153
# jars
7254
install -d -m 755 %{buildroot}%{_javadir}
7355
install -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
8362
install -d -m 755 %{buildroot}%{_datadir}/%{name}
8463
cp -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

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7881,8 +7881,8 @@
78817881
"type": "other",
78827882
"other": {
78837883
"name": "jdepend",
7884-
"version": "2.9.1",
7885-
"downloadUrl": "http://www.clarkware.com/software/jdepend-2.9.1.tar.bz2"
7884+
"version": "2.10",
7885+
"downloadUrl": "https://github.com/clarkware/jdepend/archive/refs/tags/2.10.tar.gz"
78867886
}
78877887
}
78887888
},

0 commit comments

Comments
 (0)