frogatto/frogatto.spec

75 lines
2 KiB
RPMSpec
Raw Normal View History

2012-06-13 14:15:46 +04:00
Name: frogatto
Version: 1.2
Release: 2
Summary: Frogatto & Friends classic adventure game
License: GPLv3+
Group: Games/Arcade
URL: http://www.frogatto.com/
# 1.2 is available at https://github.com/frogatto/frogatto/tarball/1.2 only
Source: http://www.frogatto.com/files/%{name}-%{name}-%{version}-0-g07a33cd.tar.gz
Source1: frogatto
Source2: frogatto.desktop
Source3: frogatto.xpm
Source4: frogatto.6
Patch1: frogatto-1.0-asneeded.patch
BuildRequires: boost-devel
BuildRequires: gcc-c++
BuildRequires: SDL_image-devel
BuildRequires: SDL_mixer-devel
BuildRequires: SDL_ttf-devel
BuildRequires: glew-devel
BuildRequires: png-devel
#BuildRequires: ccache
BuildRequires: glibc-devel
Requires: %{name}-gamedata = %{version}
2012-02-01 19:13:17 +04:00
%description
Frogatto & Friends is a old-school 2d platformer game, starring a certain
quixotic frog.
2012-06-13 14:15:46 +04:00
%package gamedata
Summary: Game data for frogatto
License: distributable
Group: Games/Arcade
2012-02-01 19:13:17 +04:00
# We split game data to separate package to make it noarch and thus save
# bandwidth and space on distribution media.
2012-06-13 14:15:46 +04:00
BuildArch: noarch
2012-02-01 19:13:17 +04:00
2012-06-13 14:15:46 +04:00
%description gamedata
2012-02-01 19:13:17 +04:00
Game data for frogatto.
%prep
2012-06-13 14:15:46 +04:00
%setup -q -n %{name}-%{name}-64c84bf
2012-02-01 19:13:17 +04:00
%build
2012-06-13 14:15:46 +04:00
%make CC=%__cc CXX=%(echo %__cc |sed -e 's,gcc,g++,')
2012-02-01 19:13:17 +04:00
%install
2012-06-13 14:15:46 +04:00
%__rm -rf %{buildroot}
%__install -d %{buildroot}%{_datadir}/frogatto
%__install -d %buildroot%_gamesbindir
%__install -pDm 755 game %{buildroot}%{_libdir}/frogatto/game
%__cp -a images data music sounds %{buildroot}%{_datadir}/frogatto
sed -e 's#BINARY_FILE=.*#BINARY_FILE=%{_libdir}/frogatto/game#g' %{SOURCE1} >%buildroot%_gamesbindir/frogatto
chmod 0755 %buildroot%_gamesbindir/frogatto
%__install -pDm 644 %SOURCE2 %{buildroot}%{_datadir}/applications/frogatto.desktop
%__install -pDm 644 %SOURCE3 %{buildroot}%{_datadir}/pixmaps/frogatto.xpm
%__install -pDm 644 %SOURCE4 %{buildroot}%{_mandir}/man6/frogatto.6
2012-02-01 19:13:17 +04:00
2012-06-13 14:15:46 +04:00
%clean
%__rm -rf %{buildroot}
2012-02-01 19:13:17 +04:00
%files
2012-06-13 14:15:46 +04:00
%{_gamesbindir}/*
%{_libdir}/%{name}/
2012-02-01 19:13:17 +04:00
%{_datadir}/applications/*
2012-06-13 14:15:46 +04:00
%{_datadir}/pixmaps/*
2012-02-01 19:13:17 +04:00
%{_mandir}/man6/*
%files gamedata
%doc LICENSE
2012-06-13 14:15:46 +04:00
%{_datadir}/%{name}
2012-02-01 19:13:17 +04:00