File libchewing.spec of Package libchewing
#
# spec file for package libchewing
#
# Copyright (c) 2013 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/
#
Name: libchewing
Version: 0.3.4
Release: 0
BuildRequires: check-devel
BuildRequires: libtool
BuildRequires: pkg-config
Url: http://chewing.csie.net/
Source0: http://chewing.csie.net/download/libchewing/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Intelligent Phonetic Input Method Library for Traditional Chinese
License: LGPL-2.1+
Group: System/I18n/Chinese
Requires: libchewing3 = %{version}
%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
Summary: Development package for chewing
Group: Development/Libraries/Other
Requires: %{name} = %{version}
Requires: glibc-devel
%description devel
Development package for chewing (An 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 -n libchewing3
Summary: Chewing libraries
Group: System/Libraries
%description -n libchewing3
This package contains libraries for Chewing
%prep
%setup -q
%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
%install_info --info-dir=%{_infodir} %{_infodir}/libchewing.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libchewing.info.gz
%post -n libchewing3
/sbin/ldconfig
%postun -n libchewing3
/sbin/ldconfig
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README ChangeLog
%dir %{_libdir}/libchewing
%{_libdir}/libchewing/*
%{_infodir}/*.gz
%files -n libchewing3
%defattr(-, root, root)
%{_libdir}/libchewing.so.*
%files devel
%defattr(-, root, root)
%dir %{_includedir}/chewing
%{_includedir}/chewing/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/chewing.pc
%changelog