1 Summary: Togl - Tk OpenGL Widget
2 Summary(pl): Togl - Biblioteka widgetów dla Tk
9 Source0: %{name}-%{version}beta2.tar.gz
10 Source1: %{name}-Makefile.PLD
11 Patch0: %{name}-tkInit.patch
12 URL: http://www.ssec.wisc.edu/~brianp/Togl.html
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
20 %define _prefix /usr/X11R6
28 Summary(pl): Togl devel
29 Group: Development/Libraries
30 Group(pl): Programowanie/Biblioteki
32 %description devel -l pl
41 mv %{name}-Makefile.PLD Makefile
42 %{__make} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_examplesdir}/%{name}-%{version}}
47 #%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} install
49 install -s libtogl.so.1.3 $RPM_BUILD_ROOT%{_libdir}
50 cp double gears index overlay texture $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51 install togl.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52 install togl.o $RPM_BUILD_ROOT%{_libdir}
53 install togl.h $RPM_BUILD_ROOT%{_includedir}
56 rm -rf $RPM_BUILD_ROOT
58 %post -p /sbin/ldconfig
59 %postun -p /sbin/ldconfig
62 %defattr(644,root,root,755)
64 %attr(755,root,root) %{_libdir}/libtogl.so.1.3
65 %attr(644,root,root) %{_libdir}/togl.o
68 %defattr(644,root,root,755)
69 %attr(644,root,root) %{_includedir}/togl.h
70 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*[^togl.c]
71 %attr(644,root,root) %{_examplesdir}/%{name}-%{version}/*.c