Blame SPECS/libchewing.spec

dc1b99
%global im_name_zh_TW 新酷音輸入法
dc1b99
%global name_zh_TW %{im_name_zh_TW}函式庫
dc1b99
Name:           libchewing
dc1b99
Version:        0.3.4
dc1b99
Release:        6%{?dist}
dc1b99
Summary:        Intelligent phonetic input method library for Traditional Chinese
dc1b99
Summary(zh_TW): %{name_zh_TW}
dc1b99
dc1b99
Group:          System Environment/Libraries
dc1b99
License:        LGPLv2+
dc1b99
URL:            http://chewing.csie.net/
dc1b99
Source0:        http://chewing.googlecode.com/files/%{name}-%{version}.tar.bz2
dc1b99
Source1:         https://raw.github.com/chewing/%{name}/v%{version}/contrib/python/chewing.py
dc1b99
#Patch0: libchewing-0.3.0-3.bz199353.patch
dc1b99
#Patch1: libchewing-0.3.0-4.bz206232.patch
dc1b99
#Patch2: libchewing-0.3.0-5.bz216581a.patch
dc1b99
#Patch3: libchewing-0.3.0-5.bz216581b.patch
dc1b99
#Patch4: libchewing-0.3.0-6.bz231568.patch
dc1b99
#Patch5: libchewing-0.3.0-7.bz237233.patch
dc1b99
#Patch6: libchewing-0.3.0-8.bz237916.patch
dc1b99
#Patch7: libchewing-0.3.0-9.bz200694.patch
dc1b99
#Patch8: libchewing-0.3.0-11.bz195416.patch
dc1b99
#Patch9: libchewing-0.3.2.bz477690.patch
dc1b99
#Patch10: libchewing-0.3.2.phraseChoiceRearward.2.patch
dc1b99
#Patch11: libchewing-0.3.2.chewing_zuin.patch
dc1b99
#Patch12: libchewing-0.3.2.hsu.patch
dc1b99
#Patch13: libchewing-0.3.2.hsu.2.patch
dc1b99
# Rhbz#625980
dc1b99
#Patch14: libchewing-0.3.2.align.patch
dc1b99
# RHBZ$477690
dc1b99
#Patch15: libchewing-0.3.3.multilibConflict.patch
dc1b99
Patch16: libchewing-0.3.4.asprintf.patch
dc1b99
Patch17: libchewing-0.3.4.tsiMissing.patch
dc1b99
Patch18: libchewing-0.3.4.texiDirEntry.patch
dc1b99
dc1b99
dc1b99
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
dc1b99
%global libchewing_python_dir %{python_sitearch}/%{name}
dc1b99
dc1b99
BuildRoot:     %{_tmppath}/%{name}-%{version}-root
dc1b99
BuildRequires:  autoconf automake libtool pkgconfig gawk texinfo
dc1b99
Requires(post): info
dc1b99
Requires(preun): info
dc1b99
dc1b99
%description
dc1b99
libchewing is an intelligent phonetic input method library for Chinese.
dc1b99
dc1b99
It provides the core algorithm and logic that can be used by various
dc1b99
input methods.  The Chewing input method is a smart bopomofo phonetics
dc1b99
input method that is useful for inputting Mandarin Chinese.
dc1b99
dc1b99
%description -l zh_TW
dc1b99
%{name_zh_TW}提供實做了核心選字演算法,以便輸入法程式調用。
dc1b99
dc1b99
%{im_name_zh_TW}是一種智慧型注音/拼音猜字輸入法,透過智慧型的字庫分析、習慣記錄學習與預測分析,
dc1b99
使拼字輸入的人為選字機率降至最低,進而提升中文輸入、打字的效率。
dc1b99
dc1b99
%package -n %{name}-devel
dc1b99
Summary:        Development files for libchewing
dc1b99
Summary(zh_TW): %{name_zh_TW}開發者套件
dc1b99
Group:          Development/Libraries
dc1b99
Requires:       %{name} = %{version}-%{release}, pkgconfig
dc1b99
dc1b99
%description -n %{name}-devel
dc1b99
Headers and other files needed to develop applications using the %{name}
dc1b99
library.
dc1b99
dc1b99
%description -l zh_TW  -n %{name}-devel
dc1b99
%{name_zh_TW}開發者套件提供了開發%{im_name_zh_TW}相關程式所需的檔案,
dc1b99
像是標頭檔(header files),以及函式庫。
dc1b99
dc1b99
dc1b99
%package -n %{name}-python
dc1b99
Summary:        Python binding for libchewing
dc1b99
Summary(zh_TW): %{name_zh_TW} python 綁定
dc1b99
Group:          Development/Libraries
dc1b99
BuildRequires:  python2-devel
dc1b99
Requires:       %{name} = %{version}-%{release}
dc1b99
Requires:       python
dc1b99
dc1b99
%description -n %{name}-python
dc1b99
Python binding of libchewing.
dc1b99
dc1b99
%description -l zh_TW -n %{name}-python
dc1b99
%{name_zh_TW} python 綁定
dc1b99
dc1b99
%prep
dc1b99
%setup -q
dc1b99
#%%patch0 -p1 -b .1-bz199353
dc1b99
#%%patch1 -p1 -b .2-bz206232
dc1b99
#%%patch2 -p1 -b .3-bz216581a
dc1b99
#%%patch3 -p1 -b .4-bz216581b
dc1b99
#%%patch4 -p1 -b .5-bz231568
dc1b99
#%%patch5 -p1 -b .6-bz237233
dc1b99
#%%patch6 -p1 -b .7-bz237916
dc1b99
#%%patch7 -p1 -b .8-bz200694
dc1b99
#%%patch8 -p1 -b .9-bz195416
dc1b99
#%%patch9 -p0 -b .bz477690
dc1b99
#%%patch10 -p0 -b .phraseChoiceRearward
dc1b99
#%%patch11 -p0 -b .chewing_zuin
dc1b99
#%%patch12 -p0 -b .hsu
dc1b99
#%%patch13 -p0 -b .hsu.2
dc1b99
#%%patch14 -p0 -b .align
dc1b99
#%%patch15 -p0 -b .multilibConflict
dc1b99
%patch16 -p0 -b .asprintf
dc1b99
%patch17 -p0 -b .tsiMissing
dc1b99
%patch18 -p0 -b .texiDirEntry
dc1b99
mkdir -p contrib/python
dc1b99
cp %SOURCE1 contrib/python
dc1b99
dc1b99
%build
dc1b99
CFLAGS="%{optflags} -g -DLIBINSTDIR='%{_libdir}'"
dc1b99
autoreconf -ivf
dc1b99
%configure --disable-static
dc1b99
%{__make} RPM_CFLAGS="%{optflags}" %{_smp_mflags}
dc1b99
dc1b99
%install
dc1b99
%{__make} DESTDIR=%{buildroot} install
dc1b99
%{__rm} %{buildroot}%{_libdir}/libchewing.la
dc1b99
%{__mkdir} -p %{buildroot}%{libchewing_python_dir}
dc1b99
%{__cp} contrib/python/chewing.py %{buildroot}%{libchewing_python_dir}
dc1b99
%{__mkdir} -p %{buildroot}%{_libdir}/chewing
dc1b99
touch %{buildroot}%{libchewing_python_dir}/__init__.py
dc1b99
rm -f %{buildroot}/%{_infodir}/dir
dc1b99
dc1b99
%post
dc1b99
/sbin/ldconfig
dc1b99
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
dc1b99
dc1b99
%preun
dc1b99
if [ $1 = 0 ] ; then
dc1b99
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
dc1b99
fi
dc1b99
dc1b99
%postun -p /sbin/ldconfig
dc1b99
dc1b99
%clean
dc1b99
dc1b99
%files
dc1b99
%defattr(-, root, root)
dc1b99
%doc README AUTHORS COPYING
dc1b99
%dir %{_libdir}/libchewing
dc1b99
%{_libdir}/libchewing/*
dc1b99
%{_libdir}/*.so.*
dc1b99
%{_infodir}/libchewing.info.gz
dc1b99
dc1b99
%files devel
dc1b99
%defattr(-, root, root)
dc1b99
%dir %{_includedir}/chewing
dc1b99
%{_includedir}/chewing/*
dc1b99
%{_libdir}/pkgconfig/chewing.pc
dc1b99
%{_libdir}/*.so
dc1b99
dc1b99
%files python
dc1b99
%defattr(-, root, root)
dc1b99
%{libchewing_python_dir}
dc1b99
dc1b99
%changelog
dc1b99
* Tue Mar 04 2014 Ding-Yi Chen <dchen at redhat dot com> - 0.3.4-6
dc1b99
- CFLAGS: Use optflags
dc1b99
- Resolves: rhbz#1070770
dc1b99
dc1b99
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.3.4-5
dc1b99
- Mass rebuild 2014-01-24
dc1b99
dc1b99
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.3.4-4
dc1b99
- Mass rebuild 2013-12-27
dc1b99
dc1b99
* Thu Feb 27 2013 Ding-Yi Chen <dchen at redhat dot com> - 0.3.4-3
dc1b99
- Fixed [Bug 913214] libchewing complains "no info dir entry" while installing
dc1b99
  Add direntry in libchewing.texi so it can be listed under 
dc1b99
  Category "Localization"
dc1b99
dc1b99
* Thu Feb 07 2013 Ding-Yi Chen <dchen at redhat dot com> - 0.3.4-2
dc1b99
- Fix RPM build.
dc1b99
dc1b99
* Fri Jan 11 2013 Ding-Yi Chen <dchen at redhat dot com> - 0.3.4-1
dc1b99
- Upstream update to 0.3.4
dc1b99
- Download is changed to Google Code.
dc1b99
- /usr/share/chewing is removed, data files now located in
dc1b99
  /usr/lib(64)/libchewing
dc1b99
- Info for libchewing is included.
dc1b99
dc1b99
* Thu Nov 22 2012 Ding-Yi Chen <dchen at redhat dot com> - 0.3.3-5
dc1b99
- RPM Macro: define is replaced by global.
dc1b99
dc1b99
* Tue Nov 20 2012 Ding-Yi Chen <dchen at redhat dot com> - 0.3.3-4
dc1b99
- BuildRequires for libchewing-python changed
dc1b99
  from python-devel to python2-devel
dc1b99
- RPM_BUILD_ROOT changed to buildroot
dc1b99
dc1b99
* Thu Jul 19 2012 Ding-Yi Chen <dchen at redhat dot com> - 0.3.3-3
dc1b99
- Fixed Bug 477690 - libchewing multilib conflict
dc1b99
dc1b99
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-2
dc1b99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
dc1b99
dc1b99
* Mon Mar 07 2011 Ding-Yi Chen <dchen at redhat dot com> - 0.3.3-1
dc1b99
- Upstream update to 0.3.3
dc1b99
  + Fix memory access violation.
dc1b99
  + Improved Python binding.
dc1b99
  + Merged with libchewing-data project. (r455)
dc1b99
  + Improved random key stroke tester.
dc1b99
  + Fix the handling of phonetic symbols in Hsu's keyboard.
dc1b99
  + Fix unexpected candidate disorder when doing symbol choice.
dc1b99
  + Revised phrase choice from rearward logic.
dc1b99
  + Fix cross compilation.
dc1b99
  + Improved shell script to merge changes form libchewing-data.
dc1b99
dc1b99
dc1b99
* Thu Sep 02 2010 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-28
dc1b99
- Resolves: #625980
dc1b99
  Add padding to wch_t to ensure it's word aligned.
dc1b99
dc1b99
* Wed Mar 04 2010 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-27
dc1b99
- Fix Dvorak Hsu 4th tone key (ibus google issue 755 comment 12,
dc1b99
  chewing google issue 10)
dc1b99
- Resolves: #555192
dc1b99
dc1b99
* Mon Feb 15 2010 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-24
dc1b99
- Fix Hsu and Dvorak Hsu input (ibus google issue 755,
dc1b99
  chewing google issue 10)
dc1b99
- Resolves: #555192
dc1b99
dc1b99
* Mon Feb 15 2010 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-23
dc1b99
- Fix Hsu and Dvorak Hsu input (ibus google issue 755,
dc1b99
  chewing google issue 10)
dc1b99
- Resolves: #555192
dc1b99
dc1b99
* Wed Feb 10 2010 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-22
dc1b99
- Fix Hsu and Dvorak Hsu input (ibus google issue 755)
dc1b99
- Resolves: #555192
dc1b99
dc1b99
* Tue Feb 02 2010 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-21
dc1b99
- Revised phrase choice from rear logic.
dc1b99
  Thus update phraseChoiceRearward.patch as phraseChoiceRearward.2.patch
dc1b99
- Resolves: #555192
dc1b99
dc1b99
* Fri Jan 21 2010 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-20
dc1b99
- Resolves: #555192
dc1b99
- Fix for package wrangler.
dc1b99
dc1b99
* Tue Jan 19 2010 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-18
dc1b99
- Resolves: #555192
dc1b99
- Fix for package wrangler.
dc1b99
dc1b99
* Tue Jan 05 2010 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-17
dc1b99
- Add zh_TW summary and description
dc1b99
- Split out python binding into a subpackage.
dc1b99
- Fix for package wrangler.
dc1b99
dc1b99
* Wed Sep 30 2009 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-16
dc1b99
- Fix chewing Google issue 352:
dc1b99
  zuin_count in chewing_zuin_String( ChewingContext *ctx, int *zuin_count )
dc1b99
  does not count correctly.
dc1b99
dc1b99
* Mon Aug 03 2009 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-15
dc1b99
- Fix [Bug 512108:issue 11] ibus-chewing crash the application
dc1b99
  by move cursor_orig to chewingio.c global.
dc1b99
dc1b99
* Thu Jul 30 2009 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-14
dc1b99
- Fix [Bug 512108] ibus-chewing crash the application
dc1b99
dc1b99
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-13
dc1b99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
dc1b99
dc1b99
* Tue Jun 30 2009 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-12
dc1b99
- Rebuild to correct tags.
dc1b99
dc1b99
* Fri Jun 26 2009 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-11
dc1b99
- Revise phraseChoiceRearward.patch so the cursor won't move to left
dc1b99
  when repeatly press down key.
dc1b99
dc1b99
* Wed May 20 2009 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-10
dc1b99
- Need autoreconf and BuildRequires: pkgconfig to make changes in
dc1b99
  Makefile.am effective, thus actually fix [Bug 477960] libchewing multilib conflict.
dc1b99
dc1b99
* Mon May 18 2009 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-9
dc1b99
- Possible Fix of Bug 501220 - RFE: edit last preedit character from end of line
dc1b99
  Chewing upstream does not handle if phrase choice rearward is enabled.
dc1b99
dc1b99
* Wed Apr 22 2009 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-8
dc1b99
- Fix [Bug 496968] - libchewing-debuginfo does not contain sources.
dc1b99
dc1b99
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-7
dc1b99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
dc1b99
dc1b99
* Fri Feb 20 2009 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-6
dc1b99
- Fix [Bug 486409] - Wrong python binding installed path
dc1b99
  Add BuildRequires:  python-devel
dc1b99
dc1b99
* Wed Feb 18 2009 Adam Jackson <ajax@redhat.com> 0.3.2-5
dc1b99
- Rerun autotools so changes to Makefile.am actually take effect.
dc1b99
dc1b99
* Fri Jan 23 2009 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-4
dc1b99
- touch python-<ver>/site-packages/libchewing/__init__.py,
dc1b99
  So python thinks libchewing is a library.
dc1b99
dc1b99
* Thu Jan 14 2009 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-3
dc1b99
- Add python binding by copy python/chewing.py to
dc1b99
  <python_dir>/site_packages/libchewing
dc1b99
dc1b99
* Tue Dec 23 2008 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-2
dc1b99
- [Bug 477690] libchewing multilib conflict
dc1b99
  Move /usr/share/chewing/fonetree.dat to corresponding libdir.
dc1b99
dc1b99
* Wed Dec 03 2008 Ding-Yi Chen <dchen at redhat dot com> - 0.3.2-0
dc1b99
- Upstream update to 0.3.2.
dc1b99
dc1b99
* Wed Oct 08 2008 Ding-Yi Chen <dchen at redhat dot com> - 0.3.1-0
dc1b99
- Upstream update.
dc1b99
dc1b99
* Wed Sep 17 2008 Ding-Yi Chen <dchen at redhat dot com> - 0.3.0.901-0
dc1b99
- Upstream update.
dc1b99
dc1b99
* Thu May 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.3.0-12
dc1b99
- fix license tag
dc1b99
dc1b99
* Tue Apr 22 2008 Caius Chance <cchance@redhat.com> - 0.3.0-11.fc10
dc1b99
- Resolves: rhbz195416 (Initial input mode between Chinese and English.)
dc1b99
dc1b99
* Wed Feb 13 2008 Caius Chance <cchance@redhat.com> - 0.3.0-10.fc9
dc1b99
- Rebuild for F9.
dc1b99
dc1b99
* Tue Jan 08 2008 Caius Chance <cchance@redhat.com> - 0.3.0-9.devel
dc1b99
- Resolves: rhbz#200694 (Moving "Han-Yin" <-> Zhu-Yin" option to AUX UI.)
dc1b99
dc1b99
* Fri Jun 01 2007 Caius Chance <cchance@redhat.com> - 0.3.0-8.devel
dc1b99
- Fixed bz#237916: [chewing] Candidate list (symbol) page change inaccracy.
dc1b99
dc1b99
* Fri Apr 20 2007 Caius Chance <cchance@redhat.com> - 0.3.0-7.fc7
dc1b99
- Fixed bz#237233: Up arrow on candidate list doesn't work.
dc1b99
dc1b99
* Fri Mar 09 2007 Caius Chance <cchance@redhat.com> - 0.3.0-6.devel
dc1b99
- Fixed bz231568: [chewing] Look up table is showing candidates of previous
dc1b99
  look-up.
dc1b99
dc1b99
* Tue Nov 21 2006 Caius Chance <cchance@redhat.com> - 0.3.0-5.fc7
dc1b99
- Fixed bz#216581: Ported the following bugfix:
dc1b99
- (bz#216337: Page Up / Page Down key doesn't when Chewing is activated.)
dc1b99
- (bz#209575: preedit buffer is not cleared when framework calls for
dc1b99
  instance reset.)
dc1b99
dc1b99
* Fri Sep 15 2006 Caius Chance <cchance@redhat.com> - 0.3.0-4.fc6
dc1b99
- Fixed bz#206232 - Shift_L + space doesn't work correctly
dc1b99
dc1b99
* Mon Sep 04 2006 Caius Chance <cchance@redhat.com> - 0.3.0-3.fc6
dc1b99
- Fixed bz#199353 - scim-chewing hangs for commit > 6 characters
dc1b99
dc1b99
* Wed Jul 19 2006 Jesse Keating <jkeating@redhat.com> - 0.3.0-2
dc1b99
- fix release
dc1b99
dc1b99
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.3.0-1.2.1.1
dc1b99
- rebuild
dc1b99
dc1b99
* Mon May 22 2006 Darshan Santani <dsantani@redhat.com>
dc1b99
- New source tarball added.
dc1b99
- Rebuild.
dc1b99
dc1b99
* Thu May 18 2006 Jens Petersen <petersen@redhat.com>
dc1b99
- configure with --disable-static
dc1b99
- exclude INSTALL from docs
dc1b99
dc1b99
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.2.7-1.2.1
dc1b99
- bump again for double-long bug on ppc(64)
dc1b99
dc1b99
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.2.7-1.2
dc1b99
- rebuilt for new gcc4.1 snapshot and glibc changes
dc1b99
dc1b99
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
dc1b99
- rebuilt
dc1b99
dc1b99
* Tue Aug 16 2005 Jens Petersen <petersen@redhat.com> - 0.2.7-1
dc1b99
- Initial build for Fedora Core
dc1b99
- cleanup spec file according to Fedora standard
dc1b99
dc1b99
* Fri Dec 31 2004 rabit <rabit@ipserv.org> 0.2.5-fc3
dc1b99
- update for 0.2.5. and fedora core 3
dc1b99
dc1b99
* Thu Oct 8 2004 rabit <rabit@ipserv.org> 0.2.4-fc2
dc1b99
- update for 0.2.4.
dc1b99
dc1b99
* Thu Oct 7 2004 rabit <rabit@ipserv.org> 0.2.3-fc2
dc1b99
- Initial build.