diff --git a/opencc-stop-copy.patch b/opencc-stop-copy.patch new file mode 100644 index 0000000..73ba065 --- /dev/null +++ b/opencc-stop-copy.patch @@ -0,0 +1,23 @@ +From 6a1e149b643d07b465b348e23a696f8df800cdc4 Mon Sep 17 00:00:00 2001 +Subject: [PATCH] opencc stop copy + +--- + data/CMakeLists.txt | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt +index 3989bad..c9b20c1 100644 +--- a/data/CMakeLists.txt ++++ b/data/CMakeLists.txt +@@ -109,8 +109,6 @@ foreach(DICT ${DICTS}) + ${DICT}.ocd + COMMENT + "Building ${DICT}.ocd" +- COMMAND +- ${CMAKE_COMMAND} -E copy "$" "$" + COMMAND + ${OPENCC_DICT_BIN} + --input ${DICT_${DICT}_INPUT} +-- +2.23.0 + diff --git a/opencc.spec b/opencc.spec index 46d2649..b25f3ab 100644 --- a/opencc.spec +++ b/opencc.spec @@ -1,12 +1,13 @@ Name: opencc Version: 1.0.5 -Release: 4 +Release: 5 Summary: Simplified Chinese Traditional Conversion Library License: ASL 2.0 URL: https://github.com/BYVoid/OpenCC Source0: https://github.com/BYVoid/OpenCC/archive/ver.%{version}.tar.gz#/OpenCC-ver.%{version}.tar.gz Patch0001: opencc-fixes-cmake.patch Patch0002: opencc-check-bounds.patch +Patch0003: opencc-stop-copy.patch Provides: %{name}-tools = %{version}-%{release} Obsoletes: %{name}-tools < %{version}-%{release} @@ -67,5 +68,8 @@ ctest %{_datadir}/opencc/doc %changelog +* Mon Jun 29 2020 huanghaitao - 1.0.5-5 +- Fix build error + * Thu Dec 12 2019 fengbing - 1.0.5-4 - Package init