- standardized sf URLs, minor fixes or cosmetics
[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:        2
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:        %{name}-%{version}beta2.tar.gz
10 Source1:        %{name}-Makefile.PLD
11 Patch0:         %{name}-tkInit.patch
12 URL:            http://togl.sf.net/
13 Requires:       OpenGL
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)
18
19 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
20
21 %description
22 Togl is a Tk widget for OpenGL rendering.
23
24 %description -l pl
25 Togl jest widgetem Tk do renderowania OpenGL.
26
27 %package devel
28 Summary:        Togl devel
29 Summary(pl):    Togl - czê¶æ dla programistów
30 Group:          Development/Libraries
31
32 %description devel
33 Header files and examples for Togl.
34
35 %description devel -l pl
36 Pliki nag³ówkowe i przyk³ady do Togl.
37
38 %prep
39 %setup -q
40 %patch -p0
41
42 %build
43 install %{SOURCE1} .
44 mv -f %{name}-Makefile.PLD Makefile
45 %{__make} RPM_OPT_FLAGS="%{rpmcflags}"
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_examplesdir}/%{name}-%{version}}
50 #%%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} install
51
52 install libtogl.so.1.3 $RPM_BUILD_ROOT%{_libdir}
53 install double gears index overlay texture $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
54 install togl.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
55 install togl.o $RPM_BUILD_ROOT%{_libdir}
56 install togl.h $RPM_BUILD_ROOT%{_includedir}
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %post   -p /sbin/ldconfig
62 %postun -p /sbin/ldconfig
63
64 %files
65 %defattr(644,root,root,755)
66 %doc LICENSE README
67 %attr(755,root,root) %{_libdir}/libtogl.so.1.3
68 %attr(644,root,root) %{_libdir}/togl.o
69
70 %files devel
71 %defattr(644,root,root,755)
72 %attr(644,root,root) %{_includedir}/togl.h
73 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*[^togl.c]
74 %attr(644,root,root) %{_examplesdir}/%{name}-%{version}/*.c
This page took 0.043764 seconds and 3 git commands to generate.