%global ver 0.3 Name: tuxfootball Version: %{ver}.1 Release: 0.1%{?dist} Summary: Soccer game License: GPLv2 URL: http://%{name}.sf.net/ Source0: http://downloads.sf.net/project/%{name}/%{ver}/%{name}-%{version}.tar.gz BuildRequires: SDL-devel SDL_image-devel SDL_mixer-devel BuildRequires: desktop-file-utils Requires: %{name}-data = %{version}-%{release} %description Tux Football is a great 2D soccer (sometimes called football) game. It's bringing old style game play from DOS times back to the desktop with up to date graphics! It's game play is similar to old classics such as Amco's Kick Off and Sensible Software's Sensible Soccer. %package data Summary: Data files for the game Tux Football BuildArch: noarch Requires: %{name} = %{version}-%{release} %description data Data files for the game Tux Football: Graphics and Sound. %prep %setup -q ## fix gcc sed -i s,menu\.h,../menu.h, src/menu/elements/menulabel.cpp ## correct and clean docdir sed -i s,\${prefix}/doc,%{_docdir}, Makefile.* %build %configure make %{?_smp_mflags} %install %make_install desktop-file-install -m 644 --dir=%{buildroot}%{_datadir}/applications %{name}.desktop rm %{buildroot}%{_docdir}/%{name}/INSTALL %files %{_bindir}/%{name} %{_datadir}/icons/hicolor/*/apps/%{name}.png %{_datadir}/locale/*/LC_MESSAGES/%{name}.mo %{_datadir}/applications/%{name}.desktop %{_docdir}/%{name}/ %files data %{_datadir}/%{name}/ %changelog * Mon Oct 06 2014 Raphael Groner - 0.3.1-0.1 - initial