File libchewing.spec of Package libchewing
Name: libchewing
# List of additional build dependencies
#BuildRequires: gcc-c++ libxml2-devel
Version: 0.3.2
Release: 2.1
License: LGPL v2.1 or later
Source: libchewing-%{version}.tar.bz2
Patch0: libchewing-0.3.2.chewing_zuin.patch
Group: System/I18n/Chinese
Summary: Intelligent phonetic input method library for traditional Chinesed
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Intelligent phonetic input method library for traditional Chinese.
%package devel
Summary: libchewing development package.
Group: System/I18n/Chinese
Requires: %{name} = %{version}
%description devel
libchewing development package
%prep
%setup -q
%patch0
%build
# Assume that the package is built by plain 'make' if there's no ./configure.
# This test is there only because the wizard doesn't know much about the
# package, feel free to clean it up
if test -x ./configure; then
%configure CFLAGS="-w"
fi
make
%install
make DESTDIR=%buildroot install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %buildroot
%files
%defattr(-,root,root)
%doc README AUTHORS COPYING ChangeLog
%dir %{_datadir}/chewing
%{_libdir}/libchewing.*
%{_datadir}/chewing/*
%files devel
%defattr(-,root,root)
%dir %{_includedir}/chewing
%{_includedir}/chewing/*
%{_libdir}/pkgconfig/chewing.pc
%changelog
* Mon Dec 21 2009 Jing <jingfu.lai@gmail.com>
- add patch0
* Wed Mar 04 2009 swyear@yahoo.com.tw
- packaged libchewing version 0.3.2 using the openSUSE Buildservice
* Mon Oct 13 2008 swyear@yahoo.com.tw
- packaged libchewing version 0.3.1 using the buildservice spec file wizard