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

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


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


diff --git a/PyMca.spec b/PyMca.spec
index 229fc7b..102684f 100644
--- a/PyMca.spec
+++ b/PyMca.spec
@@ -7,7 +7,7 @@
 
 Name:           PyMca
 Version:        4.7.3
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        PyMca X-ray Fluorescence Toolkit 
 License:        GPLv2+
 URL:            http://pymca.sourceforge.net/
@@ -117,6 +117,85 @@ desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{S:6}
 desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{S:7}
 desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{S:8}
 
+# Merge applications into one software center item
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/edfviewer.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="desktop">
+  <metadata_license>CC0-1.0</metadata_license>
+  <id>edfviewer.desktop</id>
+  <metadata>
+    <value key="X-Merge-With-Parent">PyMca.desktop</value>
+  </metadata>
+</component>
+EOF
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/elementsinfo.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="desktop">
+  <metadata_license>CC0-1.0</metadata_license>
+  <id>elementsinfo.desktop</id>
+  <metadata>
+    <value key="X-Merge-With-Parent">PyMca.desktop</value>
+  </metadata>
+</component>
+EOF
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/mca2edf.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="desktop">
+  <metadata_license>CC0-1.0</metadata_license>
+  <id>mca2edf.desktop</id>
+  <metadata>
+    <value key="X-Merge-With-Parent">PyMca.desktop</value>
+  </metadata>
+</component>
+EOF
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/peakidentifier.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="desktop">
+  <metadata_license>CC0-1.0</metadata_license>
+  <id>peakidentifier.desktop</id>
+  <metadata>
+    <value key="X-Merge-With-Parent">PyMca.desktop</value>
+  </metadata>
+</component>
+EOF
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/pymcabatch.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="desktop">
+  <metadata_license>CC0-1.0</metadata_license>
+  <id>pymcabatch.desktop</id>
+  <metadata>
+    <value key="X-Merge-With-Parent">PyMca.desktop</value>
+  </metadata>
+</component>
+EOF
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/pymcapostbatch.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="desktop">
+  <metadata_license>CC0-1.0</metadata_license>
+  <id>pymcapostbatch.desktop</id>
+  <metadata>
+    <value key="X-Merge-With-Parent">PyMca.desktop</value>
+  </metadata>
+</component>
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/pymcaroitool.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="desktop">
+  <metadata_license>CC0-1.0</metadata_license>
+  <id>pymcaroitool.desktop</id>
+  <metadata>
+    <value key="X-Merge-With-Parent">PyMca.desktop</value>
+  </metadata>
+</component>
+EOF
+
 # Convert to various sizes, via the 256x256 source.
 for size in 192x192 128x128 96x96 72x72 64x64 48x48 40x40 36x36 32x32 26x26 24x24 22x22 16x16 ; do
     install -pdm755 \
@@ -176,6 +255,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_bindir}/peakidentifier
 %{_bindir}/pymca*
 %{_bindir}/rgbcorrelator
+%{_datadir}/appdata/*.appdata.xml
 %{_datadir}/applications/*.desktop
 %{_datadir}/icons/hicolor/*x*/apps/%{name}.png
 %{_mandir}/man1/*.1*
@@ -193,6 +273,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_pkgdocdir}/
 
 %changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 4.7.3-3
+- Add an AppData file for the software center
+
 * Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.7.3-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/PyMca.git/commit/?h=master&id=00e8226db6cc9afd3c531e10cfdd80ff72381bc7


More information about the scm-commits mailing list