OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [email protected]
  Module: openpkg-src                      Date:   30-Dec-2008 22:46:09
  Branch: HEAD                             Handle: 2008123021460702

  Added files:
    openpkg-src/libfa       libfa.patch libfa.spec

  Log:
    new package: libfa 0.3.5 (Finite Automaton Library)

  Summary:
    Revision    Changes     Path
    1.1         +11 -0      openpkg-src/libfa/libfa.patch
    1.1         +94 -0      openpkg-src/libfa/libfa.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/libfa/libfa.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 libfa.patch
  --- /dev/null 2008-12-30 22:46:02 +0100
  +++ libfa.patch       2008-12-30 22:46:09 +0100
  @@ -0,0 +1,11 @@
  +Index: src/internal.h
  +--- src/internal.h.orig      2008-12-24 05:47:26 +0100
  ++++ src/internal.h   2008-12-30 22:43:21 +0100
  +@@ -26,7 +26,6 @@
  + #define DEBUG
  + 
  + #include "list.h"
  +-#include "datadir.h"
  + 
  + #include <stdio.h>
  + #include <string.h>
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/libfa/libfa.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 libfa.spec
  --- /dev/null 2008-12-30 22:46:02 +0100
  +++ libfa.spec        2008-12-30 22:46:09 +0100
  @@ -0,0 +1,94 @@
  +##
  +##  libfa.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##
  +##  Permission to use, copy, modify, and distribute this software for
  +##  any purpose with or without fee is hereby granted, provided that
  +##  the above copyright notice and this permission notice appear in all
  +##  copies.
  +##
  +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  +##  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.
  +##
  +
  +#   package information
  +Name:         libfa
  +Summary:      Finite Automaton Library
  +URL:          http://augeas.net/libfa/
  +Vendor:       David Lutterkort
  +Packager:     OpenPKG Foundation e.V.
  +Distribution: OpenPKG Community
  +Class:        EVAL
  +Group:        RegExp
  +License:      LGPL
  +Version:      0.3.5
  +Release:      20081230
  +
  +#   list of sources
  +Source0:      http://augeas.net/download/augeas-%{version}.tar.gz
  +Patch0:       libfa.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20060823, gcc, make
  +PreReq:       OpenPKG, openpkg >= 20060823
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    Libfa allows you to perform certain operations on regular languages,
  +    not just regular expressions. For example, if you have to decide
  +    if two regular languages have words in common. Computations
  +    like these require working with finite automata, one of the
  +    theoretical underpinnings of regular expressions. Libfa is largely a
  +    reimplementation of Java's dk.brics.automaton in C.
  +
  +%track
  +    prog libfa = {
  +        version   = %{version}
  +        url       = http://augeas.net/download/
  +        regex     = augeas-(__VER__)\.tar\.gz
  +    }
  +
  +%prep
  +    %setup -q -n augeas-%{version}
  +    %patch -p0
  +
  +%build
  +    CC="%{l_cc}" \
  +    CFLAGS="%{l_cflags -O}" \
  +    CPPFLAGS="%{l_cppflags}" \
  +    LDFLAGS="%{l_ldflags}" \
  +    ./configure \
  +        --prefix=%{l_prefix} \
  +        --enable-compile-warnings=no \
  +        --disable-shared
  +    cd src && %{l_make} %{l_mflags} libfa.la
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/include \
  +        $RPM_BUILD_ROOT%{l_prefix}/lib
  +    %{l_shtool} install -c -m 644 \
  +        src/fa.h $RPM_BUILD_ROOT%{l_prefix}/include/
  +    %{l_shtool} install -c -m 644 \
  +        src/.libs/libfa.a $RPM_BUILD_ROOT%{l_prefix}/lib/
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to