]> git.pld-linux.org Git - packages/ocaml-lablgl.git/blob - ocaml-lablgl.spec
- updated to 1.00, added packages with glut bindings
[packages/ocaml-lablgl.git] / ocaml-lablgl.spec
1 Summary:        OpenGL binding for OCaml
2 Summary(pl):    Wi±zania OpenGL dla OCamla
3 Name:           ocaml-lablgl
4 Version:        1.00
5 Release:        1
6 License:        BSD
7 Group:          Libraries
8 Source0:        http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/lablgl-%{version}.tar.gz
9 # Source0-md5:  92bcfe3121650c43e5bc4c018778405b
10 URL:            http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgl.html
11 BuildRequires:  OpenGL-devel
12 BuildRequires:  XFree86-devel
13 BuildRequires:  glut-devel >= 3.7
14 BuildRequires:  ocaml >= 3.07
15 BuildRequires:  ocaml-camlp4
16 BuildRequires:  ocaml-labltk-devel
17 BuildRequires:  tcl-devel
18 BuildRequires:  tk-devel
19 %requires_eq    ocaml-runtime
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 LablGL is an OpenGL interface for Objective Caml. All of the GL and
24 GLU libraries are available.
25
26 This package contains files needed to run bytecode executables using
27 this library.
28
29 %description -l pl
30 LablGL umo¿liwia u¿ywanie OpenGL w OCamlu. Dostêpne s± wszystkie
31 biblioteki GL i GLU.
32
33 Pakiet ten zawiera binaria potrzebne do uruchamiania programów
34 u¿ywaj±cych tej biblioteki.
35
36 %package devel
37 Summary:        OpenGL binding for OCaml - development part
38 Summary(pl):    Wi±zania OpenGL dla OCamla - cze¶æ programistyczna
39 Group:          Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41 %requires_eq    ocaml
42
43 %description devel
44 LablGL is an OpenGL interface for Objective Caml. All of the GL and
45 GLU libraries are available.
46
47 This package contains files needed to develop OCaml programs using
48 this library.
49
50 %description devel -l pl
51 LablGL umo¿liwia u¿ywanie OpenGL w OCamlu. Dostêpne s± wszystkie
52 biblioteki GL i GLU.
53
54 Pakiet ten zawiera pliki niezbêdne do tworzenia programów u¿ywaj±cych
55 tej biblioteki.
56
57 %package togl
58 Summary:        Tk widget for lablGL
59 Summary(pl):    Widget Tk dla lablGL
60 Group:          Libraries
61 Requires:       %{name} = %{version}-%{release}
62 %requires_eq    ocaml-runtime
63 %requires_eq    ocaml-labltk
64
65 %description togl
66 Togl Tk widget for lablGL, to be used with labltk.
67
68 This package contains files needed to run bytecode executables using
69 this library.
70
71 %description togl -l pl
72 Widget Togl u¿ywaj±cy Tk dla lablGL. Mo¿e byæ on u¿ywany wraz z
73 labltk.
74
75 Pakiet ten zawiera binaria potrzebne do uruchamiania programów
76 u¿ywaj±cych tej biblioteki.
77
78 %package togl-devel
79 Summary:        Tk widget for lablGL - development part
80 Summary(pl):    Widget Tk dla lablGL - cze¶æ programistyczna
81 Group:          Development/Libraries
82 Requires:       %{name} = %{version}-%{release}
83 %requires_eq    ocaml
84 %requires_eq    ocaml-labltk-devel
85
86 %description togl-devel
87 Togl TK widget for lablGL, to be used with labltk.
88
89 This package contains files needed to develop OCaml programs using
90 this library.
91
92 %description togl-devel -l pl
93 Widget Togl u¿ywaj±cy TK dla lablGL. Mo¿e byæ on u¿ywany wraz z
94 labltk.
95
96 Pakiet ten zawiera pliki niezbêdne do tworzenia programów u¿ywaj±cych
97 tej biblioteki.
98
99 %package glut
100 Summary:        GLUT binding for OCaml
101 Summary(pl):    Wi±zanie OCamla dla biblioteki GLUT
102 Group:          Libraries
103 Requires:       %{name} = %{version}-%{release}
104 %requires_eq    ocaml-runtime
105
106 %description glut
107 The lablglut library is an OCaml binding for GLUT version 3.7. GLUT
108 (GL Utility Toolkit) is a portable windowing library for OpenGL, 
109 written by Mark Kilgard.
110
111 %description glut -l pl
112 Biblioteka lablglut to wi±zanie OCamla dla biblioteki GLUT w wersji
113 3.7. GLUT (czyli GL Utility Toolkit) to przeno¶na biblioteka okienkowa
114 dla OpenGL-a, napisana przez Marka Kilgarda.
115
116 %package glut-devel
117 Summary:        GLUT binding for OCaml - development part
118 Summary(pl):    Wi±zanie OCamla dla biblioteki GLUT - czê¶æ programistyczna
119 Group:          Development/Libraries
120 Requires:       %{name} = %{version}-%{release}
121 %requires_eq    ocaml
122
123 %description glut-devel
124 This package contains development files for GLUT binding for OCaml.
125
126 %description glut-devel -l pl
127 Ten pakiet zawiera pliki programistyczne wi±zania OCamla dla
128 biblioteki GLUT.
129
130 %package toplevel
131 Summary:        OpenGL binding for OCaml - interactive system
132 Summary(pl):    Wi±zania OpenGL dla OCamla - system interaktywny
133 Group:          Development/Libraries
134 Requires:       %{name} = %{version}-%{release}
135 %requires_eq    ocaml
136
137 %description toplevel
138 LablGL is an OpenGL interface for Objective Caml. All of the GL and
139 GLU libraries are available.
140
141 This package contains OCaml toplevel interactive system linked with
142 lablgl.
143
144 %description toplevel -l pl
145 LablGL umo¿liwia u¿ywanie OpenGL w OCamlu. Dostêpne s± wszystkie
146 biblioteki GL i GLU.
147
148 Pakiet ten zawiera system interaktywny OCamla skonsolidowany z lablgl.
149
150 %prep
151 %setup -q -n lablgl-%{version}
152
153 %build
154 sed -e 's|^TKINCLUDES|#&|;
155         s|^GLLIBS.*|GLLIBS = -L%{_prefix}/X11R6/%{_lib} -lGL -lGLU -lXmu|;
156         s|^COPTS.*|COPTS = %{rpmcflags} -c -fPIC|;' \
157         Makefile.config.ex > Makefile.config
158 %{__make} all opt
159
160 %install
161 rm -rf $RPM_BUILD_ROOT
162 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/ocaml/{stublibs,site-lib/{lablgl,togl}}} \
163         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/{LablGlut,Togl}
164
165 %{__make} install \
166         INSTALLDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/lablGL \
167         DLLDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs \
168         LIBDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \
169         BINDIR=$RPM_BUILD_ROOT%{_bindir}
170
171 mv -f $RPM_BUILD_ROOT%{_libdir}/ocaml/lablGL/*.mli .
172
173 cp -r LablGlut/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/LablGlut
174 cp -r Togl/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/Togl
175
176 cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/lablgl/META <<EOF
177 # Specifications for the "lablgl" library:
178 requires = ""
179 version = "%{version}"
180 directory = "+lablGL"
181 archive(byte) = "lablgl.cma"
182 archive(native) = "lablgl.cmxa"
183 linkopts = ""
184 EOF
185
186 cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/togl/META <<EOF
187 # Specifications for the "togl" library:
188 requires = "lablgl"
189 version = "%{version}"
190 directory = "+lablGL"
191 archive(byte) = "togl.cma"
192 archive(native) = "togl.cmxa"
193 linkopts = ""
194 EOF
195
196 %clean
197 rm -rf $RPM_BUILD_ROOT
198
199 %files
200 %defattr(644,root,root,755)
201 %doc COPYRIGHT CHANGES README
202 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dlllablgl.so
203
204 %files devel
205 %defattr(644,root,root,755)
206 %doc *.mli
207 %dir %{_libdir}/ocaml/lablGL
208 %{_libdir}/ocaml/lablGL/gl*
209 %{_libdir}/ocaml/lablGL/lablgl.*
210 %{_libdir}/ocaml/lablGL/liblablgl.a
211 %{_libdir}/ocaml/lablGL/raw.*
212 %{_libdir}/ocaml/site-lib/lablgl
213 %{_examplesdir}/%{name}-%{version}
214
215 %files glut
216 %defattr(644,root,root,755)
217 %doc LablGlut/{CHANGES,COPYRIGHT,ChangeLog,README,THANKS,TODO}
218 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dlllablglut.so
219
220 %files glut-devel
221 %defattr(644,root,root,755)
222 %{_libdir}/ocaml/lablGL/lablglut.*
223 %{_libdir}/ocaml/lablGL/liblablglut.a
224
225 %files togl
226 %defattr(644,root,root,755)
227 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dlltogl.so
228
229 %files togl-devel
230 %defattr(644,root,root,755)
231 %{_libdir}/ocaml/lablGL/togl.*
232 %{_libdir}/ocaml/lablGL/libtogl.a
233 %{_libdir}/ocaml/site-lib/togl
234
235 %files toplevel
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_bindir}/*
This page took 0.042292 seconds and 4 git commands to generate.