diff options
| -rw-r--r-- | fix-plugins-cmakelists.patch | 16 | ||||
| -rw-r--r-- | librime.spec | 8 |
2 files changed, 21 insertions, 3 deletions
diff --git a/fix-plugins-cmakelists.patch b/fix-plugins-cmakelists.patch new file mode 100644 index 0000000..eee9db9 --- /dev/null +++ b/fix-plugins-cmakelists.patch @@ -0,0 +1,16 @@ +Index: librime-1.13.1/plugins/CMakeLists.txt +=================================================================== +--- librime-1.13.1/plugins/CMakeLists.orig.txt 2025-06-23 17:44:34.223129431 +0800 ++++ librime-1.13.1/plugins/CMakeLists.txt 2025-06-23 17:43:48.895555988 +0800 +@@ -44,6 +44,10 @@ foreach(plugin ${plugins}) + unset(plugin_objs) + unset(plugin_deps) + unset(plugin_modules) ++ message(STATUS Plugin:${plugin} ,Deps: ${plugin_deps} ) ++ if("${plugin}" MATCHES "CMakeFiles$") ++ continue() ++ endif() + add_subdirectory(${plugin}) + if(BUILD_MERGED_PLUGINS) + set(plugins_objs ${plugins_objs} ${plugin_objs}) + diff --git a/librime.spec b/librime.spec index 8909b47..af99d14 100644 --- a/librime.spec +++ b/librime.spec @@ -5,10 +5,11 @@ Summary: Rime Input Method Engine Library License: GPL-3.0-only URL: https://rime.im/ -Source0: https://github.com/rime/librime/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source0: https://goppx.com/https://github.com/rime/librime/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz # The following librime lua plugin needs to access the librime internal API. # Build the librime lua plugin when build the librime package. -Source1: https://github.com/hchunhui/librime-lua/archive/refs/heads/master.tar.gz#/librime-lua.tar.gz +Source1: https://goppx.com/https://github.com/hchunhui/librime-lua/archive/refs/heads/master.tar.gz#/librime-lua.tar.gz +Patch0: fix-plugins-cmakelists.patch BuildRequires: gcc-c++ BuildRequires: cmake, opencc-devel @@ -64,7 +65,8 @@ mv librime-lua-master lua popd %build -%cmake -DCMAKE_BUILD_TYPE=Release \ +%cmake -S . -B %{_target_platform} \ + -DCMAKE_BUILD_TYPE=Release \ -DBUILD_MERGED_PLUGINS=OFF \ -DENABLE_EXTERNAL_PLUGINS=ON |
