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 URL: http://togl.sf.net/
10 BuildRequires: OpenGL-devel
11 BuildRequires: tk >= 8.3
12 BuildRequires: tcl >= 8.3
14 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define _noautoreqdep libGL.so.1 libGLU.so.1
19 Togl is a Tk widget for OpenGL rendering.
22 Togl jest widgetem Tk do renderowania OpenGL.
26 Summary(pl): Togl - czê¶æ dla programistów
27 Group: Development/Libraries
30 Header files and examples for Togl.
32 %description devel -l pl
33 Pliki nag³ówkowe i przyk³ady do Togl.
41 COPTS="-c %{rpmcflags} -fPIC -DPC_LINUX %{?debug:-DDEBUG} -DUSE_TCL_STUBS -DUSE_TK_STUBS -DUSE_LOCAL_TK_H" \
42 SHLINK="%{__cc} -shared" \
43 LIBDIRS="\$(TCL_LIB) -L/usr/X11R6/lib" \
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_libdir}/Togl-%{version},%{_includedir},%{_examplesdir}/%{name}-%{version}}
50 install togl.so pkgIndex.tcl $RPM_BUILD_ROOT%{_libdir}/Togl-%{version}
52 for f in double gears index overlay texture ; do
53 install ${f}.c ${f}.so ${f}.tcl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56 install ben.rgb tree2.rgba $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
58 install togl.h $RPM_BUILD_ROOT%{_includedir}
61 rm -rf $RPM_BUILD_ROOT
63 %post -p /sbin/ldconfig
64 %postun -p /sbin/ldconfig
67 %defattr(644,root,root,755)
68 %doc LICENSE Togl.html
69 %dir %{_libdir}/Togl-%{version}
70 %attr(755,root,root) %{_libdir}/Togl-%{version}/togl.so
71 %{_libdir}/Togl-%{version}/*.tcl
74 %defattr(644,root,root,755)
75 %attr(644,root,root) %{_includedir}/togl.h
76 %dir %{_examplesdir}/%{name}-%{version}
77 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.so
78 %{_examplesdir}/%{name}-%{version}/*.c
79 %{_examplesdir}/%{name}-%{version}/*.tcl
80 %{_examplesdir}/%{name}-%{version}/*.rgb*