Use “BuildRequires: appstream” only on Fedora
This commit is contained in:
parent
d27070e9c0
commit
19dab3bce8
@ -1,6 +1,6 @@
|
||||
Name: ibus-table
|
||||
Version: 1.12.4
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: The Table engine for IBus platform
|
||||
License: LGPLv2+
|
||||
URL: http://code.google.com/p/ibus/
|
||||
@ -12,7 +12,9 @@ BuildRequires: gcc
|
||||
BuildRequires: ibus-devel > 1.3.0
|
||||
BuildRequires: python3-devel
|
||||
# for the unit tests
|
||||
%if 0%{?fedora}
|
||||
BuildRequires: appstream
|
||||
%endif
|
||||
BuildRequires: libappstream-glib
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: python3-gobject
|
||||
@ -69,7 +71,9 @@ export PYTHON=%{__python3}
|
||||
%find_lang %{name}
|
||||
|
||||
%check
|
||||
%if 0%{?fedora}
|
||||
appstreamcli validate --pedantic --explain --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-table.desktop
|
||||
@ -146,6 +150,9 @@ fi
|
||||
%{_datadir}/installed-tests/%{name}
|
||||
|
||||
%changelog
|
||||
* Wed Feb 17 2021 Mike FABIAN <mfabian@redhat.com> - 1.12.4-5
|
||||
- Use “BuildRequires: appstream” only on Fedora
|
||||
|
||||
* Tue Feb 16 2021 Mike FABIAN <mfabian@redhat.com> - 1.12.4-4
|
||||
- Remove i3 from BuildRequires
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user