[Thunar] Add appdata. Fixes bug #1161931

Kevin Fenzi kevin at fedoraproject.org
Tue Nov 11 17:35:58 UTC 2014


commit d28a5f703e88d2456023334026b0135ac38f8363
Author: Kevin Fenzi <kevin at scrye.com>
Date:   Tue Nov 11 10:35:47 2014 -0700

    Add appdata. Fixes bug #1161931

 Thunar.spec        |   14 +++++++++++++-
 thunar.appdata.xml |   24 ++++++++++++++++++++++++
 2 files changed, 37 insertions(+), 1 deletions(-)
---
diff --git a/Thunar.spec b/Thunar.spec
index 399e407..481b8ae 100644
--- a/Thunar.spec
+++ b/Thunar.spec
@@ -2,7 +2,7 @@
 
 Name:           Thunar
 Version:        1.6.3
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Thunar File Manager
 
 Group:          User Interface/Desktops
@@ -14,6 +14,11 @@ Source1:        thunar-sendto-gnome-bluetooth.desktop
 Source2:        thunar-sendto-audacious-playlist.desktop
 Source3:        thunar-sendto-quodlibet-playlist.desktop
 Source4:        thunar-sendto-blueman.desktop
+# add appdata
+# Already upstream at: 
+# http://git.xfce.org/xfce/thunar/commit/?id=9e3a5dc
+# http://git.xfce.org/xfce/thunar/commit/?id=7027f7a
+Source5:        thunar.appdata.xml
 Buildroot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  pkgconfig(dbus-glib-1) >= 0.34
@@ -135,6 +140,9 @@ for source in %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} ; do
             $source
 done
 
+mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/appdata
+cp -a %{SOURCE5} ${RPM_BUILD_ROOT}%{_datadir}/appdata/thunar.appdata.xml
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -193,6 +201,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_datadir}/icons/hicolor/*/*/*
 %{_datadir}/pixmaps/Thunar/
 %{_datadir}/xfce4/panel-plugins/thunar-tpa.desktop
+%{_datadir}/appdata/thunar.appdata.xml
 %{_libdir}/xfce4/panel/plugins/libthunar-tpa.so
 %{_mandir}/man1/Thunar.1*
 %dir %{_sysconfdir}/xdg/Thunar
@@ -208,6 +217,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 
 %changelog
+* Tue Nov 11 2014 Kevin Fenzi <kevin at scrye.com> 1.6.3-5
+- Add appdata. Fixes bug #1161931
+
 * Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.6.3-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
diff --git a/thunar.appdata.xml b/thunar.appdata.xml
new file mode 100644
index 0000000..cf6903c
--- /dev/null
+++ b/thunar.appdata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Ryan Lerch <rlerch at redhat.com> -->
+
+<application>
+  <id type="desktop">Thunar.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>File Browser</summary>
+  <description>
+    <_p>
+      Thunar is a file browser specifically designed for the Xfce Desktop, but also can
+      serve as an alternate file browser for other Desktop environments. It has a simple,
+      clean two-pane design for browsing all your files.
+    </_p>
+  </description>
+  <url type="homepage">http://xfce.org/projects</url>
+  <url type="bugtracker">https://bugzilla.xfce.org/describecomponents.cgi?product=Thunar</url>
+  <url type="help">http://docs.xfce.org/xfce/thunar/start</url>
+
+  <screenshots>
+    <screenshot type="default">http://docs.xfce.org/_media/xfce/thunar/file-manager-window.png</screenshot>
+  </screenshots>
+
+  <updatecontact>xfce4-dev at xfce.org</updatecontact>
+</application>


More information about the scm-commits mailing list