%define name jdepend %define version 2.6 %define release 2jpp_1fc %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 #Vendor: JPackage Project #Distribution: JPackage Source0: %{url}software/%{name}-%{version}.zip BuildRequires: ant 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 {} \; # 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 %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 * Mon Oct 11 2004 Gary Benson 0:2.6-2jpp_1fc - Build into Fedora. * Thu Mar 4 2004 Frank Ch. Eigler 0:2.6-2jpp_1rh - RH vacuuming * Fri Apr 11 2003 David Walluck 0:2.6-2jpp - fix strange permissions * Fri Apr 11 2003 David Walluck 0:2.6-1jpp - 2.6 * Tue Jul 09 2002 Henri Gomez 2.2-1jpp - Initial JPackage release