--- /dev/null
+%define _beta beta2
+Summary: Puzzle game
+Summary(pl): Gra logiczna
+Name: brikx
+Version: 0.1
+Release: 0.%{_beta}.1
+License: GPL v2+
+Group: X11/Applications/Games
+Source0: http://dl.sourceforge.net/brikx/%{name}-%{version}%{_beta}.tar.bz2
+# Source0-md5: f1b71c6d5ac7960a1e44416e850e05bc
+URL: http://sourceforge.net/projects/brikx
+BuildRequires: SDL-devel
+BuildRequires: SDL_image-devel
+BuildRequires: SDL_ttf-devel
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: freetype
+BuildRequires: sed >= 4.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A small puzzle game in which your goal is to remove all tiles. You are
+held up by other tiles, gravity, walls, and other things.
+
+%description -l pl
+Ma³a gra logiczna, w której celem gracza jest pozbycie siê wszystkich
+kulek. W dokonaniu tego przeszkadzaj± inne kulki, grawitacja, ¶ciany
+oraz inne rzeczy.
+
+%prep
+%setup -q -n %{name}-%{version}%{_beta}
+%{__sed} -i 's@data@%{_datadir}/%{name}@' src/brikx.h
+
+%build
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+cp -r src/data/* $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog
+%attr(755,root,root) %{_bindir}/%{name}
+%{_datadir}/%{name}