File StepMania.spec of Package Stepmania
# norootforbuild
BuildRequires: gcc-c++ libstdc++-devel SDL lua50
BuildRequires: alsa-devel Mesa-devel libjpeg-devel libpng-devel libogg-devel libvorbis-devel zlib-devel gtk2-devel SDL-devel lua50-devel
Packager: Justin Williams <juswilliams@gmail.com>
Name: stepmania
Version: 3.9
Release: 1
URL: http://www.stepmania.com/
License: GNU Lesser General Public License (LGPL)
Group: Amusements/Games/Arcade
Autoreqprov: on
Summary: Music / rhythm game
Source: StepMania-3.9-src.tar.gz
Source1: stepmania
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch0: gcc41.patch
%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!
%prep
%setup -q -n StepMania-3.9-src
%patch0 -p0
%build
autoreconf --install --force
%configure \
--without-ffmpeg \
--without-mp3
make %{?jobs:-j%jobs}
%install
mkdir -p $RPM_BUILD_ROOT/opt/stepmania
cp src/stepmania $RPM_BUILD_ROOT/opt/stepmania
cp src/GtkModule.so $RPM_BUILD_ROOT/opt/stepmania
for dir in Announcers BGAnimations BackgroundEffects BackgroundTransitions CDTitles Characters Courses Data NoteSkins Packages RandomMovies Songs Themes; do
mkdir -p $RPM_BUILD_ROOT/opt/stepmania/$dir
cp -rf $dir/* $RPM_BUILD_ROOT/opt/stepmania/$dir
done
install -D -m 755 %{S:1} $RPM_BUILD_ROOT%{_bindir}/stepmania
a
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc Licenses.txt
%{_bindir}/stepmania
%dir /opt/stepmania
/opt/stepmania/*
%changelog