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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:59:21 UTC 2015


>From 7d56bea6ff294aa11c089d29db24de42acccb1a1 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:43:17 +0000
Subject: Add an AppData file for the software center


diff --git a/sir.spec b/sir.spec
index c32ba69..5e21b1b 100644
--- a/sir.spec
+++ b/sir.spec
@@ -1,6 +1,6 @@
 Name:           sir
 Version:        2.5.1
-Release:        6%{?dist}
+Release:        7%{?dist}
 Summary:        A simple application for resizing images
 
 Group:          Applications/Multimedia
@@ -30,14 +30,56 @@ make install DESTDIR=$RPM_BUILD_ROOT
 desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{name}.desktop
 desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{name}_service.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://code.google.com/p/sir/issues/detail?id=6
+SentUpstream: 2014-09-17
+-->
+<application>
+  <id type="desktop">sir.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>Resize images in batches</summary>
+  <description>
+    <p>
+      Sir (Simple Image Resizer) is a utility to resize one or many images at a time.
+      Sir allows you to select a number of images (or a whole directory), to import
+      then once you have chosen the size that you want to export to, will export them
+      in one action.
+      Sir also has the ability to resize while preserving the aspect  ratio,
+      and do simple transforms like rotation.
+      Sir supports over 30 different image formats for import and output,
+      including PNG, JPG, BMP, SVG and TIFF.
+    </p>
+  </description>
+  <url type="homepage">https://code.google.com/p/sir/</url>
+  <screenshots>
+    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/sir/a.png</screenshot>
+  </screenshots>
+</application>
+EOF
+
 %files
 %{_bindir}/%{name}
 %{_datadir}/pixmaps/*.png
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/*.desktop
 %{_datadir}/%{name}/
 %doc LICENSE
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2.5.1-7
+- Add an AppData file for the software center
+
 * Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.5.1-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/sir.git/commit/?h=master&id=7d56bea6ff294aa11c089d29db24de42acccb1a1


More information about the scm-commits mailing list