File xbase.spec of Package xbase

#
# spec file for package xbase
#
# Copyright (c) 2013 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
BuildRequires:  gcc-c++
BuildRequires:  libtool
Summary:        XBase Compatible C++ Class Library
License:        LGPL-2.1+
Group:          Productivity/Databases/Tools
Url:            http://linux.techass.com/projects/xdb/#downloads
Version:        2.0.0
Release:        0
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
Patch5:         %name-%version-gcc47.patch
Patch6:         xbase-automake-1.13.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.

%package devel
Summary:        Developmnet files for XBase Compatible C++ Class Library
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}
Requires:       libstdc++-devel
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.

%package doc
Summary:        Developer documentation for XBase Compatible C++ Class Library
Group:          Productivity/Databases/Tools
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.

%prep
%setup -q 
%patch1
%patch2
%patch3
%patch4
%patch5 -p1
%patch6 -p1

%build
autoreconf -fiv
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}

%install
make DESTDIR="$RPM_BUILD_ROOT" install
mv $RPM_BUILD_ROOT/usr/bin/zap $RPM_BUILD_ROOT/usr/bin/xbase-zap
%{__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 
/usr/bin/*
%_libdir/libxbase*.so.*

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

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

%changelog
openSUSE Build Service is sponsored by