Blob Blame History Raw
Name:		leveldb
Version:	1.5.0
Release:	2%{?dist}
Summary:	A fast and lightweight key/value database library by Google
Group:		Applications/Databases
License:	BSD
# Sent upstream -
Patch1:		leveldb-0001-Initial-commit-of-the-autotools-stuff.patch
# Sent upstream -
Patch2:		leveldb-0002-Add-memory-barrier-on-a-more-arches.patch
BuildRequires:	snappy-devel
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libtool

LevelDB is a fast key-value storage library written at Google that provides an
ordered mapping from string keys to string values.

%package devel
Summary: The development files for %{name}
Group: Development/Libraries
Requires: pkgconfig
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: pkgconfig

%description devel
Additional header files for development with %{name}.

%setup -q
%patch1 -p1
%patch2 -p1

autoreconf -ivf
%configure --disable-static --with-pic
make %{?_smp_mflags}

make install DESTDIR=%{buildroot}
rm -f %{buildroot}%{_libdir}/*.la

%ifarch armv7hl ppc ppc64
# FIXME a couple of tests are failing on these secondary arches
make check || true
# x86, x86_64, armv5tel, s390, and s390x are fine
make check

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files devel

* Wed Jul 11 2012 Peter Lemenkov <> - 1.5.0-2
- Cleaned up spec by removing EL5-related stuff
- Added notes about the patches

* Fri Jun 15 2012 Peter Lemenkov <> - 1.5.0-1
- Ver. 1.5.0

* Thu May 17 2012 Peter Lemenkov <> - 1.4.0-1
- Initial package