1 Summary: Togl - Tk OpenGL Widget
2 Summary(pl.UTF-8): Togl - Biblioteka widgetów dla Tk
8 Source0: http://dl.sourceforge.net/togl/%{name}-%{version}.tar.gz
9 # Source0-md5: 0e7da2559513b064dbb0934dc128b46d
10 URL: http://togl.sourceforge.net/
11 BuildRequires: OpenGL-devel
12 BuildRequires: tcl >= 8.3
13 BuildRequires: tk >= 8.3
14 BuildRequires: xorg-lib-libXmu-devel
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _noautoreqdep libGL.so.1 libGLU.so.1
21 Togl is a Tk widget for OpenGL rendering.
23 %description -l pl.UTF-8
24 Togl jest widgetem Tk do renderowania OpenGL.
28 Summary(pl.UTF-8): Togl - część dla programistów
29 Group: Development/Libraries
32 Header files and examples for Togl.
34 %description devel -l pl.UTF-8
35 Pliki nagłówkowe i przykłady do Togl.
45 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52 for f in double gears index overlay texture ; do
53 install ${f}.c ${f}.tcl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57 install ben.rgb tree2.rgba $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
60 rm -rf $RPM_BUILD_ROOT
62 %post -p /sbin/ldconfig
63 %postun -p /sbin/ldconfig
66 %defattr(644,root,root,755)
67 %doc LICENSE README.stubs TODO Togl.html
68 %dir %{_libdir}/Togl%{version}
69 %attr(755,root,root) %{_libdir}/Togl%{version}/libTogl%{version}.so
70 %{_libdir}/Togl%{version}/pkgIndex.tcl
73 %defattr(644,root,root,755)
74 %{_includedir}/togl*.h
75 %dir %{_examplesdir}/%{name}-%{version}
76 %{_examplesdir}/%{name}-%{version}/*.c
77 %{_examplesdir}/%{name}-%{version}/*.tcl
78 %{_examplesdir}/%{name}-%{version}/*.rgb*