Peng Wu 9fd9caf
Name:           librime
Peng Wu 995a25d
Version:        1.2
8ff5588
Release:        4%{?dist}
Peng Wu 9fd9caf
Summary:        Rime Input Method Engine Library
Peng Wu 9fd9caf
Peng Wu 9fd9caf
License:        GPLv3
Peng Wu 9fd9caf
URL:            http://code.google.com/p/rimeime/
Peng Wu 995a25d
Source0:        http://dl.bintray.com/lotem/rime/%{name}-%{version}.tar.gz
Peng Wu 9fd9caf
Peng Wu 9fd9caf
BuildRequires:  cmake, opencc-devel
Peng Wu 9fd9caf
BuildRequires:  boost-devel >= 1.46
Peng Wu e95aec0
BuildRequires:  zlib-devel
Peng Wu 9fd9caf
BuildRequires:  glog-devel, gtest-devel
Peng Wu 9fd9caf
BuildRequires:  yaml-cpp-devel, kyotocabinet-devel
Brent Baude 68f906b
BuildRequires:	gflags-devel
Peng Wu 995a25d
BuildRequires:  marisa-devel
Peng Wu 9fd9caf
Peng Wu f5326bd
#Fixes arm build
Peng Wu 995a25d
#Patch1:         librime-fixes-misaligned-address.patch
Peng Wu 995a25d
Patch2:          librime-use-opencc-1.0.2.patch
Peng Wu 9fd9caf
Peng Wu 9fd9caf
%description
Peng Wu 9fd9caf
Rime Input Method Engine Library
Peng Wu 9fd9caf
Peng Wu 9fd9caf
Support for shape-based and phonetic-based input methods,
Peng Wu a291839
including those for Chinese dialects.
Peng Wu 9fd9caf
Peng Wu 9fd9caf
A selected dictionary in Traditional Chinese,
Peng Wu a291839
powered by opencc for Simplified Chinese output.
Peng Wu 9fd9caf
Peng Wu 9fd9caf
%package        devel
Peng Wu 9fd9caf
Summary:        Development files for %{name}
Peng Wu 9fd9caf
Requires:       %{name}%{?_isa} = %{version}-%{release}
Peng Wu 9fd9caf
Peng Wu 9fd9caf
%description    devel
Peng Wu 9fd9caf
The %{name}-devel package contains libraries and header files for
Peng Wu 9fd9caf
developing applications that use %{name}.
Peng Wu 9fd9caf
Peng Wu 9fd9caf
Peng Wu 9fd9caf
%package        tools
Peng Wu 9fd9caf
Summary:        Tools for %{name}
Peng Wu 9fd9caf
Requires:       %{name}%{?_isa} = %{version}-%{release}
Peng Wu 9fd9caf
Peng Wu 9fd9caf
%description    tools
Peng Wu 9fd9caf
The %{name}-tools package contains tools for %{name}.
Peng Wu 9fd9caf
Peng Wu 9fd9caf
Peng Wu 9fd9caf
%prep
Peng Wu 9fd9caf
%setup -q -n %{name}
Peng Wu 995a25d
%patch2 -p1 -b .opencc
Peng Wu 9fd9caf
Peng Wu 9fd9caf
%build
Peng Wu 9fd9caf
%cmake
Peng Wu 9fd9caf
make VERBOSE=1 %{?_smp_mflags}
Peng Wu 9fd9caf
Peng Wu 9fd9caf
%install
Peng Wu 9fd9caf
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
Peng Wu 9fd9caf
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
Peng Wu 9fd9caf
Peng Wu 9fd9caf
Peng Wu 9fd9caf
%post -p /sbin/ldconfig
Peng Wu 9fd9caf
Peng Wu 9fd9caf
%postun -p /sbin/ldconfig
Peng Wu 9fd9caf
Peng Wu 9fd9caf
Peng Wu 9fd9caf
%files
Peng Wu 9fd9caf
%doc README LICENSE
Peng Wu 9fd9caf
%{_libdir}/*.so.*
Peng Wu 9fd9caf
Peng Wu 9fd9caf
Peng Wu 9fd9caf
%files devel
Peng Wu 9fd9caf
%doc
Peng Wu 9fd9caf
%{_includedir}/*
Peng Wu 9fd9caf
%{_libdir}/*.so
Peng Wu 9fd9caf
%{_libdir}/pkgconfig/rime.pc
Peng Wu 9fd9caf
%dir %{_datadir}/cmake/rime
Peng Wu 9fd9caf
%{_datadir}/cmake/rime/RimeConfig.cmake
Peng Wu 9fd9caf
Peng Wu 9fd9caf
Peng Wu 9fd9caf
%files tools
Peng Wu 9fd9caf
%{_bindir}/rime_deployer
Peng Wu 9fd9caf
%{_bindir}/rime_dict_manager
Peng Wu 9fd9caf
Peng Wu 9fd9caf
Peng Wu 9fd9caf
%changelog
8ff5588
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
8ff5588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8ff5588
87c9fd1
* Mon May 04 2015 Kalev Lember <kalevlember@gmail.com> - 1.2-3
87c9fd1
- Rebuilt for GCC 5 C++11 ABI change
87c9fd1
Petr Machata dd995bb
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 1.2-2
Petr Machata dd995bb
- Rebuild for boost 1.57.0
Petr Machata dd995bb
Peng Wu 995a25d
* Tue Jan  6 2015 Peng Wu <pwu@redhat.com> - 1.2-1
Peng Wu 995a25d
- Update to 1.2
Peng Wu 995a25d
3f5dd9e
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-6
3f5dd9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
3f5dd9e
4e8ce16
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-5
4e8ce16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4e8ce16
Petr Machata 192014e
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 1.1-4
Petr Machata 192014e
- Rebuild for boost 1.55.0
Petr Machata 192014e
Brent Baude 68f906b
* Thu May 22 2014 Brent Baude <baude@us.ibm.com> - 1.1-3
Brent Baude 68f906b
- FTBFS on all arches due to missing gflags.h
Brent Baude 68f906b
- Adding BR for gflags-devel 
Brent Baude 68f906b
Peng Wu 095b4dd
* Mon Dec 30 2013 Peng Wu <pwu@redhat.com> - 1.1-2
Peng Wu 095b4dd
- Update arm patch
Peng Wu 095b4dd
Peng Wu 1104f19
* Fri Dec 27 2013 Peng Wu <pwu@redhat.com> - 1.1-1
Peng Wu 1104f19
- Update to 1.1
Peng Wu 1104f19
Peng Wu e95aec0
* Mon Dec  9 2013 Peng Wu <pwu@redhat.com> - 1.0-1
Peng Wu e95aec0
- Update to 1.0
Peng Wu e95aec0
Peng Wu f106e84
* Mon Nov 25 2013 Peng Wu <pwu@redhat.com> - 0.9.9-1
Peng Wu f106e84
- Update to 0.9.9
Peng Wu f106e84
5ac6477
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8-5
5ac6477
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5ac6477
Petr Machata 77d5942
* Sat Jul 27 2013 pmachata@redhat.com - 0.9.8-4
Petr Machata 77d5942
- Rebuild for boost 1.54.0
Petr Machata 77d5942
Peng Wu f5326bd
* Mon Jul 15 2013 Peng Wu <pwu@redhat.com> - 0.9.8-3
Peng Wu f5326bd
- Fixes arm build
Peng Wu f5326bd
Peng Wu 9fd9caf
* Thu May 16 2013 Peng Wu <pwu@redhat.com> - 0.9.8-2
Peng Wu 9fd9caf
- Improves the spec
Peng Wu 9fd9caf
Peng Wu 9fd9caf
* Thu May  9 2013 Peng Wu <pwu@redhat.com> - 0.9.8-1
Peng Wu 9fd9caf
- The Initial Version
Peng Wu 9fd9caf