1 Summary: Togl - Tk OpenGL Widget
2 Summary(pl): Togl - Biblioteka widgetów dla Tk
6 License: Open Source (see LICENSE file for details)
8 #Source0: http://prdownloads.sf.net/Togl/%{name}-%{version}.tar.gz
9 #...but there is only 1.5
10 Source0: %{name}-%{version}beta2.tar.gz
11 Source1: %{name}-Makefile.PLD
12 Patch0: %{name}-tkInit.patch
13 URL: http://togl.sf.net/
15 BuildRequires: tk >= 8.0
16 BuildRequires: tcl >= 8.0
17 BuildRequires: XFree86-OpenGL-devel >= 4.0.1
18 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _noautoreqdep libGL.so.1 libGLU.so.1
21 %define _prefix /usr/X11R6
24 Togl is a Tk widget for OpenGL rendering.
27 Togl jest widgetem Tk do renderowania OpenGL.
31 Summary(pl): Togl - czê¶æ dla programistów
32 Group: Development/Libraries
35 Header files and examples for Togl.
37 %description devel -l pl
38 Pliki nag³ówkowe i przyk³ady do Togl.
46 mv -f %{name}-Makefile.PLD Makefile
47 %{__make} RPM_OPT_FLAGS="%{rpmcflags}"
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_examplesdir}/%{name}-%{version}}
52 #%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} install
54 install libtogl.so.1.3 $RPM_BUILD_ROOT%{_libdir}
55 install double gears index overlay texture $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56 install togl.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57 install togl.o $RPM_BUILD_ROOT%{_libdir}
58 install togl.h $RPM_BUILD_ROOT%{_includedir}
60 gzip -9nf LICENSE README
63 rm -rf $RPM_BUILD_ROOT
65 %post -p /sbin/ldconfig
66 %postun -p /sbin/ldconfig
69 %defattr(644,root,root,755)
70 %doc LICENSE.gz README.gz
71 %attr(755,root,root) %{_libdir}/libtogl.so.1.3
72 %attr(644,root,root) %{_libdir}/togl.o
75 %defattr(644,root,root,755)
76 %attr(644,root,root) %{_includedir}/togl.h
77 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*[^togl.c]
78 %attr(644,root,root) %{_examplesdir}/%{name}-%{version}/*.c