File libchewing.spec of Package libchewing

#
# spec file for package libchewing (Version 0.3.2)
#
# 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.2
Release:        2
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/%{name}-%{version}.tar.bz2
Patch0:         libtool-autoconf.patch
Patch1:         libchewing-gcc-fix.diff
Patch2:         libchewing-fdleak.diff
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
%patch0 -p1
%patch1 -p1
%patch2

%build
rm -f aclocal.m4
autoreconf --force --install --verbose
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
%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
openSUSE Build Service is sponsored by