update to 1.0.0 upstream release

This commit is contained in:
Qiyu Yan 2020-11-03 18:23:31 +08:00
parent fcdf23fe30
commit fa3ebd6d41
No known key found for this signature in database
GPG Key ID: 4FC914F065F2DF12
3 changed files with 19 additions and 37 deletions

3
.gitignore vendored
View File

@ -3,3 +3,6 @@
/libime-*.tar.gz
/lm_sc.3gm.arpa-20140820.tar.bz2
/table.tar.gz
/libime-1.0.0_dict.tar.xz
/libime-1.0.0_dict.tar.xz.sig
/0x8E8B898CBF2412F9

View File

@ -1,30 +1,14 @@
%global forgeurl0 https://github.com/fcitx/libime
%global commit0 22106dcf1681f6a5135a2d7fd35a3775187ca111
# KenLM is used as submodule in upstream
%global forgeurl1 https://github.com/kpu/kenlm
%global commit1 a6e130e7854ffd5d75ba7b29ba2479e7ad3a9244
%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
Version: 1.0.0
License: LGPLv2+ and MIT and BSD
Release: 0.10%{?dist}
Release: 1%{?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
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
BuildRequires: gnupg2
BuildRequires: cmake
BuildRequires: ninja-build
BuildRequires: gcc-c++
@ -60,14 +44,8 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
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
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup
%build
%cmake -GNinja
@ -80,7 +58,7 @@ ln -s %{S:4} %{_builddir}/%{name}-%{commit0}/data
%ctest
%files
%license LICENSES/LGPL-2.1-or-later.txt src/%{name}/core/kenlm-%{commit1}/LICENSE
%license LICENSES/LGPL-2.1-or-later.txt src/libime/core/kenlm/LICENSE
%doc README.md
%{_bindir}/%{name}_history
%{_bindir}/%{name}_pinyindict
@ -110,6 +88,9 @@ ln -s %{S:4} %{_builddir}/%{name}-%{commit0}/data
%changelog
* Tue Nov 3 18:22:05 CST 2020 Qiyu Yan <yanqiyu@fedoraproject.org> - 1.0.0-1
- update to 1.0.0 upstream release
* Sat Oct 31 22:11:47 CST 2020 Qiyu Yan <yanqiyu@fedoraproject.org> - 0-0.10
- update
- to libime commit 22106dcf1681f6a5135a2d7fd35a3775187ca111

View File

@ -1,5 +1,3 @@
SHA512 (dict.utf8-20200715.tar.xz) = 75ad207842937369e79c3c3616165424c4e71fbce7ba2b15c7c2f1dcb898950e6d9babf39ed5bde01c21dd025906c988a80989863175daa8d1315a9be4402130
SHA512 (kenlm-a6e130e7854ffd5d75ba7b29ba2479e7ad3a9244.tar.gz) = a838823dce1b4641b44c4592bcdab61e53e189dc4f9d96ae75fb5d6d8c511fec4cfc338c7f3c565bbc1dd9dc4463f09b18d087d670ef6a2c3172140a13563f39
SHA512 (libime-22106dcf1681f6a5135a2d7fd35a3775187ca111.tar.gz) = 770b1fb89a8d742b41fa1c15926854941542535f17a030bcbed9579acd9fbf127deb46cb61c9ffdb663f32491f1f401fc67578735a9526ab085665515e105d97
SHA512 (lm_sc.3gm.arpa-20140820.tar.bz2) = ea3ede62eb993c4d21ca7cf339635f4686493a0cefd57df4a31f00a001e67502a13ff9612ff667b941b82b47de00be9f3c9689677d04195a7ef8716bac087519
SHA512 (table.tar.gz) = 99e1d69c679355fcf3e117a1ef39b131cbd3af841387d2335757247d840b90ff6b7323e16fca98cf7a043033faf250d2e9c6d47b96845d18c278a0cf6f30fec9
SHA512 (libime-1.0.0_dict.tar.xz) = 8bf2cf3136037063a33905d2f1d35ae7c1f6be0c9c2b5658b0d4bb043da931eb080ddf6177c6651af66193f8b5044945d1976f6abcf3928b037611fcd6dba418
SHA512 (libime-1.0.0_dict.tar.xz.sig) = ecead83e334ff75b303cfec99943f132f86daaa84a7ab624cefd912029d85fb7e54537f783d2672bc1234e1c80402f7cf9d09e4b9f772cf8de2c0f3fbeea6ff3
SHA512 (0x8E8B898CBF2412F9) = e8127bfd351fe8867db7fc3a4dc6187bd9694cefa50588afe2327bed7d7d2b300993f442ff6029f15fae289bdac7cc22501ec03fc83cbe760ce3bf86c6512279