Files
libflaim/libflaim.spec

101 lines
3.1 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package libflaim
#
# Copyright (c) 2012 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: libflaim
%define lname libflaim5
BuildRequires: gcc-c++
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
Summary: Embeddable cross-platform database engine
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Url: http://forge.novell.com/modules/xfmod/project/?flaim
Version: 4.9.1046
Release: 0
Source: libflaim-4.9.1046.tar.gz
Patch0: libflaim-warning.patch
Patch1: libflaim-hppa.patch
Patch2: libflaim-arm.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
FLAIM is an embeddable cross-platform database engine that provides a
rich, powerful, easy-to-use feature set. It is the database engine used
by Novell eDirectory. It has proven to be highly scalable, reliable,
and robust. It is available on a wide variety of 32 bit and 64 bit
platforms.
%package -n %lname
Summary: Embeddable cross-platform database engine
Group: System/Libraries
%description -n %lname
FLAIM is an embeddable cross-platform database engine that provides a
rich, powerful, easy-to-use feature set. It is the database engine used
by Novell eDirectory. It has proven to be highly scalable, reliable,
and robust. It is available on a wide variety of 32 bit and 64 bit
platforms.
%package devel
Summary: Embeddable cross-platform database engine
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
FLAIM is an embeddable cross-platform database engine that provides a
rich, powerful, easy-to-use feature set. It is the database engine used
by Novell eDirectory. It has proven to be highly scalable, reliable,
and robust. It is available on a wide variety of 32 bit and 64 bit
platforms.
%prep
%setup -q
%patch0
%ifarch hppa
%patch1
%endif
%ifarch %arm
%patch2
%endif
%build
# Must use the same variable assignments as in %%install
# to avoid recompilation
make rpm_build_root="%buildroot" install_prefix="%_prefix" \
lib_dir_name="%_lib" \
libs %{?_smp_mflags}
%install
make rpm_build_root="%buildroot" install_prefix="%_prefix" \
lib_dir_name="%_lib" \
install
rm -f "%buildroot/%_libdir"/*.a;
%files -n %lname
%defattr(-,root,root)
%doc COPYING COPYRIGHT VERSION
%_libdir/libflaim.so.5*
%files devel
%defattr(-,root,root)
%_libdir/libflaim.so
%_libdir/pkgconfig/libflaim.pc
%_includedir/flaim*.h
%changelog