]> git.pld-linux.org Git - packages/foobillard.git/blame - foobillard.spec
- rel 1 in th
[packages/foobillard.git] / foobillard.spec
CommitLineData
4d86fce9 1#
2# Conditional build:
dfbc3b07 3%bcond_with glut # use glut instead of SDL
a15a0639
JB
4%bcond_with nvidia # enable NVidia specific extensions
5#
69e0ffe4 6Summary: A free OpenGL game of playing billard
b380dd61 7Summary(pl.UTF-8): Wolnodostępna gra w bilard oparta na OpenGL
ce313424 8Name: foobillard
2b57fe50 9Version: 3.0a
8d1696f1 10Release: 1
ce313424 11License: GPL
69e0ffe4 12Group: X11/Applications/Games
ce313424 13Source0: http://foobillard.sunsite.dk/dnl/%{name}-%{version}.tar.gz
2b57fe50 14# Source0-md5: c2d92edeaaf8bfb18aa26f1c79931b7d
ce313424 15Source1: %{name}.desktop
d3c18920 16Source2: %{name}.xpm
69e0ffe4 17URL: http://foobillard.sunsite.dk/
a53fce41 18BuildRequires: OpenGL-devel
dfbc3b07 19%{!?with_glut:BuildRequires: SDL-devel}
4e6080f5 20%{?with_nvidia:BuildRequires: xorg-driver-video-nvidia-devel}
033cc133 21BuildRequires: autoconf
69e0ffe4
JB
22BuildRequires: automake
23BuildRequires: freetype-devel
dfbc3b07 24%{?with_glut:BuildRequires: glut-devel}
a53fce41 25BuildRequires: intltool
31b0884f 26BuildRequires: libpng-devel
a15a0639 27BuildRequires: libtool
4e6080f5 28BuildRequires: xorg-lib-libXaw-devel
29BuildRequires: xorg-lib-libXi-devel
a53fce41 30Requires: OpenGL
4e6080f5 31%{?with_nvidia:Requires: xorg-driver-video-nvidia}
ce313424 32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
033cc133 33
a53fce41
JB
34%define _noautoreqdep libGL.so.1 libGLU.so.1
35
033cc133 36%description
37FooBillard is an attempt to create a free OpenGL-billard for Linux.
38Why foo? Well, actually I had this logo (F.B.-Florian Berger) and then
39foo sounds a bit like pool (Somehow I wasn't quite attracted by the
69e0ffe4 40name FoolBillard). Actually FooBillard is still under development but
033cc133 41the main physics is implemented. If you are a billard-pro and you're
42missing some physics, please tell me. Cause I've implemented it like I
43think it should work, which might differ from reality.
44
44be370f
JR
45%description -l pl.UTF-8
46FooBillard to próba stworzenia wolnodostępnego bilarda OpenGL dla
47Linuksa. Dlaczego foo? Bo autor miał już to logo (F.B. - Florian
48Berger) i "foo" brzmi trochę jak "pool" (a nazwa "FoolBillard" nie
49brzmiała zbyt przyciągająco). FooBillard jest nadal w stadium rozwoju,
50ale główna fizyka jest już zaimplementowana. Jeżeli w grze brakuje
51jakiejś fizyki, dobrze jest zgłosić to autorowi, ponieważ on
52zaimplementował ją tak, jak myślał, że powinna działać, co może się
53nieco różnić od rzeczywistości.
69e0ffe4 54
033cc133 55%prep
56%setup -q
033cc133 57
58%build
59rm -f missing
69e0ffe4 60X_LIBS='-I/usr/X11R6/include'; export X_LIBS
033cc133 61%{__libtoolize}
033cc133 62%{__aclocal}
63%{__autoconf}
64%{__automake}
4d86fce9 65%configure \
daff38d3
PS
66%if %{with glut}
67 --enable-glut \
68 --disable-SDL \
69%else
70 --disable-glut \
71 --enable-SDL \
72%endif
73 --%{?with_nvidia:en}%{!?with_nvidia:dis}able-nvidia \
74 --enable-sound
033cc133 75
69e0ffe4 76%{__make}
033cc133 77
78%install
79rm -rf $RPM_BUILD_ROOT
11a0c2e6 80install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
69e0ffe4 81
69e0ffe4
JB
82%{__make} install \
83 DESTDIR=$RPM_BUILD_ROOT
d3c18920 84
11a0c2e6 85install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
4b76cd65
PG
86install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
87
033cc133 88%clean
69e0ffe4 89rm -rf $RPM_BUILD_ROOT
033cc133 90
91%files
92%defattr(644,root,root,755)
69e0ffe4 93%doc AUTHORS NEWS README ChangeLog TODO README.FONTS foobillardrc.example
033cc133 94%attr(755,root,root) %{_bindir}/*
69e0ffe4 95%{_datadir}/foobillard
11a0c2e6 96%{_desktopdir}/%{name}.desktop
d3c18920 97%{_pixmapsdir}/*
This page took 0.065757 seconds and 4 git commands to generate.