Blame SPECS/ibus-table-chinese.spec

255b53
%global message_level 6
255b53
%global ibus_tables_dir %{_datadir}/ibus-table/tables
255b53
%global ibus_icons_dir %{_datadir}/ibus-table/icons
255b53
%global createdb ibus-table-createdb
255b53
Name:       ibus-table-chinese
255b53
Version:    1.4.6
255b53
Release:    3%{?dist}
255b53
Summary:    Chinese input tables for IBus
255b53
Summary(zh_CN): 中文码表输入法
255b53
Summary(zh_TW): 中文碼表輸入法
255b53
License:    GPLv3+
255b53
Group:      System Environment/Libraries
255b53
URL:        http://code.google.com/p/ibus/
255b53
Source0:    http://ibus.googlecode.com/files/%{name}-%{version}-Source.tar.gz
255b53
255b53
BuildRequires:  cmake >= 2.6
255b53
BuildRequires:  ibus-table-devel >= 1.2
255b53
255b53
BuildArch:  noarch
255b53
Requires:   ibus-table >= 1.2
255b53
Requires(post):   ibus-table >= 1.2
255b53
Obsoletes:      ibus-table-yinma < 1.3
255b53
Obsoletes:      ibus-table-xingma < 1.3
255b53
255b53
%description
255b53
ibus-table-chinese is provides the infrastructure for Chinese input methods.
255b53
Input tables themselves are in sub-packages.
255b53
255b53
%description -l zh_TW
255b53
ibus-table-chinese 提供了中文碼表輸入法的基礎架構。
255b53
輸入法本身則在子套件裡。
255b53
255b53
%package array
255b53
Summary:       Array input methods
255b53
Summary(zh_CN): 行列输入法
255b53
Summary(zh_TW): 行列輸入法
255b53
Group:         System Environment/Libraries
255b53
License:       Freely redistributable without restriction
255b53
Requires:       %{name} = %{version}-%{release}
255b53
Provides:       ibus-table-array30 = %{version}-%{release}
255b53
Obsoletes:      ibus-table-array30 < 1.3
255b53
255b53
%description array
255b53
Array input method is a free, open-minded character-structured
255b53
input method. Includes:
255b53
array30: 27489 characters.
255b53
array30-big: 27489 characters + Unicode ExtB.
255b53
255b53
%description -l zh_TW array
255b53
行列輸入法是一套免費授權、具有開放理念的字根式
255b53
中文輸入法,發明人是行列科技負責人廖明德。
255b53
255b53
行列輸入法除了可以輸入繁體中文和簡體中文之外,
255b53
亦可輸入Unicode當中的中日韓統一表意文字。
255b53
255b53
包含了:
255b53
行列30: 27489 字
255b53
行列30大字集: 27489 字 + Unicode ExtB.
255b53
255b53
%package cangjie
255b53
Summary:       Cangjie based input methods
255b53
Summary(zh_TW): 倉頡輸入法
255b53
Summary(zh_CN): 仓颉输入法
255b53
Group:         System Environment/Libraries
255b53
License:       Freely redistributable without restriction
255b53
Requires:       %{name} = %{version}-%{release}
255b53
Provides:       ibus-table-cangjie = %{version}-%{release}
255b53
Obsoletes:      ibus-table-cangjie < 1.3
255b53
255b53
%description cangjie
255b53
Cangjie based input methods, includes:
255b53
Cangjie3, Canjie5, and Cangjie big tables.
255b53
255b53
%description -l zh_TW cangjie
255b53
倉頡以及其衍生輸入法,包含:
255b53
倉頡三代、倉頡五代以及倉頡大字集。
255b53
255b53
%package cantonese
255b53
Summary:        Cantonese input methods
255b53
Summary(zh_TW): 粵語輸入法
255b53
Group:            System Environment/Libraries
255b53
License:       GPLv2, GPLv3+ and Freely redistributable without restriction
255b53
Requires:       %{name} = %{version}-%{release}
255b53
Provides:       ibus-table-cantonese = %{version}-%{release}
255b53
Obsoletes:      ibus-table-cantonese < 1.3
255b53
255b53
%description cantonese
255b53
Cantonese input methods, includes:
255b53
Cantonese, Hong-Kong version of Cantonese,
255b53
and jyutping.
255b53
255b53
%description -l zh_TW cantonese
255b53
粵語輸入法。包含:
255b53
廣東拼音、港式廣東話、
255b53
以及粵語拼音。
255b53
255b53
%package easy
255b53
Summary:        Easy input method
255b53
Summary(zh_CN): 轻松输入法
255b53
Summary(zh_TW): 輕鬆輸入法
255b53
Group:            System Environment/Libraries
255b53
License:        GPLv2
255b53
Requires:       %{name} = %{version}-%{release}
255b53
Provides:       ibus-table-easy = %{version}-%{release}
255b53
Obsoletes:      ibus-table-easy < 1.3
255b53
255b53
%description easy
255b53
Easy phrase-wise input method.
255b53
255b53
%description -l zh_CN  easy
255b53
轻松大词库
255b53
255b53
%description -l zh_TW  easy
255b53
輕鬆大詞庫
255b53
255b53
%package erbi
255b53
Summary: Erbi input method
255b53
Summary(zh_CN): 二笔输入法
255b53
Summary(zh_TW): 二筆輸入法
255b53
Group:          System Environment/Libraries
255b53
License:       GPLv2+
255b53
Requires:       %{name} = %{version}-%{release}
255b53
Provides:       ibus-table-erbi = %{version}-%{release}
255b53
Obsoletes:      ibus-table-erbi < 1.3
255b53
255b53
%description erbi
255b53
Erbi input methods. Includes:
255b53
Super Erbi (as erbi)
255b53
and  Erbi Qin-Song (erbi-qs)
255b53
255b53
%description -l zh_CN erbi
255b53
包含:
255b53
小林子二笔 (erbi)
255b53
以及青松二笔 (erbi-qs)
255b53
255b53
%description -l zh_TW erbi
255b53
包含:
255b53
小林子二筆 (erbi)
255b53
以及青松二筆 (erbi-qs)
255b53
255b53
255b53
%package quick
255b53
Summary:       Quick-to-learn input methods
255b53
Summary(zh_CN): 速成输入法
255b53
Summary(zh_TW): 速成輸入法
255b53
Group:         System Environment/Libraries
255b53
License:       Freely redistributable without restriction
255b53
Requires:       %{name} = %{version}-%{release}
255b53
Provides:       ibus-table-quick = %{version}-%{release}
255b53
Obsoletes:      ibus-table-quick < 1.3
255b53
255b53
%description quick
255b53
Quick-to-learn is based on Cangjie input method,
255b53
but only need Canjie's first and last word-root
255b53
to form a character.
255b53
255b53
Includes:
255b53
Quick3, Quick5 and Quick-Classic,
255b53
and Smart Cangjie 6.
255b53
255b53
%description -l zh_TW quick
255b53
速成輸入法,又稱簡易輸入法,為倉頡輸入法之簡化版本。
255b53
只取倉頡碼的首尾兩碼,所以一字最長只有兩碼。
255b53
255b53
包含:
255b53
速成三代、速成五代以及速成古典版。
255b53
255b53
%package scj
255b53
Summary: Smart Cangjie
255b53
Summary(zh_CN): 快速仓颉输入法
255b53
Summary(zh_TW): 快速倉頡輸入法
255b53
Group:         System Environment/Libraries
255b53
License:       GPLv3+
255b53
Requires:       %{name} = %{version}-%{release}
255b53
Provides:       ibus-table-cangjie = %{version}-%{release}
255b53
Obsoletes:      ibus-table-cangjie < 1.3
255b53
255b53
%description scj
255b53
Smart Cangjie is an improved Cangjie base input method
255b53
which handles Cangjie, Quick, Cantonese, Chinese punctuation,
255b53
Japanese, 3000 frequent words by Hong Kong government,
255b53
both Traditional and Simplified Chinese.
255b53
255b53
This package includes the Smart Cangjie 6.
255b53
255b53
%description -l zh_CN scj
255b53
快速仓颉输入法第六代(快仓六)是一个多功能和多任务的
255b53
输入法系统。在功能方面,它不但拥有多种不同版本的仓颉
255b53
输入法、速成输入法、广东话输入法、高效率的标点、特殊
255b53
符号和数字编码、日文编码、香港政府三千常用字编码、简
255b53
码和容错码,而且还能够处理繁体和简体文字。在任务方面
255b53
,它不但承袭了传统仓颉的「中文输入、输出、辨识和释义
255b53
」等功能,而且还能肩负起促进「资讯科技教育、母语教育
255b53
和特殊教育」等多重任务。
255b53
255b53
%description -l zh_TW scj
255b53
快速倉頡輸入法第六代(快倉六)是一個多功能和多任務的
255b53
輸入法系統。在功能方面,它不但擁有多種不同版本的倉頡
255b53
輸入法、速成輸入法、廣東話輸入法、高效率的標點、特殊
255b53
符號和數字編碼、日文編碼、香港政府三千常用字編碼、簡
255b53
碼和容錯碼,而且還能夠處理繁體和簡體文字。在任務方面
255b53
,它不但承襲了傳統倉頡的「中文輸入、輸出、辨識和釋義
255b53
」等功能,而且還能肩負起促進「資訊科技教育、母語教育
255b53
和特殊教育」等多重任務。
255b53
255b53
%package stroke5
255b53
Summary: Stroke 5 input method
255b53
Summary(zh_CN): 笔顺五码输入法
255b53
Summary(zh_TW): 筆順五碼輸入法
255b53
Group:          System Environment/Libraries
255b53
License:        GPLv3+
255b53
Requires:       %{name} = %{version}-%{release}
255b53
Provides:       ibus-table-stroke5 = %{version}-%{release}
255b53
Obsoletes:      ibus-table-stroke5 < 1.3
255b53
Obsoletes:      ibus-table-yinma < 1.3
255b53
255b53
%description stroke5
255b53
Erbi input method.
255b53
%description -l zh_CN stroke5
255b53
笔顺五码。
255b53
255b53
%description -l zh_TW stroke5
255b53
筆順五碼。
255b53
255b53
%package wu
255b53
Summary: Wu pronunciation input method
255b53
Summary(zh_CN): 上海吳语注音输入法
255b53
Summary(zh_TW): 上海吳語注音輸入法
255b53
Group:          System Environment/Libraries
255b53
License:        GPLv2+
255b53
Requires:       %{name} = %{version}-%{release}
255b53
Provides:       ibus-table-wu = %{version}-%{release}
255b53
Obsoletes:      ibus-table-wu < 1.3
255b53
255b53
%description wu
255b53
Wu pronunciation input method.
255b53
URL: http://input.foruto.com/wu/
255b53
255b53
%description -l zh_CN wu
255b53
上海吳语注音输入法。
255b53
URL: http://input.foruto.com/wu/
255b53
255b53
%description -l zh_TW wu
255b53
上海吳語注音輸入法以現代吳語中有代表性的上海吳語(又稱上海話、滬語)的讀音、詞語為基礎。
255b53
本輸入法適用於母語為上海話的用戶,也能作為學習上海話的輔助工具。
255b53
URL: http://input.foruto.com/wu/
255b53
255b53
%package wubi-haifeng
255b53
Summary: Haifeng Wubi input method
255b53
Summary(zh_CN): 海峰五笔输入法
255b53
Summary(zh_TW): 海峰五筆輸入法
255b53
License:        BSD
255b53
Group:          System Environment/Libraries
255b53
Requires:       %{name} = %{version}-%{release}
255b53
Provides:       ibus-table-wubi = %{version}-%{release}
255b53
Obsoletes:      ibus-table-wubi < 1.3
255b53
255b53
%description wubi-haifeng
255b53
Haifeng Wubi input methods. Current includes:
255b53
Haifeng Wubi 86.
255b53
255b53
%description -l zh_CN wubi-haifeng
255b53
海峰五笔输入法。包含:海峰五笔86。
255b53
255b53
%description -l zh_TW wubi-haifeng
255b53
海峰五筆輸入法。包含:海峰五筆86。
255b53
255b53
255b53
%package wubi-jidian
255b53
Summary: Jidian Wubi 86 input method, JiShuang 6.0
255b53
Summary(zh_CN): 极点五笔86输入法 极爽词库 6.0
255b53
Summary(zh_TW): 極點五筆86輸入法 極爽詞庫 6.0
255b53
Group:          System Environment/Libraries
255b53
License:       Freely redistributable without restriction
255b53
Requires:       %{name} = %{version}-%{release}
255b53
Provides:       ibus-table-wubi = %{version}-%{release}
255b53
Obsoletes:      ibus-table-wubi < 1.3
255b53
255b53
%description wubi-jidian
255b53
Jidian Wubi input methods. Current includes:
255b53
Wubi 86.
255b53
255b53
%description -l zh_CN wubi-jidian
255b53
使用极爽字库之极点五笔输入法。
255b53
255b53
%description -l zh_TW wubi-jidian
255b53
使用極爽字庫極點五筆輸入法
255b53
255b53
255b53
%package yong
255b53
Summary: YongMa input method
255b53
Summary(zh_CN): 永码输入法
255b53
Summary(zh_TW): 永碼輸入法
255b53
Group:          System Environment/Libraries
255b53
License:        GPLv3
255b53
Requires:       %{name} = %{version}-%{release}
255b53
Provides:       ibus-table-yong = %{version}-%{release}
255b53
Obsoletes:      ibus-table-yong < 1.3
255b53
255b53
%description yong
255b53
YongMa input method.
255b53
255b53
%description -l zh_CN yong
255b53
永码输入法。
255b53
255b53
%description -l zh_TW yong
255b53
永碼輸入法。
255b53
255b53
%prep
255b53
%setup -q -n %{name}-%{version}-Source
255b53
%{__sed} -i 's/\r//' tables/wubi-haifeng/COPYING
255b53
255b53
%build
255b53
# $RPM_OPT_FLAGS should be  loaded from cmake macro.
255b53
%cmake -DMANAGE_MESSAGE_LEVEL=%{message_level} -DCMAKE_FEDORA_ENABLE_FEDORA_BUILD=1 .
255b53
%__make VERBOSE=1  %{?_smp_mflags}
255b53
255b53
%install
255b53
%__make install DESTDIR=$RPM_BUILD_ROOT
255b53
# We install document using %doc
255b53
(cd $RPM_BUILD_ROOT//usr/share/doc/ibus-table-chinese-1.4.6
255b53
    rm -rf AUTHORS README ChangeLog COPYING README
255b53
)
255b53
255b53
%clean
255b53
255b53
%post array
255b53
%{createdb} -i -n %{ibus_tables_dir}/array30.db
255b53
%{createdb} -i -n %{ibus_tables_dir}/array30-big.db
255b53
255b53
%post cangjie
255b53
%{createdb} -i -n %{ibus_tables_dir}/cangjie3.db
255b53
%{createdb} -i -n %{ibus_tables_dir}/cangjie5.db
255b53
%{createdb} -i -n %{ibus_tables_dir}/cangjie-big.db
255b53
255b53
%post cantonese
255b53
%{createdb} -i -n %{ibus_tables_dir}/cantonese.db
255b53
%{createdb} -i -n %{ibus_tables_dir}/cantonhk.db
255b53
%{createdb} -i -n %{ibus_tables_dir}/jyutping.db
255b53
255b53
%post easy
255b53
%{createdb} -i -n %{ibus_tables_dir}/easy-big.db
255b53
255b53
%post erbi
255b53
%{createdb} -i -n %{ibus_tables_dir}/erbi.db
255b53
%{createdb} -i -n %{ibus_tables_dir}/erbi-qs.db
255b53
255b53
%post quick
255b53
%{createdb} -i -n %{ibus_tables_dir}/quick3.db
255b53
%{createdb} -i -n %{ibus_tables_dir}/quick5.db
255b53
%{createdb} -i -n %{ibus_tables_dir}/quick-classic.db
255b53
255b53
%post scj
255b53
%{createdb} -i -n %{ibus_tables_dir}/scj6.db
255b53
255b53
%post stroke5
255b53
%{createdb} -i -n %{ibus_tables_dir}/stroke5.db
255b53
255b53
%post wu
255b53
%{createdb} -i -n %{ibus_tables_dir}/wu.db
255b53
255b53
%post wubi-haifeng
255b53
%{createdb} -i -n %{ibus_tables_dir}/wubi-haifeng86.db
255b53
255b53
%post wubi-jidian
255b53
%{createdb} -i -n %{ibus_tables_dir}/wubi-jidian86.db
255b53
255b53
%post yong
255b53
%{createdb} -i -n %{ibus_tables_dir}/yong.db
255b53
255b53
255b53
%files
255b53
%doc AUTHORS README ChangeLog COPYING README
255b53
255b53
%files array
255b53
%{ibus_icons_dir}/array30.*
255b53
%verify(not size md5 mtime) %{ibus_tables_dir}/array30.db
255b53
%{ibus_icons_dir}/array30-big.*
255b53
%verify(not size md5 mtime) %{ibus_tables_dir}/array30-big.db
255b53
255b53
%files cangjie
255b53
%{ibus_icons_dir}/cangjie3.*
255b53
%verify(not size md5 mtime) %{ibus_tables_dir}/cangjie3.db
255b53
%{ibus_icons_dir}/cangjie5.*
255b53
%verify(not size md5 mtime) %{ibus_tables_dir}/cangjie5.db
255b53
%{ibus_icons_dir}/cangjie-big.*
255b53
%verify(not size md5 mtime) %{ibus_tables_dir}/cangjie-big.db
255b53
255b53
%files cantonese
255b53
%{ibus_icons_dir}/cantonese.*
255b53
%verify(not size md5 mtime) %{ibus_tables_dir}/cantonese.db
255b53
%{ibus_icons_dir}/cantonhk.*
255b53
%verify(not size md5 mtime) %{ibus_tables_dir}/cantonhk.db
255b53
%{ibus_icons_dir}/jyutping.*
255b53
%verify(not size md5 mtime) %{ibus_tables_dir}/jyutping.db
255b53
255b53
%files easy
255b53
%{ibus_icons_dir}/easy-big.*
255b53
%verify(not size md5 mtime) %{ibus_tables_dir}/easy-big.db
255b53
255b53
%files erbi
255b53
%{ibus_icons_dir}/erbi.*
255b53
%verify(not size md5 mtime) %{ibus_tables_dir}/erbi.db
255b53
%{ibus_icons_dir}/erbi-qs.*
255b53
%verify(not size md5 mtime) %{ibus_tables_dir}/erbi-qs.db
255b53
255b53
%files quick
255b53
%{ibus_icons_dir}/quick3.*
255b53
%verify(not size md5 mtime) %{ibus_tables_dir}/quick3.db
255b53
%{ibus_icons_dir}/quick5.*
255b53
%verify(not size md5 mtime) %{ibus_tables_dir}/quick5.db
255b53
%{ibus_icons_dir}/quick-classic.*
255b53
%verify(not size md5 mtime) %{ibus_tables_dir}/quick-classic.db
255b53
255b53
%files scj
255b53
%{ibus_icons_dir}/scj6.*
255b53
%verify(not size md5 mtime) %{ibus_tables_dir}/scj6.db
255b53
255b53
%files stroke5
255b53
%{ibus_icons_dir}/stroke5.*
255b53
%verify(not size md5 mtime) %{ibus_tables_dir}/stroke5.db
255b53
255b53
%files wu
255b53
%{ibus_icons_dir}/wu.*
255b53
%verify(not size md5 mtime) %{ibus_tables_dir}/wu.db
255b53
255b53
%files wubi-haifeng
255b53
%doc tables/wubi-haifeng/COPYING tables/wubi-haifeng/README
255b53
%{ibus_icons_dir}/wubi-haifeng86.*
255b53
%verify(not size md5 mtime) %{ibus_tables_dir}/wubi-haifeng86.db
255b53
255b53
%files wubi-jidian
255b53
%{ibus_icons_dir}/wubi-jidian86.*
255b53
%verify(not size md5 mtime) %{ibus_tables_dir}/wubi-jidian86.db
255b53
255b53
%files yong
255b53
%{ibus_icons_dir}/yong.*
255b53
%{ibus_tables_dir}/yong.db
255b53
255b53
255b53
%changelog
255b53
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.4.6-3
255b53
- Mass rebuild 2013-12-27
255b53
255b53
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.6-2
255b53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
255b53
255b53
* Mon Dec 03 2012 Ding-Yi Chen <dchen@redhat.com> - 1.4.6-1
255b53
- Fixed IBus Google issue 1126: An error in ChineseTableLicenseAuditing
255b53
- Complete LICENSE tag for all of the tables.
255b53
255b53
* Mon Nov 26 2012 Ding-Yi Chen <dchen@redhat.com> - 1.4.5-1
255b53
- Table build scripts has been refactored.
255b53
- cmake-fedora is added as submodule.
255b53
- Fixed Bug 855250 - Change the default filtering for Quick and Cangjie by
255b53
  merging maxiaojun's repository
