# # Conditional build: # _with_glut - use glut instead of SDL # Summary: A free OpenGL game of playing billard Summary(pl): Wolnodostępna gra w bilard oparta na OpenGL Name: foobillard Version: 2.8 Release: 1 Vendor: Florian Berger , License: GPL Group: X11/Applications/Games Source0: http://foobillard.sunsite.dk/dnl/%{name}-%{version}.tar.gz # Source0-md5: afe2e096743cbf41e0a9537cceb7f857 Source1: %{name}.desktop Source2: %{name}.xpm URL: http://foobillard.sunsite.dk/ BuildRequires: OpenGL-devel %{!?_with_glut:BuildRequires: SDL-devel} BuildRequires: autoconf BuildRequires: automake BuildRequires: freetype-devel %{?_with_glut:BuildRequires: glut-devel} BuildRequires: intltool Requires: OpenGL BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _noautoreqdep libGL.so.1 libGLU.so.1 %description FooBillard is an attempt to create a free OpenGL-billard for Linux. Why foo? Well, actually I had this logo (F.B.-Florian Berger) and then foo sounds a bit like pool (Somehow I wasn't quite attracted by the name FoolBillard). Actually FooBillard is still under development but the main physics is implemented. If you are a billard-pro and you're missing some physics, please tell me. Cause I've implemented it like I think it should work, which might differ from reality. %description -l pl FooBillard to próba stworzenia wolnodostępnego bilarda OpenGL dla Linuksa. Dlaczego foo? Bo autor miał już to logo (F.B. - Florian Berger) i "foo" brzmi trochę jak "pool" (a nazwa "FoolBillard" nie brzmiała zbyt przyciągająco). FooBillard jest nadal w stadium rozwoju, ale główna fizyka jest już zaimplementowana. Jeżeli w grze brakuje jakiejś fizyki, dobrze jest zgłosić to autorowi, ponieważ on zaimplementował ją tak, jak myślał, że powinna działać, co może się nieco różnić od rzeczywistości. %prep %setup -q %build rm -f missing X_LIBS='-I/usr/X11R6/include'; export X_LIBS %{__libtoolize} %{__aclocal} %{__autoconf} %{__automake} %configure \ %{!?_with_glut:--enable-SDL}%{?_with_glut:--enable-glut} %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_applnkdir}/Games,%{_pixmapsdir}} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc AUTHORS NEWS README ChangeLog TODO README.FONTS foobillardrc.example %attr(755,root,root) %{_bindir}/* %{_datadir}/foobillard %{_applnkdir}/Games/%{name}.desktop %{_pixmapsdir}/*