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:   15-Jan-2006 10:16:28
  Branch: HEAD                             Handle: 2006011509162800

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

  Log:
    new package: xbase 2.0.0 (Xbase DBMS Toolkit)

  Summary:
    Revision    Changes     Path
    1.1         +129 -0     openpkg-src/xbase/xbase.patch
    1.1         +122 -0     openpkg-src/xbase/xbase.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/xbase/xbase.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 xbase.patch
  --- /dev/null 2006-01-15 10:16:28 +0100
  +++ xbase.patch       2006-01-15 10:16:28 +0100
  @@ -0,0 +1,129 @@
  +Index: xbase-2.0.0/tv/tvbrowse.cpp
  +--- xbase-2.0.0/tv/tvbrowse.cpp.orig 2000-09-20 22:34:02 +0200
  ++++ xbase-2.0.0/tv/tvbrowse.cpp      2006-01-15 00:23:04 +0100
  +@@ -28,8 +28,8 @@
  + #include <stdlib.h>
  + #include <stdio.h>
  + #include <string.h>
  +-#include <iomanip.h>
  +-#include <strstream.h>
  ++#include <sstream>
  ++#include <iomanip>
  + 
  + #define Uses_TEvent
  + #include <tvision/tv.h>
  +Index: xbase-2.0.0/tv/tvxbase.cpp
  +--- xbase-2.0.0/tv/tvxbase.cpp.orig  2000-09-20 22:34:02 +0200
  ++++ xbase-2.0.0/tv/tvxbase.cpp       2006-01-15 00:23:04 +0100
  +@@ -23,7 +23,7 @@
  +     Foundation, Inc., or see http://www.gnu.org/.
  + */
  + 
  +-#include <iostream.h>
  ++#include <iostream>
  + 
  + #define Uses_TApplication
  + #define Uses_TButton
  +Index: xbase-2.0.0/xbase/dbf.h
  +--- xbase-2.0.0/xbase/dbf.h.orig     2001-01-13 21:20:53 +0100
  ++++ xbase-2.0.0/xbase/dbf.h  2006-01-15 00:23:04 +0100
  +@@ -65,7 +65,7 @@
  + #include <xbase/xtypes.h>
  + #include <xbase/xdate.h>
  + 
  +-#include <iostream.h>
  ++#include <iostream>
  + #include <stdio.h>
  + 
  + /*! \file dbf.h
  +Index: xbase-2.0.0/xbase/ndx.cpp
  +--- xbase-2.0.0/xbase/ndx.cpp.orig   2001-03-21 01:28:53 +0100
  ++++ xbase-2.0.0/xbase/ndx.cpp        2006-01-15 00:23:04 +0100
  +@@ -66,7 +66,8 @@
  + #endif
  + 
  + #include <xbase/xbase.h>
  +-#include <iostream.h>
  ++#include <iostream>
  ++using std::cout;
  + 
  + #ifdef XB_INDEX_NDX
  + 
  +Index: xbase-2.0.0/xbase/stack.cpp
  +--- xbase-2.0.0/xbase/stack.cpp.orig 2000-11-10 20:04:17 +0100
  ++++ xbase-2.0.0/xbase/stack.cpp      2006-01-15 00:23:04 +0100
  +@@ -59,7 +59,8 @@
  + 
  + #include <string.h>
  + #include <stdlib.h>
  +-#include <iostream.h>
  ++#include <iostream>
  ++using std::cout;
  + 
  + #include <xbase/xstack.h>
  + 
  +Index: xbase-2.0.0/xbase/xbstring.cpp
  +--- xbase-2.0.0/xbase/xbstring.cpp.orig      2001-02-20 18:53:26 +0100
  ++++ xbase-2.0.0/xbase/xbstring.cpp   2006-01-15 00:23:04 +0100
  +@@ -582,7 +582,7 @@
  + //! Short description.
  + /*!
  + */
  +-XBDLLEXPORT ostream& operator << ( ostream& os, const xbString& xbs ) {
  ++XBDLLEXPORT std::ostream& operator << ( std::ostream& os, const xbString& 
xbs ) {
  +   return os << xbs.data;
  + }
  + 
  +Index: xbase-2.0.0/xbase/xbstring.h
  +--- xbase-2.0.0/xbase/xbstring.h.orig        2001-01-27 06:00:32 +0100
  ++++ xbase-2.0.0/xbase/xbstring.h     2006-01-15 00:23:04 +0100
  +@@ -56,7 +56,11 @@
  + #endif
  + 
  + #include <stdlib.h>
  +-#include <iostream.h>
  ++#include <iostream>
  ++
  ++using std::endl;
  ++using std::cin;
  ++using std::cout;
  + 
  + /*! \file xbstring.h
  + */
  +@@ -119,7 +123,7 @@
  +   bool operator <= ( const xbString& ) const;
  +   bool operator >= ( const xbString& ) const;
  + 
  +-  friend ostream& operator << ( ostream&, const xbString& );
  ++  friend std::ostream& operator << ( std::ostream&, const xbString& );
  + 
  +   xbString &remove(size_t pos = 0, int n = npos);
  +   xbString mid(size_t pos = 0, int n = npos) const;
  +Index: xbsql-0.11/xbsql/Makefile.in
  +--- xbsql-0.11/xbsql/Makefile.in.orig        2003-03-28 21:03:25 +0100
  ++++ xbsql-0.11/xbsql/Makefile.in     2006-01-15 10:01:51 +0100
  +@@ -108,10 +108,10 @@
  +                       xbsql.tab.c xb_datetime.cpp
  + 
  + 
  +-libxbsql_la_LDFLAGS = -lxbase $(DEBUG)
  ++libxbsql_la_LDFLAGS = @LDFLAGS@ -lxbase $(DEBUG)
  + 
  + xql_SOURCES = xql.cpp
  +-xql_LDADD = -lxbase -lreadline -l$(CURSES) ./libxbsql.la
  ++xql_LDADD = @LDFLAGS@ -lxbase -lreadline -l$(CURSES) ./libxbsql.la
  + 
  + 
  + #install-data-hook:
  +Index: xbase-2.0.0/ltmain.sh
  +--- xbase-2.0.0/ltmain.sh.orig       2000-06-01 08:03:18 +0200
  ++++ xbase-2.0.0/ltmain.sh    2006-01-15 10:05:44 +0100
  +@@ -728,7 +728,7 @@
  +           ;;
  +         esac
  +         deplibs="$deplibs $arg"
  +-        lib_search_path="$lib_search_path `expr $arg : '-L\(.*\)'`"
  ++        lib_search_path="$lib_search_path `expr x$arg : 'x-L\(.*\)'`"
  +         ;;
  + 
  +       -l*) deplibs="$deplibs $arg" ;;
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/xbase/xbase.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 xbase.spec
  --- /dev/null 2006-01-15 10:16:28 +0100
  +++ xbase.spec        2006-01-15 10:16:28 +0100
  @@ -0,0 +1,122 @@
  +##
  +##  xbase.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##  Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.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 version
  +%define       V_xbase  2.0.0
  +%define       V_xbsql  0.11
  +
  +#   package information
  +Name:         xbase
  +Summary:      Xbase DBMS Toolkit
  +URL:          http://www.rekallrevealed.org/
  +Vendor:       OpenPKG
  +Packager:     OpenPKG
  +Distribution: OpenPKG
  +Class:        EVAL
  +Group:        Database
  +License:      GPL
  +Version:      %{V_xbase}
  +Release:      20060115
  +
  +#   list of sources
  +Source0:      http://www.rekallrevealed.org/packages/xbase-%{V_xbase}.tgz
  +Source1:      http://www.rekallrevealed.org/packages/xbsql-%{V_xbsql}.tgz
  +Patch0:       xbase.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20040130, gcc
  +PreReq:       OpenPKG, openpkg >= 20040130
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    Xbase DBMS is a collection of specifications, programs, utilities
  +    and a C++ class library for manipulating Xbase type datafiles and
  +    indices. XBase is dBase/FoxPro/etc compatible and is useful for
  +    accessing data in legacy dBase 3 and 4 database files as well as a
  +    general light-weight database engine. It includes support for DBF
  +    (dBase version 3 and 4) data files, NDX and NTX indexes, and DBT
  +    (dBase version 3 and 4). It supports file and record locking.
  +
  +%track
  +    prog xbase = {
  +        version   = %{V_xbase}
  +        url       = http://www.rekallrevealed.org/packages/
  +        regex     = xbase-(__VER__)\.tgz
  +    }
  +    prog xbase:xbsql = {
  +        version   = %{V_xbsql}
  +        url       = http://www.rekallrevealed.org/packages/
  +        regex     = xbsql-(__VER__)\.tgz
  +    }
  +
  +%prep
  +    %setup -q -c
  +    %setup -q -T -D -a 1
  +    %patch -p0
  +
  +%build
  +    ( cd xbase-%{V_xbase}
  +      CC="%{l_cc}" \
  +      CXX="%{l_cxx}" \
  +      CFLAGS="%{l_cflags -O}" \
  +      CXXFLAGS="%{l_cxxflags -O}" \
  +      CPPFLAGS="%{l_cppflags}" \
  +      LDFLAGS="%{l_ldflags}" \
  +      ./configure \
  +          --prefix=%{l_prefix} \
  +          --disable-shared
  +      %{l_make} %{l_mflags -O}
  +    ) || exit $?
  +    ( cd xbsql-%{V_xbsql}
  +      CC="%{l_cc}" \
  +      CXX="%{l_cxx}" \
  +      CFLAGS="%{l_cflags -O}" \
  +      CXXFLAGS="%{l_cxxflags -O}" \
  +      CPPFLAGS="-I`pwd`/../xbase-%{V_xbase} %{l_cppflags}" \
  +      LDFLAGS="-L`pwd`/../xbase-%{V_xbase}/xbase %{l_ldflags}" \
  +      ./configure \
  +          --prefix=%{l_prefix} \
  +          --disable-shared
  +      %{l_make} %{l_mflags -O}
  +    ) || exit $?
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    ( cd xbase-%{V_xbase}
  +      %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  +    ) || exit $?
  +    ( cd xbsql-%{V_xbsql}
  +      %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  +    ) || exit $?
  +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to