[Jpackage-commits] dist/laf-widget/devel .cvsignore, 1.1, 1.2 laf-widget-build.patch, NONE, 1.1 laf-widget.spec, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Thu Jun 24 09:01:15 CEST 2010


Update of /home/projects/jpackage/cvs/dist/laf-widget/devel
In directory ryu.zarb.org:/tmp/cvs-serv21156/devel

Modified Files:
	.cvsignore sources 
Added Files:
	laf-widget-build.patch laf-widget.spec 
Log Message:
Import laf-widget into devel

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/laf-widget/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	24 Jun 2010 06:58:53 -0000	1.1
--- .cvsignore	24 Jun 2010 07:01:11 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ laf-widget-all.zip

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/laf-widget/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	24 Jun 2010 06:58:53 -0000	1.1
--- sources	24 Jun 2010 07:01:11 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ d015a8568cd383c1a24b8441c49a64e8  laf-widget-all.zip

--- NEW FILE: laf-widget-build.patch ---
--- build.xml.sav	2009-09-16 14:43:54.000000000 +0200
+++ build.xml	2010-06-16 09:38:23.000000000 +0200
@@ -186,4 +186,22 @@
 	<target name="clean" depends="clean.module.laf-widget" description="cleanup all" />
 
 	<target name="all" depends="timestamp, init, clean, compile.module.laf-widget, jar" description="build all" />
-</project>
\ No newline at end of file
+
+    <target name="javadoc" depends="init"
+            description="Creates the API documentation using JavaDoc." >
+        <mkdir dir="api"      />
+        <javadoc
+            sourcepath="src"
+            packagenames="org.jvnet.lafwidget.*"
+            destdir="api"
+            encoding="UTF-8"
+            access="protected"
+            author="true"
+            version="true"
+            use="true"
+            windowtitle="laf-widget 4.3 API"
+            doctitle="laf-widget 4.3 API">
+         </javadoc>
+    </target>
+
+</project>

--- NEW FILE: laf-widget.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:           laf-widget
Version:        4.3
Release:        1%{?dist}
Summary:        Support for common "feel" widgets in look-and-feel libraries

Group:          System Environment/Libraries
License:        BSD and zlib
URL:            https://laf-widget.dev.java.net/
Source0:        https://laf-widget.dev.java.net/files/documents/5097/135952/laf-widget-all.zip
Patch0:         laf-widget-build.patch

BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  java-devel >= 0:1.6.0
BuildRequires:  jpackage-utils >= 0:5.0.0
BuildRequires:  ant >= 0:1.7.1
BuildRequires:  asm2

Requires:  java >= 0:1.6.0
Requires:  jpackage-utils >= 0:5.0.0
Requires:  asm2

%description
The goal of this project is to provide support for and base
set of additional behaviour and widgets in look-and-feels. 

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

%description javadoc
%{summary}.

%prep
%setup -q -c %{name}-%{version}
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done
%patch0 -b .sav0

ln -s %{_javadir}/asm2-all.jar lib/asm-all-2.2.2.jar

%build
%{ant} -Djdk.home=%{_jvmdir}/java all javadoc


%install
rm -rf %{buildroot}
install -d -m 755 $RPM_BUILD_ROOT%{_javadir} \
        $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}

install -m644 drop/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar

cp -pr api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cd $RPM_BUILD_ROOT%{_javadocdir}
ln -s %{name}-%{version} %{name}

%clean
rm -rf %{buildroot}

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

%files javadoc
%defattr(644,root,root,755)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}

%changelog
* Thu Jun 24 2010 Ralph Apel <r.apel at r-apel.de> - 4.3-1
- adapt to JPP6





More information about the JPackage-commits mailing list