[librime] import srpm
Peng Wu
pwu at fedoraproject.org
Tue May 21 02:49:57 UTC 2013
commit 9fd9caff8e061445c0939a0bac7bd885b678ee39
Author: Peng Wu <alexepico at gmail.com>
Date: Tue May 21 10:47:31 2013 +0800
import srpm
.gitignore | 1 +
librime-fixes-zlib-cmake.patch | 25 +++++++++++
librime.spec | 89 ++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 116 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..aa865f2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/librime-0.9.8.tar.gz
diff --git a/librime-fixes-zlib-cmake.patch b/librime-fixes-zlib-cmake.patch
new file mode 100644
index 0000000..6fec58f
--- /dev/null
+++ b/librime-fixes-zlib-cmake.patch
@@ -0,0 +1,25 @@
+Index: librime/CMakeLists.txt
+===================================================================
+--- librime.orig/CMakeLists.txt
++++ librime/CMakeLists.txt
+@@ -57,7 +57,6 @@ if(YamlCpp_FOUND)
+ include_directories(${YamlCpp_INCLUDE_PATH})
+ endif(YamlCpp_FOUND)
+
+-find_package(ZLIB)
+ find_package(KyotoCabinet REQUIRED)
+ if(KyotoCabinet_FOUND)
+ include_directories(${KyotoCabinet_INCLUDE_PATH})
+Index: librime/src/CMakeLists.txt
+===================================================================
+--- librime.orig/src/CMakeLists.txt
++++ librime/src/CMakeLists.txt
+@@ -15,7 +15,7 @@ endif(Gflags_FOUND)
+
+ set(RIME_DEPS
+ ${Boost_LIBRARIES} ${Glog_LIBRARY} ${YamlCpp_LIBRARY} ${KyotoCabinet_LIBRARY} ${Opencc_LIBRARY}
+- ${ZLIB_LIBRARY} ${CMAKE_THREAD_LIBS_INIT} ${RIME_OPTIONAL_DEPS})
++ ${CMAKE_THREAD_LIBS_INIT} ${RIME_OPTIONAL_DEPS})
+
+ if(NOT BUILD_SHARED_LIBS)
+ add_library(rime-static STATIC ${LIBRIME_SRC})
diff --git a/librime.spec b/librime.spec
new file mode 100644
index 0000000..8cafa42
--- /dev/null
+++ b/librime.spec
@@ -0,0 +1,89 @@
+Name: librime
+Version: 0.9.8
+Release: 2%{?dist}
+Summary: Rime Input Method Engine Library
+
+License: GPLv3
+URL: http://code.google.com/p/rimeime/
+Source0: http://rimeime.googlecode.com/files/%{name}-%{version}.tar.gz
+
+BuildRequires: cmake, opencc-devel
+BuildRequires: boost-devel >= 1.46
+BuildRequires: glog-devel, gtest-devel
+BuildRequires: yaml-cpp-devel, kyotocabinet-devel
+
+#Requires:
+
+Patch0: librime-fixes-zlib-cmake.patch
+
+%description
+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}.
+
+
+%prep
+%setup -q -n %{name}
+%patch0 -p1 -b .zlib
+
+
+%build
+%cmake
+make VERBOSE=1 %{?_smp_mflags}
+
+%install
+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
+%doc README LICENSE
+%{_libdir}/*.so.*
+
+
+%files devel
+%doc
+%{_includedir}/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/rime.pc
+%dir %{_datadir}/cmake/rime
+%{_datadir}/cmake/rime/RimeConfig.cmake
+
+
+%files tools
+%{_bindir}/rime_deployer
+%{_bindir}/rime_dict_manager
+
+
+%changelog
+* Thu May 16 2013 Peng Wu <pwu at redhat.com> - 0.9.8-2
+- Improves the spec
+
+* Thu May 9 2013 Peng Wu <pwu at redhat.com> - 0.9.8-1
+- The Initial Version
+
diff --git a/sources b/sources
index e69de29..868e692 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2ef61458bd5b08652ae0ca190af072ba librime-0.9.8.tar.gz
More information about the scm-commits
mailing list