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