Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package librime for openSUSE:Factory checked in at 2026-11-30 14:26:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/librime (Old) and /work/SRC/openSUSE:Factory/.librime.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "librime" Mon Nov 30 14:26:57 2026 rev:41 rq:1401444 version:1.18.0 Changes: -------- --- /work/SRC/openSUSE:Factory/librime/librime.changes 2026-08-14 22:07:52.906972616 +0200 +++ /work/SRC/openSUSE:Factory/.librime.new.1340718/librime.changes 2026-11-30 14:29:27.092648027 +0100 @@ -1,0 +2,21 @@ +Sat Nov 28 13:51:59 UTC 2026 - Marguerite Su <[email protected]> + +- Update version to 1.18.0 + * refactor(simplifier): extract rime::Opencc into opencc.h / opencc.cc + * perf(prism): reduce temporary key copies during search + * refactor: support c++20 + * perf(deploy): compile independent dictionaries in parallel when + ENABLE_THREADING is ON + * perf(user_dict): in-memory sorted cache for user dictionary queries + * perf(dict): reduce memory usage during compilation + * perf(dict): make DictEntryIterator iteration O(log n) per entry + * perf(dict): speed up dictionary compilation and reduce memory usage + * refactor(logging): replace glog with spdlog facade + * chore: pacify compiler warnings + * perf(poet): reduce work in sentence search + * perf(dict): reduce deployment memory usage + * perf(dict): more readable dedup algorithm +- Drop librime-fix-gcc14-cpp20-compat.patch +- Add librime-1.18.0-shared-spdlog.patch: use system spdlog + +------------------------------------------------------------------- Old: ---- librime-1.17.0.tar.gz librime-fix-gcc14-cpp20-compat.patch New: ---- librime-1.18.0-shared-spdlog.patch librime-1.18.0.tar.gz ----------(Old B)---------- Old: * perf(dict): more readable dedup algorithm - Drop librime-fix-gcc14-cpp20-compat.patch - Add librime-1.18.0-shared-spdlog.patch: use system spdlog ----------(Old E)---------- ----------(New B)---------- New:- Drop librime-fix-gcc14-cpp20-compat.patch - Add librime-1.18.0-shared-spdlog.patch: use system spdlog ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ librime.spec ++++++ --- /var/tmp/diff_new_pack.VOux3X/_old 2026-11-30 14:29:28.661714253 +0100 +++ /var/tmp/diff_new_pack.VOux3X/_new 2026-11-30 14:29:28.663714337 +0100 @@ -17,7 +17,7 @@ Name: librime -Version: 1.17.0 +Version: 1.18.0 Release: 0 Summary: Rime Input Method Engine License: BSD-3-Clause @@ -26,8 +26,7 @@ Source: https://github.com/rime/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz # PATCH-FIX-OPENSUSE librime-boost166.patch [email protected] -- leap's gcc7 has no <filesystem> Patch0: librime-boost166.patch -# PATCH-FIX-UPSTREAM librime-fix-gcc14-cpp20-compat.patch [email protected] -- Fix C++20 compilation errors -Patch1: librime-fix-gcc14-cpp20-compat.patch +Patch1: librime-1.18.0-shared-spdlog.patch BuildRequires: capnproto >= 0.7.0 BuildRequires: cmake >= 3.1.0 BuildRequires: gcc-c++ @@ -45,6 +44,7 @@ BuildRequires: marisa-devel BuildRequires: opencc-devel >= 1.0.2 BuildRequires: pkgconfig +BuildRequires: spdlog-devel BuildRequires: xorg-x11-proto-devel BuildRequires: yaml-cpp-devel BuildRequires: zlib-devel @@ -110,7 +110,8 @@ -DINSTALL_PRIVATE_HEADERS=On \ -DENABLE_EXTERNAL_PLUGINS=On \ -DBUILD_MERGED_PLUGINS=On \ - -DENABLE_LOGGING=On + -DENABLE_LOGGING=On \ + -DENABLE_THREADING=On %cmake_build %install ++++++ librime-1.18.0-shared-spdlog.patch ++++++ Index: librime-1.18.0/CMakeLists.txt =================================================================== --- librime-1.18.0.orig/CMakeLists.txt +++ librime-1.18.0/CMakeLists.txt @@ -83,33 +83,49 @@ endif() find_package(Threads) if(ENABLE_LOGGING) + find_package(spdlog QUIET) + + if(spdlog_FOUND AND TARGET spdlog::spdlog) + if(spdlog_VERSION_MINOR EQUAL 15) + find_package(fmt 11.0.0...<12.0.0 CONFIG QUIET) + else() + find_package(fmt 12.0.0...<99.0.0 CONFIG QUIET) + endif() + + if(fmt_FOUND) + message(STATUS "Using system shared spdlog${spdlog_VERSION} with fmt${fmt_VERSION}") + else() + message(STATUS "Using system shared spdlog${spdlog_VERSION} (fmt bundled/unknown") + endif() + endif() + # Always use the bundled, pinned spdlog so that the library is linked # statically and no new runtime dependency is introduced. - if(NOT TARGET spdlog::spdlog) - if(NOT EXISTS "${PROJECT_SOURCE_DIR}/deps/spdlog/CMakeLists.txt") - message(FATAL_ERROR - "Bundled spdlog is required for static linking. " - "Initialize it with: git submodule update --init deps/spdlog") - endif() + #if(NOT TARGET spdlog::spdlog) + #if(NOT EXISTS "${PROJECT_SOURCE_DIR}/deps/spdlog/CMakeLists.txt") + # message(FATAL_ERROR + # "Bundled spdlog is required for static linking. " + # "Initialize it with: git submodule update --init deps/spdlog") + #endif() - set(SPDLOG_BUILD_SHARED OFF CACHE BOOL "" FORCE) - set(SPDLOG_BUILD_PIC ON CACHE BOOL "" FORCE) - set(SPDLOG_BUILD_EXAMPLE OFF CACHE BOOL "" FORCE) - set(SPDLOG_BUILD_TESTS OFF CACHE BOOL "" FORCE) - set(SPDLOG_INSTALL OFF CACHE BOOL "" FORCE) - set(SPDLOG_FMT_EXTERNAL OFF CACHE BOOL "" FORCE) + #set(SPDLOG_BUILD_SHARED OFF CACHE BOOL "" FORCE) + #set(SPDLOG_BUILD_PIC ON CACHE BOOL "" FORCE) + #set(SPDLOG_BUILD_EXAMPLE OFF CACHE BOOL "" FORCE) + #set(SPDLOG_BUILD_TESTS OFF CACHE BOOL "" FORCE) + #set(SPDLOG_INSTALL OFF CACHE BOOL "" FORCE) + #set(SPDLOG_FMT_EXTERNAL OFF CACHE BOOL "" FORCE) # SPDLOG_BUILD_SHARED is not enough when the parent project builds # shared libraries: spdlog also looks at BUILD_SHARED_LIBS. - set(_rime_build_shared_libs ${BUILD_SHARED_LIBS}) - set(BUILD_SHARED_LIBS OFF) - add_subdirectory(deps/spdlog EXCLUDE_FROM_ALL) - set(BUILD_SHARED_LIBS ${_rime_build_shared_libs}) - endif() + #set(_rime_build_shared_libs ${BUILD_SHARED_LIBS}) + #set(BUILD_SHARED_LIBS OFF) + #add_subdirectory(deps/spdlog EXCLUDE_FROM_ALL) + #set(BUILD_SHARED_LIBS ${_rime_build_shared_libs}) + #endif() - if(NOT TARGET spdlog::spdlog) - message(FATAL_ERROR "spdlog target not found") - endif() + #if(NOT TARGET spdlog::spdlog) + #message(FATAL_ERROR "spdlog target not found") + #endif() endif() if(NOT ENABLE_THREADING) Index: librime-1.18.0/src/CMakeLists.txt =================================================================== --- librime-1.18.0.orig/src/CMakeLists.txt +++ librime-1.18.0/src/CMakeLists.txt @@ -165,6 +165,9 @@ if(ENABLE_LOGGING) # Keep spdlog out of the public include/link interface. CMake still # propagates it as a link-only dependency for static builds. target_link_libraries(${rime_library} PRIVATE spdlog::spdlog) + if(TARGET fmt::fmt) + target_link_libraries(${rime_library} PRIVATE fmt::fmt) + endif() endif() if(DEFINED RIME_SETUP_EXTRA_MODULES) target_compile_definitions(${rime_library} PRIVATE ++++++ librime-1.17.0.tar.gz -> librime-1.18.0.tar.gz ++++++ ++++ 19949 lines of diff (skipped)
