packages java-laf-plugin.spec
      Pages: < 1 >  DOWNLOAD      
Name:          java-laf-plugin
Version:       0.1
Release:       1mamba
Summary:       Support for third-party components in look-and-feel libraries
Group:         System/Libraries/Java
Vendor:        openmamba
Distribution:  openmamba
Packager:      gil <puntogil@...>
URL:           https://laf-plugin.dev.java.net/
Source0:       https://laf-plugin.dev.java.net/files/documents/4261/50297/laf-plugin-all.zip
Source1:       java-laf-plugin-0.1-build.xml
License:       BSD, zlib
BuildRequires: apache-ant
BuildRequires: jpackage-utils
#BuildRequires: objectweb-asm2
Requires:      jpackage-utils
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%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
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.

This package contains javadoc for %{name}

%prep

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

%build
export CLASSPATH=$(build-classpath junit-3.8.2 asm2/asm2)
ant all

javadoc -d javadoc \
	`find src/org/jvnet/lafplugin/ -name \*.java`

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

mkdir -p %{buildroot}%{_javadir}
install -pm 644 drop/laf-plugin-50.jar \
	%{buildroot}%{_javadir}/laf-plugin.jar

mkdir -p %{buildroot}%{_javadocdir}/
cp -pr javadoc %{buildroot}%{_javadocdir}/laf-plugin-%{version}


%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

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

%files javadoc
%defattr(-,root,root)
%{_javadocdir}/laf-plugin-%{version}

%changelog
* Wed Apr 22 2009 gil <puntogil@...> 0.1-1mamba
- package created by autospec