Name: garden Version: 1.0.8 Release: 2%{?dist} Summary: An innovative old-school 2D vertical shoot-em-up Group: Amusements/Games License: GPLv3+ URL: http://garden.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Patch0: garden-dso.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: allegro-devel BuildRequires: desktop-file-utils BuildRequires: automake BuildRequires: autoconf Requires: allegro %description Garden of colored lights is an old school 2D vertical shoot-em-up with some innovative elements. Innovative graphics, soundtrack and game concept. The game itself is very challenging and as you progress, you will understand that you are dealing with a true piece of art... %prep %setup -q # patch for DSO-linking # https://sourceforge.net/tracker/?func=detail&aid=2982590&group_id=242667&atid=1121672 %patch0 -p1 -b .dso %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT desktop-file-validate \ %{buildroot}%{_datadir}/applications/%{name}.desktop %clean rm -rf $RPM_BUILD_ROOT %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files %defattr(-,root,root,-) %doc README NEWS AUTHORS ChangeLog COPYING %{_bindir}/%{name} %{_datadir}/%{name}/ %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{_datadir}/applications/%{name}.desktop %changelog * Tue Apr 6 2010 Ionuț C. Arțăriși - 1.0.8-2 - added DSOlinking patch - changed license from GPLv3 to GPLv3+ - added COPYING to %%doc * Sat Mar 13 2010 Ionuț C. Arțăriși - 1.0.8-1 - initial package