Add an AppData file for the software center
This commit is contained in:
parent
f33844324c
commit
6232a919bd
22
torque.spec
22
torque.spec
@ -71,7 +71,7 @@
|
|||||||
|
|
||||||
Name: torque
|
Name: torque
|
||||||
Version: 4.2.8
|
Version: 4.2.8
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Tera-scale Open-source Resource and QUEue manager
|
Summary: Tera-scale Open-source Resource and QUEue manager
|
||||||
Source0: http://www.adaptivecomputing.com/download/%{name}/%{name}-%{version}.tar.gz
|
Source0: http://www.adaptivecomputing.com/download/%{name}/%{name}-%{version}.tar.gz
|
||||||
Source2: xpbs.desktop
|
Source2: xpbs.desktop
|
||||||
@ -514,6 +514,22 @@ fi
|
|||||||
--slave %{_mandir}/man1/qstat.1.gz qstat-man \
|
--slave %{_mandir}/man1/qstat.1.gz qstat-man \
|
||||||
%{_mandir}/man1/qstat-torque.1.gz
|
%{_mandir}/man1/qstat-torque.1.gz
|
||||||
|
|
||||||
|
# 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 <<EOF
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||||
|
<component type="desktop">
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<id>xpbsmon.desktop</id>
|
||||||
|
<metadata>
|
||||||
|
<value key="X-Merge-With-Parent">xpbs.desktop</value>
|
||||||
|
</metadata>
|
||||||
|
</component>
|
||||||
|
EOF
|
||||||
|
%endif
|
||||||
|
|
||||||
%preun client
|
%preun client
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
/usr/sbin/alternatives --remove qsub %{_bindir}/qsub-torque
|
/usr/sbin/alternatives --remove qsub %{_bindir}/qsub-torque
|
||||||
@ -651,6 +667,7 @@ fi
|
|||||||
%{_bindir}/xpbsmon
|
%{_bindir}/xpbsmon
|
||||||
%{_libdir}/xpbs
|
%{_libdir}/xpbs
|
||||||
%{_libdir}/xpbsmon
|
%{_libdir}/xpbsmon
|
||||||
|
%{_datadir}/appdata/*.appdata.xml
|
||||||
%{_datadir}/applications/*.desktop
|
%{_datadir}/applications/*.desktop
|
||||||
%{_datadir}/pixmaps/*.png
|
%{_datadir}/pixmaps/*.png
|
||||||
%{_mandir}/man1/xpbs.1.*
|
%{_mandir}/man1/xpbs.1.*
|
||||||
@ -791,6 +808,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 4.2.8-2
|
||||||
|
- Add an AppData file for the software center
|
||||||
|
|
||||||
* Mon Sep 01 2014 Haïkel Guémar <hguemar@fedoraproject.org> - 4.2.8-1
|
* Mon Sep 01 2014 Haïkel Guémar <hguemar@fedoraproject.org> - 4.2.8-1
|
||||||
- upstream 4.2.8
|
- upstream 4.2.8
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user