%define version 0.5.1 %define name naev %define dataname %{name}-data %define release %mkrel 2 Name: %{name} Version: %{version} Release: %{release} Summary: 2D space trading and combat game Group: Games/Arcade License: GPLv3+ URL: http://code.google.com/p/naev/ Source0: http://naev.googlecode.com/files/%{name}-%{version}.tar.bz2 Source1: naev.png Source2: http://naev.googlecode.com/files/ndata-%{version} Source3: naev-update.sh #Patch0: naev-0.4.2-zlib.patch #fixed in mainstream Requires: %{name}-data BuildRequires: SDL-devel BuildRequires: libxml2-devel BuildRequires: freetype2-devel BuildRequires: libpng-devel BuildRequires: libopenal-devel BuildRequires: libvorbis-devel BuildRequires: binutils-devel BuildRequires: libjpeg-devel BuildRequires: libSDL_image-devel BuildRequires: libSDL_mixer-devel %description NAEV is a 2D space trading and combat game, taking inspiration from the Escape Velocity series. You pilot a space ship from a top-down perspective, and are more or less free to do what you want. As the genre name implies, youâre able to trade and engage in combat at will. Beyond that, thereâs an ever-growing number of storyline missions, equipment, and ships; Even the galaxy itself grows larger with each release. For the literarily-inclined, there are large amounts of lore accompanying everything from planets to equipment. %package -n %{dataname} Group: Games/Arcade License: GPLv3+ AND GPLv3 AND GPLv2+ AND Public Domain AND CC-by 3.0 AND CC-by-sa 3.0 Summary: Data files for %{name} Requires: naev BuildArch: noarch %description -n %{dataname} NAEV is a 2D space trading and combat game, taking inspiration from the Escape Velocity series. This is the data file. %prep %setup -q #patch0 -p0 %build %configure2_5x --with-ndata-path=/usr/share/naev/ndata %make %install rm -rf %{buildroot} %makeinstall_std rm -f %{buildroot}%{_datadir}/naev/naev-confupdate.sh install -m644 %{SOURCE1} -D %{buildroot}%{_iconsdir}/naev32.png install -m644 %{SOURCE2} -D %{buildroot}%{_datadir}/naev/ndata install -m755 %{SOURCE3} -D %{buildroot}%{_datadir}/naev/naev-update.sh mkdir -p %{buildroot}/usr/share/applications/ %__cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop [Desktop Entry] Name=Naev GenericName=Naev Comment=2D space trading and combat game Icon=%{_iconsdir}/naev32.png Exec=%{_bindir}/%{name} Type=Application Categories=Game;StrategyGame; StartupNotify=true EOF %post if [ $1 = 2 ]; then %{_datadir}/naev/naev-update.sh fi %clean rm -rf %{buildroot} %files %doc README LICENSE AUTHORS TODO %attr(755,root,root) %{_bindir}/naev %{_mandir}/man6/naev.6.* %{_datadir}/applications/naev.desktop %{_iconsdir}/naev32.png %{_datadir}/pixmaps/%{name}.png %{_datadir}/%{name}/naev-update.sh %files -n %{dataname} %{_datadir}/%{name}/ndata %changelog * Sat Mar 03 2012 petos <petos> 0.5.1-2.mga2 + Revision: 217387 - Update to new version 0.5.1 * Sat Oct 15 2011 petos <petos> 0.5.0-1.mga2 + Revision: 155401 - pixmap added to the package - patch added - Updated to version 0.5.0 * Thu Sep 15 2011 fwang <fwang> 0.4.2-2.mga2 + Revision: 143699 - fix zlib includes * Mon Apr 11 2011 xrogaan <xrogaan> 0.4.2-2.mga1 + Revision: 83336 - add a missing Requires * Wed Mar 02 2011 philippem <philippem> 0.4.2-1.mga1 + Revision: 62497 - fix wrong BuildRequires on lib64jpeg-devel + xrogaan <xrogaan> - imported package naev