rhughes pushed to ascend (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:16:11 UTC 2015
>From b66cf3dd2b977cb50e24074a2a5c05f86b8d9237 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:04:48 +0000
Subject: Add an AppData file for the software center
diff --git a/ascend.spec b/ascend.spec
index 00e0e2d..fa11f67 100644
--- a/ascend.spec
+++ b/ascend.spec
@@ -12,7 +12,7 @@
Name: ascend
Summary: ASCEND modelling environment
Version: 0.9.8
-Release: 16.20140710svn4695%{?dist}
+Release: 17.20140710svn4695%{?dist}
License: GPLv2+
URL: http://ascend4.org/
@@ -221,6 +221,21 @@ desktop-file-install \
--set-key=Exec --set-value="env ASCENDTK=%{_datadir}/%{name}/tcltk %{name}4" \
%{buildroot}/%{_datadir}/applications/%{name}4.desktop
+# Merge applications into one software center item
+#
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/ascend4.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>ascend4.desktop</id>
+ <metadata>
+ <value key="X-Merge-With-Parent">ascend.desktop</value>
+ </metadata>
+</component>
+EOF
+
# Fixed execute permission
pushd %{buildroot}/%{_libdir}
for i in `find . -perm /644 -type f \( -name "*.so" -o -name "*.sh" -o -name "*.py" \)`; do
@@ -279,6 +294,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{python2_sitearch}/%{name}/
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/glade/
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/%{name}-app.png
%{_datadir}/icons/hicolor/64x64/%{name}.png
@@ -396,6 +412,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
#%%doc doc/book.pdf
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.9.8-17.20140710svn4695
+- Add an AppData file for the software center
+
* Thu Feb 26 2015 Antonio Trande <sagitter at fedoraproject.org> 0.9.8-16.20140710svn4695
- Fixed Python code after SWIG update (>= 3.0.3) (bz#1196699)
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/ascend.git/commit/?h=master&id=b66cf3dd2b977cb50e24074a2a5c05f86b8d9237
More information about the scm-commits
mailing list