summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalev Lember <klember@redhat.com>2020-02-04 07:24:53 +0100
committerKalev Lember <klember@redhat.com>2020-02-04 15:33:57 +0100
commitc3fd3d6cec88805c0c4a5f12935543dc6cc025cf (patch)
tree98f2379978452bd49ec9c60a828d952271651505
parentFix various issues with appdata, making the validation pass again (diff)
downloadlibrewolf-fedora-ff-c3fd3d6cec88805c0c4a5f12935543dc6cc025cf.tar.gz
librewolf-fedora-ff-c3fd3d6cec88805c0c4a5f12935543dc6cc025cf.tar.bz2
librewolf-fedora-ff-c3fd3d6cec88805c0c4a5f12935543dc6cc025cf.zip
Validate appdata during the build
So we can be sure that we don't accidentally make a typo that makes it drop out of the distro appstream data again.
-rw-r--r--firefox.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/firefox.spec b/firefox.spec
index da19dee..a788d9a 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -220,6 +220,7 @@ BuildRequires: cbindgen
%endif
BuildRequires: nodejs
BuildRequires: nasm >= 1.13
+BuildRequires: libappstream-glib
Requires: mozilla-filesystem
Requires: p11-kit-trust
@@ -843,6 +844,8 @@ if (posix.stat("%{mozappdir}/browser/defaults/preferences", "type") == "link") t
end
end
+%check
+appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml
%preun
# is it a final removal?
@@ -937,6 +940,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
* Tue Feb 04 2020 Kalev Lember <klember@redhat.com> - 72.0.2-3
- Fix various issues with appdata, making the validation pass again
+- Validate appdata during the build
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 72.0.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
bgstack15