From d79dd79b454f8ba8211ed33a8b6f0852db09ac58 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 06:30:34 +0000 Subject: [PATCH] auto-import changelog data from jdepend-2.6-2jpp.src.rpm 2.6-2jpp - fix strange permissions 2.6-1jpp - 2.6 Tue Jul 09 2002 Henri Gomez 2.2-1jpp - Initial JPackage release --- .cvsignore | 1 + jdepend.spec | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 93 insertions(+) create mode 100644 jdepend.spec diff --git a/.cvsignore b/.cvsignore index e69de29..dc459d8 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +jdepend-2.6.zip diff --git a/jdepend.spec b/jdepend.spec new file mode 100644 index 0000000..520787b --- /dev/null +++ b/jdepend.spec @@ -0,0 +1,91 @@ +%define name jdepend +%define version 2.6 +%define release 2jpp +%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 {} \; + +%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 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 diff --git a/sources b/sources index e69de29..79c4722 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +20fe61e6e99bdd5802300ee3371b1e67 jdepend-2.6.zip