From 03f1835baba765073c3475d9eca0dad561327daf Mon Sep 17 00:00:00 2001 From: Rahul Sundaram Date: Feb 11 2013 03:50:17 +0000 Subject: remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247 - clean up spec to follow current guidelines - fix desktop file to follow specification --- diff --git a/ballbuster.desktop b/ballbuster.desktop index 55d2890..116dda1 100644 --- a/ballbuster.desktop +++ b/ballbuster.desktop @@ -3,7 +3,7 @@ Encoding=UTF-8 Name=Ball: Buster Comment=Move the paddle to bounce the ball and break all the bricks Exec=ballbuster-wrapper -Icon=ballbuster.png +Icon=ballbuster Terminal=false StartupNotify=false Type=Application diff --git a/ballbuster.spec b/ballbuster.spec index c45ab54..02f404b 100644 --- a/ballbuster.spec +++ b/ballbuster.spec @@ -1,6 +1,6 @@ Name: ballbuster Version: 1.0 -Release: 15%{?dist} +Release: 16%{?dist} Summary: Move the paddle to bounce the ball and break all the bricks Group: Amusements/Games License: GPLv2+ @@ -9,7 +9,6 @@ Source0: http://www.patrickavella.com/BallBusterX.zip Source1: %{name}.desktop Patch0: ballbuster-unix.patch.gz Patch1: ballbuster-1.0-gcc43.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ClanLib1-devel desktop-file-utils ImageMagick Requires: hicolor-icon-theme opengl-games-utils @@ -20,39 +19,28 @@ control the ball by bouncing it back at the bricks with a paddle which you control with your mouse. The game features: A built in level editor, 20 power ups and special effects (particle, alpha, rotating, and zooming). - %prep %setup -q -c %patch0 -p1 -z .unix %patch1 -p1 -z .gcc43 sed -i 's/\r//g' COPYING credits.txt ExtremeUpdates.txt manual.html html/* - %build make %{?_smp_mflags} PREFIX=%{_prefix} \ CFLAGS="$RPM_OPT_FLAGS `pkg-config --cflags clanCore-1.0` -fpermissive" convert -transparent black icon1.ico %{name}.png - %install -rm -rf $RPM_BUILD_ROOT make install PREFIX=$RPM_BUILD_ROOT%{_prefix} ln -s opengl-game-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/%{name}-wrapper # below is the desktop file and icon stuff. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications -desktop-file-install --vendor fedora \ - --dir $RPM_BUILD_ROOT%{_datadir}/applications \ - %{SOURCE1} +desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1} mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps install -p -m 644 %{name}.png \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps - -%clean -rm -rf $RPM_BUILD_ROOT - - %post touch --no-create %{_datadir}/icons/hicolor || : if [ -x %{_bindir}/gtk-update-icon-cache ]; then @@ -65,17 +53,19 @@ if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi - %files -%defattr(-,root,root,-) %doc COPYING credits.txt ExtremeUpdates.txt manual.html html %{_bindir}/%{name}* %{_datadir}/%{name} -%{_datadir}/applications/fedora-%{name}.desktop +%{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/32x32/apps/%{name}.png - %changelog +* Sun Feb 10 2013 Rahul Sundaram - 1.0-16 +- remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247 +- clean up spec to follow current guidelines +- fix desktop file to follow specification + * Wed Jul 18 2012 Fedora Release Engineering - 1.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild