]> git.pld-linux.org Git - packages/foobillard.git/blobdiff - foobillard.spec
- added Encoding=UTF-8 as requires by freedesktop
[packages/foobillard.git] / foobillard.spec
index 3eae09f7bfd01a2ad5c118eab8a23c52ac9a2cdd..5a15fa563540b93dd86fcdba104a1763b6601667 100644 (file)
@@ -1,6 +1,7 @@
 #
 # Conditional build:
-# _with_glut   - use glut instead of SDL
+%bcond_with    glut    # use glut instead of SDL
+%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
@@ -16,13 +17,16 @@ Source1:    %{name}.desktop
 Source2:       %{name}.xpm
 URL:           http://foobillard.sunsite.dk/
 BuildRequires: OpenGL-devel
-%{!?_with_glut:BuildRequires:  SDL-devel}
+%{!?with_glut:BuildRequires:   SDL-devel}
+%{?with_nvidia:BuildRequires:  XFree86-driver-nvidia}
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: freetype-devel
-%{?_with_glut:BuildRequires:   glut-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)
 
 %define                _noautoreqdep   libGL.so.1 libGLU.so.1
@@ -57,7 +61,8 @@ X_LIBS='-I/usr/X11R6/include'; export X_LIBS
 %{__autoconf}
 %{__automake}
 %configure \
-       %{!?_with_glut:--enable-SDL}%{?_with_glut:--enable-glut}
+       %{!?with_glut:--enable-SDL}%{?with_glut:--enable-glut} \
+       %{!?with_nvidia:--disable-nvidia}%{?with_nvidia:--enable-nvidia}
 
 %{__make}
 
This page took 0.048674 seconds and 4 git commands to generate.