File libchewing.spec of Package libchewing

#
# spec file for package libchewing (Version 0.3.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libchewing
Version:        0.3.0
Release:        135
License:        LGPL v2.1 or later
Group:          System/I18n/Chinese
AutoReqProv:    on
BuildRequires:  check-devel pkg-config
Url:            http://chewing.csie.net/
Source0:        http://chewing.csie.net/download/libchewing/libchewing-0.3.0.tar.bz2
Patch0:         libtool-autoconf.patch
Patch1:         bugzilla-155270-libchewing-init-chewing-correctly.patch
Patch2:         libchewing-check.patch
Patch3:         glibc-2.7.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Intelligent Phonetic Input Method Library for Traditional Chinese

%description
Intelligent phonetic input method library for traditional Chinese.



Authors:
--------
    Jim Huang <jserv@kaffe.org>
    Kanru Chen <kanru.96@stu.csie.ncnu.edu.tw>
    Yun-Ta Tsai <bbns.tsai@msa.hinet.net>
    Kang-min Liu <gugod@gugod.org>
    Wei-zhong Yang <wz.yang@msa.hinet.net>
    Kuang-che Wu <kcwu@csie.org>
    Shiva Huang <blueshiva@giga.net.tw>
    Lu-chuan Kung <lckung@iis.sinica.edu.tw>
    Kang-pen Chen <kpchen@iis.sinica.edu.tw>

%package devel
License:        LGPL v2.1 or later
Summary:        Intelligent phonetic input method library for traditional Chinese
Group:          System/I18n/Chinese
Requires:       %{name} = %{version} glibc-devel

%description devel
Intelligent phonetic input method library for traditional Chinese



Authors:
--------
    Jim Huang <jserv@kaffe.org>
    Kanru Chen <kanru.96@stu.csie.ncnu.edu.tw>
    Yun-Ta Tsai <bbns.tsai@msa.hinet.net>
    Kang-min Liu <gugod@gugod.org>
    Wei-zhong Yang <wz.yang@msa.hinet.net>
    Kuang-che Wu <kcwu@csie.org>
    Shiva Huang <blueshiva@giga.net.tw>
    Lu-chuan Kung <lckung@iis.sinica.edu.tw>
    Kang-pen Chen <kpchen@iis.sinica.edu.tw>

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
%patch1 -p1
%patch2
%patch3 -p1

%build
rm -f aclocal.m4
autoreconf --force --install --verbose
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}

%install
make DESTDIR=${RPM_BUILD_ROOT} install
%{__rm} -f %{buildroot}%{_libdir}/*.la

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README ChangeLog
%{_libdir}/lib*.so.*
%dir /usr/share/chewing/
/usr/share/chewing/*

%files devel
%defattr(-, root, root)
/usr/include/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/chewing.pc

%changelog
* Wed Jan 28 2009 crrodriguez@suse.de
- remove "la" files with empty dependency_libs
- remove static libraries
* Tue Dec 04 2007 mfabian@suse.de
- fix build with glibc 2.7.
- fix some rpmlint warnings.
* Mon Apr 09 2007 ro@suse.de
- fix build with updated check package
* Tue Mar 27 2007 sbrabec@suse.cz
- Require check-devel.
* Tue Oct 31 2006 meissner@suse.de
- use RPM_OPT_FLAGS correctly.
* Thu Jul 13 2006 mfabian@suse.de
- update to 0.3.0:
  + This is a new development branch differing a lot from
  + 0.2.x series, and breaks API/ABI for new features.
  + UTF-8 based language engine core for common Unicode
  + environment.
  + Porting layer for POSIX/Unix-like and Win32 to reduce the
  + redundant porting process.
  + New API design for better consistency.
  + Merge the efforts from libchewing-data subproject, which
  + means various phrases have been reviewed and corrected.
  + Zuin fixes and symbol improvements.
  + Support key 'j' / 'k' for paging in selection mode.
  + Fix some internal memory management bugs and leaks.
  + Improved internal test suite.
  + New binary-form of user hash data to speed up loading and
  + solve hash data corruption.
  + Better calculating of internal tree and phone constants.
  + Revised tsi.src for richer phrases and avoiding crashes.
  + Merge phone and phrase from CNS11643.
  + Reduce the amount for the expose for internal symbols.
  + Improved Han-Yu PinYin to use table-lookup implementation.
  + Experimental frequency-evaluation. (re-compute chewing
  + lifetime)
  + Implement the choice mechanism for pair symbols.
  + Improved Tab handling to allow the switching over different
  + frequency orders of candidated phrases.
  + New auxiliary module for simpler API uses.
  + Experimental memory-mapping based binary data handling to
  + speed up data loading.
- add "check" to BuildRequires.
- adapt bugzilla-155270-libchewing-init-chewing-correctly.patch
* Tue May 23 2006 zsu@suse.de
- bugzilla #155270,#177882 new patch for #155270 to avoid #177882.
  Clearing the whole ChewingData structure will clear config data
  as well, which causes another crash in libchewing (#177882).
  So we need keep ChewingData.Config member while clearing others.
* Tue May 09 2006 zsu@suse.de
- bugzilla #155270: Fix scim crash issue when switching from Chewing
  to other input method.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 23 2006 mfabian@suse.de
- fix libtool problem in configure.ac to make the package build
  again.
* Tue Aug 09 2005 mfabian@suse.de
- update to 0.2.7.
* Mon Feb 28 2005 mfabian@suse.de
- update to 0.2.6.
* Thu Feb 17 2005 mfabian@suse.de
- libchewing did overwrite the return value of getenv("HOME")
  and added ".chewing". This is bad because it changed the value
  of HOME in the environment. If the value of HOME is wrong,
  external graphical programs like the Anthy dictionary interface
  "kasumi" cannot be started anymore from the scim-panel because
  they cannot find ~/.Xauthority and therefore cannot open a
  window.
* Tue Jan 25 2005 mfabian@suse.de
- update to 0.2.5.
* Tue Dec 21 2004 mfabian@suse.de
- new package: libchewing, version 0.2.4.
openSUSE Build Service is sponsored by