- mass commit: cosmetics (removed trailing white spaces)
[packages/Togl.git] / Togl.spec
1 Summary:        Togl - Tk OpenGL Widget
2 Summary(pl):    Togl - Biblioteka widgetów dla Tk
3 Name:           Togl
4 Version:        1.6
5 Release:        3
6 License:        Open Source (see LICENSE file for details)
7 Group:          Libraries
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
14 Requires:       OpenGL
15 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
18
19 %description
20 Togl is a Tk widget for OpenGL rendering.
21
22 %description -l pl
23 Togl jest widgetem Tk do renderowania OpenGL.
24
25 %package devel
26 Summary:        Togl devel
27 Summary(pl):    Togl - czê¶æ dla programistów
28 Group:          Development/Libraries
29
30 %description devel
31 Header files and examples for Togl.
32
33 %description devel -l pl
34 Pliki nag³ówkowe i przyk³ady do Togl.
35
36 %prep
37 %setup -q
38
39 %build
40 %{__make} \
41         CC="%{__cc}" \
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" \
45         TCL_VER="8.3"
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT{%{_libdir}/Togl-%{version},%{_includedir},%{_examplesdir}/%{name}-%{version}}
50
51 install togl.so pkgIndex.tcl $RPM_BUILD_ROOT%{_libdir}/Togl-%{version}
52
53 for f in double gears index overlay texture ; do
54         install ${f}.c ${f}.so ${f}.tcl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
55 done
56 # for texture
57 install ben.rgb tree2.rgba $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
58
59 install togl.h $RPM_BUILD_ROOT%{_includedir}
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %post   -p /sbin/ldconfig
65 %postun -p /sbin/ldconfig
66
67 %files
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
73
74 %files devel
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*
This page took 0.033442 seconds and 3 git commands to generate.