File xbsql.spec of Package xbsql

# spec file for package xbsql (Version 0.11)
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           xbsql
BuildRequires:  bison flex gcc-c++ ncurses-devel readline-devel xbase-devel
License:        LGPL v2.1 or later
Group:          Development/Libraries/C and C++
Summary:        SQL Wrapper for the XBase Library
Version:        0.11
Release:        235
Source0:        %name-%version.tar.bz2
Patch0:         %name.diff
Patch1:         xbsql-0.11-bufferoverflowstrncat.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

XBase DBMS is a C++ library that supports access to XBase type data
files and indexes (.dbf and related files, for example). It provides
record level access to these files.

    Mike Richardson <>

%setup -q 

autoreconf -ifv
%configure --disable-static --with-pic
rm xbsql/lex.yy.c
%{__make} %{?jobs:-j%jobs} -C xbsql lex.yy.c
%{__make} %{?jobs:-j%jobs}

cd test

make DESTDIR="$RPM_BUILD_ROOT" install
# solve file conflict with perl-XML-XQL
mv $RPM_BUILD_ROOT/usr/bin/xql $RPM_BUILD_ROOT/usr/bin/XQL
%{__rm} -f %{buildroot}%{_libdir}/*.la

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

rm -rf ${RPM_BUILD_ROOT}


openSUSE Build Service is sponsored by