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://dl.sourceforge.net/togl/%{name}-%{version}.tar.gz
9 Source0: %{name}-%{version}beta2.tar.gz
10 Source1: %{name}-Makefile.PLD
11 Patch0: %{name}-tkInit.patch
12 URL: http://togl.sf.net/
14 BuildRequires: tk >= 8.0
15 BuildRequires: tcl >= 8.0
16 BuildRequires: XFree86-OpenGL-devel >= 4.0.1
17 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _noautoreqdep libGL.so.1 libGLU.so.1
22 Togl is a Tk widget for OpenGL rendering.
25 Togl jest widgetem Tk do renderowania OpenGL.
29 Summary(pl): Togl - czê¶æ dla programistów
30 Group: Development/Libraries
33 Header files and examples for Togl.
35 %description devel -l pl
36 Pliki nag³ówkowe i przyk³ady do Togl.
44 mv -f %{name}-Makefile.PLD Makefile
45 %{__make} RPM_OPT_FLAGS="%{rpmcflags}"
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_examplesdir}/%{name}-%{version}}
50 #%%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} install
52 install libtogl.so.1.3 $RPM_BUILD_ROOT%{_libdir}
53 install double gears index overlay texture $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
54 install togl.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
55 install togl.o $RPM_BUILD_ROOT%{_libdir}
56 install togl.h $RPM_BUILD_ROOT%{_includedir}
59 rm -rf $RPM_BUILD_ROOT
61 %post -p /sbin/ldconfig
62 %postun -p /sbin/ldconfig
65 %defattr(644,root,root,755)
67 %attr(755,root,root) %{_libdir}/libtogl.so.1.3
68 %attr(644,root,root) %{_libdir}/togl.o
71 %defattr(644,root,root,755)
72 %attr(644,root,root) %{_includedir}/togl.h
73 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*[^togl.c]
74 %attr(644,root,root) %{_examplesdir}/%{name}-%{version}/*.c