SPECS: jrexx.spec (NEW) - new, based on jpackage
glen
glen at pld-linux.org
Sun Dec 2 16:31:37 CET 2007
Author: glen Date: Sun Dec 2 15:31:37 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new, based on jpackage
---- Files affected:
SPECS:
jrexx.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/jrexx.spec
diff -u /dev/null SPECS/jrexx.spec:1.1
--- /dev/null Sun Dec 2 16:31:37 2007
+++ SPECS/jrexx.spec Sun Dec 2 16:31:32 2007
@@ -0,0 +1,91 @@
+# $Revision$, $Date$
+%include /usr/lib/rpm/macros.java
+Summary: Automaton based regluar expression API for Java
+Name: jrexx
+Version: 1.1.1
+Release: 0.1
+License: LGPL
+Group: Development/Languages/Java
+URL: http://www.karneim.com/jrexx/
+Source0: http://dl.sourceforge.net/jrexx/%{name}-%{version}-src.zip
+# Source0-md5: e54e1dc8454472ef2706bc21768df103
+Source1: %{name}-build.xml
+BuildRequires: ant >= 0:1.5.4
+BuildRequires: jpackage-utils >= 0:1.5.32
+BuildRequires: rpm-javaprov
+BuildRequires: rpmbuild(macros) >= 1.300
+%if %(locale -a | grep -q '^en_US$'; echo $?)
+BuildRequires: glibc-localedb-all
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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
+Summary: Javadoc for %{name}
+Group: Documentation
+Requires: jpackage-utils
+
+%description javadoc
+Documentation for %{name}.
+
+%prep
+%setup -q -T -c %{name}-%{version}
+unzip -q %{SOURCE0}
+cp %{SOURCE1} build.xml
+
+%build
+export LC_ALL=en_US # source code not US-ASCII
+%ant dist
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+# jars
+install -d $RPM_BUILD_ROOT%{_javadir}
+cp -a output/dist/lib/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
+ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+
+# javadoc
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+cp -a output/dist/jdoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post javadoc
+ln -nfs %{name}-%{version} %{_javadocdir}/%{name}
+
+%files
+%defattr(644,root,root,755)
+%{_javadir}/*.jar
+
+%files javadoc
+%defattr(644,root,root,755)
+%{_javadocdir}/%{name}-%{version}
+%ghost %{_javadocdir}/%{name}
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2007-12-02 15:31:32 glen
+- new, based on jpackage
+
================================================================
More information about the pld-cvs-commit
mailing list