From 9c79c12df34341cefb4cef557e346058ef79dd80 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mar 26 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 < + + + + abiword.desktop + CC0-1.0 + +

+ AbiWord is a free word processing program similar to Microsoft® Word. + It is suitable for a wide variety of word processing tasks. +

+

+ 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. +

+ +
+ http://www.abisource.com/ + + + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/abiword/a.png + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/abiword/b.png + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/abiword/c.png + + +
+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 - 1:3.0.1-3 +- Add an AppData file for the software center + * Tue Jan 27 2015 Petr Machata - 1:3.0.1-2 - Rebuild for boost 1.57.0