File libtabe.spec of Package libtabe

#
# spec file for package libtabe (Version 0.2.6)
#
# 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:           libtabe
BuildRequires:  db-devel xorg-x11-devel
License:        BSD 3-Clause
Group:          System/I18n/Chinese
AutoReqProv:    on
Version:        0.2.6
Release:        593
Summary:        A Library for Chinese Language Processing Used in Input Methods
Source:         ftp://xcin.linux.org.tw/pub/xcin/xcin/libtabe-0.2.6.tar.bz2
Patch0:         libtabe-noweak.diff
Patch1:         libtabe-db41.diff
Patch2:         libtabe-proper-DESTDIR.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://libtabe.sourceforge.net/

%description
libtabe is a library that provides useful Chinese functions and
routines that deal with many fundamental elements, such as
pronunciation(BoPoMoFo), character frequency, word identification, and
word frequency. libtabe also comes with a free word database consisting
of 140,000 words.

More functionality is expected to be put into the library in the
future.

A practical application of libtabe is the intelligent phonetic input
method interface, bims. bims accepts input in BoPoMoFo and generates
output as meaningful sentences.

The XCIN-2.5 bimsphone module is based directly on libtabe and bims. In
the future, more modules might also be based on it.



Authors:
--------
    TaBE Project, HSIAO Pai-Hsiang  <libtabe@SourceForge>

%package devel
License:        BSD 3-Clause
Group:          Development/Libraries/C and C++
Summary:        Development Libraries and Header Files for libtabe Library
Requires:       libtabe = %{version} xorg-x11-proto-devel

%description devel
This package provides the development libraries and header files for
the libtabe library.



Authors:
--------
    TaBE Project, HSIAO Pai-Hsiang  &amp;lt;libtabe@SourceForge&amp;gt;

%prep
%setup -q -n libtabe 
%patch0 -p1
%patch1
%patch2

%build
%{suse_update_config -f script}
mv script/configure.in .
rm -Rf CVS doc/CVS
libtoolize --force
aclocal
autoconf
%configure --disable-static --with-pic \
            --with-db-inc=%{_includedir}/db4 \
            --enable-shared
#parallel make does not work
%{__make}

%install
%makeinstall
%{__rm} -f %{buildroot}%{_libdir}/*.la

%clean
rm -rf $RPM_BUILD_ROOT;

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
%doc COPYING INSTALL doc
%{_libdir}/lib*.so.*
%{_bindir}/*
%{_libdir}/tabe/

%files devel
%defattr(-, root, root)
%{_libdir}/lib*.so
%{_includedir}/*.h

%changelog
* Sat Jan 17 2009 crrodriguez@suse.de
- remove "la" files and static libraries
- use proper DESTDIR
- fix -devel package dependencies
* Wed Oct 29 2008 ro@suse.de
- call suse_update_config for script directory to fix build
  on x86_64
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Nov 25 2004 ro@suse.de
- fix build with db-4.3
* Sat Jan 10 2004 adrian@suse.de
- add %%run_ldconfig
* Fri May 16 2003 ro@suse.de
- fix build with libdb-4.1
* Fri Dec 06 2002 coolo@suse.de
- link libtabe against libdb so it doesn't have undefined references
* Tue Aug 27 2002 mfabian@suse.de
- update to 0.2.6 to and build it against db4.
  This makes it build on 64 bit platforms. Thanks to
  Ruediger Oertel <ro@suse.de>.
* Fri Aug 09 2002 mfabian@suse.de
- add Requires: libtabe = %%{version} to libtabe-devel package
  (Bug #17543).
* Wed Apr 10 2002 mfabian@suse.de
- use %%{_libdir}
* Fri Jan 18 2002 mfabian@suse.de
- link both xcin and libtabe against the version of db2 contained
  in glibc as berkdb2 is dropped from SuSE Linux. xcin and libtabe
  work well with this version of db2 as well, it looks like
  one only has to make sure that both are linked against the same
  version of db2.
  (use --with-dbinc=/usr/include/db2 and remove --with-dbinc
  completely)
* Sat Mar 10 2001 mfabian@suse.de
- fix {?suse_update_config} to build on ia64
* Wed Mar 07 2001 uli@suse.de
- added xf86 to neededforbuild
* Thu Feb 22 2001 mfabian@suse.de
- bzip2 sources
* Wed Feb 21 2001 phm@suse.de, mfabian@suse.de
- new package: libtabe version 0.1.9
openSUSE Build Service is sponsored by