rhughes pushed to eyesight (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:24:21 UTC 2015
>From 2d7beee02b43b6ab5fd50cdd90a462f309986153 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:08:53 +0000
Subject: Add an AppData file for the software center
diff --git a/eyesight.spec b/eyesight.spec
index f7ef7b4..f08f27b 100644
--- a/eyesight.spec
+++ b/eyesight.spec
@@ -1,7 +1,7 @@
Name: eyesight
Summary: Hawaii desktop image viewer
Version: 0.1.2
-Release: 3%{?dist}
+Release: 4%{?dist}
Group: Applications/System
License: GPLv2+
URL: https://github.com/mauios/eyesight
@@ -37,11 +37,45 @@ desktop-file-install --delete-original \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/*.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 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+BugReportURL: https://github.com/hawaii-desktop/eyesight/issues/8
+SentUpstream: 2014-09-17
+-->
+<application>
+ <id type="desktop">eyesight.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>View and rotate images</summary>
+ <description>
+ <p>
+ Eyesight is a simple image viewer that allows the user to view either a
+ single image, or a whole directory of images.
+ Eyesight also allows the user to rotate the image, and save the result.
+ </p>
+ </description>
+ <url type="homepage">https://github.com/mauios/eyesight</url>
+ <screenshots>
+ <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/eyesight/a.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
%find_lang %{name} --all-name --with-qt
%files -f %{name}.lang
%{_bindir}/eyesight
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/eyesight.desktop
%dir %{_datadir}/eyesight
%dir %{_datadir}/eyesight/translations
@@ -53,6 +87,9 @@ desktop-file-install --delete-original \
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.1.2-4
+- Add an AppData file for the software center
+
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/eyesight.git/commit/?h=master&id=2d7beee02b43b6ab5fd50cdd90a462f309986153
More information about the scm-commits
mailing list