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
|
|
|
#
|
2024-04-30 14:08:19 +02:00
|
|
|
# Copyright (c) 2024 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
|
|
|
#
|
|
|
|
|
|
|
|
|
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
|
2008-03-21 01:18:30 +01:00
|
|
|
BuildRequires: ant
|
2024-04-30 14:08:19 +02:00
|
|
|
BuildRequires: fdupes
|
2008-03-21 01:18:30 +01:00
|
|
|
BuildRequires: java-devel
|
2024-04-30 14:08:19 +02:00
|
|
|
BuildRequires: javapackages-local >= 6
|
2017-06-10 18:33:05 +02:00
|
|
|
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.
|
|
|
|
|
2024-04-30 14:08:19 +02:00
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package contains the API documentation for %{name}.
|
|
|
|
|
2007-01-16 00:18:53 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
# remove all binary libs
|
|
|
|
find . -name "*.jar" -exec rm -f {} \;
|
|
|
|
|
|
|
|
%build
|
2022-06-07 06:46:10 +02:00
|
|
|
%{ant} \
|
2022-03-19 22:50:23 +01:00
|
|
|
-Dant.build.javac.source=1.8 \
|
|
|
|
-Dant.build.javac.target=1.8 \
|
2024-04-30 14:08:19 +02:00
|
|
|
jar javadoc
|
2007-01-16 00:18:53 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
2024-04-30 14:08:19 +02:00
|
|
|
install -d -m 0755 %{buildroot}%{_javadir}
|
|
|
|
install -p -m 0644 dist/%{name}-%{version}.jar \
|
|
|
|
%{buildroot}%{_javadir}/%{name}.jar
|
2018-11-27 12:20:08 +01:00
|
|
|
|
|
|
|
# pom
|
2024-04-30 14:08:19 +02:00
|
|
|
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}
|
2018-11-27 12:20:08 +01:00
|
|
|
|
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}
|
2024-04-30 14:08:19 +02:00
|
|
|
%fdupes -s %{buildroot}%{_datadir}/%{name}
|
2007-01-16 00:18:53 +01:00
|
|
|
|
2024-04-30 14:08:19 +02:00
|
|
|
%files -f .mfiles
|
2022-06-07 06:45:18 +02:00
|
|
|
%license LICENSE.md
|
|
|
|
%doc CHANGELOG.md README.md
|
2024-04-30 14:08:19 +02:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%{_javadocdir}/%{name}
|
2007-01-16 00:18:53 +01:00
|
|
|
|
|
|
|
%files demo
|
2022-06-07 06:45:18 +02:00
|
|
|
%{_datadir}/%{name}
|
2007-01-16 00:18:53 +01:00
|
|
|
|
2007-03-30 01:51:13 +02:00
|
|
|
%changelog
|