]> git.pld-linux.org Git - packages/BillardGL.git/blame - BillardGL.spec
- I was wrong, glut 3.7 is enough
[packages/BillardGL.git] / BillardGL.spec
CommitLineData
d7fa07f6 1Summary: 3D billard simulation using OpenGL
bdbc7a2b 2Summary(pl.UTF-8): Symulacja bilarda używająca OpenGL
ee1007e4 3Name: BillardGL
af7b96c1 4Version: 1.75
13cc799e 5Release: 3
b945e728 6License: GPL
742b3d04 7Group: X11/Applications/Games
0010b480 8Source0: http://billardgl.sourceforge.net/download/%{name}-%{version}.tar.gz
af7b96c1 9# Source0-md5: 46f2cf99e1a2b2aa4707d3500e43be47
13cc799e
BZ
10Source1: %{name}.desktop
11Source2: %{name}.xpm
8d55392d
BZ
12Patch0: %{name}-starting-resolution.patch
13Patch1: %{name}-depracted.patch
14Patch2: %{name}-config_buffer_overflows.patch
0010b480 15URL: http://www.tobias-nopper.de/BillardGL/
1ac0bf9f 16BuildRequires: OpenGL-glut-devel
c4f135e4 17BuildRequires: rpmbuild(macros) >= 1.167
a239c2b8 18BuildRequires: sed >= 4.0
8d55392d
BZ
19BuildRequires: xorg-lib-libXi-devel
20BuildRequires: xorg-lib-libXmu-devel
d7fa07f6 21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
b945e728 22
b945e728 23%description
d7fa07f6 243D billard simulation using OpenGL.
b945e728 25
b887c391
JR
26%description -l pl.UTF-8
27Trójwymiarowa symulacja bilarda używająca OpenGL.
b945e728
MW
28
29%prep
d7fa07f6 30%setup -q
8d55392d
BZ
31%patch0 -p1
32%patch1 -p1
33%patch2 -p1
b945e728 34
ee1007e4
JB
35sed -i -e "s:-L/usr/X11R6/lib::" src/Makefile
36sed -i -e "s:/usr/share/:%{_datadir}/:" src/Namen.h
37
b945e728 38%build
ee1007e4
JB
39%{__make} -C src \
40 CXX="%{__cxx}" \
41 CXXFLAGS="%{rpmcxxflags} -Wall -W %{!?debug:-DNO_DEBUG}" \
42 LINK="%{__cxx}" \
43 LFLAGS="%{rpmldflags}"
b945e728 44
b945e728
MW
45%install
46rm -rf $RPM_BUILD_ROOT
13cc799e 47install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir},%{_datadir}/%{name}/lang,%{_datadir}/%{name}/Texturen/{1,2,4,8}}
b945e728 48
b945e728 49cd src
d7fa07f6 50install BillardGL $RPM_BUILD_ROOT%{_bindir}
632396bc 51install lang/*.lang $RPM_BUILD_ROOT%{_datadir}/%{name}/lang
13cc799e
BZ
52install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
53install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
b945e728 54
d7fa07f6 55for j in 1 2 4 8 ; do
56 for i in Texturen/$j/*; do
57 install $i $RPM_BUILD_ROOT%{_datadir}/%{name}/Texturen/$j
58 done
b945e728
MW
59done
60
d7fa07f6 61%clean
62rm -rf $RPM_BUILD_ROOT
b945e728
MW
63
64%files
65%defattr(644,root,root,755)
fca1472b 66%doc src/README
d7fa07f6 67%attr(755,root,root) %{_bindir}/BillardGL
68%{_datadir}/%{name}
13cc799e
BZ
69%{_desktopdir}/*.desktop
70%{_pixmapsdir}/*.xpm
This page took 0.07185 seconds and 4 git commands to generate.