jdepend/jdepend.spec
2005-12-09 22:41:04 +00:00

105 lines
2.7 KiB
RPMSpec

%define name jdepend
%define version 2.6
%define release 2jpp_4fc.1
%define section free
Name: %{name}
Version: %{version}
Release: %{release}.1
Epoch: 0
Summary: Java Design Quality Metrics
License: Clarkware License
Url: http://www.clarkware.com/
Group: Development/Libraries/Java
Source0: %{name}-%{version}-RHCLEAN.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 {} \;
%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
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt
* Wed Jun 22 2005 Gary Benson <gbenson@redhat.com> 0:2.6-2jpp_4fc
- Remove jarfile from the tarball.
* Tue Jan 11 2005 Gary Benson <gbenson@redhat.com> 0:2.6-2jpp_3fc
- Reenable building of classes that require javax.swing (#130006).
* Wed Nov 3 2004 Gary Benson <gbenson@redhat.com> 0:2.6-2jpp_2fc
- Build into Fedora.
* Thu Mar 4 2004 Frank Ch. Eigler <fche@redhat.com> 0:2.6-2jpp_1rh
- RH vacuuming
* 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