summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-06-23 09:23:15 +0000
committerCoprDistGit <infra@openeuler.org>2025-06-23 09:23:15 +0000
commit4e9e3e487ae1fa223406175b734f57b2a79144c7 (patch)
tree4f5b24d0b03f352ed1f3c8ebc0d2b14bb6026810
parentf3cc3d8a283688e2f9503ebce08f47fb56ff9bfe (diff)
automatic import of librime
-rw-r--r--fix-plugins-cmakelists.patch13
-rw-r--r--librime.spec4
2 files changed, 16 insertions, 1 deletions
diff --git a/fix-plugins-cmakelists.patch b/fix-plugins-cmakelists.patch
new file mode 100644
index 0000000..f2a4f4c
--- /dev/null
+++ b/fix-plugins-cmakelists.patch
@@ -0,0 +1,13 @@
+--- librime-1.13.0.orig/plugins/CMakeLists.txt 2025-02-16 10:41:02.000000000 +0000
++++ librime-1.13.0/plugins/CMakeLists.txt 2025-06-23 05:26:43.838000000 +0000
+@@ -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 6e83207..008ad0c 100644
--- a/librime.spec
+++ b/librime.spec
@@ -9,6 +9,7 @@ Source0: https://goppx.com/https://github.com/rime/librime/archive/%{vers
# The following librime lua plugin needs to access the librime internal API.
# Build the librime lua plugin when build the librime package.
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_cpu}-openEuler-linux-gnu \
+ -DCMAKE_BUILD_TYPE=Release \
-DBUILD_MERGED_PLUGINS=OFF \
-DENABLE_EXTERNAL_PLUGINS=ON