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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:59:56 UTC 2015


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


diff --git a/stoken.spec b/stoken.spec
index f17fb94..d5c15d4 100644
--- a/stoken.spec
+++ b/stoken.spec
@@ -1,6 +1,6 @@
 Name:           stoken
 Version:        0.81
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Token code generator compatible with RSA SecurID 128-bit (AES) token
 
 License:        LGPLv2+
@@ -82,6 +82,20 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-gui-small.des
 find %{buildroot} -type f -name "*.la" -delete
 rm -fr %{buildroot}%{_docdir}/%{name}
 
+# Merge applications into one software center item
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/stoken-gui-small.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="desktop">
+  <metadata_license>CC0-1.0</metadata_license>
+  <id>stoken-gui-small.desktop</id>
+  <metadata>
+    <value key="X-Merge-With-Parent">stoken-gui.desktop</value>
+  </metadata>
+</component>
+EOF
+
 %post libs -p /sbin/ldconfig
 
 %postun libs -p /sbin/ldconfig
@@ -96,6 +110,7 @@ rm -fr %{buildroot}%{_docdir}/%{name}
 
 %files gui
 %{_bindir}/%{name}-gui
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/%{name}-gui.desktop
 %{_datadir}/applications/%{name}-gui-small.desktop
 %{_datadir}/pixmaps/%{name}-gui.png
@@ -108,6 +123,9 @@ rm -fr %{buildroot}%{_docdir}/%{name}
 %{_libdir}/pkgconfig/%{name}.pc
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.81-3
+- Add an AppData file for the software center
+
 * Tue Jan 13 2015 Simone Caronni <negativo17 at gmail.com> - 0.81-2
 - Use nettle instead of libtomcrypt (#1177180).
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/stoken.git/commit/?h=master&id=f6d7cccb65e93b3ed7b15a5d66b8c61d0da0514c


More information about the scm-commits mailing list