diff --git a/stoken.spec b/stoken.spec index f17fb94..d5c15d4 100644 --- a/stoken.spec +++ b/stoken.spec @@ -1,6 +1,6 @@ Name: stoken Version: 0.81 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Token code generator compatible with RSA SecurID 128-bit (AES) token License: LGPLv2+ @@ -82,6 +82,20 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-gui-small.des find %{buildroot} -type f -name "*.la" -delete rm -fr %{buildroot}%{_docdir}/%{name} +# Merge applications into one software center item +mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata +cat > $RPM_BUILD_ROOT%{_datadir}/appdata/stoken-gui-small.appdata.xml < + + + CC0-1.0 + stoken-gui-small.desktop + + stoken-gui.desktop + + +EOF + %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig @@ -96,6 +110,7 @@ rm -fr %{buildroot}%{_docdir}/%{name} %files gui %{_bindir}/%{name}-gui +%{_datadir}/appdata/*.appdata.xml %{_datadir}/applications/%{name}-gui.desktop %{_datadir}/applications/%{name}-gui-small.desktop %{_datadir}/pixmaps/%{name}-gui.png @@ -108,6 +123,9 @@ rm -fr %{buildroot}%{_docdir}/%{name} %{_libdir}/pkgconfig/%{name}.pc %changelog +* Thu Mar 26 2015 Richard Hughes - 0.81-3 +- Add an AppData file for the software center + * Tue Jan 13 2015 Simone Caronni - 0.81-2 - Use nettle instead of libtomcrypt (#1177180).