commit a7e232457a0c4fce4f4a243a88c73fb5866e093e
Author: Richard Hughes <richard(a)hughsie.com>
Date: Thu Jul 28 10:38:12 2016 +0100
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(-)
---
diff --git a/chromium-browser.appdata.xml b/chromium-browser.appdata.xml
new file mode 100644
index 0000000..a02cfc7
--- /dev/null
+++ b/chromium-browser.appdata.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2016 Richard Hughes <richard(a)hughsie.com> -->
+<component type="desktop">
+ <id>chromium-browser.desktop</id>
+ <update_contact>richard(a)hughsie.com</update_contact>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>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)</project_license>
+ <name>Chromium</name>
+ <summary>Web Browser</summary>
+ <description>
+ <p>
+ 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.
+ </p>
+ <p>
+ 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.
+ </p>
+ </description>
+ <url
type="homepage">https://www.chromium.org/Home</url>
+ <screenshots>
+ <screenshot type="default">
+
<
image>https://raw.githubusercontent.com/hughsie/fedora-appstream/maste...
+ <caption/>
+ </screenshot>
+ <screenshot>
+
<
image>https://raw.githubusercontent.com/hughsie/fedora-appstream/maste...
+ <caption/>
+ </screenshot>
+ </screenshots>
+ <translation/>
+ <developer_name>Google</developer_name>
+ <url
type="bugtracker">https://www.chromium.org/for-testers/bug-r...
+ <url
type="help">https://chromium.googlesource.com/chromium/src/+...
+</component>
diff --git a/chromium.spec b/chromium.spec
index 4295b56..e2138f2 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 <richard(a)hughsie.com> 52.0.2743.82-6
+- Add an AppData file so that Chromium appears in the software center
+
* Wed Jul 27 2016 Tom Callaway <spot(a)fedoraproject.org> 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