Name: java-regexp Version: 1.5 Release: 1mamba Summary: simple regular expressions API Group: Development/Libraries/Java Vendor: openmamba Distribution: openmamba Packager: gil URL: http://jakarta.apache.org/regexp/ Source: http://apache.fis.uniroma2.it/jakarta/regexp/source/jakarta-regexp-%{version}.tar.gz License: Apache Software License 2.0 BuildRequires: apache-ant #BuildRequires: java-gcj-compat BuildRequires: jpackage-utils BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Jakarta Regexp is a 100% Pure Java Regular Expression package that was graciously donated to the Apache Software Foundation by Jonathan Locke. He originally wrote this software back in 1996 and it has stood up quite well to the test of time. It includes complete Javadoc documentation as well as a simple applet for visual debugging and testing suite for compatibility. This package is intended to be an answer to a question we commonly hear in the Java world: "Why isn't there a decent regular expression package available for Java under a BSD-Style (ie: Apache) license?" %package javadoc Group: Documentation Summary: Javadoc for %{name} %description javadoc Jakarta Regexp is a 100% Pure Java Regular Expression package that was graciously donated to the Apache Software Foundation by Jonathan Locke. He originally wrote this software back in 1996 and it has stood up quite well to the test of time. This package contains Javadoc for %{name}. %prep %setup -q -n jakarta-regexp-%{version} find . -name "*.jar" -exec rm -f {} \; %build mkdir lib ant -Djakarta-site2.dir=. jar javadocs %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d -m 755 %{buildroot}%{_javadir} install -m 644 build/*.jar %{buildroot}%{_javadir}/regexp-%{version}.jar (cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) install -d -m 755 %{buildroot}%{_javadocdir}/regexp-%{version} ln -s regexp-%{version} %{buildroot}%{_javadocdir}/regexp cp -r docs/api/* %{buildroot}%{_javadocdir}/regexp-%{version} rm -rf docs/api #%{_bindir}/aot-compile-rpm %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_javadir}/regexp-%{version}.jar %{_javadir}/regexp.jar %doc LICENSE README %files javadoc %defattr(-,root,root) %{_javadocdir}/regexp-%{version} %ghost %{_javadocdir}/regexp %changelog * Thu Feb 19 2009 gil 1.5-1mamba - package created by autospec