File libxflaim.spec of Package libxflaim

#
# spec file for package libxflaim
#
# Copyright (c) 2015 SUSE LINUX 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++
BuildRequires:  java-devel >= 1.7.0
BuildRequires:  mono-devel
BuildRequires:  ncurses-devel
Summary:        Embeddable XML Database Engine
License:        LGPL-2.1+
Group:          Development/Libraries/C and C++
Url:            http://forge.novell.com/modules/xfmod/project/?flaim
Version:        5.1.1046
Release:        0
Source:         %{name}-%{version}.tar.bz2
Patch0:         libxflaim-warning.patch
Patch1:         gcc46-Makefile.patch
Patch2:         libxflaim-arm.patch
Patch3:         libxflaim-include.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  pkgconfig

%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
Summary:        Embeddable XML Database Engine
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}
Requires:       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
%patch0
%if 0%{?suse_version} > 1140
%patch1
%endif
%ifarch %arm
%patch2
%endif
%patch3 -p1

%build
make lib_dir_name=%{_lib}  libs csharp %{?_smp_mflags}

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

%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