Sync from SUSE:SLFO:Main jdepend revision 929a97316c8b546050da21ed76737865

This commit is contained in:
Adrian Schröter 2024-05-03 14:00:05 +02:00
commit 7b33b4865c
5 changed files with 225 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
2.10.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

6
jdepend-2.10.pom Normal file
View File

@ -0,0 +1,6 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>jdepend</groupId>
<artifactId>jdepend</artifactId>
<version>2.10</version>
</project>

94
jdepend.changes Normal file
View File

@ -0,0 +1,94 @@
-------------------------------------------------------------------
Sat Jun 18 18:38:40 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Clean-up the spec file
-------------------------------------------------------------------
Sat Mar 19 21:48:11 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Specify the source/target levels 8 on ant invocation
- Removed patch:
* jdepend-target16.patch
+ not needed with the source/target levels being specified on
command-line
-------------------------------------------------------------------
Tue Dec 28 13:00:04 UTC 2021 - David Anes <david.anes@suse.com>
- Update to 2.10:
* Official release that includes support for Java 8 constants
- Updated license from BSD-3 Clause to MIT (as per LICENSE.md file).
- Fix installed files permissions (were too broad).
- Fix LICENSE, CHANGES and README permissions.
- Fix demo permissions (were too broad).
- Rebased patches:
* jdepend-target16.patch
-------------------------------------------------------------------
Tue Nov 27 11:20:17 UTC 2018 - Fridrich Strba <fstrba@suse.com>
- Add maven pom file
-------------------------------------------------------------------
Fri Sep 8 08:24:05 UTC 2017 - fstrba@suse.com
- Removed patch:
* jdepend-target15.patch
- Added patch:
* jdepend-target16.patch
+ Specify java source and target levels 1.6 in order to allow
building with jdk9
-------------------------------------------------------------------
Fri Jun 9 10:17:28 UTC 2017 - tchvatal@suse.com
- Drop javadoc so we build with gcj properly
-------------------------------------------------------------------
Fri Aug 29 13:26:09 CEST 2008 - mvyskocil@suse.cz
- source=1.5 -target=1.5
- bzipped source code
- removed the gcj support
- removed a javadoc scripplets
-------------------------------------------------------------------
Fri Mar 14 09:49:46 CET 2008 - mvyskocil@suse.cz
- merged with jpackage 1.7:
- update to version 2.9.1
- removed a java14compat patch
- added a gcj build support
- added post(un) scripts for javadoc subpackage
-------------------------------------------------------------------
Fri Mar 30 01:46:27 CEST 2007 - ro@suse.de
- added unzip to buildreq
-------------------------------------------------------------------
Mon Sep 25 16:26:24 CEST 2006 - skh@suse.de
- don't use icecream
- use source="1.4" and target="1.4" for build with java 1.5
-------------------------------------------------------------------
Wed Jan 25 21:46:45 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Thu Jul 28 15:26:51 CEST 2005 - jsmeix@suse.de
- Adjustments in the spec file.
-------------------------------------------------------------------
Mon Jul 18 16:41:06 CEST 2005 - jsmeix@suse.de
- Current version 2.6 from JPackage.org
-------------------------------------------------------------------
Thu Sep 2 16:26:12 CEST 2004 - skh@suse.de
- Initial package created with version 2.6 (JPackage 1.5)

99
jdepend.spec Normal file
View File

@ -0,0 +1,99 @@
#
# spec file for package jdepend
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define section free
Name: jdepend
Version: 2.10
Release: 0
Summary: Java Design Quality Metrics
License: MIT
Group: Development/Libraries/Java
URL: http://www.clarkware.com/software/JDepend.html
Source0: https://github.com/clarkware/jdepend/archive/refs/tags/%{version}.tar.gz
Source1: %{name}-%{version}.pom
BuildRequires: ant
BuildRequires: java-devel
BuildRequires: javapackages-local
Obsoletes: %{name}-javadoc
BuildArch: noarch
%description
JDepend traverses a set of Java class and source file directories and
generates design quality metrics for each Java package. JDepend allows
you to automatically measure the quality of a design in terms of its
extensibility, reusability, and maintainability to effectively manage
and control package dependencies.
%package demo
Summary: Demonstration and sample files for jdepend
Group: Development/Libraries/Java
Requires: %{name} = %{version}-%{release}
%description demo
JDepend traverses a set of Java class and source file directories and
generates design quality metrics for each Java package. JDepend allows
you to automatically measure the quality of a design in terms of its
extensibility, reusability, and maintainability to effectively manage
and control package dependencies.
This package contains demonstration and sample files for JDepend.
%prep
%setup -q
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
%build
%{ant} \
-Dant.build.javac.source=1.8 \
-Dant.build.javac.target=1.8 \
jar
%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)
# 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
# # demo
install -d -m 755 %{buildroot}%{_datadir}/%{name}
cp -pr sample %{buildroot}%{_datadir}/%{name}
%files
%defattr(0644,root,root,0755)
%license LICENSE.md
%doc CHANGELOG.md README.md
%{_javadir}/*
%{_mavenpomdir}/*
%if %{defined _maven_repository}
%{_mavendepmapfragdir}/%{name}
%else
%{_datadir}/maven-metadata/%{name}.xml*
%endif
%files demo
%defattr(0644,root,root,0755)
%{_datadir}/%{name}
%changelog