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-md5: 1019f483ee1564c98310ff3ca9a75463
10 URL: http://togl.sf.net/
11 BuildRequires: OpenGL-devel
12 BuildRequires: tk >= 8.3
13 BuildRequires: tcl >= 8.3
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define _noautoreqdep libGL.so.1 libGLU.so.1
20 Togl is a Tk widget for OpenGL rendering.
23 Togl jest widgetem Tk do renderowania OpenGL.
27 Summary(pl): Togl - czê¶æ dla programistów
28 Group: Development/Libraries
31 Header files and examples for Togl.
33 %description devel -l pl
34 Pliki nag³ówkowe i przyk³ady do Togl.
42 COPTS="-c %{rpmcflags} -fPIC -DPC_LINUX %{?debug:-DDEBUG} -DUSE_TCL_STUBS -DUSE_TK_STUBS -DUSE_LOCAL_TK_H" \
43 SHLINK="%{__cc} -shared" \
44 LIBDIRS="\$(TCL_LIB) -L/usr/X11R6/lib" \
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT{%{_libdir}/Togl-%{version},%{_includedir},%{_examplesdir}/%{name}-%{version}}
51 install togl.so pkgIndex.tcl $RPM_BUILD_ROOT%{_libdir}/Togl-%{version}
53 for f in double gears index overlay texture ; do
54 install ${f}.c ${f}.so ${f}.tcl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57 install ben.rgb tree2.rgba $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59 install togl.h $RPM_BUILD_ROOT%{_includedir}
62 rm -rf $RPM_BUILD_ROOT
64 %post -p /sbin/ldconfig
65 %postun -p /sbin/ldconfig
68 %defattr(644,root,root,755)
69 %doc LICENSE Togl.html
70 %dir %{_libdir}/Togl-%{version}
71 %attr(755,root,root) %{_libdir}/Togl-%{version}/togl.so
72 %{_libdir}/Togl-%{version}/*.tcl
75 %defattr(644,root,root,755)
76 %attr(644,root,root) %{_includedir}/togl.h
77 %dir %{_examplesdir}/%{name}-%{version}
78 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.so
79 %{_examplesdir}/%{name}-%{version}/*.c
80 %{_examplesdir}/%{name}-%{version}/*.tcl
81 %{_examplesdir}/%{name}-%{version}/*.rgb*