255b53
- Fixed Google Issue 1405: failed to build ibus-table-chinese due to missing db files
255b53
- Fixed Google issue 1507: Add CJKV Extension C/D support for Array30
255b53
- Merge GitHub Pull request 3: Added the inter punct
255b53
- Merge GitHub Pull request 4: Give Cangjie and Quick users 9 candidates per page
255b53
255b53
* Fri Sep 07 2012 Ding-Yi Chen <dchen@redhat.com> - 1.4.0-1
255b53
- Table build scripts has been refactored.
255b53
- cmake-fedora is added as submodule.
255b53
- Fixed Bug 855250 - Change the default filtering for Quick and Cangjie by
255b53
  merging maxiaojun's repository
255b53
- Fixed Google Issue 1405: failed to build ibus-table-chinese due to missing db files
255b53
255b53
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.5-3
255b53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
255b53
255b53
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.5-2
255b53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
255b53
255b53
* Fri Oct 28 2011 Ding-Yi Chen <dchen@redhat.com> - 1.3.5-1
255b53
- Merge Caius Chance's branch for DYNAMIC_ADJUST
255b53
- Dependency update to cmake-0.8.1
255b53
255b53
* Wed Aug 31 2011 Ding-Yi Chen <dchen@redhat.com> - 1.3.4-1
255b53
- Fixed Bug 715707 - FTBFS ibus-table-chinese-1.3.0.20110114-2.fc15
255b53
- Fixed Bug 629212 - bad candidate orders in ibus-table-quick
255b53
- Merged patch from sagara @ github, which address IBus issue 787
255b53
- Make it compatible with cmake-fedora-0.7.994
255b53
- Move the cmake policies to the front
255b53
- Suppress the misleading warning from rpm -V
255b53
255b53
* Fri Jan 14 2011 Ding-Yi Chen <dchen@redhat.com> - 1.3.0.20110114-1
255b53
- Fix Bug 667877: ibus-table-yinma and ibus-table-xingma have been obsoleted.
255b53
- Now depends on cmake-fedora
255b53
255b53
* Mon Dec 06 2010 Ding-Yi Chen <dchen@redhat.com> - 1.3.0.20101206-1
255b53
- New tables which was not include in original:
255b53
  + array30, array30-big, wubi-haifeng
255b53
- Table removed from original version because of license issues:
255b53
  + zhengma, ziranma
255b53
- Add package review ID
255b53
- Add build tag for el6
255b53
255b53
* Fri Dec 03 2010 Ding-Yi Chen <dchen@redhat.com> - 1.3.0.20101201-1
255b53
- Support out-of-source build
255b53
- Remove ibus-table-chinese-all
255b53
255b53
* Wed Jan 06 2010 Caius 'kaio' Chance <k at kaio.me> - 1.3.0.20100527-3
255b53
- Added Quick 3, 5, Classic tables and icons.
255b53
- Added Easy (big) table and icon.
255b53
- Updated AUTHORS, COPYING, license and its declarations.
255b53
255b53
* Mon Aug 31 2009 Caius 'kaio' Chance <k at kaio.me> - 1.3.0.20100527-2
255b53
- Added CangJie (big) table.
255b53
255b53
* Wed Aug 19 2008 Yu Yuwei <acevery@gmail.com> - 1.3.0.20100527-1
255b53
- The first version.