diff --git a/torque.spec b/torque.spec index f30add3..8bc96b2 100644 --- a/torque.spec +++ b/torque.spec @@ -474,6 +474,22 @@ rm %{buildroot}%{_mandir}/man1/basl2c.1 # fix permissions for some directories in /var/lib/torque chmod 755 `find %{buildroot}/var/lib/torque -type d` +# Merge applications into one software center item +%if %{build_gui} +mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata +cat > $RPM_BUILD_ROOT%{_datadir}/appdata/xpbsmon.appdata.xml < + + + CC0-1.0 + xpbsmon.desktop + + xpbs.desktop + + +EOF +%endif + %clean rm -rf %{buildroot} @@ -654,6 +670,7 @@ fi %{_bindir}/xpbsmon %{_libdir}/xpbs %{_libdir}/xpbsmon +%{_datadir}/appdata/*.appdata.xml %{_datadir}/applications/*.desktop %{_datadir}/pixmaps/*.png %{_mandir}/man1/xpbs.1.* @@ -796,6 +813,9 @@ fi %endif %changelog +* Thu Mar 26 2015 Richard Hughes - 4.2.8-2 +- Add an AppData file for the software center + * Tue Oct 14 2014 David Brown - 4.2.8-2 - merged fedora latest into epel - This breaks old configs and should be treated carefully