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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:57:29 UTC 2015


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


diff --git a/revelation.spec b/revelation.spec
index 26c842b..975a017 100644
--- a/revelation.spec
+++ b/revelation.spec
@@ -6,7 +6,7 @@
 Summary:	Password manager for GNOME 2
 Name:		revelation
 Version:	0.4.14
-Release: 	8%{?dist}
+Release: 	9%{?dist}
 License:	GPLv2+
 Group:		Applications/Productivity
 Source0: 	revelation-%{version}.tar.xz 
@@ -73,6 +73,48 @@ desktop-file-install \
   --delete-original \
   $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
 
+# 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 Richard Hughes <richard at hughsie.com> -->
+<!--
+UpstreamURL:  https://bitbucket.org/erikg/revelation/src/19df2c5ff72f888219d68bfe61fa85f0ba9b11f9/data/revelation.appdata.xml.in
+-->
+<application>
+  <id type="desktop">revelation.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>A password manager for GNOME</summary>
+  <description>
+    <p>
+      Revelation is a password manager for the GNOME desktop, released under the
+      NU GPL license.
+      It stores all your accounts and passwords in a single, secure place, and
+      gives you access to it through a user-friendly graphical interface.
+    </p>
+    <ul>
+      <li>Store passwords encrypted</li>
+      <li>Store passwords organizated</li>
+      <li>Autolock on idle or when desktop locks</li>
+      <li>Import from and export to different formats</li>
+    </ul>
+  </description>
+  <url type="homepage">http://revelation.olasagasti.info/index.php</url>
+  <screenshots>
+    <screenshot type="default">http://revelation.olasagasti.info/screenshots/revelation-main.png</screenshot>
+    <screenshot>http://revelation.olasagasti.info/screenshots/revelation-search.png</screenshot>
+    <screenshot>http://revelation.olasagasti.info/screenshots/revelation-lock_t.png</screenshot>
+  </screenshots>
+  <updatecontact>revelation-password at googlegroups.com</updatecontact>
+</application>
+EOF
+
 %pre
 %gconf_schema_prepare %{name}
 %gconf_schema_obsolete %{name}-applet
@@ -110,6 +152,7 @@ fi
 %doc AUTHORS COPYING ChangeLog README TODO
 %config %{_sysconfdir}/gconf/schemas/*.schemas
 %{_bindir}/*
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/*.desktop
 %{_datadir}/revelation/
 %{_datadir}/icons/hicolor/??x??/mimetypes/gnome-mime-application-x-revelation.png
@@ -118,6 +161,9 @@ fi
 %{_datadir}/mime/packages/*
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.4.14-9
+- Add an AppData file for the software center
+
 * Thu Oct 02 2014 Rex Dieter <rdieter at fedoraproject.org> 0.4.14-8
 - update desktop/icon/mime scriptlets
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/revelation.git/commit/?h=master&id=7e14975610bf15bac79eafdb4c9ef6197a8669d4


More information about the scm-commits mailing list