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

jpackage jpackage at ryu.zarb.org
Wed Jun 23 23:01:17 CEST 2010


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

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

--- NEW FILE: laf-plugin-build.xml ---
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="laf-plugin" default="all">

	<!-- Compiler options -->
	<property name="compiler.debug" value="on" />
	<property name="compiler.generate.no.warnings" value="off" />
	<property name="compiler.args" value="" />
	<property name="compiler.max.memory" value="128m" />
	<patternset id="compiler.excluded" />
	<patternset id="compiler.resources">
		<include name="**/?*.properties" />
		<include name="**/?*.xml" />
		<include name="**/?*.gif" />
		<include name="**/?*.png" />
		<include name="**/?*.jpeg" />
		<include name="**/?*.jpg" />
		<include name="**/?*.html" />
		<include name="**/?*.dtd" />
		<include name="**/?*.license" />
		<include name="**/?*.tld" />
		<include name="**/?*.ttf" />
	</patternset>
	
	<dirname property="module.laf-plugin.basedir" file="${ant.file}" />

	<property name="compiler.args.laf-plugin" value="${compiler.args}" />

	<property name="laf-plugin.build.dir" value="${module.laf-plugin.basedir}/build/" />
	<property name="laf-plugin.output.dir" value="${laf-plugin.build.dir}/classes50" />
	<property name="laf-plugin.drop.dir" value="${module.laf-plugin.basedir}/drop" />
	<property name="laf-plugin.src.dir" value="${module.laf-plugin.basedir}/src/" />

	<path id="laf-plugin.module.bootclasspath">
		<!-- Paths to be included in compilation bootclasspath -->
	</path>

	<path id="laf-plugin.module.classpath">
		<pathelement location="${laf-plugin.drop.dir}/nanoxml-lite-2.2.3.jar" />
	</path>

	<patternset id="excluded.from.module.laf-plugin" />

	<patternset id="excluded.from.compilation.laf-plugin">
		<patternset refid="excluded.from.module.laf-plugin" />
		<patternset refid="compiler.excluded" />
	</patternset>

	<path id="laf-plugin.module.sourcepath">
		<dirset dir="${laf-plugin.src.dir}">
			<include name="org/jvnet/lafplugin" />
		</dirset>
	</path>

	<target name="compile.module.laf-plugin" depends="compile.module.laf-plugin.production" description="compile module laf-plugin" />

	<target name="compile.module.laf-plugin.production" description="compile module laf-plugin production classes">
		<mkdir dir="${laf-plugin.output.dir}" />
		<javac destdir="${laf-plugin.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memoryMaximumSize="${compiler.max.memory}" fork="true" >
			<compilerarg line="${compiler.args.laf-plugin}" />
			<bootclasspath refid="laf-plugin.module.bootclasspath" />
			<classpath refid="laf-plugin.module.classpath" />
			<src refid="laf-plugin.module.sourcepath" />
			<patternset refid="excluded.from.compilation.laf-plugin" />
		</javac>
		<copy todir="${laf-plugin.output.dir}">
			<fileset dir="${laf-plugin.src.dir}">
				<patternset refid="compiler.resources" />
				<type type="file" />
				<patternset refid="excluded.from.compilation.laf-plugin" />
			</fileset>
		</copy>
	</target>

	<target name="clean.module.laf-plugin" description="cleanup module">
		<delete dir="${laf-plugin.output.dir}" />
	</target>

	<target name="init" description="Build initialization">
		<!-- Perform any build initialization in this target -->
	</target>

	<target name="jar-bin" description="create runtime jar">
		<delete file="${laf-plugin.drop.dir}/laf-plugin-50.jar" />
		<jar compress="true" destfile="${laf-plugin.drop.dir}/laf-plugin-50.jar" manifest="${laf-plugin.src.dir}/META-INF/MANIFEST.MF">
			<fileset dir="${laf-plugin.output.dir}/" excludes="test/**" />
			<fileset dir="${module.laf-plugin.basedir}/" includes="resources/**" />
		</jar>
	</target>

	<target name="distro" description="create distribution">
		<delete file="${module.laf-plugin.basedir}/laf-plugin-all.zip" />
		<zip destfile="${module.laf-plugin.basedir}/laf-plugin-all.zip" compress="true">
			<fileset dir="${module.laf-plugin.basedir}">
				<include name="src/**" />
				<include name="drop/**" />
				<include name="build*.xml" />
			</fileset>
		</zip>
	</target>

	<target name="jar" depends="jar-bin" description="create all jars" />

	<target name="clean" depends="clean.module.laf-plugin" description="cleanup all" />

	<target name="all" depends="init, clean, compile.module.laf-plugin, jar" description="build all" />

    <target name="javadoc" depends="init"
            description="Creates the API documentation using JavaDoc." >
        <mkdir dir="api"      />
        <javadoc
            sourcepath="src"
            packagenames="org.jvnet.lafplugin"
            destdir="api"
            encoding="UTF-8"
            access="protected"
            author="true"
            version="true"
            use="true"
            windowtitle="laf-plugin 1.0 API"
            doctitle="laf-plugin 1.0 API">
         </javadoc>
    </target>

</project>

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/laf-plugin/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	23 Jun 2010 20:57:20 -0000	1.1
--- sources	23 Jun 2010 21:01:14 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ a678a18f3d85adc03604d235e56f1242  laf-plugin-all.zip

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/laf-plugin/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	23 Jun 2010 20:57:20 -0000	1.1
--- .cvsignore	23 Jun 2010 21:01:14 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ laf-plugin-all.zip

--- NEW FILE: laf-plugin.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-plugin
Version:        1.0
Release:        6%{?dist}
Summary:        Generic plugin framework for Java look-and-feels

Group:          System Environment/Libraries
License:        BSD and zlib
URL:            https://laf-plugin.dev.java.net/
Source0:        https://laf-plugin.dev.java.net/files/documents/4261/50297/%{name}-all.zip
Source1:        %{name}-build.xml
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
BuildRequires:  asm2

Requires:       java >= 0:1.6.0
Requires:       jpackage-utils >= 0.5.0.0

%description
The goal of this project is to provide a generic plugin framework for 
look-and-feels and define the interface of a common kind of plugins - 
the component plugins.

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

%description javadoc
%{summary}.

%prep
%setup -q -c %{name}-%{version}
cp %{SOURCE1} build.xml
rm -rf drop/*

%build
%{ant} all javadoc

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

install -m644 drop/%{name}-50.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
* Wed Jun 23 2010 Ralph Apel <r.apel at r-apel.de> - 1.0-7
- Adapt to JPP6

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Sun Nov 16 2008 <mycae(a!t)yahoo.com> 1.0-4
- Fix changelog version numbering to (programver-specver)
- Change "ZLIB" to "zlib"

* Sun Nov 16 2008 <mycae(a!t)yahoo.com> 1.0-3
- Remove doc macro, fix licence to include zlib. 
- Bump up version, due to maintainer change.

* Sat Nov 01 2008 <mycae(a!t)yahoo.com> 1.0-2
- "Touch" build, as S. Wesp marked bug 461407 as (WONTFIX),
   I can maintain package as required.	

* Sun Sep 07 2008 Simon Wesp <cassmodiah at fedoraproject.org> 1.0-1
- Initial Release




More information about the JPackage-commits mailing list