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
13 BuildRequires: tk >= 8.0
14 BuildRequires: tcl >= 8.0
15 BuildRequires: XFree86-OpenGL-devel >= 4.0.1
16 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _prefix /usr/X11R6
26 Summary(pl): Togl devel
27 Group: Development/Libraries
28 Group(pl): Programowanie/Biblioteki
30 %description devel -l pl
39 mv %{name}-Makefile.PLD Makefile
40 %{__make} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_examplesdir}/%{name}-%{version}}
45 #%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} install
47 install -s libtogl.so.1.3 $RPM_BUILD_ROOT%{_libdir}
48 cp double gears index overlay texture $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
49 install togl.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51 install togl.h $RPM_BUILD_ROOT%{_includedir}
54 rm -rf $RPM_BUILD_ROOT
56 %post -p /sbin/ldconfig
57 %postun -p /sbin/ldconfig
60 %defattr(644,root,root,755)
62 %attr(755,root,root) %{_libdir}/libtogl.so.1.3
65 %defattr(644,root,root,755)
66 %attr(644,root,root) %{_includedir}/togl.h
67 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*[^togl.c]
68 %attr(644,root,root) %{_examplesdir}/%{name}-%{version}/*.c