rhughes pushed to kalgebra (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:46:26 UTC 2015
>From 304904c5f8e1acc2a8e666da597324afe1a6ea4a Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:36:04 +0000
Subject: Add an AppData file for the software center
diff --git a/kalgebra.spec b/kalgebra.spec
index 7addf85..dc5abe0 100644
--- a/kalgebra.spec
+++ b/kalgebra.spec
@@ -6,7 +6,7 @@
Name: kalgebra
Summary: 2D and 3D Graph Calculator
Version: 4.14.3
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPLv2+
URL: https://projects.kde.org/projects/kde/kdeedu/%{name}
@@ -60,6 +60,20 @@ make %{?_smp_mflags} -C %{_target_platform}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
+# Merge applications into one software center item
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/kalgebramobile.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>kalgebramobile.desktop</id>
+ <metadata>
+ <value key="X-Merge-With-Parent">kalgebra.desktop</value>
+ </metadata>
+</component>
+EOF
+
%find_lang %{name} --with-kde --without-mo
@@ -86,6 +100,7 @@ fi
%{_kde4_bindir}/kalgebramobile
%{_kde4_libdir}/kde4/plasma_applet_kalgebra.so
%{_kde4_datadir}/appdata/kalgebra.appdata.xml
+%{_kde4_datadir}/appdata/kalgebramobile.appdata.xml
%{_kde4_datadir}/applications/kde4/kalgebra.desktop
%{_kde4_datadir}/applications/kde4/kalgebramobile.desktop
%{_kde4_iconsdir}/hicolor/*/*/kalgebra.*
@@ -101,6 +116,9 @@ fi
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 4.14.3-3
+- Add an AppData file for the software center
+
* Sat Jan 17 2015 Rex Dieter <rdieter at fedoraproject.org> 4.14.3-2
- kde-applications fixes
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/kalgebra.git/commit/?h=master&id=304904c5f8e1acc2a8e666da597324afe1a6ea4a
More information about the scm-commits
mailing list