From a7e232457a0c4fce4f4a243a88c73fb5866e093e Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 28 Jul 2016 10:38:12 +0100 Subject: [PATCH] Add an AppData file so that Chromium appears in the software center --- chromium-browser.appdata.xml | 38 ++++++++++++++++++++++++++++++++++++ chromium.spec | 13 +++++++++++- 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 chromium-browser.appdata.xml diff --git a/chromium-browser.appdata.xml b/chromium-browser.appdata.xml new file mode 100644 index 00000000..a02cfc78 --- /dev/null +++ b/chromium-browser.appdata.xml @@ -0,0 +1,38 @@ + + + + chromium-browser.desktop + richard@hughsie.com + CC0-1.0 + BSD-3-Clause and LGPL-2.1+ and Apache-2.0 and IJG and MIT and GPL-2.0+ and ISC and OpenSSL and (MPL-1.1 or GPL-2.0 or LGPL-2.0) + Chromium + Web Browser + +

+ Chromium is an open-source browser that aims to build a safer, faster, and + more stable way to experience the web. + We invite you to join us in our effort to build a powerful platform for + developing a new generation of web applications. +

+

+ Chromium does not include the non-free AAC, H.264, MP3 or Adobe Flash code + that is found in Chrome, although it does support Vorbis, Theora, WebM and + HTML5 audio and video standards. +

+
+ https://www.chromium.org/Home + + + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/chromium-browser/a.png + + + + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/chromium-browser/b.png + + + + + Google + https://www.chromium.org/for-testers/bug-reporting-guidelines + https://chromium.googlesource.com/chromium/src/+/master/docs/linux_debugging.md +
diff --git a/chromium.spec b/chromium.spec index 4295b564..e2138f2f 100644 --- a/chromium.spec +++ b/chromium.spec @@ -62,7 +62,7 @@ BuildRequires: libicu-devel >= 5.4 Name: chromium%{chromium_channel} Version: 52.0.2743.82 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A WebKit (Blink) powered web browser Url: http://www.chromium.org/Home License: BSD and LGPLv2+ and ASL 2.0 and IJG and MIT and GPLv2+ and ISC and OpenSSL and (MPLv1.1 or GPLv2 or LGPLv2) @@ -127,6 +127,7 @@ Source8: get_linux_tests_names.py Source9: chromium-browser.xml Source10: https://dl.google.com/dl/edgedl/chrome/policy/policy_templates.zip Source11: chrome-remote-desktop.service +Source12: chromium-browser.appdata.xml # We can assume gcc and binutils. BuildRequires: gcc-c++ @@ -168,6 +169,9 @@ BuildRequires: liberation-sans-fonts BuildRequires: sudo %endif +# for /usr/bin/appstream-util +BuildRequires: libappstream-glib + # Fedora turns on NaCl # NaCl needs these BuildRequires: libstdc++-devel, openssl-devel @@ -953,6 +957,9 @@ cp -a chrome/app/theme/chromium/product_logo_256.png %{buildroot}%{_datadir}/ico mkdir -p %{buildroot}%{_datadir}/applications/ desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE4} +install -D -m0644 %{SOURCE12} ${RPM_BUILD_ROOT}%{_datadir}/appdata/%{chromium_browser_channel}.appdata.xml +appstream-util validate-relax --nonet ${RPM_BUILD_ROOT}%{_datadir}/appdata/%{chromium_browser_channel}.appdata.xml + mkdir -p %{buildroot}%{_datadir}/gnome-control-center/default-apps/ cp -a %{SOURCE9} %{buildroot}%{_datadir}/gnome-control-center/default-apps/ @@ -1370,6 +1377,7 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %{_mandir}/man1/%{chromium_browser_channel}.* %{_datadir}/icons/hicolor/256x256/apps/%{chromium_browser_channel}.png %{_datadir}/applications/*.desktop +%{_datadir}/appdata/*.appdata.xml %{_datadir}/gnome-control-center/default-apps/chromium-browser.xml %dir %{_sysconfdir}/chromium/policies/managed @@ -1404,6 +1412,9 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %endif %changelog +* Thu Jul 28 2016 Richard Hughes 52.0.2743.82-6 +- Add an AppData file so that Chromium appears in the software center + * Wed Jul 27 2016 Tom Callaway 52.0.2743.82-5 - enable nacl/pnacl (chromium-native_client has landed in Fedora) - fix chromium-browser.sh to report Fedora build target properly