1 Summary: Togl - Tk OpenGL Widget
2 Summary(pl): Togl - Biblioteka widgetów dla Tk
12 Source0: %{name}-%{version}beta2.tar.gz
13 Source1: %{name}-Makefile.PLD
14 Patch0: %{name}-tkInit.patch
15 URL: http://www.ssec.wisc.edu/~brianp/Togl.html
17 BuildRequires: tk >= 8.0
18 BuildRequires: tcl >= 8.0
19 BuildRequires: XFree86-OpenGL-devel >= 4.0.1
20 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _noautoreqdep libGL.so.1 libGLU.so.1
23 %define _prefix /usr/X11R6
31 Summary(pl): Togl - czê¶æ dla programistów
32 Group: Development/Libraries
33 Group(de): Entwicklung/Libraries
34 Group(fr): Development/Librairies
35 Group(pl): Programowanie/Biblioteki
39 %description devel -l pl
47 mv -f %{name}-Makefile.PLD Makefile
48 %{__make} RPM_OPT_FLAGS="%{rpmcflags}"
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_examplesdir}/%{name}-%{version}}
53 #%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} install
55 install libtogl.so.1.3 $RPM_BUILD_ROOT%{_libdir}
56 install double gears index overlay texture $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57 install togl.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
58 install togl.o $RPM_BUILD_ROOT%{_libdir}
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)
70 %attr(755,root,root) %{_libdir}/libtogl.so.1.3
71 %attr(644,root,root) %{_libdir}/togl.o
74 %defattr(644,root,root,755)
75 %attr(644,root,root) %{_includedir}/togl.h
76 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*[^togl.c]
77 %attr(644,root,root) %{_examplesdir}/%{name}-%{version}/*.c