rpms/jrexx/devel jrexx-build.xml, NONE, 1.1 jrexx.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Matt Wringe (mwringe) fedora-extras-commits at redhat.com
Fri Jul 6 21:15:23 UTC 2007


Author: mwringe

Update of /cvs/pkgs/rpms/jrexx/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21958/devel

Modified Files:
	.cvsignore sources 
Added Files:
	jrexx-build.xml jrexx.spec 
Log Message:
Initial checkin



--- NEW FILE jrexx-build.xml ---
<project name="jrexx" default="dist">
  <description>
    This build file is used to compile and build jrexx.
  </description>

  <target name="init"/>

  <!-- directory definition -->
  <property name="src" 			value="${basedir}/src"/>
  <property name="doc" 			value="${basedir}/doc"/>
  <property name="jdoc" 		value="${basedir}/jdoc"/>
  <property name="bin" 			value="${basedir}/bin"/>
  <property name="ext" 			value="${basedir}/ext"/>
  <property name="examples"     	value="${basedir}/examples"/>
  <property name="test"                 value="${basedir}/test"/>
  <property name="config" 		value="${basedir}/config"/>
  <property name="archive" 		value="${basedir}/archive"/>
  <property name="externals.dir" 	value="${basedir}/externals"/>
  <property name="output" 		value="${basedir}/output"/>
  <property name="tmp" 	                value="${output}/tmp"/>
  <property name="tmp.doc"              value="${output}/tmp/doc"/>
  <property name="build" 		value="${output}/build"/>
  <property name="build.stub"  	        value="${build}/stub"/>
  <property name="dist" 		value="${output}/dist"/>

    <!--User properties file -->
  <property file="${basedir}/build.properties"/>

  <property name="dist.lib"  		value="${dist}/lib"/>
  <property name="dist.doc"  		value="${dist}/doc"/>
  <property name="dist.jdoc"  	        value="${dist}/jdoc"/>
  <property name="dist.etc"  		value="${dist}/etc"/>
  <property name="dist.bin"  		value="${dist}/bin"/>
  <property name="dist.config"          value="${dist}/config"/>
  <property name="dist.examples"        value="${dist}/examples"/>
  <property name="dist.test"            value="${dist}/test"/>
  <property name="build.stub"  	        value="${build}/stub"/>


  <!-- compile all compile.** targets -->
  <target name="compile"
    description="--> compile XAPool">
    <antcall target="compile.base"/>
  </target>

  <!-- compile all java classes -->
  <target name="compile.base">
    <mkdir dir="${build}/classes"/>
    <javac
      srcdir="${src}"
      destdir="${build}/classes"
      deprecation="${compiler.deprecation}"
      debug="${compiler.debug}"
      nowarn="${compiler.nowarn}"
      optimize="${compiler.optimize}">
      <include name="**/*.java"/>
    </javac>
  </target>


  <!-- create jrexx distribution -->
  <target name="dist" depends="init, compile"
    description="--> create a distribution of jrexx">
    <mkdir dir="${dist}"/>
    <antcall target="jar"/>
    <antcall target="jdoc"/>
  </target>



  <!-- populate distribution lib directory with required archives -->
  <target name="jar" depends="init">
    <mkdir dir="${dist.lib}"/>
    <jar jarfile="${dist.lib}/jrexx-1.1.1.jar" basedir="${build}/classes">
      <include name="**/*.class"/>
    </jar>
  </target>


  <!-- create javadoc  documentation -->
  <target name="jdoc" depends="init"
    description="--> generate Javadoc">
    <mkdir dir="${dist.jdoc}"/>
    <javadoc
      packagenames="com.karneim.*"
      destdir="${dist.jdoc}"
      windowtitle="jrexx Developer Documentation"
      author="true" version="true" use="true" >
      <doctitle><![CDATA[<h1>jrexx Developer Documentation</h1>]]></doctitle>
      <sourcepath>
        <pathelement path="${src}"/>
      </sourcepath>
    </javadoc>
  </target>

  <!-- clean all directory and files created by various targets -->
  <target name="clean" depends="init"
    description="--> delete generated files">
    <delete dir="${output}" />
  </target>

 </project>


--- NEW FILE jrexx.spec ---
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Summary:        Automaton based regluar expression API for Java
Name:           jrexx
Version:        1.1.1
Release:        3jpp.1%{?dist}
Epoch:          0
License:        LGPL
URL:            http://www.karneim.com/jrexx/
Group:          Development/Libraries
Source0:        http://gentoo.osuosl.org/distfiles/jrexx-1.1.1-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:        jrexx-build.xml
BuildRequires:  jpackage-utils >= 0:1.5.32
BuildRequires:  ant >= 0:1.5.4
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-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

%description javadoc
Javadocs for %{name}.

%prep
%setup -q -T -c %{name}-%{version}
unzip -q %{SOURCE0}
cp -p %{SOURCE1} build.xml

%build
ant dist

%install
rm -rf $RPM_BUILD_ROOT

# jars
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p output/dist/lib/%{name}-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && \
  for jar in *-%{version}.jar; \
    do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr output/dist/jdoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(0644,root,root,0755)
%{_javadir}/%{name}.jar
%{_javadir}/%{name}-%{version}.jar

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}
%doc %{_javadocdir}/%{name}-%{version}

%changelog
* Mon Feb 12 2007 Jeff Johnston <jjohnstn at redhat.com> - 0:1.1.1-3jpp.1
- Update based on Fedora review comments.

* Thu Jan 05 2006 Fernando Nasser <fnasser at redhat.com> - 0:1.1.1-3jpp
- First JPP 1.7 build

* Sun Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:1.1.1-2jpp
- Rebuild with ant-1.6.2

* Tue Feb 24 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.1.1-1jpp
- First JPackage release


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/jrexx/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	22 Jun 2007 19:32:27 -0000	1.1
+++ .cvsignore	6 Jul 2007 21:14:48 -0000	1.2
@@ -0,0 +1 @@
+jrexx-1.1.1-src.zip


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/jrexx/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	22 Jun 2007 19:32:27 -0000	1.1
+++ sources	6 Jul 2007 21:14:48 -0000	1.2
@@ -0,0 +1 @@
+e54e1dc8454472ef2706bc21768df103  jrexx-1.1.1-src.zip




More information about the scm-commits mailing list