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

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src openpkg-web openpkg$ Date:   27-Nov-2003 19:08:27
  Branch: HEAD                             Handle: 2003112718082502

  Added files:
    openpkg-re/vcheck       vc.tre
    openpkg-src/tre         tre.patch tre.spec
  Modified files:
    openpkg-web             news.txt

  Log:
    new package: tre 0.6.2 (POSIX RegEx Library with Fuzzy Matching)

  Summary:
    Revision    Changes     Path
    1.1         +9  -0      openpkg-re/vcheck/vc.tre
    1.1         +19 -0      openpkg-src/tre/tre.patch
    1.1         +103 -0     openpkg-src/tre/tre.spec
    1.7577      +1  -0      openpkg-web/news.txt
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-re/vcheck/vc.tre
  ============================================================================
  $ cvs diff -u -r0 -r1.1 vc.tre
  --- /dev/null 2003-11-27 19:08:25.000000000 +0100
  +++ vc.tre    2003-11-27 19:08:25.000000000 +0100
  @@ -0,0 +1,9 @@
  +config = {
  +}
  +
  +prog tre = {
  +  version   = 0.6.2
  +  url       = http://laurikari.net/tre/download.html
  +  regex     = tre-(__VER__)\.tar\.bz2
  +}
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/tre/tre.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 tre.patch
  --- /dev/null 2003-11-27 19:08:27.000000000 +0100
  +++ tre.patch 2003-11-27 19:08:27.000000000 +0100
  @@ -0,0 +1,19 @@
  +Index: lib/tre-match-backtrack.c
  +--- lib/tre-match-backtrack.c.orig   2003-11-23 20:33:43.000000000 +0100
  ++++ lib/tre-match-backtrack.c        2003-11-27 18:26:05.000000000 +0100
  +@@ -207,6 +207,7 @@
  + #endif /* TRE_MULTIBYTE */
  + #ifdef TRE_WCHAR
  +   const wchar_t *str_wide = string;
  ++#endif /* TRE_WCHAR */
  + #ifdef TRE_MBSTATE
  +   mbstate_t mbstate;
  + #endif /* TRE_MBSTATE */
  +@@ -250,7 +251,6 @@
  + #ifdef TRE_MBSTATE
  +   memset(&mbstate, '\0', sizeof(mbstate));
  + #endif /* TRE_MBSTATE */
  +-#endif /* TRE_WCHAR */
  + 
  +   if (!mem)
  +     return REG_ESPACE;
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/tre/tre.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 tre.spec
  --- /dev/null 2003-11-27 19:08:27.000000000 +0100
  +++ tre.spec  2003-11-27 19:08:27.000000000 +0100
  @@ -0,0 +1,103 @@
  +##
  +##  tre.spec -- OpenPKG RPM Specification
  +##  Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  +##  Copyright (c) 2000-2003 Ralf S. Engelschall <[EMAIL PROTECTED]>
  +##  Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.com/>
  +##
  +##  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:         tre
  +Summary:      POSIX RegEx Library with Fuzzy Matching
  +URL:          http://laurikari.net/tre/
  +Vendor:       Ville Laurikari
  +Packager:     The OpenPKG Project
  +Distribution: OpenPKG [EVAL]
  +Group:        Text
  +License:      GPL
  +Version:      0.6.2
  +Release:      20031127
  +
  +#   package options
  +%option       with_agrep  no
  +
  +#   list of sources
  +Source0:      http://laurikari.net/tre/tre-%{version}.tar.bz2
  +Patch0:       tre.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20030103
  +PreReq:       OpenPKG, openpkg >= 20030103
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    TRE is a lightweight, robust, and efficient POSIX compliant regexp
  +    matching library with some exciting features such as approximate
  +    (fuzzy) matching. At the core of TRE is a new algorithm for regular
  +    expression matching with submatch addressing. The algorithm uses
  +    linear worst-case time in the length of the text being searched,
  +    and quadratic worst-case time in the length of the used regular
  +    expression. In other words, the time complexity of the algorithm
  +    is O(M2N), where M is the length of the regular expression and N
  +    is the length of the text. The used space is also quadratic on the
  +    length of the regex, but does not depend on the searched string.
  +    This quadratic behaviour occurs only on pathological cases which are
  +    probably very rare in practice.
  +
  +%prep
  +    %setup -q
  +    %patch -p0
  +
  +%build
  +    CC="%{l_cc}" \
  +    CFLAGS="%{l_cflags -O}" \
  +    CPPFLAGS="%{l_cppflags}" \
  +    ./configure \
  +        --prefix=%{l_prefix} \
  +%if "%{with_agrep}" == "yes"
  +        --enable-agrep \
  +%else
  +        --disable-agrep \
  +%endif
  +        --without-alloca \
  +        --enable-system-abi \
  +        --disable-nls \
  +        --without-libiconv-prefix \
  +        --without-libintl-prefix \
  +        --disable-shared
  +    %{l_make} %{l_mflags -O}
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  +    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} \
  +        '%not %dir %{l_prefix}/lib/pkgconfig'
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-web/news.txt
  ============================================================================
  $ cvs diff -u -r1.7576 -r1.7577 news.txt
  --- openpkg-web/news.txt      27 Nov 2003 16:53:03 -0000      1.7576
  +++ openpkg-web/news.txt      27 Nov 2003 18:08:25 -0000      1.7577
  @@ -1,3 +1,4 @@
  +27-Nov-2003: New package: P<tre-0.6.2-20031127>
   27-Nov-2003: New package: P<php5-5.0.0b2-20031127>
   27-Nov-2003: Upgraded package: P<distcc-2.11.2-20031127>
   27-Nov-2003: Upgraded package: P<tsmc-5.1.6.2-20031127>
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to