#
# Conditional build:
%bcond_with glut # use glut instead of SDL
-%bcond_with nvidia # enable NVidia specific extensions
-
+%bcond_with nvidia # enable NVidia specific extensions
+#
Summary: A free OpenGL game of playing billard
Summary(pl): Wolnodostêpna gra w bilard oparta na OpenGL
Name: foobillard
-Version: 2.9
-Release: 1
+Version: 3.0a
+Release: 1
Vendor: Florian Berger <florian.berger@aec.at>, <harpin_floh@yahoo.de>
License: GPL
Group: X11/Applications/Games
Source0: http://foobillard.sunsite.dk/dnl/%{name}-%{version}.tar.gz
-# Source0-md5: b8b10d7d3ade07a9e0c497165beadbca
+# Source0-md5: c2d92edeaaf8bfb18aa26f1c79931b7d
Source1: %{name}.desktop
Source2: %{name}.xpm
URL: http://foobillard.sunsite.dk/
BuildRequires: freetype-devel
%{?with_glut:BuildRequires: glut-devel}
BuildRequires: intltool
+BuildRequires: libtool
Requires: OpenGL
%{?with_nvidia:Requires: XFree86-driver-nvidia}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_applnkdir}/Games,%{_pixmapsdir}}
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
%clean
%doc AUTHORS NEWS README ChangeLog TODO README.FONTS foobillardrc.example
%attr(755,root,root) %{_bindir}/*
%{_datadir}/foobillard
-%{_applnkdir}/Games/%{name}.desktop
+%{_desktopdir}/%{name}.desktop
%{_pixmapsdir}/*