]>
Commit | Line | Data |
---|---|---|
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 | 6 | Summary: A free OpenGL game of playing billard |
b380dd61 | 7 | Summary(pl.UTF-8): Wolnodostępna gra w bilard oparta na OpenGL |
ce313424 | 8 | Name: foobillard |
2b57fe50 | 9 | Version: 3.0a |
802502f0 | 10 | Release: 2 |
ce313424 | 11 | License: GPL |
69e0ffe4 | 12 | Group: X11/Applications/Games |
ce313424 | 13 | Source0: http://foobillard.sunsite.dk/dnl/%{name}-%{version}.tar.gz |
2b57fe50 | 14 | # Source0-md5: c2d92edeaaf8bfb18aa26f1c79931b7d |
ce313424 | 15 | Source1: %{name}.desktop |
d3c18920 | 16 | Source2: %{name}.xpm |
69e0ffe4 | 17 | URL: http://foobillard.sunsite.dk/ |
3aca0493 | 18 | BuildRequires: OpenGL-GLU-devel |
dfbc3b07 | 19 | %{!?with_glut:BuildRequires: SDL-devel} |
033cc133 | 20 | BuildRequires: autoconf |
69e0ffe4 JB |
21 | BuildRequires: automake |
22 | BuildRequires: freetype-devel | |
dfbc3b07 | 23 | %{?with_glut:BuildRequires: glut-devel} |
a53fce41 | 24 | BuildRequires: intltool |
31b0884f | 25 | BuildRequires: libpng-devel |
a15a0639 | 26 | BuildRequires: libtool |
3aca0493 | 27 | %{?with_nvidia:BuildRequires: xorg-driver-video-nvidia-devel} |
4e6080f5 | 28 | BuildRequires: xorg-lib-libXaw-devel |
29 | BuildRequires: xorg-lib-libXi-devel | |
a53fce41 | 30 | Requires: OpenGL |
4e6080f5 | 31 | %{?with_nvidia:Requires: xorg-driver-video-nvidia} |
ce313424 | 32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
033cc133 | 33 | |
a53fce41 JB |
34 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
35 | ||
033cc133 | 36 | %description |
37 | FooBillard is an attempt to create a free OpenGL-billard for Linux. | |
38 | Why foo? Well, actually I had this logo (F.B.-Florian Berger) and then | |
39 | foo sounds a bit like pool (Somehow I wasn't quite attracted by the | |
69e0ffe4 | 40 | name FoolBillard). Actually FooBillard is still under development but |
033cc133 | 41 | the main physics is implemented. If you are a billard-pro and you're |
42 | missing some physics, please tell me. Cause I've implemented it like I | |
43 | think it should work, which might differ from reality. | |
44 | ||
44be370f JR |
45 | %description -l pl.UTF-8 |
46 | FooBillard to próba stworzenia wolnodostępnego bilarda OpenGL dla | |
47 | Linuksa. Dlaczego foo? Bo autor miał już to logo (F.B. - Florian | |
48 | Berger) i "foo" brzmi trochę jak "pool" (a nazwa "FoolBillard" nie | |
49 | brzmiała zbyt przyciągająco). FooBillard jest nadal w stadium rozwoju, | |
50 | ale główna fizyka jest już zaimplementowana. Jeżeli w grze brakuje | |
51 | jakiejś fizyki, dobrze jest zgłosić to autorowi, ponieważ on | |
52 | zaimplementował ją tak, jak myślał, że powinna działać, co może się | |
53 | nieco różnić od rzeczywistości. | |
69e0ffe4 | 54 | |
033cc133 | 55 | %prep |
56 | %setup -q | |
033cc133 | 57 | |
58 | %build | |
59 | rm -f missing | |
69e0ffe4 | 60 | X_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 | |
79 | rm -rf $RPM_BUILD_ROOT | |
11a0c2e6 | 80 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
69e0ffe4 | 81 | |
69e0ffe4 JB |
82 | %{__make} install \ |
83 | DESTDIR=$RPM_BUILD_ROOT | |
d3c18920 | 84 | |
11a0c2e6 | 85 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
4b76cd65 PG |
86 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
87 | ||
033cc133 | 88 | %clean |
69e0ffe4 | 89 | rm -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}/* |