Fix package wrangler

epel9
Ding-Yi Chen 15 years ago
parent fcff120e96
commit fa7857b64e

@ -14,3 +14,4 @@ libchewing-0_3_2-12_fc11:HEAD:libchewing-0.3.2-12.fc11.src.rpm:1246329909
libchewing-0_3_2-14_fc11:HEAD:libchewing-0.3.2-14.fc11.src.rpm:1249025558 libchewing-0_3_2-14_fc11:HEAD:libchewing-0.3.2-14.fc11.src.rpm:1249025558
libchewing-0_3_2-15_fc11:HEAD:libchewing-0.3.2-15.fc11.src.rpm:1249275193 libchewing-0_3_2-15_fc11:HEAD:libchewing-0.3.2-15.fc11.src.rpm:1249275193
libchewing-0_3_2-16_fc11:HEAD:libchewing-0.3.2-16.fc11.src.rpm:1254274732 libchewing-0_3_2-16_fc11:HEAD:libchewing-0.3.2-16.fc11.src.rpm:1254274732
libchewing-0_3_2-17_fc12:HEAD:libchewing-0.3.2-17.fc12.src.rpm:1262678096

@ -1,8 +1,10 @@
%define im_name_zh_TW 新酷音輸入法
%define name_zh_TW %{im_name_zh_TW}函式庫
Name: libchewing Name: libchewing
Version: 0.3.2 Version: 0.3.2
Release: 16%{?dist} Release: 17%{?dist}
Summary: Intelligent phonetic input method library for Traditional Chinese Summary: Intelligent phonetic input method library for Traditional Chinese
Summary(zh_TW): %{name_zh_TW}
Group: System Environment/Libraries Group: System Environment/Libraries
License: LGPLv2+ License: LGPLv2+
@ -26,7 +28,6 @@ Patch11: libchewing-0.3.2.chewing_zuin.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: autoconf automake libtool pkgconfig BuildRequires: autoconf automake libtool pkgconfig
BuildRequires: python-devel
%description %description
libchewing is an intelligent phonetic input method library for Chinese. libchewing is an intelligent phonetic input method library for Chinese.
@ -35,16 +36,41 @@ It provides the core algorithm and logic that can be used by various
input methods. The Chewing input method is a smart bopomofo phonetics input methods. The Chewing input method is a smart bopomofo phonetics
input method that is useful for inputting Mandarin Chinese. input method that is useful for inputting Mandarin Chinese.
%description -l zh_TW
%{name_zh_TW}提供實做了核心選字演算法,以便輸入法程式調用。
%{im_name_zh_TW}是一種智慧型注音/拼音猜字輸入法,透過智慧型的字庫分析、習慣記錄學習與預測分析,
使拼字輸入的人為選字機率降至最低,進而提升中文輸入、打字的效率。
%package -n %{name}-devel %package -n %{name}-devel
Summary: Development files for libchewing Summary: Development files for libchewing
Summary(zh_TW): %{name_zh_TW}開發者套件
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{version}-%{release}, pkgconfig Requires: %{name} = %{version}-%{release}, pkgconfig
%description -n %{name}-devel %description -n %{name}-devel
Headers and other files needed to develop applications using the %name Headers and other files needed to develop applications using the %{name}
library. library.
%description -l zh_TW -n %{name}-devel
%{name_zh_TW}開發者套件提供了開發%{im_name_zh_TW}相關程式所需的檔案,
像是標頭檔(header files),以及函式庫。
%package -n %{name}-python
Summary: libchewing python binding
Summary(zh_TW): %{name_zh_TW} python 綁定
Group: Development/Libraries
BuildRequires: python-devel
Requires: %{name} = %{version}-%{release}
Requires: python
%description -n %{name}-python
Python binding of libchewing.
%description -l zh_TW -n %{name}-python
%{name_zh_TW} python 綁定
%prep %prep
%setup -q %setup -q
#%patch0 -p1 -b .1-bz199353 #%patch0 -p1 -b .1-bz199353
@ -67,7 +93,7 @@ autoreconf -ivf
%{__make} RPM_CFLAGS="%{optflags}" %{_smp_mflags} %{__make} RPM_CFLAGS="%{optflags}" %{_smp_mflags}
%install %install
#rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%{__make} DESTDIR=%{buildroot} install %{__make} DESTDIR=%{buildroot} install
rm $RPM_BUILD_ROOT%{_libdir}/libchewing.la rm $RPM_BUILD_ROOT%{_libdir}/libchewing.la
mkdir -p $RPM_BUILD_ROOT%{libchewing_python_dir} mkdir -p $RPM_BUILD_ROOT%{libchewing_python_dir}
@ -90,7 +116,6 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/chewing/* %{_datadir}/chewing/*
%{_libdir}/*.so.* %{_libdir}/*.so.*
%{_libdir}/chewing %{_libdir}/chewing
%{libchewing_python_dir}
%files devel %files devel
%defattr(-, root, root) %defattr(-, root, root)
@ -99,7 +124,17 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/pkgconfig/chewing.pc %{_libdir}/pkgconfig/chewing.pc
%{_libdir}/*.so %{_libdir}/*.so
%files python
%defattr(-, root, root)
%{libchewing_python_dir}
%changelog %changelog
* Tue Jan 05 2010 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-17
- Add zh_TW summary and description
- Split out python binding into a subpackage.
- Fix for package wrangler.
* Wed Sep 30 2009 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-16 * Wed Sep 30 2009 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-16
- Fix chewing Google issue 352: - Fix chewing Google issue 352:
zuin_count in chewing_zuin_String( ChewingContext *ctx, int *zuin_count ) zuin_count in chewing_zuin_String( ChewingContext *ctx, int *zuin_count )

Loading…
Cancel
Save