Blame fcitx5-rime.spec

bc02deb
%global __provides_exclude_from ^%{_libdir}/fcitx5/.*\\.so$
bc02deb
bc02deb
Name:           fcitx5-rime
e972cd6
Version:        5.0.8
82deb95
Release:        %autorelease
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
82deb95
%autochangelog