libime/libime.spec

98 lines
2.4 KiB
RPMSpec
Raw Normal View History

2020-08-22 22:00:49 +00:00
Name: libime
2024-01-05 10:47:07 +00:00
Version: 1.1.4
2020-08-22 22:00:49 +00:00
License: LGPLv2+ and MIT and BSD
2021-09-12 07:51:07 +00:00
Release: %autorelease
2020-08-22 22:00:49 +00:00
Summary: This is a library to support generic input method implementation
2020-11-03 10:23:31 +00:00
URL: https://github.com/fcitx/libime
Source: https://download.fcitx-im.org/fcitx5/%{name}/%{name}-%{version}_dict.tar.xz
Source1: https://download.fcitx-im.org/fcitx5/%{name}/%{name}-%{version}_dict.tar.xz.sig
Source2: https://pgp.key-server.io/download/0x8E8B898CBF2412F9
2020-08-22 22:00:49 +00:00
2020-11-03 10:23:31 +00:00
BuildRequires: gnupg2
2020-08-22 22:00:49 +00:00
BuildRequires: cmake
BuildRequires: ninja-build
BuildRequires: gcc-c++
BuildRequires: fcitx5-devel
BuildRequires: boost-devel
BuildRequires: extra-cmake-modules
BuildRequires: python3
BuildRequires: doxygen
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(bzip2)
2023-10-02 15:42:28 +00:00
BuildRequires: pkgconfig(libzstd)
2020-08-22 22:00:49 +00:00
BuildRequires: pkgconfig(eigen3)
2020-08-29 04:22:23 +00:00
Requires: %{name}-data
2020-08-22 22:00:49 +00:00
%description
This is a library to support generic input method implementation.
%package data
Summary: Data files of %{name}
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
Requires: hicolor-icon-theme
%description data
The %{name}-data package provides shared data for %{name}.
2020-08-22 22:00:49 +00:00
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
2020-12-04 16:33:43 +00:00
Requires: boost-devel%{?_isa}
2020-08-22 22:00:49 +00:00
%description devel
Development files for %{name}
%prep
2020-11-03 10:23:31 +00:00
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup
2020-08-22 22:00:49 +00:00
%build
%cmake -GNinja
%cmake_build
%install
%cmake_install
%check
%ctest
%files
2020-11-03 10:23:31 +00:00
%license LICENSES/LGPL-2.1-or-later.txt src/libime/core/kenlm/LICENSE
2020-08-22 22:00:49 +00:00
%doc README.md
%{_bindir}/%{name}_history
%{_bindir}/%{name}_pinyindict
%{_bindir}/%{name}_prediction
%{_bindir}/%{name}_slm_build_binary
%{_bindir}/%{name}_tabledict
%{_bindir}/%{name}_migrate_fcitx4_pinyin
%{_bindir}/%{name}_migrate_fcitx4_table
2020-11-05 08:40:59 +00:00
%{_libdir}/libIMECore.so.0
%{_libdir}/libIMEPinyin.so.0
%{_libdir}/libIMETable.so.0
# upstream's soname and soversion dont match
# libxxx.so.X* won't work
%{_libdir}/libIMECore.so.*.*
%{_libdir}/libIMEPinyin.so.*.*
%{_libdir}/libIMETable.so.*.*
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/zh_CN.lm
%{_libdir}/%{name}/zh_CN.lm.predict
2020-08-22 22:00:49 +00:00
%files data
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*.dict
2020-08-22 22:00:49 +00:00
%files devel
%{_libdir}/libIMECore.so
%{_libdir}/libIMEPinyin.so
%{_libdir}/libIMETable.so
%{_libdir}/cmake/LibIME*
%{_includedir}/LibIME/
%changelog
2021-09-12 07:51:07 +00:00
%autochangelog