Blame fcitx5-rime.spec

bc02deb
%global __provides_exclude_from ^%{_libdir}/fcitx5/.*\\.so$
bc02deb
bc02deb
Name:           fcitx5-rime
b78cec4
Version:        5.0.6
57edb62
Release:        1%{?dist}
bc02deb
Summary:        RIME support for Fcitx
bc02deb
License:        LGPLv2+
8a71019
URL:            https://github.com/fcitx/fcitx5-rime
8a71019
Source:         https://download.fcitx-im.org/fcitx5/%{name}/%{name}-%{version}.tar.xz
8a71019
Source1:        https://download.fcitx-im.org/fcitx5/%{name}/%{name}-%{version}.tar.xz.sig
8a71019
Source2:        https://pgp.key-server.io/download/0x8E8B898CBF2412F9
bc02deb
8a71019
BuildRequires:  gnupg2
bc02deb
BuildRequires:  brise 
bc02deb
BuildRequires:  cmake
bc02deb
BuildRequires:  extra-cmake-modules
bc02deb
BuildRequires:  gcc-c++
bc02deb
BuildRequires:  ninja-build
bc02deb
BuildRequires:  gettext
bc02deb
BuildRequires:  pkgconfig
bc02deb
BuildRequires:  pkgconfig(Fcitx5Core)
bc02deb
BuildRequires:  pkgconfig(Fcitx5Module)
bc02deb
BuildRequires:  pkgconfig(rime)
e4d9f88
BuildRequires:  /usr/bin/appstream-util
bc02deb
Requires:       hicolor-icon-theme
bc02deb
Requires:       fcitx5-data
daf496a
Requires:       brise
bc02deb
bc02deb
%description
bc02deb
RIME(中州韻輸入法引擎) is mainly a Traditional Chinese 
bc02deb
input method engine.
bc02deb
bc02deb
%prep
8a71019
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
8a71019
%autosetup
bc02deb
bc02deb
%build
bc02deb
%cmake -GNinja
bc02deb
%cmake_build 
bc02deb
bc02deb
%install
bc02deb
%cmake_install
bc02deb
f2b86e9
# convert symlinked icons to copied icons, this will help co-existing with
f2b86e9
# fcitx4
f2b86e9
for iconfile in $(find %{buildroot}%{_datadir}/icons -type l)
f2b86e9
do
f2b86e9
  origicon=$(readlink -f ${iconfile})
f2b86e9
  rm -f ${iconfile}
f2b86e9
  cp ${origicon} ${iconfile}
f2b86e9
done
e4d9f88
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml
bc02deb
%find_lang %{name}
bc02deb
bc02deb
%check
bc02deb
%ctest
bc02deb
bc02deb
%files -f %{name}.lang
bc02deb
%license LICENSES/LGPL-2.1-or-later.txt
bc02deb
%doc README.md 
bc02deb
%{_libdir}/fcitx5/rime.so
bc02deb
%{_datadir}/fcitx5/*/rime.conf
bc02deb
%{_datadir}/icons/hicolor/*/*/*
9e95c9e
%{_metainfodir}/org.fcitx.Fcitx5.Addon.Rime.metainfo.xml
bc02deb
bc02deb
%changelog
b78cec4
* Wed May 05 2021 Qiyu Yan <yanqiyu@fedoraproject.org> - 5.0.6-1
b78cec4
- Update to 5.0.6 upstream release
b78cec4
3f12ad2
* Mon Mar 22 2021 Qiyu Yan <yanqiyu@fedoraproject.org> - 5.0.5-1
3f12ad2
- Update to 5.0.5 upstream release
3f12ad2
57edb62
* Sat Feb 20 2021 Qiyu Yan <yanqiyu@fedoraproject.org> - 5.0.4-1
57edb62
- update to 5.0.4 upstream release
57edb62
880d185
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.3-2
880d185
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
880d185
07d84c5
* Wed Jan 13 11:12:05 CST 2021 Qiyu Yan <yanqiyu@fedoraproject.org> - 5.0.3-1
07d84c5
- update to 5.0.3 upstream release
07d84c5
f2b86e9
* Fri Dec 11 16:56:26 CST 2020 Qiyu Yan <yanqiyu@fedoraproject.org> - 5.0.2-2
f2b86e9
- fix conlict with fcitx4
f2b86e9
da71351
* Thu Dec 10 22:39:12 CST 2020 Qiyu Yan <yanqiyu@fedoraproject.org> - 5.0.2-1
da71351
- Update to 5.0.2 upstream release
da71351
9e95c9e
* Sat Dec  5 16:29:01 CST 2020 Qiyu Yan <yanqiyu@fedoraproject.org> - 5.0.1-1
9e95c9e
- Update to 5.0.1 upstream release
9e95c9e
8a71019
* Tue Nov  3 20:13:39 CST 2020 Qiyu Yan <yanqiyu@fedoraproject.org> - 5.0.0-1
8a71019
- update to 5.0.0 upstream release
8a71019
9768c32
* Fri Oct 16 2020 Qiyu Yan <yanqiyu@fedoraproject.org> - 0-0.5
9768c32
- update to e20996d752e3b2882d35c15630fa4b75da177485 upstream commit
9768c32
71673fc
* Sat Sep 12 2020 Qiyu Yan <yanqiyu@fedoraproject.org> - 0-0.4
71673fc
- Rebuild for fcitx5
71673fc
- Upstream commit 6da82ec569e3a83a94f7c1fff71fce885a6b2252
71673fc
daf496a
* Sat Aug 22 2020 Qiyu Yan <yanqiyu@fedoraproject.org> - 0-0.3.20200811gite4fc600
daf496a
- add missing Requires
daf496a
bc02deb
* Sun Aug 16 2020 Qiyu Yan <yanqiyu@fedoraproject.org> - 0-0.2.20200811gite4fc600
bc02deb
- rebuilt
bc02deb
bc02deb
* Wed Aug 12 2020 Qiyu Yan <yanqiyu@fedoraproject.org> - 0-0.1.20200811gite4fc600
bc02deb
- initial package