diff --git a/biloba.spec b/biloba.spec index 66d2153..a0c4307 100644 --- a/biloba.spec +++ b/biloba.spec @@ -1,6 +1,6 @@ Name: biloba Version: 0.9.3 -Release: 7%{?dist} +Release: 8%{?dist} Summary: A tactical board game Group: Amusements/Games @@ -39,6 +39,44 @@ cp -p biloba_icon.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/biloba convert -scale 32x32 biloba_icon.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/biloba.png convert -scale 16x16 biloba_icon.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/biloba.png +# Register as an application to be visible in the software center +# +# NOTE: It would be *awesome* if this file was maintained by the upstream +# project, translated and installed into the right place during `make install`. +# +# See http://www.freedesktop.org/software/appstream/docs/ for more details. +# +mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata +cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml < + + + + biloba.desktop + CC0-1.0 + Strategic board game + +

+ Biloba is a board game for 2 to 4 players that involves moving pawns around on + an octagonal board with square cells. The goal of bilboa is to remove all of your + opponent's pawns. Bilboa can be played both against AI and real opponents. +

+
+ http://biloba.sourceforge.net/ + + http://biloba.sourceforge.net/2p.png + http://biloba.sourceforge.net/3p.png + http://biloba.sourceforge.net/4p.png + + +
+EOF + desktop-file-install \ --dir=$RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE1} @@ -66,9 +104,13 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/* %{_datadir}/%{name} %{_datadir}/icons/hicolor/??x??/apps/%{name}.png +%{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %changelog +* Thu Mar 26 2015 Richard Hughes - 0.9.3-8 +- Add an AppData file for the software center + * Fri Aug 15 2014 Fedora Release Engineering - 0.9.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild