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