kevin pushed to orage (f22). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Fri Apr 10 18:18:36 UTC 2015
>From 0c0c8b746cd36781a0cfaefa1a775d1f2336dc07 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:32:39 +0000
Subject: Add an AppData file for the software center
diff --git a/orage.spec b/orage.spec
index 9da41c4..ab00336 100644
--- a/orage.spec
+++ b/orage.spec
@@ -2,7 +2,7 @@
Name: orage
Version: 4.10.0
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Time-managing application for Xfce4
Group: User Interface/Desktops
@@ -58,6 +58,19 @@ desktop-file-install \
--delete-original \
%{buildroot}%{_datadir}/applications/globaltime.desktop
+# Merge applications into one software center item
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/globaltime.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>globaltime.desktop</id>
+ <metadata>
+ <value key="X-Merge-With-Parent">xfcalendar.desktop</value>
+ </metadata>
+</component>
+EOF
%clean
rm -rf %{buildroot}
@@ -84,6 +97,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_bindir}/tz_convert
%{_datadir}/applications/*xfcalendar.desktop
%{_datadir}/applications/globaltime.desktop
+%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/xfce-xfcalendar-settings.desktop
%{_datadir}/orage/
%{_libexecdir}/xfce4/panel-plugins/xfce4-orageclock-plugin
@@ -96,6 +110,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_mandir}/man1/tz_convert.1.*
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 4.10.0-6
+- Add an AppData file for the software center
+
* Sat Feb 28 2015 Kevin Fenzi <kevin at scrye.com> 4.10.0-5
- Rebuild for Xfce 4.12
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/orage.git/commit/?h=f22&id=0c0c8b746cd36781a0cfaefa1a775d1f2336dc07
More information about the scm-commits
mailing list