File stepmania.spec of Package stepmania
#
# spec file for package stepmania
#
# 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: stepmania
Version: 5.0b2
Release: 1
Summary: Music/rhythm game
License: MIT
Group: Amusements/Games/Action/Arcade
URL: http://www.stepmania.com/
Source0: stepmania-5.0b2a-src.tar.bz2
Source1: StepMania-v5.0-beta1a-linux.tar.bz2
Source2: install-stepmania-home_dir.sh
BuildRequires: automake gcc-c++ libtool libstdc++-devel zlib-devel libbz2-devel lua-devel
BuildRequires: libjpeg-devel libpng-devel
BuildRequires: libogg-devel libvorbis-devel
BuildRequires: xorg-x11-devel libXrandr-devel Mesa-devel glew-devel freeglut-devel alsa-devel libpulse-devel
BuildRequires: pkgconfig(gtk+-2.0)
# Requires packman's package
BuildRequires: libmad-devel libffmpeg-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: ffmpeg
%description
StepMania is a music/rhythm game. The player presses different buttons
in time to the music and to note patterns that scroll across the screen.
Features 3D graphics, visualizations, support for gamepads/dance pads,
a step recording mode, and more!
This package requires ffmpeg library and mad library.
%prep
%setup -q -n %{name}-tip -a 1
%build
export LIBS="$LIBS -lX11"
%configure \
--with-sse2
make %{?_smp_mflags}
%install
%{__install} -D -m 0755 src/stepmania %{buildroot}%{_bindir}/stepmania
%{__install} -D -m 0755 src/GtkModule.so %{buildroot}%{_libdir}/stepmania-GtkModule.so
%{__install} -D -m 0755 %{SOURCE2} %{buildroot}%{_prefix}/games/install-stepmania-home_dir.sh
%{__install} -D -m 0644 stepmania/Packages/GameData.smzip %{buildroot}%{_datadir}/games/stepmania/Packages/GameData.smzip
%{__install} -D -m 0644 icons/hicolor/scalable/apps/stepmania-ssc.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/stepmania-ssc.svg
mkdir -p %{buildroot}%{_datadir}/games/stepmania/{Songs,AdditionalSongs,Courses,AdditionalCourses,Edits}
%files
%defattr(-,root,root,-)
%doc stepmania/Docs/Licenses.txt
%{_bindir}/stepmania
%{_prefix}/games/install-stepmania-home_dir.sh
%{_datadir}/icons/hicolor/scalable/apps/stepmania-ssc.svg
%{_libdir}/stepmania-GtkModule.so
%{_datadir}/games/stepmania
%changelog