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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 16:15:24 UTC 2015


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


diff --git a/aeskulap.spec b/aeskulap.spec
index 638f0d4..f65ff56 100644
--- a/aeskulap.spec
+++ b/aeskulap.spec
@@ -4,7 +4,7 @@
 # Schemas handling also needs to be looked at.
 Name:           aeskulap
 Version:        0.2.2
-Release:        0.20beta1%{?dist}
+Release:        0.21beta1%{?dist}
 Summary:        A full open source replacement for commercially available DICOM viewers
 
 License:        LGPLv2+
@@ -88,6 +88,37 @@ rm -rf $RPM_BUILD_ROOT
 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> -->
+<!--
+EmailAddress: pipelka at teleweb.at
+EmailSent:    2014-09-17
+-->
+<application>
+<id type="desktop">aeskulap.desktop</id>
+<metadata_license>CC0-1.0</metadata_license>
+<summary>Medical image viewer</summary>
+<description>
+<p>
+Aeskulap is a viewer for medical images with support for the DICOM format.
+</p>
+</description>
+<url type="homepage">http://aeskulap.nongnu.org</url>
+<screenshots>
+<screenshot type="default">http://aeskulap.nongnu.org/gfx/screenshot1-full.jpg</screenshot>
+</screenshots>
+</application>
+EOF
+
 install -p -m 0644 %{SOURCE1} -t .
 
 desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
@@ -123,11 +154,15 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_datadir}/%{name}/
 %{_datadir}/icons/hicolor/48x48/apps/%{name}.png
 %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_sysconfdir}/gconf/schemas/%{name}.schemas
 %doc AUTHORS ABOUT-NLS ChangeLog COPYING README %{name}-tutorials.pdf
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.2.2-0.21beta1
+- Add an AppData file for the software center
+
 * Tue Dec 16 2014 Mario Ceresa <mrceresa AT fedoraproject DOT org> - 0.2.2-0.20beta1
 - Bump up for dcmtk rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/aeskulap.git/commit/?h=master&id=b86f0084c3d35895d0215f3a9d9bdbaf13b8de5e


More information about the scm-commits mailing list