Use both appstreamcli and appstream-util for validation of the metainfo files
According to the appstream developers, appstream-util is unmaintained: https://github.com/ximion/appstream/issues/494#issuecomment-1521419742 But I keep it in here for the time being because the Fedora packaging guidelines ask for it: https://docs.fedoraproject.org/en-US/packaging-guidelines/AppData/#_app_data_validate_usage
This commit is contained in:
parent
416911e257
commit
0a3f558580
@ -1,6 +1,6 @@
|
|||||||
Name: ibus-typing-booster
|
Name: ibus-typing-booster
|
||||||
Version: 2.22.4
|
Version: 2.22.4
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: A completion input method
|
Summary: A completion input method
|
||||||
License: GPL-3.0-or-later AND Apache-2.0
|
License: GPL-3.0-or-later AND Apache-2.0
|
||||||
URL: https://mike-fabian.github.io/ibus-typing-booster/
|
URL: https://mike-fabian.github.io/ibus-typing-booster/
|
||||||
@ -60,7 +60,7 @@ BuildRequires: glibc-gconv-extra
|
|||||||
BuildRequires: python3-libvoikko
|
BuildRequires: python3-libvoikko
|
||||||
BuildRequires: voikko-fi
|
BuildRequires: voikko-fi
|
||||||
%endif
|
%endif
|
||||||
#BuildRequires: appstream
|
BuildRequires: appstream
|
||||||
BuildRequires: libappstream-glib
|
BuildRequires: libappstream-glib
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
BuildRequires: python3-gobject
|
BuildRequires: python3-gobject
|
||||||
@ -153,8 +153,11 @@ export PYTHON=%{__python3}
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
export LC_ALL=C.UTF-8
|
export LC_ALL=C.UTF-8
|
||||||
# now broken on f36, f37, f38 and f39, see: https://bugzilla.redhat.com/show_bug.cgi?id=2171887
|
appstreamcli validate --pedantic --no-net %{buildroot}/%{_datadir}/metainfo/*.appdata.xml
|
||||||
# appstreamcli validate --pedantic --no-net %{buildroot}/%{_datadir}/metainfo/*.appdata.xml
|
# According to the appstream developers, appstream-util is unmaintained:
|
||||||
|
# https://github.com/ximion/appstream/issues/494#issuecomment-1521419742
|
||||||
|
# But I keep it here for the time being because the Fedora packaging guidelines ask for it:
|
||||||
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/AppData/#_app_data_validate_usage
|
||||||
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
|
||||||
@ -247,6 +250,9 @@ fi
|
|||||||
%{_datadir}/applications/emoji-picker.desktop
|
%{_datadir}/applications/emoji-picker.desktop
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 27 2023 Mike FABIAN <mfabian@redhat.com> - 2.22.4-2
|
||||||
|
- Use both appstreamcli and appstream-util for validation of the metainfo files
|
||||||
|
|
||||||
* Mon Apr 24 2023 Mike FABIAN <mfabian@redhat.com> - 2.22.4-1
|
* Mon Apr 24 2023 Mike FABIAN <mfabian@redhat.com> - 2.22.4-1
|
||||||
- Update to 2.22.4
|
- Update to 2.22.4
|
||||||
- Return empty program_name and window_title in get_active_window_xprop()
|
- Return empty program_name and window_title in get_active_window_xprop()
|
||||||
|
Loading…
Reference in New Issue
Block a user