Use “BuildRequires: appstream” only on Fedora

This commit is contained in:
Mike FABIAN 2021-02-17 10:19:27 +01:00
parent 09367556ea
commit ef1728cbdc

View File

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