# HG changeset patch # User Michael Schloh von Bennewitz # Date 1232135683 -3600 # Node ID da688f850c6d4bbf5d0fde6b062b101289445259 # Parent af66192d4e85cf05e54ac88001d7a406ec85aa6b Import package vendor original specs for necessary manipulations. diff -r af66192d4e85 -r da688f850c6d xbase/xbase.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xbase/xbase.patch Fri Jan 16 20:54:43 2009 +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 + #include + #include +-#include +-#include ++#include ++#include + + #define Uses_TEvent + #include +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 ++#include + + #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 + #include + +-#include ++#include + #include + + /*! \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 +-#include ++#include ++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 + #include +-#include ++#include ++using std::cout; + + #include + +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 +-#include ++#include ++ ++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" ;; diff -r af66192d4e85 -r da688f850c6d xbase/xbase.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xbase/xbase.spec Fri Jan 16 20:54:43 2009 +0100 @@ -0,0 +1,121 @@ +## +## xbase.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. +## +## 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 Foundation e.V. +Distribution: OpenPKG Community +Class: EVAL +Group: Database +License: GPL +Version: %{V_xbase} +Release: 20080101 + +# 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 +