Search
SailfishOS Open Build Service
>
Projects
>
home:birdzhang
:
rime
>
librime
> _service:tar_git:librime.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:librime.spec of Package librime
# # spec file for package librime # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define rime_version 1.4.0 Name: librime Version: 1.4.0 Release: 0 Summary: Rime Input Method Engine License: BSD-3-Clause Group: System/I18n/Chinese Url: https://github.com/rime/librime Source: %{name}-%{version}.tar.xz Patch0: 01-copy-rime-console.patch BuildRequires: boost-devel = 1.66.0 BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: glibc-common BuildRequires: glog-devel BuildRequires: yaml-cpp-devel BuildRequires: zlib-devel BuildRequires: leveldb-devel BuildRequires: marisa-devel BuildRequires: opencc-devel >= 1.0.2 BuildRequires: yaml-cpp-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Rime is an Traditional Chinese input method engine. Its idea comes from ancient Chinese brush and carving art. Mainly it's about to express your thinking with your keystrokes. %package -n rime Summary: Rime Input Method Engine Group: System/I18n/Chinese Requires: boost-devel Requires: libglog0 Requires: libopencc2 Requires: libmarisa0 Requires: libyaml-cpp0_6 Requires: libleveldb1 %description -n rime Rime is an Traditional Chinese input method engine. Its idea comes from ancient Chinese brush and carving art. Mainly it's about to express your thinking with your keystrokes. %package -n librime1 Summary: Rime Input Method Engine libraries Group: System/Libraries %description -n librime1 Rime is an Traditional Chinese input method engine. Its idea comes from ancient Chinese brush and carving art. Mainly it's about to express your thinking with your keystrokes. This package is the runtime libraries of Rime. %package devel Summary: Development files of Rime Group: Development/Libraries/C and C++ Requires: librime1 = %{version} Requires: rime = %{version} %description devel Rime is an Traditional Chinese input method engine. Its idea comes from ancient Chinese brush and carving art. Mainly it's about to express your thinking with your keystrokes. This package is the development headers of Rime. %prep %setup -q -n %{name}-%{version}/%{name} %patch0 -p1 %build make %{?_smp_mflags} thirdparty/gtest make %{?_smp_mflags} librime %install make DESTDIR=%{buildroot} install %{?_smp_mflags} cp -a src/rime %{buildroot}/usr/include/ %post -n librime1 -p /sbin/ldconfig %postun -n librime1 -p /sbin/ldconfig %files -n rime %defattr(-,root,root) %doc LICENSE README.md %{_bindir}/rime_console %{_bindir}/rime_api_console %{_bindir}/rime_deployer %{_bindir}/rime_dict_manager %files -n librime1 %defattr(-,root,root) %{_libdir}/%{name}.so.1 %{_libdir}/%{name}.so.%{rime_version} %files devel %defattr(-,root,root) %{_includedir}/rime_api.h %{_includedir}/rime_levers_api.h %{_includedir}/rime/ %{_libdir}/%{name}.so %{_libdir}/pkgconfig/rime.pc %{_datadir}/cmake/rime/ %changelog