From 99a12e25e2ee50a9a4026c2cb4e8f0eed502d709 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 26 Mar 2015 16:38:50 +0000 Subject: [PATCH] Add an AppData file for the software center --- thunderbird.spec | 53 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/thunderbird.spec b/thunderbird.spec index b066c13..68238c7 100644 --- a/thunderbird.spec +++ b/thunderbird.spec @@ -58,7 +58,7 @@ Summary: Mozilla Thunderbird mail/newsgroup client Name: thunderbird Version: 31.5.0 -Release: 2%{?dist} +Release: 3%{?dist} URL: http://www.mozilla.org/projects/thunderbird/ License: MPLv1.1 or GPLv2+ or LGPLv2+ Group: Applications/Internet @@ -387,6 +387,53 @@ touch $RPM_BUILD_ROOT%{mozappdir}/components/xpti.dat %{__cp} %{objdir}/mozilla/dist/%{symbols_file_name} $RPM_BUILD_ROOT/%{moz_debug_dir} %endif +# 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/mozilla-thunderbird.appdata.xml < + + + + mozilla-thunderbird.desktop + CC0-1.0 + +

+ Thunderbird is an email client that allows you to read, write and organise all + of your email messages. It is compatible with most email accounts, including the + most popular webmail services. +

+

+ Thunderbird is designed by Mozilla, a global community working together to make + the Internet better. Mozilla believe that the Internet should be open, public, + and accessible to everyone without any restrictions. +

+
    +
  • Easier than ever to set up a new e-mail account
  • +
  • Awesome search allows you to find your messages fast
  • +
  • Thousands of add-ons give you the freedom to make Thunderbird your own
  • +
+
+ http://www.mozilla.org/thunderbird/ + + +
+EOF + #=============================================================================== %post @@ -407,6 +454,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -f %{tarballdir}/%{name}.lang %defattr(-,root,root,-) %attr(755,root,root) %{_bindir}/thunderbird +%{_datadir}/appdata/*.appdata.xml %attr(644,root,root) %{_datadir}/applications/mozilla-thunderbird.desktop %dir %{_datadir}/mozilla/extensions/%{thunderbird_app_id} %dir %{_libdir}/mozilla/extensions/%{thunderbird_app_id} @@ -460,6 +508,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : #=============================================================================== %changelog +* Thu Mar 26 2015 Richard Hughes - 31.5.0-3 +- Add an AppData file for the software center + * Thu Mar 19 2015 Jan Horak - 31.5.0-2 - Fixed build flags for s390(x)