%define javahome /usr/lib/jvm/java Name: java-ognl Version: 2.6.9 Release: 4mamba Summary: Object-Graph Navigation Language Group: Development/Libraries/Java Vendor: openmamba Distribution: openmamba Packager: gil URL: http://www.opensymphony.com/ognl/ # cvs -d :pserver:USERNAME@cvs.dev.java.net:/cvs login # cvs -d :pserver:USERNAME@cvs.dev.java.net:/cvs checkout ognl Source0: ognl-%{version}-src-cvs.tar.gz Source1: http://repo1.maven.org/maven2/ognl/ognl/%{version}/ognl-%{version}.pom Source2: java-ognl-%{version}-osbuild.xml License: Apache Software License, BSD, OpenSymphony Software License Version 1.1 BuildRequires: ant-contrib BuildRequires: apache-ant BuildRequires: apache-ant-trax BuildRequires: apache-ant-junit BuildRequires: apache-ant-nodeps BuildRequires: apache-fop == 0.95 BuildRequires: java-junit3 BuildRequires: java-openjdk BuildRequires: javacc BuildRequires: javassist311 BuildRequires: jpackage-utils Requires: jpackage-utils BuildRoot: %{_tmppath}/%{name}-%{version}-root %description OGNL stands for Object-Graph Navigation Language; it is an expression language for getting and setting properties of Java objects. You use the same expression for both getting and setting the value of a property. The ognl.Ognl class contains convenience methods for evaluating OGNL expressions. You can do this in two stages, parsing an expression into an internal form and then using that internal form to either set or get the value of a property; or you can do it in a single stage, and get or set a property using the String form of the expression directly. Many people have asked exactly what OGNL is good for. Several of the uses to which OGNL has been applied are: * A binding language between GUI elements (textfield, combobox, etc.) to model objects. Transformations are made easier by OGNL's TypeConverter mechanism to convert values from one type to another (String to numeric types, for example). * A data source language to map between table columns and a TableModel. * A binding language between web components and the underlying model objects (WebOGNL, Tapestry and WebWork). * A more expressive replacement for the property-getting language used by the Jakarta Commons BeanUtils package (which only allows simple property navigation and rudimentary indexed properties). Most of what you can do in Java is possible in OGNL, plus other extras such as list projection and selection and lambda expressions. %package javadoc Group: Documentation Summary: Javadoc for %{name} %description javadoc Object-Graph Navigation Language. This package contains javadoc for %{name}. %prep %setup -q -n ognl for j in $(find . -name "*.jar"); do mv $j ${j}.no done cp %{SOURCE2} osbuild.xml pushd lib ln -sf $(build-classpath javacc) javacc.jar ln -sf $(build-classpath javassist311) javassist.jar ln -sf $(build-classpath junit-3.8.2) junit.jar ln -sf $(build-classpath ant-contrib) ant-contrib-0.3.jar popd %build export JAVA_HOME=%javahome export CLASSPATH=$(build-classpath fop javacc javassist311 junit-3.8.2 ant/ant-junit ant/ant-nodeps ant/ant-trax ant-contrib) ant jar javadocs junit.report %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_javadir} mkdir -p %{buildroot}%{_datadir}/maven2/poms install -m 0644 build/ognl-%{version}.jar \ %{buildroot}%{_javadir}/ognl-%{version}.jar ( cd %{buildroot}%{_javadir} for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"` done ) install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/maven2/poms/JPP-ognl.pom %add_to_maven_depmap ognl ognl %{version} JPP ognl mkdir -p %{buildroot}%{_javadocdir}/ognl-%{version} cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/ognl-%{version} ln -s ognl-%{version} %{buildroot}%{_javadocdir}/ognl %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post %update_maven_depmap %postun %update_maven_depmap %files %defattr(-,root,root) %{_javadir}/ognl-%{version}.jar %{_javadir}/ognl.jar %{_datadir}/maven2/poms %{_mavendepmapfragdir} %doc LICENSE.txt %files javadoc %defattr(-,root,root) %{_javadocdir}/ognl-%{version} %{_javadocdir}/ognl %changelog * Fri Mar 11 2011 gil 2.6.9-4mamba - rebuilt with java-openjdk support * Fri Dec 10 2010 gil 2.6.9-3mamba - rebuilt devel * Mon Nov 15 2010 gil 2.6.9-2mamba - add maven2 pom * Sat Oct 10 2009 gil 2.6.9-1mamba - package created by autospec