Name: java-stringtemplate Version: 3.2 Release: 2mamba Summary: ANTLR StringTemplate Group: Development/Libraries/Java Vendor: openmamba Distribution: openmamba Packager: gil URL: http://www.stringtemplate.org/ Source0: http://www.stringtemplate.org/download/stringtemplate-%{version}.tar.gz Source1: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/antlr/stringtemplate/%{version}/stringtemplate-%{version}.pom Patch0: java-stringtemplate-3.2-javadoc.patch Patch1: java-stringtemplate-3.2-junit_test.patch License: BSD BuildRequires: apache-ant BuildRequires: apache-ant-antlr BuildRequires: apache-ant-junit BuildRequires: java-junit48 BuildRequires: jpackage-utils Requires: jpackage-utils BuildRoot: %{_tmppath}/%{name}-%{version}-root %description StringTemplate is a java template engine for generating source code, web pages, emails, or any other formatted text output. StringTemplate is particularly good at multi-targeted code generators, multiple site skins, and internationalization/localization. It evolved over years of effort developing jGuru.com. StringTemplate also generates the stringtemplate website: http://www.stringtemplate.org and powers the ANTLR v3 code generator. Its distinguishing characteristic is that unlike other engines, it strictly enforces model-view separation. Strict separation makes websites and code generators more flexible and maintainable; it also provides an excellent defense against malicious template authors. There are currently about 600 StringTemplate source downloads a month. %package javadoc Group: Documentation Summary: API documentation for %{name} %description javadoc ANTLR StringTemplate. This package contains javadoc for %{name}. %prep %setup -q -n stringtemplate-%{version} %patch0 #%patch1 for j in $(find . -name "*.jar"); do mv $j $j.no done pushd lib ln -sf $(build-classpath antlr) antlr-2.7.7.jar popd touch src/org/antlr/stringtemplate/language/*.g %build export CLASSPATH=$(build-classpath antlr junit48 ant/ant-antlr ant/ant-junit) ant jar ant javadocs -Dbuild.javadocs=docs/api -Dbuild.src=build/src -Dpackages= -Djavadocs.additionalparam= %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_javadir} mkdir -p %{buildroot}%{_datadir}/maven2/poms install -m 644 build/stringtemplate.jar \ %{buildroot}%{_javadir}/stringtemplate-%{version}.jar install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/maven2/poms/JPP-stringtemplate.pom %add_to_maven_depmap org.antlr stringtemplate %{version} JPP stringtemplate ( cd %{buildroot}%{_javadir}/ for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"` done ) mkdir -p %{buildroot}%{_javadocdir}/stringtemplate-%{version} cp -pR docs/api/* %{buildroot}%{_javadocdir}/stringtemplate-%{version} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post %update_maven_depmap %postun %update_maven_depmap %files %defattr(-,root,root) %{_javadir}/stringtemplate-%{version}.jar %{_javadir}/stringtemplate.jar %{_datadir}/maven2/poms %{_mavendepmapfragdir} %doc LICENSE.txt README.txt %files javadoc %defattr(-,root,root) %{_javadocdir}/stringtemplate-%{version} %changelog * Wed Dec 01 2010 gil 3.2-2mamba - rebuilt devel * Sat Sep 05 2009 gil 3.2-1mamba - update to 3.2 * Fri Feb 27 2009 gil 3.1-1mamba - package created by autospec