Use “BuildRequires: appstream” only on Fedora
This commit is contained in:
parent
09367556ea
commit
ef1728cbdc
@ -1,6 +1,6 @@
|
||||
Name: ibus-typing-booster
|
||||
Version: 2.10.4
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: A completion input method
|
||||
License: GPLv3+, ASL 2.0
|
||||
URL: https://mike-fabian.github.io/ibus-typing-booster/
|
||||
@ -43,7 +43,9 @@ BuildRequires: m17n-lib
|
||||
BuildRequires: m17n-db-extras
|
||||
BuildRequires: python3-enchant
|
||||
BuildRequires: python3-libvoikko
|
||||
%if 0%{?fedora}
|
||||
BuildRequires: appstream
|
||||
%endif
|
||||
BuildRequires: libappstream-glib
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: python3-gobject
|
||||
@ -131,7 +133,9 @@ export PYTHON=%{__python3}
|
||||
|
||||
%check
|
||||
export LC_ALL=C.UTF-8
|
||||
%if 0%{?fedora}
|
||||
appstreamcli validate --pedantic --no-net %{buildroot}/%{_datadir}/metainfo/*.appdata.xml
|
||||
%endif
|
||||
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*.appdata.xml
|
||||
desktop-file-validate \
|
||||
$RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup-typing-booster.desktop
|
||||
@ -232,6 +236,9 @@ fi
|
||||
%{_datadir}/applications/emoji-picker.desktop
|
||||
|
||||
%changelog
|
||||
* Wed Feb 17 2021 Mike FABIAN <mfabian@redhat.com> - 2.10.4-2
|
||||
- Use “BuildRequires: appstream” only on Fedora
|
||||
|
||||
* Tue Feb 02 2021 Mike FABIAN <mfabian@redhat.com> - 2.10.4-1
|
||||
- Update to 2.10.4
|
||||
- Use “from unittest import mock” instead of just “import mock”.
|
||||
|
Loading…
Reference in New Issue
Block a user