2007-01-16 00:18:53 +01:00
|
|
|
#
|
2017-06-10 18:33:05 +02:00
|
|
|
# spec file for package jdepend
|
2007-01-16 00:18:53 +01:00
|
|
|
#
|
2021-12-31 22:00:24 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2007-01-16 00:18:53 +01:00
|
|
|
#
|
2008-08-30 00:35:29 +02:00
|
|
|
# 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.
|
|
|
|
|
2018-11-27 12:20:08 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:18:53 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define section free
|
2008-03-21 01:18:30 +01:00
|
|
|
Name: jdepend
|
2021-12-31 22:00:24 +01:00
|
|
|
Version: 2.10
|
2017-06-10 18:33:05 +02:00
|
|
|
Release: 0
|
2007-01-16 00:18:53 +01:00
|
|
|
Summary: Java Design Quality Metrics
|
2021-12-31 22:00:24 +01:00
|
|
|
License: MIT
|
2007-01-16 00:18:53 +01:00
|
|
|
Group: Development/Libraries/Java
|
2021-12-31 22:00:24 +01:00
|
|
|
URL: http://www.clarkware.com/software/JDepend.html
|
|
|
|
Source0: https://github.com/clarkware/jdepend/archive/refs/tags/%{version}.tar.gz
|
|
|
|
Source1: %{name}-%{version}.pom
|
2017-09-08 10:25:38 +02:00
|
|
|
Patch0: jdepend-target16.patch
|
2008-03-21 01:18:30 +01:00
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: java-devel
|
2018-11-27 12:20:08 +01:00
|
|
|
BuildRequires: javapackages-local
|
2017-06-10 18:33:05 +02:00
|
|
|
Obsoletes: %{name}-javadoc
|
|
|
|
BuildArch: noarch
|
2007-01-16 00:18:53 +01:00
|
|
|
|
|
|
|
%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 {} \;
|
2008-08-30 00:35:29 +02:00
|
|
|
%patch0 -b .target15
|
2007-01-16 00:18:53 +01:00
|
|
|
|
|
|
|
%build
|
2017-06-10 18:33:05 +02:00
|
|
|
ant jar
|
2007-01-16 00:18:53 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
2017-06-10 18:33:05 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_javadir}
|
2008-03-21 01:18:30 +01:00
|
|
|
install -m 644 dist/%{name}-%{version}.jar \
|
2017-06-10 18:33:05 +02:00
|
|
|
%{buildroot}%{_javadir}/%{name}-%{version}.jar
|
|
|
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)
|
2018-11-27 12:20:08 +01:00
|
|
|
|
|
|
|
# pom
|
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
2021-12-31 22:00:24 +01:00
|
|
|
install -m 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}-%{version}.pom
|
2018-11-27 12:20:08 +01:00
|
|
|
%add_maven_depmap %{name}-%{version}.pom %{name}-%{version}.jar
|
|
|
|
|
2021-12-31 22:00:24 +01:00
|
|
|
# # demo
|
2017-06-10 18:33:05 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/%{name}
|
|
|
|
cp -pr sample %{buildroot}%{_datadir}/%{name}
|
2007-01-16 00:18:53 +01:00
|
|
|
|
|
|
|
%files
|
2021-12-31 22:00:24 +01:00
|
|
|
%attr(644, root, root) %license LICENSE.md
|
|
|
|
%attr(644, root, root) %doc CHANGELOG.md README.md
|
2007-01-16 00:18:53 +01:00
|
|
|
%{_javadir}/*
|
2018-11-27 12:20:08 +01:00
|
|
|
%{_mavenpomdir}/*
|
|
|
|
%if %{defined _maven_repository}
|
|
|
|
%{_mavendepmapfragdir}/%{name}
|
|
|
|
%else
|
|
|
|
%{_datadir}/maven-metadata/%{name}.xml*
|
|
|
|
%endif
|
2007-01-16 00:18:53 +01:00
|
|
|
|
|
|
|
%files demo
|
2021-12-31 22:00:24 +01:00
|
|
|
%attr(644, root, root) %{_datadir}/%{name}
|
2007-01-16 00:18:53 +01:00
|
|
|
|
2007-03-30 01:51:13 +02:00
|
|
|
%changelog
|