fix build error

This commit is contained in:
hht8 2020-06-29 16:41:43 +08:00
parent c50a2340fc
commit 7534467fa0
2 changed files with 28 additions and 1 deletions

23
opencc-stop-copy.patch Normal file
View File

@ -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 "$<TARGET_FILE:libopencc>" "$<TARGET_FILE_DIR:${OPENCC_DICT_BIN}>"
COMMAND
${OPENCC_DICT_BIN}
--input ${DICT_${DICT}_INPUT}
--
2.23.0

View File

@ -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 <huanghaitao8@huawei.com> - 1.0.5-5
- Fix build error
* Thu Dec 12 2019 fengbing <fengbing7@huawei.com> - 1.0.5-4
- Package init