]> git.pld-linux.org Git - packages/Togl.git/blob - Togl.spec
d5ea3c717c55512966948dc0e1e1cfbc63995655
[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(pl):      Biblioteki
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 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 %define _prefix /usr/X11R6
21
22 %description
23
24 %description -l pl
25
26 %package devel
27 Summary:        Togl devel
28 Summary(pl):    Togl devel
29 Group:          Development/Libraries
30 Group(pl):      Programowanie/Biblioteki
31 %description devel
32 %description devel -l pl
33
34 %prep
35 %setup -q
36
37 %patch -p0
38
39 %build
40 install %{SOURCE1} .
41 mv %{name}-Makefile.PLD Makefile
42 %{__make} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_examplesdir}/%{name}-%{version}}
47 #%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} install
48
49 install -s libtogl.so.1.3 $RPM_BUILD_ROOT%{_libdir}
50 cp double gears index overlay texture $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51 install togl.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52 install togl.o $RPM_BUILD_ROOT%{_libdir}
53 install togl.h $RPM_BUILD_ROOT%{_includedir}
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %post -p /sbin/ldconfig
59 %postun -p /sbin/ldconfig
60
61 %files
62 %defattr(644,root,root,755)
63 %doc LICENSE
64 %attr(755,root,root) %{_libdir}/libtogl.so.1.3
65 %attr(644,root,root) %{_libdir}/togl.o
66
67 %files devel
68 %defattr(644,root,root,755)
69 %attr(644,root,root) %{_includedir}/togl.h
70 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*[^togl.c]
71 %attr(644,root,root) %{_examplesdir}/%{name}-%{version}/*.c
This page took 0.046212 seconds and 3 git commands to generate.