rhughes pushed to uzbl (master). "Add an AppData file for the software center"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 17:03:02 UTC 2015


>From 4c3cbe821902c8291da41ae72bebab65956d8ef4 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:45:34 +0000
Subject: Add an AppData file for the software center


diff --git a/uzbl.spec b/uzbl.spec
index 3b1458b..e02a6a8 100644
--- a/uzbl.spec
+++ b/uzbl.spec
@@ -7,7 +7,7 @@ Name:           uzbl
 Summary:        Lightweight WebKit browser following the UNIX philosophy
 Group:          Applications/Internet
 Version:        0
-Release:        0.36.20120514git%{uzblcommit}%{?dist}
+Release:        0.37.20120514git%{uzblcommit}%{?dist}
 License:        GPLv3
 URL:            http://www.uzbl.org
 # The source for this package was pulled from upstream's vcs.  Use the
@@ -148,6 +148,43 @@ install -p extras/vim/ftplugin/uzbl.vim %{buildroot}%{_datadir}/vim/vimfiles/ftp
 mkdir -p %{buildroot}%{_datadir}/vim/vimfiles/syntax/
 install -p extras/vim/syntax/uzbl.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/uzbl.vim
 
+# Register as an application to be visible in the software center
+#
+# NOTE: It would be *awesome* if this file was maintained by the upstream
+# project, translated and installed into the right place during `make install`.
+#
+# See http://www.freedesktop.org/software/appstream/docs/ for more details.
+#
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+BugReportURL: http://www.uzbl.org/bugs/index.php?do=details&task_id=361
+SentUpstream: 2014-09-18
+-->
+<application>
+  <id type="desktop">uzbl.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Web Browser</summary>
+  <description>
+    <p>
+      Uzbl is a webkit based web browser with a vi-like modal user interface.
+      It has two modes, the command mode for running tasks such as opening a
+      new URI ("o" on the keyboard) or opening a new window (the "w" command).
+      Insert is the other mode, and is used for the input of text into the
+      browser window itself.
+    </p>
+  </description>
+  <url type="homepage">http://www.uzbl.org/</url>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/uzbl/a.png</screenshot>
+  </screenshots>
+  <!-- FIXME: change this to an upstream email address for spec updates
+  <updatecontact>someone_who_cares at upstream_project.org</updatecontact>
+   -->
+</application>
+EOF
 
 %post
 touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
@@ -184,6 +221,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %files defaults
 %defattr(-, root, root, -)
 %{_datadir}/icons/*/*/apps/%{name}.*
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/%{name}/examples/config/
 %{_datadir}/%{name}/examples/data/
@@ -196,6 +234,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0-0.37.20120514git228bc38cbd
+- Add an AppData file for the software center
+
 * Sun Feb 08 2015 Ben Boeckel <mathstuf at gmail.com> - 0-0.34.20120514git
 - Make the vim subpackage noarch
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/uzbl.git/commit/?h=master&id=4c3cbe821902c8291da41ae72bebab65956d8ef4


More information about the scm-commits mailing list