File formido.spec of Package formido
#
# spec file for package formido
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: formido
Version: 1.0.1
Release: 0
Summary: Fast bug shooting game
License: GPL-2.0+
Group: Amusements/Games/Action/Arcade
Url: http://www.mhgames.cjb.net/
Source: %{name}-%{version}.tar.bz2
Source2: %{name}-music.tar.bz2
Patch0: %{name}-%{version}-make.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: SDL-devel
BuildRequires: SDL_image-devel
BuildRequires: SDL_mixer-devel
BuildRequires: gcc-c++
%description
Fast bug shooting game
Authors:
--------
Mika Halttunen
%package music
Summary: Music for Formido
Group: Amusements/Games/Action/Arcade
Requires: %{name}
%description music
Music for Formido
%prep
%autosetup
%build
make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" DATDIR=%{_datadir}/%{name}/data DEFCONFIGDIR=%{_datadir}/%{name}
%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/data
cp -a %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
cp -a %{name}.cfg $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -a data/*.dat $RPM_BUILD_ROOT%{_datadir}/%{name}/data
tar -C $RPM_BUILD_ROOT%{_datadir}/%{name}/data -xjf %{S:2}
%files
%defattr(-,root,root)
%doc INSTALL README GPL_license.txt
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%exclude %{_datadir}/%{name}/data/*.ogg
%files music
%defattr(-,root,root)
%{_datadir}/%{name}/data/*.ogg
%changelog