98d75245009a33bd9af2ffadddd83335cd54720a
[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 Copyright:      Other
7 Group:          Libraries
8 Group(de):      Libraries
9 Group(es):      Bibliotecas
10 Group(fr):      Librairies
11 Group(pl):      Biblioteki
12 Source0:        %{name}-%{version}beta2.tar.gz
13 Source1:        %{name}-Makefile.PLD
14 Patch0:         %{name}-tkInit.patch
15 URL:            http://www.ssec.wisc.edu/~brianp/Togl.html
16 Requires:       OpenGL
17 BuildRequires:  tk >= 8.0
18 BuildRequires:  tcl >= 8.0
19 BuildRequires:  XFree86-OpenGL-devel >= 4.0.1
20 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
23 %define         _prefix         /usr/X11R6
24
25 %description
26
27 %description -l pl
28
29 %package devel
30 Summary:        Togl devel
31 Summary(pl):    Togl - czê¶æ dla programistów
32 Group:          Development/Libraries
33 Group(de):      Entwicklung/Libraries
34 Group(fr):      Development/Librairies
35 Group(pl):      Programowanie/Biblioteki
36
37 %description devel
38
39 %description devel -l pl
40
41 %prep
42 %setup -q
43 %patch -p0
44
45 %build
46 install %{SOURCE1} .
47 mv -f %{name}-Makefile.PLD Makefile
48 %{__make} RPM_OPT_FLAGS="%{rpmcflags}"
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_examplesdir}/%{name}-%{version}}
53 #%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} install
54
55 install libtogl.so.1.3 $RPM_BUILD_ROOT%{_libdir}
56 install double gears index overlay texture $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57 install togl.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
58 install togl.o $RPM_BUILD_ROOT%{_libdir}
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
70 %attr(755,root,root) %{_libdir}/libtogl.so.1.3
71 %attr(644,root,root) %{_libdir}/togl.o
72
73 %files devel
74 %defattr(644,root,root,755)
75 %attr(644,root,root) %{_includedir}/togl.h
76 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*[^togl.c]
77 %attr(644,root,root) %{_examplesdir}/%{name}-%{version}/*.c
This page took 0.031725 seconds and 2 git commands to generate.