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 (or similar)
Group:          System/I18n/Chinese
AutoReqProv:    on
Version:        0.2.6
Release:        594
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
Patch3:         libtabe-memoryleak.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 (or similar)
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
%patch3

%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
openSUSE Build Service is sponsored by