File taisei.spec of Package taisei_project

# Copyright (c) 2011 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:           taisei
Version:        1.0a
Release:        1
Summary:        Open Source clone of the Touhou series
Group:          Amusements/Games/Action/Shoot
License:        GPL
URL:            http://taisei-project.org
Source0:        %{name}-%{version}-master.tar.gz
Patch0:         %{name}-desktop_file.patch
BuildRoot:      %{_tmppath}/build-root-%{name}
BuildRequires:  gcc-c++ cmake libtool hicolor-icon-theme
BuildRequires:  libSDL-devel libSDL_ttf-devel zlib-devel
BuildRequires:  openal-soft-devel freealut-devel
BuildRequires:  Mesa-devel libpng16-compat-devel freetype2-devel

%description
Taisei (lit. Occident) is a fan-made, Open Source clone of the Touhou series, written in C using SDL/OpenGL/OpenAL.

%prep
%setup -q -n laochailan-%{name}-%{version}
%patch0

%build
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?_smp_mflags}

%install
pushd build
%{?make_install} %{!?make_install:%makeinstall}
popd

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%{_bindir}/taisei
%{_datadir}/applications/taisei.desktop
%{_datadir}/icons/hicolor/128x128/apps/taisei.png
%dir %{_datadir}/taisei
%{_datadir}/taisei/*

%changelog
* Sun Aug 26 2012 y.kobayashi
- Create package in openSUSE Build