File libxflaim.spec of Package libxflaim

#
# spec file for package libxflaim
#
# Copyright (c) 2011 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:           libxflaim
BuildRequires:  gcc-c++ java2-devel-packages mono-devel ncurses-devel
Summary:        Embeddable XML Database Engine
Url:            http://forge.novell.com/modules/xfmod/project/?flaim
Version:        5.1.1046
Release:        177
License:        LGPL v2.1 or later
Group:          Development/Libraries/C and C++
Source:         %{name}-%{version}.tar.bz2
Patch:          libxflaim-warning.patch
Patch1:         gcc46-Makefile.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
XFLAIM is an embeddable cross-platform XML database engine that
provides a rich, powerful, easy-to-use feature set. It has proven to be
highly scalable, reliable, and robust. It is available on a wide
variety of 32 bit and 64 bit platforms.

Authors:
--------
    Daniel Sanders
    Andrew Hodgkinson

%package devel
License:        LGPL v2.1 or later
Summary:        Embeddable XML Database Engine
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version} glibc-devel

%description devel
XFLAIM is an embeddable cross-platform XML database engine that
provides a rich, powerful, easy-to-use feature set. It has proven to be
highly scalable, reliable, and robust. It is available on a wide
variety of 32 bit and 64 bit platforms.



Authors:
--------
    Daniel Sanders
    Andrew Hodgkinson

%prep
%setup -q
%patch
%if 0%{?suse_version} > 1140
%patch1
%endif

%build
make lib_dir_name=%{_lib}  libs csharp

%install
make rpm_build_root=$RPM_BUILD_ROOT install_prefix=%{_prefix} lib_dir_name=%{_lib}  install

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc COPYING COPYRIGHT VERSION
%{_libdir}/libxflaim.so.3.2
%{_libdir}/libxflaim.so.3
%{_libdir}/xflaim_csharp.dll
%{_libdir}/xflaim_csharp.xml

%files devel
%defattr(-,root,root)
%{_libdir}/libxflaim.so
%{_libdir}/libxflaim.a
%{_libdir}/pkgconfig/libxflaim.pc
%{_includedir}/xflaim.h
%{_includedir}/xflaimtk.h

%changelog
openSUSE Build Service is sponsored by