Import package vendor original specs for necessary manipulations.

Fri, 16 Jan 2009 20:54:43 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2009 20:54:43 +0100
changeset 97
da688f850c6d
parent 96
af66192d4e85
child 98
b48a2cd3a7b1

Import package vendor original specs for necessary manipulations.

xbase/xbase.patch file | annotate | diff | comparison | revisions
xbase/xbase.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xbase/xbase.patch	Fri Jan 16 20:54:43 2009 +0100
     1.3 @@ -0,0 +1,129 @@
     1.4 +Index: xbase-2.0.0/tv/tvbrowse.cpp
     1.5 +--- xbase-2.0.0/tv/tvbrowse.cpp.orig	2000-09-20 22:34:02 +0200
     1.6 ++++ xbase-2.0.0/tv/tvbrowse.cpp	2006-01-15 00:23:04 +0100
     1.7 +@@ -28,8 +28,8 @@
     1.8 + #include <stdlib.h>
     1.9 + #include <stdio.h>
    1.10 + #include <string.h>
    1.11 +-#include <iomanip.h>
    1.12 +-#include <strstream.h>
    1.13 ++#include <sstream>
    1.14 ++#include <iomanip>
    1.15 + 
    1.16 + #define Uses_TEvent
    1.17 + #include <tvision/tv.h>
    1.18 +Index: xbase-2.0.0/tv/tvxbase.cpp
    1.19 +--- xbase-2.0.0/tv/tvxbase.cpp.orig	2000-09-20 22:34:02 +0200
    1.20 ++++ xbase-2.0.0/tv/tvxbase.cpp	2006-01-15 00:23:04 +0100
    1.21 +@@ -23,7 +23,7 @@
    1.22 +     Foundation, Inc., or see http://www.gnu.org/.
    1.23 + */
    1.24 + 
    1.25 +-#include <iostream.h>
    1.26 ++#include <iostream>
    1.27 + 
    1.28 + #define Uses_TApplication
    1.29 + #define Uses_TButton
    1.30 +Index: xbase-2.0.0/xbase/dbf.h
    1.31 +--- xbase-2.0.0/xbase/dbf.h.orig	2001-01-13 21:20:53 +0100
    1.32 ++++ xbase-2.0.0/xbase/dbf.h	2006-01-15 00:23:04 +0100
    1.33 +@@ -65,7 +65,7 @@
    1.34 + #include <xbase/xtypes.h>
    1.35 + #include <xbase/xdate.h>
    1.36 + 
    1.37 +-#include <iostream.h>
    1.38 ++#include <iostream>
    1.39 + #include <stdio.h>
    1.40 + 
    1.41 + /*! \file dbf.h
    1.42 +Index: xbase-2.0.0/xbase/ndx.cpp
    1.43 +--- xbase-2.0.0/xbase/ndx.cpp.orig	2001-03-21 01:28:53 +0100
    1.44 ++++ xbase-2.0.0/xbase/ndx.cpp	2006-01-15 00:23:04 +0100
    1.45 +@@ -66,7 +66,8 @@
    1.46 + #endif
    1.47 + 
    1.48 + #include <xbase/xbase.h>
    1.49 +-#include <iostream.h>
    1.50 ++#include <iostream>
    1.51 ++using std::cout;
    1.52 + 
    1.53 + #ifdef XB_INDEX_NDX
    1.54 + 
    1.55 +Index: xbase-2.0.0/xbase/stack.cpp
    1.56 +--- xbase-2.0.0/xbase/stack.cpp.orig	2000-11-10 20:04:17 +0100
    1.57 ++++ xbase-2.0.0/xbase/stack.cpp	2006-01-15 00:23:04 +0100
    1.58 +@@ -59,7 +59,8 @@
    1.59 + 
    1.60 + #include <string.h>
    1.61 + #include <stdlib.h>
    1.62 +-#include <iostream.h>
    1.63 ++#include <iostream>
    1.64 ++using std::cout;
    1.65 + 
    1.66 + #include <xbase/xstack.h>
    1.67 + 
    1.68 +Index: xbase-2.0.0/xbase/xbstring.cpp
    1.69 +--- xbase-2.0.0/xbase/xbstring.cpp.orig	2001-02-20 18:53:26 +0100
    1.70 ++++ xbase-2.0.0/xbase/xbstring.cpp	2006-01-15 00:23:04 +0100
    1.71 +@@ -582,7 +582,7 @@
    1.72 + //! Short description.
    1.73 + /*!
    1.74 + */
    1.75 +-XBDLLEXPORT ostream& operator << ( ostream& os, const xbString& xbs ) {
    1.76 ++XBDLLEXPORT std::ostream& operator << ( std::ostream& os, const xbString& xbs ) {
    1.77 +   return os << xbs.data;
    1.78 + }
    1.79 + 
    1.80 +Index: xbase-2.0.0/xbase/xbstring.h
    1.81 +--- xbase-2.0.0/xbase/xbstring.h.orig	2001-01-27 06:00:32 +0100
    1.82 ++++ xbase-2.0.0/xbase/xbstring.h	2006-01-15 00:23:04 +0100
    1.83 +@@ -56,7 +56,11 @@
    1.84 + #endif
    1.85 + 
    1.86 + #include <stdlib.h>
    1.87 +-#include <iostream.h>
    1.88 ++#include <iostream>
    1.89 ++
    1.90 ++using std::endl;
    1.91 ++using std::cin;
    1.92 ++using std::cout;
    1.93 + 
    1.94 + /*! \file xbstring.h
    1.95 + */
    1.96 +@@ -119,7 +123,7 @@
    1.97 +   bool operator <= ( const xbString& ) const;
    1.98 +   bool operator >= ( const xbString& ) const;
    1.99 + 
   1.100 +-  friend ostream& operator << ( ostream&, const xbString& );
   1.101 ++  friend std::ostream& operator << ( std::ostream&, const xbString& );
   1.102 + 
   1.103 +   xbString &remove(size_t pos = 0, int n = npos);
   1.104 +   xbString mid(size_t pos = 0, int n = npos) const;
   1.105 +Index: xbsql-0.11/xbsql/Makefile.in
   1.106 +--- xbsql-0.11/xbsql/Makefile.in.orig	2003-03-28 21:03:25 +0100
   1.107 ++++ xbsql-0.11/xbsql/Makefile.in	2006-01-15 10:01:51 +0100
   1.108 +@@ -108,10 +108,10 @@
   1.109 + 			  xbsql.tab.c xb_datetime.cpp
   1.110 + 
   1.111 + 
   1.112 +-libxbsql_la_LDFLAGS = -lxbase $(DEBUG)
   1.113 ++libxbsql_la_LDFLAGS = @LDFLAGS@ -lxbase $(DEBUG)
   1.114 + 
   1.115 + xql_SOURCES = xql.cpp
   1.116 +-xql_LDADD = -lxbase -lreadline -l$(CURSES) ./libxbsql.la
   1.117 ++xql_LDADD = @LDFLAGS@ -lxbase -lreadline -l$(CURSES) ./libxbsql.la
   1.118 + 
   1.119 + 
   1.120 + #install-data-hook:
   1.121 +Index: xbase-2.0.0/ltmain.sh
   1.122 +--- xbase-2.0.0/ltmain.sh.orig	2000-06-01 08:03:18 +0200
   1.123 ++++ xbase-2.0.0/ltmain.sh	2006-01-15 10:05:44 +0100
   1.124 +@@ -728,7 +728,7 @@
   1.125 +           ;;
   1.126 +         esac
   1.127 +         deplibs="$deplibs $arg"
   1.128 +-        lib_search_path="$lib_search_path `expr $arg : '-L\(.*\)'`"
   1.129 ++        lib_search_path="$lib_search_path `expr x$arg : 'x-L\(.*\)'`"
   1.130 +         ;;
   1.131 + 
   1.132 +       -l*) deplibs="$deplibs $arg" ;;
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/xbase/xbase.spec	Fri Jan 16 20:54:43 2009 +0100
     2.3 @@ -0,0 +1,121 @@
     2.4 +##
     2.5 +##  xbase.spec -- OpenPKG RPM Package Specification
     2.6 +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
     2.7 +##
     2.8 +##  Permission to use, copy, modify, and distribute this software for
     2.9 +##  any purpose with or without fee is hereby granted, provided that
    2.10 +##  the above copyright notice and this permission notice appear in all
    2.11 +##  copies.
    2.12 +##
    2.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    2.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    2.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    2.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    2.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    2.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    2.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    2.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    2.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    2.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    2.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    2.24 +##  SUCH DAMAGE.
    2.25 +##
    2.26 +
    2.27 +#   package version
    2.28 +%define       V_xbase  2.0.0
    2.29 +%define       V_xbsql  0.11
    2.30 +
    2.31 +#   package information
    2.32 +Name:         xbase
    2.33 +Summary:      Xbase DBMS Toolkit
    2.34 +URL:          http://www.rekallrevealed.org/
    2.35 +Vendor:       OpenPKG
    2.36 +Packager:     OpenPKG Foundation e.V.
    2.37 +Distribution: OpenPKG Community
    2.38 +Class:        EVAL
    2.39 +Group:        Database
    2.40 +License:      GPL
    2.41 +Version:      %{V_xbase}
    2.42 +Release:      20080101
    2.43 +
    2.44 +#   list of sources
    2.45 +Source0:      http://www.rekallrevealed.org/packages/xbase-%{V_xbase}.tgz
    2.46 +Source1:      http://www.rekallrevealed.org/packages/xbsql-%{V_xbsql}.tgz
    2.47 +Patch0:       xbase.patch
    2.48 +
    2.49 +#   build information
    2.50 +Prefix:       %{l_prefix}
    2.51 +BuildRoot:    %{l_buildroot}
    2.52 +BuildPreReq:  OpenPKG, openpkg >= 20040130, gcc
    2.53 +PreReq:       OpenPKG, openpkg >= 20040130
    2.54 +AutoReq:      no
    2.55 +AutoReqProv:  no
    2.56 +
    2.57 +%description
    2.58 +    Xbase DBMS is a collection of specifications, programs, utilities
    2.59 +    and a C++ class library for manipulating Xbase type datafiles and
    2.60 +    indices. XBase is dBase/FoxPro/etc compatible and is useful for
    2.61 +    accessing data in legacy dBase 3 and 4 database files as well as a
    2.62 +    general light-weight database engine. It includes support for DBF
    2.63 +    (dBase version 3 and 4) data files, NDX and NTX indexes, and DBT
    2.64 +    (dBase version 3 and 4). It supports file and record locking.
    2.65 +
    2.66 +%track
    2.67 +    prog xbase = {
    2.68 +        version   = %{V_xbase}
    2.69 +        url       = http://www.rekallrevealed.org/packages/
    2.70 +        regex     = xbase-(__VER__)\.tgz
    2.71 +    }
    2.72 +    prog xbase:xbsql = {
    2.73 +        version   = %{V_xbsql}
    2.74 +        url       = http://www.rekallrevealed.org/packages/
    2.75 +        regex     = xbsql-(__VER__)\.tgz
    2.76 +    }
    2.77 +
    2.78 +%prep
    2.79 +    %setup -q -c
    2.80 +    %setup -q -T -D -a 1
    2.81 +    %patch -p0
    2.82 +
    2.83 +%build
    2.84 +    ( cd xbase-%{V_xbase}
    2.85 +      CC="%{l_cc}" \
    2.86 +      CXX="%{l_cxx}" \
    2.87 +      CFLAGS="%{l_cflags -O}" \
    2.88 +      CXXFLAGS="%{l_cxxflags -O}" \
    2.89 +      CPPFLAGS="%{l_cppflags}" \
    2.90 +      LDFLAGS="%{l_ldflags}" \
    2.91 +      ./configure \
    2.92 +          --prefix=%{l_prefix} \
    2.93 +          --disable-shared
    2.94 +      %{l_make} %{l_mflags -O}
    2.95 +    ) || exit $?
    2.96 +    ( cd xbsql-%{V_xbsql}
    2.97 +      CC="%{l_cc}" \
    2.98 +      CXX="%{l_cxx}" \
    2.99 +      CFLAGS="%{l_cflags -O}" \
   2.100 +      CXXFLAGS="%{l_cxxflags -O}" \
   2.101 +      CPPFLAGS="-I`pwd`/../xbase-%{V_xbase} %{l_cppflags}" \
   2.102 +      LDFLAGS="-L`pwd`/../xbase-%{V_xbase}/xbase %{l_ldflags}" \
   2.103 +      ./configure \
   2.104 +          --prefix=%{l_prefix} \
   2.105 +          --disable-shared
   2.106 +      %{l_make} %{l_mflags -O}
   2.107 +    ) || exit $?
   2.108 +
   2.109 +%install
   2.110 +    rm -rf $RPM_BUILD_ROOT
   2.111 +    ( cd xbase-%{V_xbase}
   2.112 +      %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
   2.113 +    ) || exit $?
   2.114 +    ( cd xbsql-%{V_xbsql}
   2.115 +      %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
   2.116 +    ) || exit $?
   2.117 +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
   2.118 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   2.119 +
   2.120 +%files -f files
   2.121 +
   2.122 +%clean
   2.123 +    rm -rf $RPM_BUILD_ROOT
   2.124 +

mercurial