%define javahome /usr/lib/jvm/jdk-gcj Name: java-jrexx Version: 1.1.1 Release: 2mamba Summary: automaton based regluar expression API for Java Group: Development/Libraries/Java Vendor: openmamba Distribution: openmamba Packager: gil URL: http://www.karneim.com/jrexx/ Source0: http://gentoo.osuosl.org/distfiles/jrexx-%{version}-src.zip # http://www.jpackage.org/cgi-bin/viewvc.cgi/*checkout*/rpms/devel/jrexx/jrexx-build.xml?root=jpackage&revision=1.1.2.1&content-type=text%2Fplain&pathrev=JPACKAGE-1_6 Source1: java-jrexx-1.1.1-build.xml License: LGPL BuildRequires: apache-ant BuildRequires: java-gcj-compat BuildRequires: jpackage-utils BuildRoot: %{_tmppath}/%{name}-%{version}-root %description jrexx is a powerful easy-to-use regular expression API for textual pattern matching. Technically jrexx uses a minimized deterministic FSA (finite state automaton) and compiles the textual representation of the regular expression into such an automaton. Besides the usual pattern matching functionality, jrexx provides an introspection API for exploration of the automaton's structure by 'states' and 'transitions'. Since the automaton is deterministic and minimized the pattern matching alogorithm is extremly fast (compared to the java regular expression API in JDK1.4) and works with huge patterns and input texts. Since FSA can be handled as sets, jrexx also offers all basic set operations for complement, union, intersection and difference, which is not provided by other regex implementations (as far as we know). %package javadoc Group: Documentation Summary: Javadoc for %{name} %description javadoc jrexx is a powerful easy-to-use regular expression API for textual pattern matching. Technically jrexx uses a minimized deterministic FSA (finite state automaton) and compiles the textual representation of the regular expression into such an automaton. Besides the usual pattern matching functionality, jrexx provides an introspection API for exploration of the automaton's structure by 'states' and 'transitions'. Since the automaton is deterministic and minimized the pattern matching alogorithm is extremly fast (compared to the java regular expression API in JDK1.4) and works with huge patterns and input texts. Since FSA can be handled as sets, jrexx also offers all basic set operations for complement, union, intersection and difference, which is not provided by other regex implementations (as far as we know). This package contains documentation for %{name}. %prep %setup -q -T -c jrexx-%{version} unzip -q %{S:0} for j in $(find . -name "*.jar"); do mv $j $j.no done for c in $(find -name "*.class"); do rm -rf $c done cp -p %{S:1} build.xml %build export JAVA_HOME=%javahome ant dist %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_javadir} install -pm 644 output/dist/lib/jrexx-%{version}.jar %{buildroot}%{_javadir}/ ( cd %{buildroot}%{_javadir} for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"` done ) mkdir -p %{buildroot}%{_javadocdir}/jrexx-%{version} cp -pr output/dist/jdoc/* %{buildroot}%{_javadocdir}/jrexx-%{version} ln -s jrexx-%{version} %{buildroot}%{_javadocdir}/jrexx %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_javadir}/jrexx-%{version}.jar %{_javadir}/jrexx.jar %files javadoc %defattr(-,root,root) %{_javadocdir}/jrexx-%{version} %{_javadocdir}/jrexx %changelog * Sat Mar 26 2011 gil 1.1.1-2mamba - rebuilt with java-gcj-compat support * Tue Mar 03 2009 gil 1.1.1-1mamba - package created by autospec