rhughes pushed to xchat (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 17:04:35 UTC 2015
>From 219aca351a21058416ebe40c8a675412730955dd Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:46:27 +0000
Subject: Add an AppData file for the software center
diff --git a/xchat.spec b/xchat.spec
index d4620e2..bbf9e55 100644
--- a/xchat.spec
+++ b/xchat.spec
@@ -4,7 +4,7 @@
Summary: A popular and easy to use graphical IRC (chat) client
Name: xchat
Version: 2.8.8
-Release: 27%{?dist}
+Release: 28%{?dist}
Epoch: 1
Group: Applications/Internet
License: GPLv2+
@@ -166,6 +166,48 @@ desktop-file-install --vendor="" \
--add-category=IRCClient \
--add-category=GTK xchat.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> -->
+<!--
+BugReportURL: https://sourceforge.net/p/xchat/feature-requests/235/
+SentUpstream: 2014-09-18
+-->
+<application>
+ <id type="desktop">xchat.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <description>
+ <p>
+ XChat is an Internet Relay Chat (IRC) client.
+ It allows you to join multiple IRC channels at the same time, which you can view
+ and browse using tabs or a tree-like interface.
+ You can use XChat to publicly chat with people in a channel, and to have private
+ one-on-one conversations.
+ You can even transfer files with XChat!
+ </p>
+ <p>
+ The client includes nick completion, alerts for mentions, logging functionality,
+ and several customization options for fonts, sounds and colors.
+ </p>
+ </description>
+ <url type="homepage">http://xchat.org/</url>
+ <screenshots>
+ <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/xchat/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
+
%find_lang %{name}
# do not Provide plugins .so
@@ -205,6 +247,7 @@ fi
%dir %{_libdir}/xchat/plugins
%{_libdir}/xchat/plugins/perl.so
%{_libdir}/xchat/plugins/python.so
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/xchat.desktop
%{_datadir}/icons/hicolor/*/apps/xchat.png
%{_datadir}/pixmaps/*
@@ -216,6 +259,9 @@ fi
%{_libdir}/xchat/plugins/tcl.so
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1:2.8.8-28
+- Add an AppData file for the software center
+
* Wed Oct 29 2014 Debarshi Ray <rishi at fedoraproject.org> - 1:2.8.8-27
- Do not force SSLv3, also allow TLSv1_X (#1091544)
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/xchat.git/commit/?h=master&id=219aca351a21058416ebe40c8a675412730955dd
More information about the scm-commits
mailing list