[Jpackage-commits] rpms/free/substance substance-build.patch, NONE, 1.1 substance.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Thu Jun 24 12:12:50 CEST 2010


Update of /home/projects/jpackage/cvs/rpms/free/substance
In directory ryu.zarb.org:/tmp/l88DIqhy4K/rpms/free/substance

Added Files:
	substance-build.patch substance.spec 
Log Message:
5.3-1.jpp6

--- NEW FILE: substance-build.patch ---
--- build.xml.sav	2009-09-27 22:49:11.000000000 +0200
+++ build.xml	2010-06-22 21:05:46.000000000 +0200
@@ -161,7 +161,7 @@
 	</target>
 
 	<!-- Augment tasks definition -->
-	<property name="augment-class-path" value="${substance.lib.dir}/laf-widget.jar;${substance.lib.dir}/asm-all-2.2.2.jar" />
+	<property name="augment-class-path" value="${substance.lib.dir}/laf-widget.jar:${substance.lib.dir}/asm-all-2.2.2.jar" />
 
 	<taskdef name="delegate-augment" classname="org.jvnet.lafwidget.ant.AugmentTask" classpath="${augment-class-path}" />
 	<taskdef name="laf-augment" classname="org.jvnet.lafwidget.ant.AugmentMainTask" classpath="${augment-class-path}" />
@@ -347,4 +347,11 @@
 	</target>
 
 	<target name="all" depends="timestamp, init, clean, compile.module.substance, jar" description="build all" />
-</project>
\ No newline at end of file
+
+        <target name="javadoc" depends="init">
+            <javadoc sourcepath="${substance.src.dir}" destdir="docs">
+                 <classpath refid="substance.module.classpath" />
+            </javadoc>
+        </target>
+
+</project>

--- NEW FILE: substance.spec ---
# Copyright (c) 2000-2010, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           substance
Version:        5.3
Release:        1%{?dist}
Summary:        Substance Look and Feel
License:        BSD
Group:          Development/Libraries/Java
Url:            https://substance.dev.java.net/
Source0:        substance-5.3.tgz
# svn export https://substance.dev.java.net/svn/substance/tags/release_5_3_reykjavik substance-5.3
Patch0:         substance-build.patch

BuildRequires:  java-devel >= 0.1.6.0
BuildRequires:  jpackage-utils >= 0:5.0.0
BuildRequires:  ant
BuildRequires:  ant-nodeps
BuildRequires:  asm2
BuildRequires:  fest-assert
BuildRequires:  fest-reflect
BuildRequires:  fest-swing
BuildRequires:  fest-util
BuildRequires:  jgoodies-forms
BuildRequires:  laf-plugin
BuildRequires:  laf-widget
BuildRequires:  swingx
Requires:  java >= 0:1.6.0
Requires:  jgoodies-forms
Requires:  laf-plugin
Requires:  laf-widget
Requires:  swingx
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
A configurable and customizable production-quality Java look and feel
library for Swing applications.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Documentation/HTML

%description javadoc
%{summary}.

%package manual
Summary:        Documents for %{name}
Group:          Documentation/HTML

%description manual
%{summary}.

%prep
%setup -q 
%patch0 -b .sav
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done
ln -sf %{_javadir}/asm2-all.jar       lib/asm-all-2.2.2.jar
ln -sf %{_javadir}/jgoodies-forms.jar lib/forms-1.2.0.jar
ln -sf %{_javadir}/laf-plugin.jar     lib/laf-plugin-50.jar
ln -sf %{_javadir}/laf-widget.jar     lib
ln -sf %{_javadir}/swingx.jar         lib
ln -sf %{_javadir}/fest/assert.jar    lib/test/fest-assert-1.1.jar
ln -sf %{_javadir}/fest/reflect.jar   lib/test/fest-reflect-1.1.jar
ln -sf %{_javadir}/fest/swing.jar     lib/test/fest-swing-1.2a3.jar
ln -sf %{_javadir}/fest/util.jar      lib/test/fest-util-1.1.jar

%build
export OPT_JAR_LIST="ant/ant-nodeps"
%ant \
        -Djdk.home=%{_jvmdir}/java all javadoc

%install
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"

# jar
%__install -dm 755 %{buildroot}%{_javadir}
%__install -m 644 drop/%{name}.jar \
        %{buildroot}%{_javadir}/%{name}-%{version}.jar
%__install -m 644 drop/%{name}-lite.jar \
        %{buildroot}%{_javadir}/%{name}-lite-%{version}.jar
%__install -m 644 drop/%{name}-lite-feel.jar \
        %{buildroot}%{_javadir}/%{name}-lite-feel-%{version}.jar
%__install -m 644 drop/%{name}-tools.jar \
        %{buildroot}%{_javadir}/%{name}-tools-%{version}.jar
%__install -m 644 drop/%{name}-tst.jar \
        %{buildroot}%{_javadir}/%{name}-tst-%{version}.jar
%__install -m 644 drop/%{name}-tst-lite.jar \
        %{buildroot}%{_javadir}/%{name}-tst-lite-%{version}.jar
pushd %{buildroot}%{_javadir}
        for jar in *-%{version}*; do
                ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
        done
popd

# javadoc
%__install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
%__cp -pr docs/* \
        %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} \
        %{buildroot}%{_javadocdir}/%{name} # ghost symlink

%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%{_javadir}/*

%files javadoc
%defattr(-,root,root)
%doc %{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}

%files manual
%defattr(-,root,root)
%doc www/*

%changelog
* Wed Jun 23 2010 Ralph Apel <r.apel at r-apel.de> - 5.3-1.jpp6
- Adapt to JPP6
* Wed Feb 24 2010 Toni Graffy <toni at links2linux.de> - 5.3-0.pm.1
- update to 5.3 (Reykjavik)
* Fri Jun 05 2009 Toni Graffy <toni at links2linux.de> - 5.2_01-0.pm.1
- update to 5.2_01 (Quebec)
* Mon Feb 09 2009 Toni Graffy <toni at links2linux.de> - 5.1-0.pm.1
- update to 5.1 (Panama)
- added sub-package substance-doc
* Thu Nov 13 2008 Toni Graffy <toni at links2linux.de> - 5.0_01-0.pm.1
- initial release 5.0_01




More information about the JPackage-commits mailing list