2007-01-15 23:18:53 +00:00
|
|
|
#
|
2008-03-21 00:18:30 +00:00
|
|
|
# spec file for package jdepend (Version 2.9.1)
|
2007-01-15 23:18:53 +00:00
|
|
|
#
|
2008-03-21 00:18:30 +00:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:18:53 +00:00
|
|
|
# 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
|
|
|
|
|
2008-03-21 00:18:30 +00:00
|
|
|
%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
|
2007-01-15 23:18:53 +00:00
|
|
|
%define section free
|
2008-03-21 00:18:30 +00:00
|
|
|
|
|
|
|
Name: jdepend
|
|
|
|
Version: 2.9.1
|
|
|
|
Release: 1
|
2007-01-15 23:18:53 +00:00
|
|
|
Summary: Java Design Quality Metrics
|
2008-03-21 00:18:30 +00:00
|
|
|
License: BSD 3-Clause
|
|
|
|
Url: http://www.clarkware.com/
|
2007-01-15 23:18:53 +00:00
|
|
|
Group: Development/Libraries/Java
|
|
|
|
Source0: %{url}software/%{name}-%{version}.zip
|
2008-03-21 00:18:30 +00:00
|
|
|
BuildRequires: ant
|
|
|
|
%if %defined suse_version
|
|
|
|
BuildRequires: unzip
|
|
|
|
BuildRequires: java-devel
|
|
|
|
%endif
|
|
|
|
%if ! %{gcj_support}
|
2007-01-15 23:18:53 +00:00
|
|
|
BuildArch: noarch
|
2008-03-21 00:18:30 +00:00
|
|
|
%endif
|
2007-01-15 23:18:53 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-03-21 00:18:30 +00:00
|
|
|
%if %{gcj_support}
|
|
|
|
BuildRequires: java-gcj-compat-devel
|
|
|
|
Requires(post): java-gcj-compat
|
|
|
|
Requires(postun): java-gcj-compat
|
|
|
|
%endif
|
2007-01-15 23:18:53 +00: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 javadoc
|
|
|
|
Summary: Javadoc for jdepend
|
|
|
|
Group: Development/Libraries/Java
|
2008-03-21 00:18:30 +00:00
|
|
|
Requires(post): /bin/rm /bin/ln
|
|
|
|
Requires(postun): /bin/rm
|
2007-01-15 23:18:53 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
# 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}
|
2008-03-21 00:18:30 +00:00
|
|
|
install -m 644 dist/%{name}-%{version}.jar \
|
|
|
|
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
2007-01-15 23:18:53 +00:00
|
|
|
(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}
|
2008-03-21 00:18:30 +00:00
|
|
|
cp -pr build/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
|
|
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
|
2007-01-15 23:18:53 +00:00
|
|
|
rm -rf docs/api
|
|
|
|
# demo
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
|
|
|
|
cp -pr sample $RPM_BUILD_ROOT%{_datadir}/%{name}
|
2008-03-21 00:18:30 +00:00
|
|
|
%if %{gcj_support}
|
|
|
|
%{_bindir}/aot-compile-rpm
|
|
|
|
%endif
|
2007-01-15 23:18:53 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2008-03-21 00:18:30 +00:00
|
|
|
%if %{gcj_support}
|
|
|
|
|
|
|
|
%post
|
|
|
|
if [ -x %{_bindir}/rebuild-gcj-db ]
|
|
|
|
then
|
|
|
|
%{_bindir}/rebuild-gcj-db
|
|
|
|
fi
|
|
|
|
%endif
|
|
|
|
%if %{gcj_support}
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ -x %{_bindir}/rebuild-gcj-db ]
|
|
|
|
then
|
|
|
|
%{_bindir}/rebuild-gcj-db
|
|
|
|
fi
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%post javadoc
|
|
|
|
rm -f %{_javadocdir}/%{name}
|
|
|
|
ln -s %{name}-%{version} %{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%postun javadoc
|
|
|
|
if [ "$1" = "0" ]; then
|
|
|
|
rm -f %{_javadocdir}/%{name}
|
|
|
|
fi
|
2007-01-15 23:18:53 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2008-03-21 00:18:30 +00:00
|
|
|
%doc CHANGES README LICENSE
|
2007-01-15 23:18:53 +00:00
|
|
|
%{_javadir}/*
|
2008-03-21 00:18:30 +00:00
|
|
|
%if %{gcj_support}
|
|
|
|
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.*
|
|
|
|
%endif
|
2007-01-15 23:18:53 +00:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(-,root,root)
|
2008-03-21 00:18:30 +00:00
|
|
|
%doc docs
|
2007-01-15 23:18:53 +00:00
|
|
|
%{_javadocdir}/%{name}-%{version}
|
2008-03-21 00:18:30 +00:00
|
|
|
%ghost %doc %{_javadocdir}/%{name}
|
2007-01-15 23:18:53 +00:00
|
|
|
|
|
|
|
%files demo
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
2007-03-29 23:51:13 +00:00
|
|
|
%changelog
|
2008-03-21 00:18:30 +00:00
|
|
|
* Fri Mar 14 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 2007 ro@suse.de
|
2007-03-29 23:51:13 +00:00
|
|
|
- added unzip to buildreq
|
2008-03-21 00:18:30 +00:00
|
|
|
* Mon Sep 25 2006 skh@suse.de
|
2007-01-15 23:18:53 +00:00
|
|
|
- don't use icecream
|
|
|
|
- use source="1.4" and target="1.4" for build with java 1.5
|
2008-03-21 00:18:30 +00:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2007-01-15 23:18:53 +00:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-03-21 00:18:30 +00:00
|
|
|
* Thu Jul 28 2005 jsmeix@suse.de
|
2007-01-15 23:18:53 +00:00
|
|
|
- Adjustments in the spec file.
|
2008-03-21 00:18:30 +00:00
|
|
|
* Mon Jul 18 2005 jsmeix@suse.de
|
2007-01-15 23:18:53 +00:00
|
|
|
- Current version 2.6 from JPackage.org
|
2008-03-21 00:18:30 +00:00
|
|
|
* Thu Sep 02 2004 skh@suse.de
|
2007-01-15 23:18:53 +00:00
|
|
|
- Initial package created with version 2.6 (JPackage 1.5)
|