- updated URL, adapterized, gzip doc
[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 Group(de):      Libraries
9 Group(es):      Bibliotecas
10 Group(fr):      Librairies
11 Group(pl):      Biblioteki
12 Group(pt_BR):   Bibliotecas
13 Group(ru):      âÉÂÌÉÏÔÅËÉ
14 Group(uk):      â¦Â̦ÏÔÅËÉ
15 #Source0:       http://prdownloads.sf.net/Togl/%{name}-%{version}.tar.gz
16 #...but there is only 1.5
17 Source0:        %{name}-%{version}beta2.tar.gz
18 Source1:        %{name}-Makefile.PLD
19 Patch0:         %{name}-tkInit.patch
20 URL:            http://togl.sf.net/
21 Requires:       OpenGL
22 BuildRequires:  tk >= 8.0
23 BuildRequires:  tcl >= 8.0
24 BuildRequires:  XFree86-OpenGL-devel >= 4.0.1
25 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
28 %define         _prefix         /usr/X11R6
29
30 %description
31 Togl is a Tk widget for OpenGL rendering.
32
33 %description -l pl
34 Togl jest widgetem Tk do renderowania OpenGL.
35
36 %package devel
37 Summary:        Togl devel
38 Summary(pl):    Togl - czê¶æ dla programistów
39 Group:          Development/Libraries
40 Group(de):      Entwicklung/Libraries
41 Group(es):      Desarrollo/Bibliotecas
42 Group(fr):      Development/Librairies
43 Group(pl):      Programowanie/Biblioteki
44 Group(pt_BR):   Desenvolvimento/Bibliotecas
45 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
46 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
47
48 %description devel
49 Header files and examples for Togl.
50
51 %description devel -l pl
52 Pliki nag³ówkowe i przyk³ady do Togl.
53
54 %prep
55 %setup -q
56 %patch -p0
57
58 %build
59 install %{SOURCE1} .
60 mv -f %{name}-Makefile.PLD Makefile
61 %{__make} RPM_OPT_FLAGS="%{rpmcflags}"
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_examplesdir}/%{name}-%{version}}
66 #%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} install
67
68 install libtogl.so.1.3 $RPM_BUILD_ROOT%{_libdir}
69 install double gears index overlay texture $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
70 install togl.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
71 install togl.o $RPM_BUILD_ROOT%{_libdir}
72 install togl.h $RPM_BUILD_ROOT%{_includedir}
73
74 gzip -9nf LICENSE README
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %post   -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
81
82 %files
83 %defattr(644,root,root,755)
84 %doc LICENSE.gz README.gz
85 %attr(755,root,root) %{_libdir}/libtogl.so.1.3
86 %attr(644,root,root) %{_libdir}/togl.o
87
88 %files devel
89 %defattr(644,root,root,755)
90 %attr(644,root,root) %{_includedir}/togl.h
91 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*[^togl.c]
92 %attr(644,root,root) %{_examplesdir}/%{name}-%{version}/*.c
This page took 0.098018 seconds and 3 git commands to generate.