rhughes pushed to gnome-search-tool (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:42:35 UTC 2015
>From 6ec7c53c4f2561923c8c30b63a0b5bc541a94260 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:33:11 +0000
Subject: Add an AppData file for the software center
diff --git a/gnome-search-tool.spec b/gnome-search-tool.spec
index 459c270..260cf70 100644
--- a/gnome-search-tool.spec
+++ b/gnome-search-tool.spec
@@ -1,6 +1,6 @@
Name: gnome-search-tool
Version: 3.6.0
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Utility for finding files for GNOME
License: GPLv2+ and GFDL
@@ -43,6 +43,40 @@ export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
make install DESTDIR=$RPM_BUILD_ROOT
+# 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 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+BugReportURL: https://bugzilla.gnome.org/show_bug.cgi?id=730809
+SentUpstream: 2014-09-18
+-->
+<application>
+ <id type="desktop">gnome-search-tool.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Search the files on your computer</summary>
+ <description>
+ <p>
+ The Search Tool allows you to search your computer for files
+ based on their names. It also allows you to restrict the search
+ to specific directories, and specify other parameters for searching
+ such as when a file was last modified.
+ </p>
+ </description>
+ <url type="homepage">https://git.gnome.org/browse/gnome-search-tool/</url>
+ <screenshots>
+ <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnome-search-tool/a.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
%find_lang %{name} --with-gnome
@@ -60,12 +94,16 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%{_datadir}/GConf/gsettings/gnome-search-tool.convert
%{_datadir}/glib-2.0/schemas/org.gnome.gnome-search-tool.gschema.xml
%{_bindir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/gsearchtool
%{_mandir}/man1/%{name}.1.gz
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 3.6.0-6
+- Add an AppData file for the software center
+
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.6.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/gnome-search-tool.git/commit/?h=master&id=6ec7c53c4f2561923c8c30b63a0b5bc541a94260
More information about the scm-commits
mailing list