Peng Wu 9fd9ca
Name:           librime
Peng Wu 1104f1
Version:        1.1
Peng Wu 095b4d
Release:        2%{?dist}
Peng Wu 9fd9ca
Summary:        Rime Input Method Engine Library
Peng Wu 9fd9ca
Peng Wu 9fd9ca
License:        GPLv3
Peng Wu 9fd9ca
URL:            http://code.google.com/p/rimeime/
Peng Wu 9fd9ca
Source0:        http://rimeime.googlecode.com/files/%{name}-%{version}.tar.gz
Peng Wu 9fd9ca
Peng Wu 9fd9ca
BuildRequires:  cmake, opencc-devel
Peng Wu 9fd9ca
BuildRequires:  boost-devel >= 1.46
Peng Wu e95aec
BuildRequires:  zlib-devel
Peng Wu 9fd9ca
BuildRequires:  glog-devel, gtest-devel
Peng Wu 9fd9ca
BuildRequires:  yaml-cpp-devel, kyotocabinet-devel
Peng Wu 9fd9ca
Peng Wu f5326b
#Fixes arm build
Peng Wu 095b4d
Patch1:         librime-fixes-misaligned-address.patch
Peng Wu 9fd9ca
Peng Wu 9fd9ca
%description
Peng Wu 9fd9ca
Rime Input Method Engine Library
Peng Wu 9fd9ca
Peng Wu 9fd9ca
Support for shape-based and phonetic-based input methods,
Peng Wu a29183
including those for Chinese dialects.
Peng Wu 9fd9ca
Peng Wu 9fd9ca
A selected dictionary in Traditional Chinese,
Peng Wu a29183
powered by opencc for Simplified Chinese output.
Peng Wu 9fd9ca
Peng Wu 9fd9ca
%package        devel
Peng Wu 9fd9ca
Summary:        Development files for %{name}
Peng Wu 9fd9ca
Requires:       %{name}%{?_isa} = %{version}-%{release}
Peng Wu 9fd9ca
Peng Wu 9fd9ca
%description    devel
Peng Wu 9fd9ca
The %{name}-devel package contains libraries and header files for
Peng Wu 9fd9ca
developing applications that use %{name}.
Peng Wu 9fd9ca
Peng Wu 9fd9ca
Peng Wu 9fd9ca
%package        tools
Peng Wu 9fd9ca
Summary:        Tools for %{name}
Peng Wu 9fd9ca
Requires:       %{name}%{?_isa} = %{version}-%{release}
Peng Wu 9fd9ca
Peng Wu 9fd9ca
%description    tools
Peng Wu 9fd9ca
The %{name}-tools package contains tools for %{name}.
Peng Wu 9fd9ca
Peng Wu 9fd9ca
Peng Wu 9fd9ca
%prep
Peng Wu 9fd9ca
%setup -q -n %{name}
Peng Wu 095b4d
%ifarch %{arm}
Peng Wu 095b4d
%patch1 -p1 -b .arm
Peng Wu 095b4d
%endif
Peng Wu 9fd9ca
Peng Wu 9fd9ca
%build
Peng Wu 9fd9ca
%cmake
Peng Wu 9fd9ca
make VERBOSE=1 %{?_smp_mflags}
Peng Wu 9fd9ca
Peng Wu 9fd9ca
%install
Peng Wu 9fd9ca
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
Peng Wu 9fd9ca
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
Peng Wu 9fd9ca
Peng Wu 9fd9ca
Peng Wu 9fd9ca
%post -p /sbin/ldconfig
Peng Wu 9fd9ca
Peng Wu 9fd9ca
%postun -p /sbin/ldconfig
Peng Wu 9fd9ca
Peng Wu 9fd9ca
Peng Wu 9fd9ca
%files
Peng Wu 9fd9ca
%doc README LICENSE
Peng Wu 9fd9ca
%{_libdir}/*.so.*
Peng Wu 9fd9ca
Peng Wu 9fd9ca
Peng Wu 9fd9ca
%files devel
Peng Wu 9fd9ca
%doc
Peng Wu 9fd9ca
%{_includedir}/*
Peng Wu 9fd9ca
%{_libdir}/*.so
Peng Wu 9fd9ca
%{_libdir}/pkgconfig/rime.pc
Peng Wu 9fd9ca
%dir %{_datadir}/cmake/rime
Peng Wu 9fd9ca
%{_datadir}/cmake/rime/RimeConfig.cmake
Peng Wu 9fd9ca
Peng Wu 9fd9ca
Peng Wu 9fd9ca
%files tools
Peng Wu 9fd9ca
%{_bindir}/rime_deployer
Peng Wu 9fd9ca
%{_bindir}/rime_dict_manager
Peng Wu 9fd9ca
Peng Wu 9fd9ca
Peng Wu 9fd9ca
%changelog
Peng Wu 095b4d
* Mon Dec 30 2013 Peng Wu <pwu@redhat.com> - 1.1-2
Peng Wu 095b4d
- Update arm patch
Peng Wu 095b4d
Peng Wu 1104f1
* Fri Dec 27 2013 Peng Wu <pwu@redhat.com> - 1.1-1
Peng Wu 1104f1
- Update to 1.1
Peng Wu 1104f1
Peng Wu e95aec
* Mon Dec  9 2013 Peng Wu <pwu@redhat.com> - 1.0-1
Peng Wu e95aec
- Update to 1.0
Peng Wu e95aec
Peng Wu f106e8
* Mon Nov 25 2013 Peng Wu <pwu@redhat.com> - 0.9.9-1
Peng Wu f106e8
- Update to 0.9.9
Peng Wu f106e8
5ac647
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8-5
5ac647
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5ac647
Petr Machata 77d594
* Sat Jul 27 2013 pmachata@redhat.com - 0.9.8-4
Petr Machata 77d594
- Rebuild for boost 1.54.0
Petr Machata 77d594
Peng Wu f5326b
* Mon Jul 15 2013 Peng Wu <pwu@redhat.com> - 0.9.8-3
Peng Wu f5326b
- Fixes arm build
Peng Wu f5326b
Peng Wu 9fd9ca
* Thu May 16 2013 Peng Wu <pwu@redhat.com> - 0.9.8-2
Peng Wu 9fd9ca
- Improves the spec
Peng Wu 9fd9ca
Peng Wu 9fd9ca
* Thu May  9 2013 Peng Wu <pwu@redhat.com> - 0.9.8-1
Peng Wu 9fd9ca
- The Initial Version
Peng Wu 9fd9ca