Initial Import(#1868849)
This commit is contained in:
parent
0b7fc21994
commit
18d522e435
|
@ -0,0 +1,5 @@
|
|||
/dict.utf8-20200715.tar.xz
|
||||
/kenlm-96d303cfb1a0c21b8f060dbad640d7ab301c019a.tar.gz
|
||||
/libime-dff3ea6d1600166a5da65e4e7bee72fa8d595daa.tar.gz
|
||||
/lm_sc.3gm.arpa-20140820.tar.bz2
|
||||
/table.tar.gz
|
|
@ -0,0 +1,117 @@
|
|||
%global forgeurl0 https://github.com/fcitx/libime
|
||||
%global commit0 dff3ea6d1600166a5da65e4e7bee72fa8d595daa
|
||||
|
||||
# KenLM is used as submodule in upstream
|
||||
%global forgeurl1 https://github.com/kpu/kenlm
|
||||
%global commit1 96d303cfb1a0c21b8f060dbad640d7ab301c019a
|
||||
|
||||
%global _lm_sc_ver 20140820
|
||||
%global _dict_ver 20200715
|
||||
|
||||
%forgemeta -a
|
||||
|
||||
Name: libime
|
||||
Version: 0
|
||||
# both kenlm and libime are released under LGPL2+, but kenlm have some
|
||||
# files in MIT and BSD
|
||||
License: LGPLv2+ and MIT and BSD
|
||||
Release: 0.3%{?dist}
|
||||
Summary: This is a library to support generic input method implementation
|
||||
URL: %{forgeurl0}
|
||||
Source0: %{forgesource0}
|
||||
Source1: %{forgesource1}
|
||||
Source2: https://download.fcitx-im.org/data/lm_sc.3gm.arpa-%{_lm_sc_ver}.tar.bz2
|
||||
Source3: https://download.fcitx-im.org/data/dict.utf8-%{_dict_ver}.tar.xz
|
||||
Source4: https://download.fcitx-im.org/data/table.tar.gz
|
||||
|
||||
|
||||
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)
|
||||
BuildRequires: pkgconfig(liblzma)
|
||||
BuildRequires: pkgconfig(eigen3)
|
||||
|
||||
Requires: %{name}-data = %{version}-%{release}
|
||||
|
||||
|
||||
%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
|
||||
Requires: dbus
|
||||
|
||||
%description data
|
||||
The %{name}-data package provides shared data for %{name}.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Development files for %{name}
|
||||
|
||||
%prep
|
||||
%forgeautosetup
|
||||
rmdir %{_builddir}/%{name}-%{commit0}/src/%{name}/core/kenlm
|
||||
tar xf %{S:1} --directory=%{_builddir}/%{name}-%{commit0}/src/%{name}/core/
|
||||
ln -s %{_builddir}/%{name}-%{commit0}/src/%{name}/core/kenlm-%{commit1} \
|
||||
%{_builddir}/%{name}-%{commit0}/src/%{name}/core/kenlm
|
||||
ln -s %{S:2} %{_builddir}/%{name}-%{commit0}/data
|
||||
ln -s %{S:3} %{_builddir}/%{name}-%{commit0}/data
|
||||
ln -s %{S:4} %{_builddir}/%{name}-%{commit0}/data
|
||||
|
||||
%build
|
||||
%cmake -GNinja
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
%check
|
||||
%ctest
|
||||
|
||||
%files
|
||||
%license LICENSES/LGPL-2.1-or-later.txt src/%{name}/core/kenlm-%{commit1}/LICENSE
|
||||
%doc README.md
|
||||
%{_bindir}/%{name}_history
|
||||
%{_bindir}/%{name}_pinyindict
|
||||
%{_bindir}/%{name}_prediction
|
||||
%{_bindir}/%{name}_slm_build_binary
|
||||
%{_bindir}/%{name}_tabledict
|
||||
%{_libdir}/libIMECore.so.0*
|
||||
%{_libdir}/libIMEPinyin.so.0*
|
||||
%{_libdir}/libIMETable.so.0*
|
||||
|
||||
%files data
|
||||
%{_datadir}/%{name}/
|
||||
|
||||
%files devel
|
||||
%{_libdir}/libIMECore.so
|
||||
%{_libdir}/libIMEPinyin.so
|
||||
%{_libdir}/libIMETable.so
|
||||
%{_libdir}/cmake/LibIME*
|
||||
%{_includedir}/LibIME/
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Aug 22 2020 Qiyu Yan <yanqiyu@fedoraproject.org> - 0-0.3.20200822gitdff3ea6.s20200822git96d303c
|
||||
- upstream fix of testing on i686
|
||||
- commit dff3ea6d1600166a5da65e4e7bee72fa8d595daa
|
||||
|
||||
* Sun Aug 16 2020 Qiyu Yan <yanqiyu@fedoraproject.org> - 0-0.2.20200811gita108d15.s20200811git96d303c
|
||||
- rebuilt
|
||||
|
||||
* Wed Aug 12 2020 Qiyu Yan <yanqiyu@fedoraproject.org> - 0-0.1.20200811gita108d15.s20200811git96d303c
|
||||
- initial package
|
|
@ -0,0 +1,5 @@
|
|||
SHA512 (dict.utf8-20200715.tar.xz) = 75ad207842937369e79c3c3616165424c4e71fbce7ba2b15c7c2f1dcb898950e6d9babf39ed5bde01c21dd025906c988a80989863175daa8d1315a9be4402130
|
||||
SHA512 (kenlm-96d303cfb1a0c21b8f060dbad640d7ab301c019a.tar.gz) = c39210f5a52512b23ab20ecd396def4780ea78eef25ed935dec2667ad68ae822c0e53556725374fed6ccb427732a9101e76467b487eb729539f063b28ca17d3e
|
||||
SHA512 (libime-dff3ea6d1600166a5da65e4e7bee72fa8d595daa.tar.gz) = c6c9ba4c4da187bacbe1994ff0e8ce5c0ac14f3f77cf538cccc518bf582f30761554862377c83038ab571c7702439d6ec6ba1bce4486292c349f749693307e0a
|
||||
SHA512 (lm_sc.3gm.arpa-20140820.tar.bz2) = ea3ede62eb993c4d21ca7cf339635f4686493a0cefd57df4a31f00a001e67502a13ff9612ff667b941b82b47de00be9f3c9689677d04195a7ef8716bac087519
|
||||
SHA512 (table.tar.gz) = 99e1d69c679355fcf3e117a1ef39b131cbd3af841387d2335757247d840b90ff6b7323e16fca98cf7a043033faf250d2e9c6d47b96845d18c278a0cf6f30fec9
|
Loading…
Reference in New Issue