packages: ibus-table-chinese/ibus-table-chinese-no-fedora.patch (NEW), ibus...

baggins baggins at pld-linux.org
Wed Jul 20 22:26:25 CEST 2011


Author: baggins                      Date: Wed Jul 20 20:26:25 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial revision

---- Files affected:
packages/ibus-table-chinese:
   ibus-table-chinese-no-fedora.patch (NONE -> 1.1)  (NEW), ibus-table-chinese.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/ibus-table-chinese/ibus-table-chinese-no-fedora.patch
diff -u /dev/null packages/ibus-table-chinese/ibus-table-chinese-no-fedora.patch:1.1
--- /dev/null	Wed Jul 20 22:26:25 2011
+++ packages/ibus-table-chinese/ibus-table-chinese-no-fedora.patch	Wed Jul 20 22:26:20 2011
@@ -0,0 +1,103 @@
+diff -ur ibus-table-chinese-1.3.1-Source.orig/CMakeLists.txt ibus-table-chinese-1.3.1-Source/CMakeLists.txt
+--- ibus-table-chinese-1.3.1-Source.orig/CMakeLists.txt	2011-06-22 05:19:30.000000000 +0200
++++ ibus-table-chinese-1.3.1-Source/CMakeLists.txt	2011-07-20 22:08:29.742699912 +0200
+@@ -23,28 +23,6 @@
+ SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/Modules ${CMAKE_ROOT}/Modules )
+ MESSAGE("CMAKE_MODULE_PATH=${CMAKE_MODULE_PATH}")
+ 
+-INCLUDE(ManageVariable RESULT_VARIABLE MANAGE_VARIABLE)
+-IF(MANAGE_VARIABLE STREQUAL "NOTFOUND")
+-    MESSAGE(FATAL_ERROR "ManageVariable is not found in CMAKE_MODULE_PATH,
+-    please:
+-    1) install cmake-fedora, or;
+-    2) wget https://fedorahosted.org/releases/c/m/cmake-fedora/cmake-fedora-modules-only-latest.tar.gz; tar zxvf cmake-fedora-modules-only-latest.tar.gz")
+-ENDIF()
+-
+-IF(CMAKE_VERSION)
+-    CMAKE_POLICY(SET CMP0005 OLD)
+-ENDIF(CMAKE_VERSION)
+-
+-INCLUDE(ManageVersion)
+-LOAD_RELEASE_FILE("${CMAKE_SOURCE_DIR}/RELEASE-NOTES.txt")
+-INCLUDE(UseUninstall)
+-
+-INCLUDE(CompileEnv)
+-SET_USUAL_COMPILE_ENVS()
+-
+-INCLUDE(CMakeVersion)
+-
+-
+ ####################################################################
+ # Required
+ #
+@@ -68,19 +46,11 @@
+ 
+ GET_FILENAME_COMPONENT(_releaseFileName "${RELEASE_FILE}" NAME)
+ SET(INSTALL_DOCS ${_releaseFileName} AUTHORS README ChangeLog COPYING README)
+-STRING_JOIN(PRJ_DOC_LIST " " ${INSTALL_DOCS})
+ 
+-INSTALL(FILES ${INSTALL_DOCS}
+-    DESTINATION "${PRJ_DOC_DIR}")
+ 
+ ####################################################################
+ # Packing
+ #
+-SET(MAINTAINER_SETTING "MAINTAINER_SETTING_NO_PACK")
+-INCLUDE(PackSource)
+-INCLUDE(PackRPM)
+-INCLUDE(ManageReleaseOnFedora)
+-
+ SET(PRJ_IGNORE_FILES_COMMON
+     "\\\\.spec$" "messages.po$" "\\\\.orig$" "\\\\.db$"
+     "/\\\\.cache/" "/Modules/"
+@@ -94,29 +66,6 @@
+ LIST(APPEND PACK_SOURCE_IGNORE_FILES
+     ${PRJ_IGNORE_FILES_COMMON} "/bin/")
+ 
+-PACK_SOURCE(PACK_SOURCE_FILE_NAME "${RPM_BUILD_SOURCES}")
+-PACK_RPM(PRJ_SRPM_FILE_NAME "${RPM_BUILD_SPECS}/project.spec.in"
+-    "${PACK_SOURCE_FILE_NAME}")
+-
+-# If mock exists, then add mock related targets.
+-FIND_PROGRAM(MOCK_CMD mock)
+-IF(NOT MOCK_CMD STREQUAL "MOCK_CMD-NOTFOUND")
+-    USE_MOCK("${CMAKE_SOURCE_DIR}/SPECS/project.spec.in")
+-ENDIF(NOT MOCK_CMD STREQUAL "MOCK_CMD-NOTFOUND")
+-
+-IF(EXISTS ${MAINTAINER_SETTING})
+-    RELEASE_ON_FEDORA("${RPM_BUILD_SRPMS}/${PRJ_SRPM_FILE_NAME}"
+-	${FEDORA_CURRENT_RELEASE_TAGS})
+-ENDIF(EXISTS ${MAINTAINER_SETTING})
+-
+-####################################################################
+-# Hosting
+-#
+-INCLUDE(ManageMaintainerTargets)
+-MAINTAINER_SETTING_READ_FILE("${MAINTAINER_SETTING}"
+-    "${RPM_BUILD_SOURCES}/${PACK_SOURCE_FILE_NAME}")
+-
+-
+ ####################################################################
+ # Test Suites.
+ #
+diff -ur ibus-table-chinese-1.3.1-Source.orig/tables/CMakeLists.txt ibus-table-chinese-1.3.1-Source/tables/CMakeLists.txt
+--- ibus-table-chinese-1.3.1-Source.orig/tables/CMakeLists.txt	2011-06-22 05:19:30.000000000 +0200
++++ ibus-table-chinese-1.3.1-Source/tables/CMakeLists.txt	2011-07-20 22:12:14.603170183 +0200
+@@ -4,7 +4,7 @@
+ ENDIF(CREATE_DB STREQUAL "CREATE_DB-NOTFOUND")
+ 
+ IF(NOT DEFINED DB_INSTALL_DIRECTORY)
+-    SET(DB_INSTALL_DIRECTORY "${DATA_DIR}/ibus-table/tables")
++	SET(DB_INSTALL_DIRECTORY "${SHARE_INSTALL_PREFIX}/ibus-table/tables")
+ ENDIF(NOT DEFINED DB_INSTALL_DIRECTORY)
+ 
+ IF(NOT DEFINED DEFAULT_FREQ)
+@@ -12,7 +12,7 @@
+ ENDIF(NOT DEFINED DEFAULT_FREQ)
+ 
+ IF(NOT DEFINED ICON_INSTALL_DIRECTORY)
+-    SET(ICON_INSTALL_DIRECTORY "${DATA_DIR}/ibus-table/icons")
++	SET(ICON_INSTALL_DIRECTORY "${SHARE_INSTALL_PREFIX}/ibus-table/icons")
+ ENDIF(NOT DEFINED ICON_INSTALL_DIRECTORY)
+ 
+ FIND_PROGRAM(SED_CMD sed)

================================================================
Index: packages/ibus-table-chinese/ibus-table-chinese.spec
diff -u /dev/null packages/ibus-table-chinese/ibus-table-chinese.spec:1.1
--- /dev/null	Wed Jul 20 22:26:26 2011
+++ packages/ibus-table-chinese/ibus-table-chinese.spec	Wed Jul 20 22:26:20 2011
@@ -0,0 +1,370 @@
+# $Revision$, $Date$
+%define createdb ibus-table-createdb
+Summary:	Chinese input tables for IBus
+Name:		ibus-table-chinese
+Version:	1.3.1
+Release:	0.1
+Summary(zh_CN):	中文码表输入法
+Summary(zh_TW):	中文碼表輸入法
+License:	GPL v3+
+Group:		Libraries
+Source0:	http://ibus.googlecode.com/files/%{name}-%{version}-Source.tar.gz
+# Source0-md5:	63d7dda971e0fd86e7a2d4cbbed779d6
+Patch0:		%{name}-no-fedora.patch
+URL:		http://code.google.com/p/ibus/
+BuildRequires:	cmake >= 2.4
+BuildRequires:	ibus-table-devel >= 1.2
+Requires:	ibus-table >= 1.2
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ibus-table-chinese is provides the infrastructure for Chinese input
+methods. Input tables themselves are in sub-packages.
+
+%description -l zh_TW
+ibus-table-chinese 提供了中文碼表輸入法的基礎架構。
+輸入法本身則在子套件裡。
+
+%package array
+Summary:	Array input methods
+Summary(zh_CN):	行列输入法
+Summary(zh_TW):	行列輸入法
+License:	Freely redistributable without restriction
+Group:		Libraries
+
+%description array
+Array input method is a free, open-minded character-structured input
+method. Includes: array30: 27489 characters. array30-big: 27489
+characters + Unicode ExtB.
+
+%description array -l zh_TW
+行列輸入法是一套免費授權、具有開放理念的字根式
+中文輸入法,發明人是行列科技負責人廖明德。
+
+行列輸入法除了可以輸入繁體中文和簡體中文之外,
+亦可輸入Unicode當中的中日韓統一表意文字。
+
+包含了:
+行列30: 27489 字
+行列30大字集: 27489 字 + Unicode ExtB.
+
+%package cangjie
+Summary:	Cangjie based input methods
+Summary(zh_TW):	倉頡輸入法
+Summary(zh_CN):	仓颉输入法
+License:	Freely redistributable without restriction
+Group:		Libraries
+
+%description cangjie
+Cangjie based input methods, includes: Cangjie3, Canjie5, and Cangjie
+big tables.
+
+%description cangjie -l zh_TW
+倉頡以及其衍生輸入法,包含:
+倉頡三代、倉頡五代以及倉頡大字集。
+
+%package cantonese
+Summary:	Cantonese input methods
+Summary(zh_TW):	粵語輸入法
+Group:		Libraries
+
+%description cantonese
+Cantonese input methods, includes: Cantonese, Hong-Kong version of
+Cantonese, and jyutping.
+
+%description cantonese -l zh_TW
+粵語輸入法。包含:
+廣東拼音、港式廣東話、
+以及粵語拼音。
+
+%package easy
+Summary:	Easy input method
+Summary(zh_CN):	轻松输入法
+Summary(zh_TW):	輕鬆輸入法
+Group:		Libraries
+
+%description easy
+Easy phrase-wise input method.
+
+%description easy -l zh_CN
+轻松大词库
+
+%description easy -l zh_TW
+輕鬆大詞庫
+
+%package erbi
+Summary:	Erbi input method
+Summary(zh_CN):	二笔输入法
+Summary(zh_TW):	二筆輸入法
+License:	Freely redistributable without restriction
+Group:		Libraries
+
+%description erbi
+Erbi input methods. Includes:
+Super Erbi (as erbi)
+and Erbi Qin-Song (erbi-qs)
+
+%description erbi -l zh_CN
+包含:
+超強二笔 (erbi)
+以及青松二笔 (erbi-qs)
+
+%description erbi -l zh_TW
+包含:
+超強二筆 (erbi)
+以及青松二筆 (erbi-qs)
+
+%package quick
+Summary:	Quick-to-learn input methods
+Summary(zh_CN):	速成输入法
+Summary(zh_TW):	速成輸入法
+License:	Freely redistributable without restriction
+Group:		Libraries
+
+%description quick
+Quick-to-learn is based on Cangjie input method, but only need
+Canjie's first and last word-root to form a character.
+
+Includes: Quick3, Quick5 and Quick-Classic, and Smart Cangjie 6.
+
+%description quick -l zh_TW
+速成輸入法,又稱簡易輸入法,為倉頡輸入法之簡化版本。
+只取倉頡碼的首尾兩碼,所以一字最長只有兩碼。
+
+包含:
+速成三代、速成五代以及速成古典版。
+
+%package scj
+Summary:	Smart Cangjie
+Summary(zh_CN):	快速仓颉输入法
+Summary(zh_TW):	快速倉頡輸入法
+Group:		Libraries
+
+%description scj
+Smart Cangjie is an improved Cangjie base input method which handles
+Cangjie, Quick, Cantonese, Chinese punctuation, Japanese, 3000
+frequent words by Hong Kong government, both Traditional and
+Simplified Chinese.
+
+This package includes the Smart Cangjie 6.
+
+%description scj -l zh_CN
+快速仓颉输入法第六代(快仓六)是一个多功能和多任务的
+输入法系统。在功能方面,它不但拥有多种不同版本的仓颉
+输入法、速成输入法、广东话输入法、高效率的标点、特殊
+符号和数字编码、日文编码、香港政府三千常用字编码、简
+码和容错码,而且还能够处理繁体和简体文字。在任务方面
+,它不但承袭了传统仓颉的「中文输入、输出、辨识和释义
+」等功能,而且还能肩负起促进「资讯科技教育、母语教育
+和特殊教育」等多重任务。
+
+%description scj -l zh_TW
+快速倉頡輸入法第六代(快倉六)是一個多功能和多任務的
+輸入法系統。在功能方面,它不但擁有多種不同版本的倉頡
+輸入法、速成輸入法、廣東話輸入法、高效率的標點、特殊
+符號和數字編碼、日文編碼、香港政府三千常用字編碼、簡
+碼和容錯碼,而且還能夠處理繁體和簡體文字。在任務方面
+,它不但承襲了傳統倉頡的「中文輸入、輸出、辨識和釋義
+」等功能,而且還能肩負起促進「資訊科技教育、母語教育
+和特殊教育」等多重任務。
+
+%package stroke5
+Summary:	Stroke 5 input method
+Summary(zh_CN):	笔顺五码输入法
+Summary(zh_TW):	筆順五碼輸入法
+Group:		Libraries
+
+%description stroke5
+Stroke 5 input method,
+
+%description stroke5 -l zh_CN
+笔顺五码。
+
+%description stroke5 -l zh_TW
+筆順五碼。
+
+%package wu
+Summary:	Wu pronunciation input method
+Summary(zh_CN):	上海吳语注音输入法
+Summary(zh_TW):	上海吳語注音輸入法
+Group:		Libraries
+
+%description wu
+Wu pronunciation input method.
+URL: http://input.foruto.com/wu/
+
+%description wu -l zh_CN
+上海吳语注音输入法。
+URL: http://input.foruto.com/wu/
+
+%description wu -l zh_TW
+上海吳語注音輸入法以現代吳語中有代表性的上海吳語(又稱上海話、滬語)
+的讀音、詞語為基礎。
+本輸入法適用於母語為上海話的用戶,也能作為學習上海話的輔助工具。
+URL: http://input.foruto.com/wu/
+
+%package wubi-haifeng
+Summary:	Haifeng Wubi input method
+Summary(zh_CN):	海峰五笔输入法
+Summary(zh_TW):	海峰五筆輸入法
+License:	BSD
+Group:		Libraries
+
+%description wubi-haifeng
+Haifeng Wubi input methods. Current includes: Haifeng Wubi 86.
+
+%description wubi-haifeng -l zh_CN
+海峰五笔输入法。包含:海峰五笔86。
+
+%description wubi-haifeng -l zh_TW
+海峰五筆輸入法。包含:海峰五筆86。
+
+%package wubi-jidian
+Summary:	Jidian Wubi input method
+Summary(zh_CN):	极点五笔输入法
+Summary(zh_TW):	極點五筆輸入法
+License:	Freely redistributable without restriction
+Group:		Libraries
+
+%description wubi-jidian
+Jidian Wubi input methods. Current includes: Wubi 86.
+
+%description wubi-jidian -l zh_CN
+极点五笔输入法。包含:极点五笔86。
+
+%description wubi-jidian -l zh_TW
+極點五筆輸入法。包含:五筆86。
+
+%package yong
+Summary:	YongMa input method
+Summary(zh_CN):	永码输入法
+Summary(zh_TW):	永碼輸入法
+Group:		Libraries
+
+%description yong
+YongMa input method.
+
+%description yong -l zh_CN
+永码输入法。
+
+%description yong -l zh_TW
+永碼輸入法。
+
+%prep
+%setup -q -n %{name}-%{version}-Source
+%patch0 -p1
+
+%build
+%cmake
+%{__make} VERBOSE=1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# Create indexes
+for db in $RPM_BUILD_ROOT%{_datadir}/ibus-table/tables/*.db ; do
+	%{_bindir}/ibus-table-createdb -i -n $db
+done
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if 0
+# no usefull information here
+%files
+%defattr(644,root,root,755)
+%doc RELEASE-NOTES.txt AUTHORS ChangeLog COPYING README
+%endif
+
+%files array
+%defattr(644,root,root,755)
+%{_datadir}/ibus-table/icons/array30.*
+%{_datadir}/ibus-table/tables/array30.db
+%{_datadir}/ibus-table/icons/array30-big.*
+%{_datadir}/ibus-table/tables/array30-big.db
+
+%files cangjie
+%defattr(644,root,root,755)
+%{_datadir}/ibus-table/icons/cangjie3.*
+%{_datadir}/ibus-table/tables/cangjie3.db
+%{_datadir}/ibus-table/icons/cangjie5.*
+%{_datadir}/ibus-table/tables/cangjie5.db
+%{_datadir}/ibus-table/icons/cangjie-big.*
+%{_datadir}/ibus-table/tables/cangjie-big.db
+
+%files cantonese
+%defattr(644,root,root,755)
+%{_datadir}/ibus-table/icons/cantonese.*
+%{_datadir}/ibus-table/tables/cantonese.db
+%{_datadir}/ibus-table/icons/cantonhk.*
+%{_datadir}/ibus-table/tables/cantonhk.db
+%{_datadir}/ibus-table/icons/jyutping.*
+%{_datadir}/ibus-table/tables/jyutping.db
+
+%files easy
+%defattr(644,root,root,755)
+%{_datadir}/ibus-table/icons/easy-big.*
+%{_datadir}/ibus-table/tables/easy-big.db
+
+%files erbi
+%defattr(644,root,root,755)
+%{_datadir}/ibus-table/icons/erbi.*
+%{_datadir}/ibus-table/tables/erbi.db
+%{_datadir}/ibus-table/icons/erbi-qs.*
+%{_datadir}/ibus-table/tables/erbi-qs.db
+
+%files quick
+%defattr(644,root,root,755)
+%{_datadir}/ibus-table/icons/quick3.*
+%{_datadir}/ibus-table/tables/quick3.db
+%{_datadir}/ibus-table/icons/quick5.*
+%{_datadir}/ibus-table/tables/quick5.db
+%{_datadir}/ibus-table/icons/quick-classic.*
+%{_datadir}/ibus-table/tables/quick-classic.db
+
+%files scj
+%defattr(644,root,root,755)
+%{_datadir}/ibus-table/icons/scj6.*
+%{_datadir}/ibus-table/tables/scj6.db
+
+
+%files stroke5
+%defattr(644,root,root,755)
+%{_datadir}/ibus-table/icons/stroke5.*
+%{_datadir}/ibus-table/tables/stroke5.db
+
+%files wu
+%defattr(644,root,root,755)
+%{_datadir}/ibus-table/icons/wu.*
+%{_datadir}/ibus-table/tables/wu.db
+
+%files wubi-haifeng
+%defattr(644,root,root,755)
+%doc tables/wubi-haifeng/COPYING tables/wubi-haifeng/README
+%{_datadir}/ibus-table/icons/wubi-haifeng86.*
+%{_datadir}/ibus-table/tables/wubi-haifeng86.db
+
+%files wubi-jidian
+%defattr(644,root,root,755)
+%{_datadir}/ibus-table/icons/wubi-jidian86.*
+%{_datadir}/ibus-table/tables/wubi-jidian86.db
+
+%files yong
+%defattr(644,root,root,755)
+%{_datadir}/ibus-table/icons/yong.*
+%{_datadir}/ibus-table/tables/yong.db
+
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/07/20 20:26:20  baggins
+- initial revision
+
================================================================


More information about the pld-cvs-commit mailing list