[packages/opencc] - added paths patch (canonicalize paths in .pc file); release 3

qboosh qboosh at pld-linux.org
Sun Apr 26 17:04:09 CEST 2020


commit a836d7895805e53105b685f9166caad3c89083a2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Apr 26 17:04:24 2020 +0200

    - added paths patch (canonicalize paths in .pc file); release 3

 opencc-paths.patch | 28 ++++++++++++++++++++++++++++
 opencc.spec        |  4 +++-
 2 files changed, 31 insertions(+), 1 deletion(-)
---
diff --git a/opencc.spec b/opencc.spec
index 2a02b31..5cfaada 100644
--- a/opencc.spec
+++ b/opencc.spec
@@ -6,12 +6,13 @@ Summary:	Open Chinese Convert library
 Summary(pl.UTF-8):	Biblioteka Open Chinese Convert do konwersji między wariantami języka chińskiego
 Name:		opencc
 Version:	1.0.6
-Release:	2
+Release:	3
 License:	Apache v2.0
 Group:		Libraries
 #Source0Download: https://github.com/BYVoid/OpenCC/releases
 Source0:	https://github.com/BYVoid/OpenCC/archive/ver.%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	bcb6d42f6f0eedabaf95c71627f725a9
+Patch0:		%{name}-paths.patch
 URL:		https://github.com/BYVoid/OpenCC
 BuildRequires:	cmake >= 2.8
 BuildRequires:	libstdc++-devel >= 6:4.7
@@ -57,6 +58,7 @@ Statyczna biblioteka OpenCC.
 
 %prep
 %setup -q -n OpenCC-ver.%{version}
+%patch0 -p1
 
 %build
 %if %{with static_libs}
diff --git a/opencc-paths.patch b/opencc-paths.patch
new file mode 100644
index 0000000..892177f
--- /dev/null
+++ b/opencc-paths.patch
@@ -0,0 +1,28 @@
+--- OpenCC-ver.1.0.6/CMakeLists.txt.orig	2020-04-12 17:22:50.000000000 +0200
++++ OpenCC-ver.1.0.6/CMakeLists.txt	2020-04-26 16:57:35.484655518 +0200
+@@ -65,10 +65,10 @@
+ ######## Directory
+ 
+ set (DIR_PREFIX ${CMAKE_INSTALL_PREFIX})
+-set (DIR_INCLUDE ${DIR_PREFIX}/include/)
+-set (DIR_SHARE ${DIR_PREFIX}/share/)
+-set (DIR_ETC ${DIR_PREFIX}/etc/)
+-set (DIR_LIBRARY ${DIR_PREFIX}/lib${LIB_SUFFIX}/)
++set (DIR_INCLUDE ${DIR_PREFIX}/include)
++set (DIR_SHARE ${DIR_PREFIX}/share)
++set (DIR_ETC ${DIR_PREFIX}/etc)
++set (DIR_LIBRARY ${DIR_PREFIX}/lib${LIB_SUFFIX})
+ 
+ if (DEFINED SHARE_INSTALL_PREFIX)
+   set (DIR_SHARE ${SHARE_INSTALL_PREFIX})
+@@ -86,8 +86,8 @@
+   set (DIR_LIBRARY ${LIB_INSTALL_DIR})
+ endif (DEFINED LIB_INSTALL_DIR)
+ 
+-set (DIR_SHARE_OPENCC ${DIR_SHARE}/opencc/)
+-set (DIR_SHARE_LOCALE ${DIR_SHARE}/locale/)
++set (DIR_SHARE_OPENCC ${DIR_SHARE}/opencc)
++set (DIR_SHARE_LOCALE ${DIR_SHARE}/locale)
+ 
+ ######## Configuration
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/opencc.git/commitdiff/a836d7895805e53105b685f9166caad3c89083a2



More information about the pld-cvs-commit mailing list