File xbase.spec of Package xbase

#
# spec file for package xbase (Version 2.0.0)
#
# Copyright (c) 2008 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/
#



Name:           xbase
BuildRequires:  doxygen gcc-c++ libstdc++-devel
License:        LGPL v2.1 or later
Group:          Productivity/Databases/Tools
Summary:        XBase Compatible C++ Class Library
Url:            http://www.rekallrevealed.org/packages/
Version:        2.0.0
Release:        251
Source0:        %name-%version.tar.bz2
Patch1:         %name-%version-makefiles.patch
Patch2:         %name-%version-gcc41fix.patch
Patch3:         %name-%version-iostream_h.patch
Patch4:         %name-%version-array-del.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This is an XBase (dBase and FoxPro, for example) compatible C++ class
library.

This package contains header files, a library, some command line tools,
and developer documentation.



Authors:
--------
    Derry Bryson            <derry@techass.com>     - current maintainer
    Mario Motta                                     - testing and bugfixes
    Bob Cotton        <bcotton@synix.com>        - Clipper NTX index support
    Denis Braussen    <postoffice@mail.dotcom.fr> - general support
    Denis Pershin     <dyp@inetlab.com>          - provided library enhancements
    Eirk Bachman      <ebp@geocities.com>        - keeper of definitive Xbase spec
    Gabriel Emerson   <egabriel@io.com>          - provided logo
    Gary Kunkel       <gkunkel@startech.keller.tx.us> - original author
    Kehl Hubertus     <kehlh@hotmail.com>        - Xbase to Xbase C++ Perl Converter
    Michael Bedward   <mbedward@ozemail.com.au>  - Expression logic support
    Paul Foster       <paulf@quillandmouse.com>  - general support
    Vitaly Fedrushkov <willy@snowyowl.csu.ac.ru> - TV support and more

%package devel
License:        LGPL v2.1 or later
Group:          Development/Libraries/C and C++
Summary:        Developmnet files for XBase Compatible C++ Class Library
Requires:       %{name} = %{version}
Provides:       xbase:/usr/include/xbase/dbf.h

%description devel
This is an XBase (dBase and FoxPro, for example) compatible C++ class
library.

This package contains header files and development files.



Authors:
--------
    Derry Bryson            <derry@techass.com>     - current maintainer
    Mario Motta                                     - testing and bugfixes
    Bob Cotton        <bcotton@synix.com>        - Clipper NTX index support
    Denis Braussen    <postoffice@mail.dotcom.fr> - general support
    Denis Pershin     <dyp@inetlab.com>          - provided library enhancements
    Eirk Bachman      <ebp@geocities.com>        - keeper of definitive Xbase spec
    Gabriel Emerson   <egabriel@io.com>          - provided logo
    Gary Kunkel       <gkunkel@startech.keller.tx.us> - original author
    Kehl Hubertus     <kehlh@hotmail.com>        - Xbase to Xbase C++ Perl Converter
    Michael Bedward   <mbedward@ozemail.com.au>  - Expression logic support
    Paul Foster       <paulf@quillandmouse.com>  - general support
    Vitaly Fedrushkov <willy@snowyowl.csu.ac.ru> - TV support and more

%package doc
License:        LGPL v2.1 or later
Group:          Productivity/Databases/Tools
Summary:        Developer documentation for XBase Compatible C++ Class Library
Requires:       %{name} = %{version}
Provides:       xbase:/usr/share/doc/packages/xbase-doc/html/classes.html

%description doc
Developer documentation for XBase (dBase and FoxPro, for example)
compatible C++ class library.

This package contains header files, a library, some command line tools,
and developer documentation.



Authors:
--------
    Derry Bryson            <derry@techass.com>     - current maintainer
    Mario Motta                                     - testing and bugfixes
    Bob Cotton        <bcotton@synix.com>        - Clipper NTX index support
    Denis Braussen    <postoffice@mail.dotcom.fr> - general support
    Denis Pershin     <dyp@inetlab.com>          - provided library enhancements
    Eirk Bachman      <ebp@geocities.com>        - keeper of definitive Xbase spec
    Gabriel Emerson   <egabriel@io.com>          - provided logo
    Gary Kunkel       <gkunkel@startech.keller.tx.us> - original author
    Kehl Hubertus     <kehlh@hotmail.com>        - Xbase to Xbase C++ Perl Converter
    Michael Bedward   <mbedward@ozemail.com.au>  - Expression logic support
    Paul Foster       <paulf@quillandmouse.com>  - general support
    Vitaly Fedrushkov <willy@snowyowl.csu.ac.ru> - TV support and more

%prep
%setup -q 
%patch1
%patch2
%patch3
%patch4

%build
autoreconf -i -f
export CXXFLAGS="$RPM_OPT_FLAGS"
./configure LDFLAGS=' ' \
  --prefix=/usr \
  --libdir=%{_libdir} \
  --mandir=/usr/share/man/ \
  --sysconfdir=/etc/
make

%install
make DESTDIR="$RPM_BUILD_ROOT" install
mv $RPM_BUILD_ROOT/usr/bin/zap $RPM_BUILD_ROOT/usr/bin/xbase-zap

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(-,root,root)
%doc AUTHORS TODO COPYING README NEWS 
/usr/bin/*
%_libdir/lib*
#these files go to the devel subpackage
%exclude %_libdir/libxbase.a
%exclude %_libdir/libxbase.so

%files devel
%defattr(-,root,root)
%_libdir/libxbase.a
%_libdir/libxbase.so
/usr/include/xbase

%files doc
%defattr(-,root,root)
%doc docs/html

%changelog
* Mon Nov 24 2008 mseben@suse.cz
- fixed array delete *-array-del.patch [bnc#445638]
* Wed Apr 16 2008 schwab@suse.de
- Fix configure script.
* Tue Nov 13 2007 lmichnovic@suse.cz
- renamed patches:
  xbase.diff -> xbase-%%version-makefiles.patch
  fix-gcc41.diff -> xbase-%%version-gcc41fix.patch
- <iostream.h> should be <iostream> (*iostream_h.patch) since new
  stdlibc++43 does not include deprecated header files
* Tue Nov 13 2007 lmichnovic@suse.cz
- added libstdc++-devel into BuildReq
* Fri Nov 09 2007 lmichnovic@suse.cz
- added split provides
* Wed Nov 07 2007 lmichnovic@suse.cz
- split off devel and doc subpackage
* Wed Sep 13 2006 dmueller@suse.de
- /usr/bin/zap -> /usr/bin/xbase-zap
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 20 2006 schwab@suse.de
- Don't strip binaries.
* Tue Oct 18 2005 stbinner@suse.de
- remove extra qualification for gcc 4.1 compilation
* Thu Nov 18 2004 ro@suse.de
- fixed file list
* Thu Aug 12 2004 ro@suse.de
- added libpng to neededforbuild (for doxygen)
* Tue Jan 13 2004 schwab@suse.de
- Fix quoting in autoconf macros.
- Remove old libtool macros.
* Tue Nov 18 2003 adrian@suse.de
- initial package of version 2.0.0