SHA256
1
0
forked from pool/jdepend
OBS User unknown
2008-08-29 22:35:29 +00:00
committed by Git OBS Bridge
parent 3fe05a9c64
commit 72fbd8d96b
5 changed files with 62 additions and 53 deletions

3
jdepend-2.9.1.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1381c76064f8e96a7b29b04ba3cb0a6f7ee27b700fd08e358e043bfdd82be1e6
size 245043

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b9f34236aaea5ddc070caa29794d2f5ae79bc12e199bec6ebba6c29093a17a9e
size 280104

29
jdepend-target15.patch Normal file
View File

@@ -0,0 +1,29 @@
--- build.xml
+++ build.xml
@@ -38,7 +38,7 @@
<target name="compile" depends="prepare"
description="Compiles the source code">
- <javac srcdir="${src.dir}"
+ <javac source="1.5" target="1.5" srcdir="${src.dir}"
destdir="${build.dir}"
debug="${build.debug}">
<classpath refid="project.classpath"/>
@@ -47,7 +47,7 @@
<target name="compile-sample" depends="prepare"
description="Compiles the sample code">
- <javac srcdir="sample"
+ <javac source="1.5" target="1.5" srcdir="sample"
destdir="${build.dir}"
debug="${build.debug}">
<classpath refid="project.classpath"/>
@@ -57,7 +57,7 @@
<target name="compile-tests" depends="compile"
if="junit.available"
description="Compiles the test code">
- <javac srcdir="${test.dir}"
+ <javac source="1.5" target="1.5" srcdir="${test.dir}"
destdir="${build.dir}"
debug="${build.debug}">
<classpath refid="project.classpath"/>

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Aug 29 13:26:09 CEST 2008 - mvyskocil@suse.cz
- source=1.5 -target=1.5
- bzipped source code
- removed the gcj support
- removed a javadoc scripplets
-------------------------------------------------------------------
Fri Mar 14 09:49:46 CET 2008 - mvyskocil@suse.cz

View File

@@ -2,40 +2,37 @@
# spec file for package jdepend (Version 2.9.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
# icecream 0
%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
%define section free
Name: jdepend
Version: 2.9.1
Release: 1
Release: 72
Summary: Java Design Quality Metrics
License: BSD 3-Clause
Url: http://www.clarkware.com/
Group: Development/Libraries/Java
Source0: %{url}software/%{name}-%{version}.zip
Source0: %{url}software/%{name}-%{version}.tar.bz2
Patch0: jdepend-target15.patch
BuildRequires: ant
%if %defined suse_version
BuildRequires: unzip
BuildRequires: java-devel
%endif
%if ! %{gcj_support}
BuildArch: noarch
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %{gcj_support}
BuildRequires: java-gcj-compat-devel
Requires(post): java-gcj-compat
Requires(postun): java-gcj-compat
%endif
%description
JDepend traverses a set of Java class and source file directories and
@@ -47,10 +44,9 @@ and control package dependencies.
%package javadoc
License: BSD 3-Clause
Summary: Javadoc for jdepend
Group: Development/Libraries/Java
Requires(post): /bin/rm /bin/ln
Requires(postun): /bin/rm
%description javadoc
JDepend traverses a set of Java class and source file directories and
@@ -64,6 +60,7 @@ This package contains the javadoc documentation for JDepend.
%package demo
License: BSD 3-Clause
Summary: Demonstration and sample files for jdepend
Group: Development/Libraries/Java
Requires: %{name} = %{version}-%{release}
@@ -85,6 +82,7 @@ This package contains demonstration and sample files for JDepend.
find . -name "*.jar" -exec rm -f {} \;
# fix strange permissions
find . -type d -exec chmod 755 {} \;
%patch0 -b .target15
%build
ant jar javadoc
@@ -98,62 +96,36 @@ install -m 644 dist/%{name}-%{version}.jar \
# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
rm -rf docs/api
# demo
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -pr sample $RPM_BUILD_ROOT%{_datadir}/%{name}
%if %{gcj_support}
%{_bindir}/aot-compile-rpm
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%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
%files
%defattr(-,root,root)
%doc CHANGES README LICENSE
%{_javadir}/*
%if %{gcj_support}
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.*
%endif
%files javadoc
%defattr(-,root,root)
%doc docs
%{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}
%doc %{_javadocdir}/%{name}
%files demo
%defattr(-,root,root)
%{_datadir}/%{name}
%changelog
* Fri Aug 29 2008 mvyskocil@suse.cz
- source=1.5 -target=1.5
- bzipped source code
- removed the gcj support
- removed a javadoc scripplets
* Fri Mar 14 2008 mvyskocil@suse.cz
- merged with jpackage 1.7:
- update to version 2.9.1