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

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 17:04:47 UTC 2015


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


diff --git a/xmedcon.spec b/xmedcon.spec
index da10e9d..e17f33b 100644
--- a/xmedcon.spec
+++ b/xmedcon.spec
@@ -1,6 +1,6 @@
 Name:           xmedcon
 Version:        0.10.7
-Release:        14%{?dist}
+Release:        15%{?dist}
 Summary:        A medical image conversion utility and library
 
 # Please refer to http://xmedcon.sourceforge.net/pub/readme/README for details
@@ -80,6 +80,48 @@ desktop-file-install                                    \
 --dir=${RPM_BUILD_ROOT}%{_datadir}/applications         \
 %{SOURCE1}
 
+# 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 Richard Hughes <richard at hughsie.com> -->
+<!--
+UpstreamURL:  http://xmedcon.sourceforge.net/Main/Upcoming
+SentUpstream: 2014-09-23
+-->
+<application>
+  <id type="desktop">xmedcon.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <name>Xmedcon</name>
+  <summary>A medical image conversion utility and library</summary>
+  <description>
+    <p>
+      This project stands for Medical Image Conversion and is released under the
+      GNU's (L)GPL license. It bundles the C source code, a library, a flexible
+      command-line utility and a graphical front-end.
+    </p>
+    <p>
+      Its main purpose is image conversion while preserving valuable medical
+      study information.
+      The currently supported formats are: Acr/Nema 2.0, Analyze (SPM),
+      Concorde/uPET, DICOM 3.0, CTI ECAT 6/7, InterFile 3.3 and PNG or
+      Gif87a/89a towards desktop applications.
+    </p>
+  </description>
+  <screenshots>
+    <screenshot type="default">http://xmedcon.sourceforge.net/images/shotlnx.jpg</screenshot>
+  </screenshots>
+  <url type="homepage">http://xmedcon.sourceforge.net/</url>
+  <updatecontact>enlf at users.sourceforge.net</updatecontact>
+</application>
+EOF
+
 # remove static libraries
 find $RPM_BUILD_ROOT -name "*.a" -execdir rm -fv '{}' \;
 find $RPM_BUILD_ROOT -name "*.la" -execdir rm -fv '{}' \;
@@ -108,6 +150,7 @@ fi
 %{_bindir}/%{name}
 %{_libdir}/*so.*
 %{_mandir}/man1/*
+%{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/icons/hicolor/48x48/apps/%{name}.png
 
@@ -122,6 +165,9 @@ fi
 %{_datadir}/aclocal/*
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.10.7-15
+- Add an AppData file for the software center
+
 * Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.10.7-14
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


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


More information about the scm-commits mailing list