Name: avalon-framework Version: 4.2.0 Release: 2ark Summary: Java components interfaces License: Apache Software License Url: http://avalon.apache.org/framework/ Group: Development/Libraries/Application Frameworks Source0: http://www.apache.org/dist/avalon/framework/v%version/avalon-framework-%version-src.tar.bz2 #Requires: xml-commons-apis Requires: xalan-j BuildRequires: ant BuildRequires: xerces-j BuildRequires: junit BuildRequires: avalon-logkit #BuildRequires: xml-commons-apis BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description The Avalon framework consists of interfaces that define relationships between commonly used application components, best-of-practice pattern enforcements, and several lightweight convenience implementations of the generic components. What that means is that we define the central interface Component. We also define the relationship (contract) a component has with peers, ancestors and children. This documentation introduces you to those patterns, interfaces and relationships. %package manual Summary: Manual for %{name} Group: Development/Libraries/Application Frameworks %description manual Documentation for %{name}. %package precompiled Summary: Precompiled binaries for %name Group: Libraries/Java %description precompiled %summary %prep rm -rf $RPM_BUILD_ROOT %setup -q -n %name # remove all binary libs find . -name "*.jar" -exec rm -f {} \; %build mkdir bin lib TOP=`pwd` export CLASSPATH=`ls %_javadir/libgcj*.jar`:%_javadir/logkit.jar:%_javadir/junit.jar:%_javadir/log4j.jar:$TOP/bin cd api/src javac -d $TOP/bin `find . -type f` cd ../../impl/src javac -d $TOP/bin `find . -type f` cd $TOP/bin jar cf ../lib/avalon-framework.jar . cd ../lib gcj-dbtool -n %name.db for i in *.jar; do aot-compile $i lib${i/.jar/.so} "$RPM_OPT_FLAGS -fPIC" gcj-dbtool -a %name.db $i lib${i/.jar/.so} done %install install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -d -m 755 $RPM_BUILD_ROOT`gcj-dbtool -p %_libdir`.d install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} install -m 644 lib/*.jar $RPM_BUILD_ROOT%{_javadir}/ install -m 644 lib/*.db $RPM_BUILD_ROOT`gcj-dbtool -p %_libdir`.d install -m 755 lib/*.so* $RPM_BUILD_ROOT%{_libdir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(0644,root,root,0755) %doc LICENSE.txt NOTICE.txt %{_javadir}/*.jar %files manual %defattr(0644,root,root,0755) %doc docs/* %files precompiled %defattr(0644,root,root,0755) %_libdir/*.so* %_libdir/*/classmap.db.d/* %changelog * Sat Aug 19 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 4.2.0-2ark - gcj 4.2 * Wed Feb 15 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 4.2.0-1ark - 4.2.0