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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 15:47:05 UTC 2015


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


diff --git a/abiword.spec b/abiword.spec
index 6a7bfd2..4d840d4 100644
--- a/abiword.spec
+++ b/abiword.spec
@@ -6,7 +6,7 @@
 Summary: Word processing program
 Name: abiword
 Version: %{majorversion}.%{minorversion}.%{microversion}
-Release: 2%{?dist}
+Release: 3%{?dist}
 Epoch: 1
 Group: Applications/Editors
 License: GPLv2+
@@ -134,6 +134,51 @@ ABI_DOC_PROG=$(pwd)/../%{name}-%{version}/src/abiword ./make-html.sh
 cd $RPM_BUILD_DIR/abiword-%{version}
 make install DESTDIR=%{buildroot}
 
+# 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: http://bugzilla.abisource.com/show_bug.cgi?id=13672
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">abiword.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <description>
+    <p>
+      AbiWord is a free word processing program similar to Microsoft® Word.
+      It is suitable for a wide variety of word processing tasks.
+    </p>
+    <p>
+      AbiWord allows you to collaborate with multiple people on one document at the
+      same time.
+      It is tightly integrated with the AbiCollab.net web service, which lets you
+      store documents online, allows easy document sharing with your friends, and
+      performs format conversions on the fly.
+    </p>
+    <!-- FIXME: Probably needs another paragraph -->
+  </description>
+  <url type="homepage">http://www.abisource.com/</url>
+  <screenshots>
+  <!-- FIXME: Needs an official up to date screenshot -->
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/abiword/a.png</screenshot>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/abiword/b.png</screenshot>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/abiword/c.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
+
 # install the documentation
 cd $RPM_BUILD_DIR/abiword-docs-%{version}
 mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}-%{majorversion}.%{minorversion}/AbiWord/help
@@ -169,6 +214,7 @@ fi
 
 %files
 %{_bindir}/abiword
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/*.desktop
 %{_datadir}/mime-info/abiword.mime
 %{_datadir}/mime-info/abiword.keys
@@ -200,6 +246,9 @@ fi
 %{python_sitearch}/*
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 1:3.0.1-3
+- Add an AppData file for the software center
+
 * Tue Jan 27 2015 Petr Machata <pmachata at redhat.com> - 1:3.0.1-2
 - Rebuild for boost 1.57.0
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/abiword.git/commit/?h=master&id=9c79c12df34341cefb4cef557e346058ef79dd80


More information about the scm-commits mailing list