e75eb46a6d
+ switched from mmap based writing to simpler stdio based writing. Has a minor impact (0.5 microseconds) on microbenchmarks for asynchronous writes. Synchronous writes speed up from 30ms to 10ms on linux/ext4. Should be much more reliable on diverse platforms. + compaction errors now immediately put the database into a read-only mode (until it is re-opened). As a downside, a disk going out of space and then space being created will require a re-open to recover from, whereas previously that would happen automatically. On the plus side, many corruption possibilities go away. + force the DB to enter an error-state so that all future writes fail when a synchronous log write succeeds but the sync fails. + repair now regenerates sstables that exhibit problems + fix issue 218 - Use native memory barriers on OSX + fix issue 212 - QNX build is broken + fix build on iOS with xcode 5 + make tests compile and pass on windows - refreshed 0001-debian-ports.patch + moved OS_MACOSX hunk OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/leveldb?expand=0&rev=7
103 lines
2.9 KiB
RPMSpec
103 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package leveldb
|
|
#
|
|
# Copyright (c) 2014 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: leveldb
|
|
Version: 1.15.0
|
|
Release: 0
|
|
Summary: A key/value-store
|
|
License: BSD-3-Clause
|
|
Group: Development/Libraries/C and C++
|
|
Url: http://code.google.com/p/leveldb/
|
|
Source: leveldb-%{version}.tar.gz
|
|
Patch0: 0001-debian-ports.patch
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: snappy-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
leveldb implements a system for maintaining a persistent key/value store.
|
|
|
|
%define lib_name libleveldb1
|
|
%package -n %{lib_name}
|
|
Summary: Shared library from leveldb
|
|
Group: System/Libraries
|
|
Provides: %{name} = %{version}
|
|
Obsoletes: %{name} < %{version}
|
|
|
|
%description -n %{lib_name}
|
|
leveldb implements a system for maintaining a persistent key/value store.
|
|
|
|
This package holds the shared library of leveldb.
|
|
|
|
%package devel
|
|
Summary: Development files for leveldb
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{lib_name} = %{version}
|
|
|
|
%description devel
|
|
leveldb implements a system for maintaining a persistent key/value store.
|
|
|
|
This package holds the development files for leveldb.
|
|
|
|
%package devel-static
|
|
Summary: Development files for statically link leveldb
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name}-devel = %{version}
|
|
|
|
%description devel-static
|
|
leveldb implements a system for maintaining a persistent key/value store.
|
|
|
|
This package holds the development files for statically linking leveldb.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
|
|
%build
|
|
make %{?_smp_flags} OPT="%{optflags}"
|
|
|
|
%install
|
|
install -d -m 0755 %{buildroot}%{_includedir} %{buildroot}%{_libdir}
|
|
|
|
cp -a \
|
|
libleveldb.a \
|
|
libleveldb.so* \
|
|
%{buildroot}%{_libdir}
|
|
|
|
cp -a include/leveldb %{buildroot}%{_includedir}
|
|
find %{buildroot} -name \*.la -delete -print
|
|
|
|
%post -n %{lib_name} -p /sbin/ldconfig
|
|
%postun -n %{lib_name} -p /sbin/ldconfig
|
|
|
|
%files -n %{lib_name}
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libleveldb.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libleveldb.so
|
|
%{_includedir}/leveldb/
|
|
%doc AUTHORS LICENSE NEWS README TODO doc/*
|
|
|
|
%files devel-static
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libleveldb.a
|
|
|
|
%changelog
|