124 lines
3.6 KiB
RPMSpec
124 lines
3.6 KiB
RPMSpec
|
#
|
||
|
# spec file for package jdepend (Version 2.6)
|
||
|
#
|
||
|
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
|
# This file and all modifications and additions to the pristine
|
||
|
# package are under the same license as the package itself.
|
||
|
#
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
# norootforbuild
|
||
|
# icecream 0
|
||
|
|
||
|
Name: jdepend
|
||
|
BuildRequires: ant java2-devel-packages xml-commons-apis
|
||
|
%define name jdepend
|
||
|
%define version 2.6
|
||
|
%define release 3jpp
|
||
|
%define section free
|
||
|
Version: 2.6
|
||
|
Release: 24
|
||
|
Summary: Java Design Quality Metrics
|
||
|
License: BSD, Other License(s), see package
|
||
|
URL: http://www.clarkware.com/
|
||
|
Group: Development/Libraries/Java
|
||
|
Source0: %{url}software/%{name}-%{version}.zip
|
||
|
Patch: %{name}-java14compat.patch
|
||
|
BuildArch: noarch
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
||
|
%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 javadoc
|
||
|
PreReq: coreutils
|
||
|
Summary: Javadoc for jdepend
|
||
|
Group: Development/Libraries/Java
|
||
|
|
||
|
%description javadoc
|
||
|
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 the javadoc documentation for JDepend.
|
||
|
|
||
|
|
||
|
|
||
|
%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
|
||
|
%patch
|
||
|
# remove all binary libs
|
||
|
find . -name "*.jar" -exec rm -f {} \;
|
||
|
# fix strange permissions
|
||
|
find . -type d -exec chmod 755 {} \;
|
||
|
|
||
|
%build
|
||
|
ant jar javadoc
|
||
|
|
||
|
%install
|
||
|
# jars
|
||
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
||
|
install -m 644 lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
||
|
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)
|
||
|
# javadoc
|
||
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||
|
cp -pr docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||
|
rm -rf docs/api
|
||
|
# demo
|
||
|
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
|
||
|
cp -pr sample $RPM_BUILD_ROOT%{_datadir}/%{name}
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%doc README LICENSE docs
|
||
|
%{_javadir}/*
|
||
|
|
||
|
%files javadoc
|
||
|
%defattr(-,root,root)
|
||
|
%{_javadocdir}/%{name}-%{version}
|
||
|
|
||
|
%files demo
|
||
|
%defattr(-,root,root)
|
||
|
%{_datadir}/%{name}
|
||
|
|
||
|
%changelog -n jdepend
|
||
|
* Mon Sep 25 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 2006 - mls@suse.de
|
||
|
- converted neededforbuild to BuildRequires
|
||
|
* Thu Jul 28 2005 - jsmeix@suse.de
|
||
|
- Adjustments in the spec file.
|
||
|
* Mon Jul 18 2005 - jsmeix@suse.de
|
||
|
- Current version 2.6 from JPackage.org
|
||
|
* Thu Sep 02 2004 - skh@suse.de
|
||
|
- Initial package created with version 2.6 (JPackage 1.5)
|