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 http://bugs.opensuse.org/
#
# 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
Url: http://www.quaking.demon.co.uk/xbsql.html
Version: 0.11
Release: 235
Source0: %name-%version.tar.bz2
Patch0: %name.diff
Patch1: xbsql-0.11-bufferoverflowstrncat.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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.
Authors:
--------
Mike Richardson <mike@quaking.demon.co.uk>
%prep
%setup -q
%patch0
%patch1
%build
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}
%check
cd test
make
./runtests
%install
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
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root)
%doc AUTHORS TODO COPYING README NEWS doc
/usr/bin/*
/usr/include/*
%_libdir/libxbsql*
%changelog