2004-09-09 06:30:34 +00:00
|
|
|
%define name jdepend
|
|
|
|
%define version 2.6
|
2004-11-01 10:30:49 +00:00
|
|
|
%define release 2jpp_2fc
|
2004-09-09 06:30:34 +00:00
|
|
|
%define section free
|
|
|
|
|
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
|
|
|
Release: %{release}
|
|
|
|
Epoch: 0
|
|
|
|
Summary: Java Design Quality Metrics
|
|
|
|
License: Clarkware License
|
|
|
|
Url: http://www.clarkware.com/
|
|
|
|
Group: Development/Libraries/Java
|
2004-09-09 06:30:37 +00:00
|
|
|
#Vendor: JPackage Project
|
|
|
|
#Distribution: JPackage
|
2004-09-09 06:30:34 +00:00
|
|
|
Source0: %{url}software/%{name}-%{version}.zip
|
2004-11-03 17:04:02 +00:00
|
|
|
BuildRequires: ant xerces-j2 xml-commons-apis
|
2004-09-09 06:30:34 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
|
|
|
|
|
|
|
%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 %{name}
|
|
|
|
Group: Development/Documentation
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
Javadoc for %{name}.
|
|
|
|
|
|
|
|
%package demo
|
|
|
|
Summary: Demos for %{name}
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description demo
|
|
|
|
Demonstrations and samples for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%setup -q
|
|
|
|
# remove all binary libs
|
|
|
|
find . -name "*.jar" -exec rm -f {} \;
|
|
|
|
# fix strange permissions
|
|
|
|
find . -type d -exec chmod 755 {} \;
|
2004-10-07 14:46:20 +00:00
|
|
|
# delete stuff that doesn't work with libgcj (#130006).
|
|
|
|
if java -version 2>&1 | grep -q "gcj"; then
|
|
|
|
rm -f src/jdepend/swingui/DependTree.java
|
|
|
|
rm -f src/jdepend/swingui/JDepend.java
|
|
|
|
fi
|
2004-09-09 06:30:34 +00:00
|
|
|
|
|
|
|
%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
|
2004-11-01 10:30:49 +00:00
|
|
|
* Mon Nov 1 2004 Gary Benson <gbenson@redhat.com> 0:2.6-2jpp_2fc
|
2004-10-12 14:24:46 +00:00
|
|
|
- Build into Fedora.
|
|
|
|
|
2004-09-09 06:30:37 +00:00
|
|
|
* Thu Mar 4 2004 Frank Ch. Eigler <fche@redhat.com> 0:2.6-2jpp_1rh
|
|
|
|
- RH vacuuming
|
|
|
|
|
2004-09-09 06:30:34 +00:00
|
|
|
* Fri Apr 11 2003 David Walluck <david@anti-microsoft.org> 0:2.6-2jpp
|
|
|
|
- fix strange permissions
|
|
|
|
|
|
|
|
* Fri Apr 11 2003 David Walluck <david@anti-microsoft.org> 0:2.6-1jpp
|
|
|
|
- 2.6
|
|
|
|
|
|
|
|
* Tue Jul 09 2002 Henri Gomez <hgomez@users.sourceforge.net> 2.2-1jpp
|
|
|
|
- Initial JPackage release
|