Hello community, here is the log from the commit of package leveldb for openSUSE:Factory checked in at 2020-05-02 22:15:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/leveldb (Old) and /work/SRC/openSUSE:Factory/.leveldb.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "leveldb" Sat May 2 22:15:54 2020 rev:12 rq:799299 version:1.22 Changes: -------- --- /work/SRC/openSUSE:Factory/leveldb/leveldb.changes 2019-09-05 12:04:41.571915847 +0200 +++ /work/SRC/openSUSE:Factory/.leveldb.new.2738/leveldb.changes 2020-05-02 22:16:04.376377109 +0200 @@ -1,0 +2,44 @@ +Wed Apr 29 12:33:36 UTC 2020 - David Disseldorp <[email protected]> + +- Remove 0001-debian-ports.patch + * std::atomic now used instead of internal AtomicPointer asm +- Update to version 1.22: + * Corrected formatting to be compliant with the Google C++ Style Guide. + * Restore soname versioning with CMake build. + * Other miscellaneous cleanups, fixes, and improvements. +- Update to version 1.21: + * Add tests for empty keys and values. + * Switch corruption_test to use InMemEnv. + * Replace AtomicPointer with std::atomic. + * Make InMemoryEnv more consistent with filesystem based Env's. + * Align windows_logger with posix_logger. + * Added native support for Windows. + * Make WriteBatch::ApproximateSize() const. + * Fix fdatasync() feature detection in opensource build. + * C++11 cleanup for util/mutexlock.h. + * Rework threading in env_posix.cc. + * Remove InitOnce from the port API. + * Expose WriteBatch::Append(). + * Fix documentation for log file growth. + * Add move constructor to Status. + * Replace port_posix with port_stdcxx. + * Reimplement ConsumeDecimalNumber. + * Replace NULL with nullptr in C++ files. + * Remove PLATFORM_IS_LITTLE_ENDIAN from port/posix.h. + * Add more thread safety annotations. + * Require C++11. + * Replace SIZE_MAX with std::numeric_limits. + * Add CMake build support. + * Enable thread safety annotations. + * leveldb::DestroyDB will now delete empty directories. + * Replace SSE-optimized CRC32C in POSIX port with external library. + * Fix file writing bug in CL 170738066. + * Fix use of uninitialized value in LRUHandle. + * Fix issue #474: a race between the f*_unlocked() STDIO calls in + env_posix.cc and concurrent application calls to fflush(NULL). + * Report missing CURRENT manifest file as database corruption. + * LevelDB: Add WriteBatch::ApproximateSize(). + * Other minor fixes, code cleanup, and documentation improvements. +- Perform a two-pass build, once for static and once for shared libs + +------------------------------------------------------------------- Old: ---- 0001-debian-ports.patch leveldb-1.20.tar.gz New: ---- leveldb-1.22.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ leveldb.spec ++++++ --- /var/tmp/diff_new_pack.EHsAeU/_old 2020-05-02 22:16:05.296379037 +0200 +++ /var/tmp/diff_new_pack.EHsAeU/_new 2020-05-02 22:16:05.300379045 +0200 @@ -1,7 +1,7 @@ # # spec file for package leveldb # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,14 +17,14 @@ Name: leveldb -Version: 1.20 +Version: 1.22 Release: 0 Summary: A key/value-store License: BSD-3-Clause Group: Development/Libraries/C and C++ -Url: https://github.com/google/leveldb -Source0: https://github.com/google/leveldb/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz -Patch0: 0001-debian-ports.patch +URL: https://github.com/google/leveldb +Source0: https://github.com/google/leveldb/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: snappy-devel @@ -66,32 +66,26 @@ %prep %setup -q -%patch0 -p1 %build +# unfortunately a two-pass build is needed for shared and static libs %global _lto_cflags %{_lto_cflags} -ffat-lto-objects -make %{?_smp_mflags} OPT="%{optflags}" +%cmake -DBUILD_SHARED_LIBS=ON +%cmake_build +cd .. +%cmake -DBUILD_SHARED_LIBS=OFF +%cmake_build %install -install -d -m 0755 \ - %{buildroot}%{_includedir} \ - %{buildroot}%{_libdir} \ - %{buildroot}%{_bindir} - -cp -a \ - out-static/libleveldb.a \ - out-shared/libleveldb.so* \ - %{buildroot}%{_libdir} - -cp -a include/leveldb \ - %{buildroot}%{_includedir} - -cp -a \ - out-shared/db_bench \ - %{buildroot}%{_bindir} +%cmake_install +# collect shared libs built in the first pass +cp -a build/libleveldb.so* %{buildroot}%{_libdir} +# cmake_install omits db_bench +install -d -m 0755 %{buildroot}%{_bindir} +cp -a build/db_bench %{buildroot}%{_bindir} %check -make %{?_smp_mflags} check +%ctest %post -n %{lib_name} -p /sbin/ldconfig %postun -n %{lib_name} -p /sbin/ldconfig @@ -113,5 +107,6 @@ %files devel-static %defattr(-,root,root,-) %{_libdir}/libleveldb.a +%{_libdir}/cmake/ %changelog ++++++ leveldb-1.20.tar.gz -> leveldb-1.22.tar.gz ++++++ ++++ 23290 lines of diff (skipped)
