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