%define pkg_ver %(echo %version | tr '.' '_') %define javahome /usr/lib/jvm/jdk-gcj Name: java-jfor Version: 0.7.2rc1 Release: 2mamba Summary: XSL-FO to RTF converter Group: Development/Libraries/Java Vendor: openmamba Distribution: openmamba Packager: gil URL: http://sourceforge.net/projects/jfor/ Source: http://surfnet.dl.sourceforge.net/sourceforge/jfor/jfor-src-V_%{pkg_ver}.tar.gz License: Apache Software License 2.0 BuildRequires: apache-ant BuildRequires: apache-log4j BuildRequires: java-excalibur-avalon-logkit BuildRequires: java-junit3 BuildRequires: jpackage-utils BuildRequires: xerces-j2 # Cocoon 1.x modules will be compiled if this says "true": ${cocoon1.present} #BuildRequires: apache coocon BuildRoot: %{_tmppath}/%{name}-%{version}-root %description jfor ("Java FO to Rtf converter") converts XSL-FO documents to RTF format. The project is inactive, code has been donated to the Apache FOP project where it lives on, see http://xmlgraphics.apache.org/fop/ %package javadoc Group: Documentation Summary: Javadoc for %{name} %description javadoc jfor ("Java FO to Rtf converter") converts XSL-FO documents to RTF format. The project is inactive, code has been donated to the Apache FOP project where it lives on, see http://xmlgraphics.apache.org/fop/ This package contains javadoc for %{name}. %prep %setup -q -n jfor -D -T for j in $(find . -name "*.jar"); do mv $j $j.no done pushd lib ln -sf $(build-classpath xerces) xerces-1.2.3.jar ln -sf $(build-classpath excalibur/avalon-logkit) logkit-1.0.1.jar popd %build export JAVA_HOME=%javahome export CLASSPATH=$(build-classpath junit-3.8.2 excalibur/avalon-logkit log4j xerces) ant clean dist javadoc %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_javadir} install -pm 644 dist/lib/jfor.jar \ %{buildroot}%{_javadir}/jfor-%{version}.jar ( cd %{buildroot}%{_javadir} for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/} done ) mkdir -p %{buildroot}%{_javadocdir}/jfor-%{version} cp -pr build/docs/api/* %{buildroot}%{_javadocdir}/jfor-%{version} ln -sf jfor-%{version} %{buildroot}%{_javadocdir}/jfor %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_javadir}/jfor-%{version}.jar %{_javadir}/jfor.jar %doc legal %files javadoc %defattr(-,root,root) %{_javadocdir}/jfor-%{version} %{_javadocdir}/jfor %changelog * Sat Mar 05 2011 gil 0.7.2rc1-2mamba - rebuilt in devel - rebuilt with java-gcj-compat support * Tue Jun 09 2009 gil 0.7.2rc1-1mamba - package created by autospec