Blob Blame Raw
Name:           librime
Version:        0.9.9
Release:        1%{?dist}
Summary:        Rime Input Method Engine Library

License:        GPLv3

BuildRequires:  cmake, opencc-devel
BuildRequires:  boost-devel >= 1.46
BuildRequires:  glog-devel, gtest-devel
BuildRequires:  yaml-cpp-devel, kyotocabinet-devel

#Remove zlib-devel depends
Patch0:         librime-fixes-zlib-cmake.patch
#Fixes arm build
Patch1:         librime-fixes-misaligned-address.patch
#Fixes test dictionary
Patch2:         librime-fix-dictionary-test.patch

Rime Input Method Engine Library

Support for shape-based and phonetic-based input methods,
including those for Chinese dialects.

A selected dictionary in Traditional Chinese,
powered by opencc for Simplified Chinese output.

%package        devel
Summary:        Development files for %{name}
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%package        tools
Summary:        Tools for %{name}
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    tools
The %{name}-tools package contains tools for %{name}.

%setup -q -n %{name}
%patch0 -p1 -b .zlib
%ifarch %{arm}
%patch1 -p1 -b .arm
%patch2 -p1 -b .test

make VERBOSE=1 %{?_smp_mflags}

make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files devel
%dir %{_datadir}/cmake/rime

%files tools

* Mon Nov 25 2013 Peng Wu <> - 0.9.9-1
- Update to 0.9.9

* Sat Aug 03 2013 Fedora Release Engineering <> - 0.9.8-5
- Rebuilt for

* Sat Jul 27 2013 - 0.9.8-4
- Rebuild for boost 1.54.0

* Mon Jul 15 2013 Peng Wu <> - 0.9.8-3
- Fixes arm build

* Thu May 16 2013 Peng Wu <> - 0.9.8-2
- Improves the spec

* Thu May  9 2013 Peng Wu <> - 0.9.8-1
- The Initial Version