1 Summary: OpenGL binding for OCaml
2 Summary(pl): Wi±zania OpenGL dla OCamla
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)
23 LablGL is an OpenGL interface for Objective Caml. All of the GL and
24 GLU libraries are available.
26 This package contains files needed to run bytecode executables using
30 LablGL umo¿liwia u¿ywanie OpenGL w OCamlu. Dostêpne s± wszystkie
33 Pakiet ten zawiera binaria potrzebne do uruchamiania programów
34 u¿ywaj±cych tej biblioteki.
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}
44 LablGL is an OpenGL interface for Objective Caml. All of the GL and
45 GLU libraries are available.
47 This package contains files needed to develop OCaml programs using
50 %description devel -l pl
51 LablGL umo¿liwia u¿ywanie OpenGL w OCamlu. Dostêpne s± wszystkie
54 Pakiet ten zawiera pliki niezbêdne do tworzenia programów u¿ywaj±cych
58 Summary: Tk widget for lablGL
59 Summary(pl): Widget Tk dla lablGL
61 Requires: %{name} = %{version}-%{release}
62 %requires_eq ocaml-runtime
63 %requires_eq ocaml-labltk
66 Togl Tk widget for lablGL, to be used with labltk.
68 This package contains files needed to run bytecode executables using
71 %description togl -l pl
72 Widget Togl u¿ywaj±cy Tk dla lablGL. Mo¿e byæ on u¿ywany wraz z
75 Pakiet ten zawiera binaria potrzebne do uruchamiania programów
76 u¿ywaj±cych tej biblioteki.
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}
84 %requires_eq ocaml-labltk-devel
86 %description togl-devel
87 Togl TK widget for lablGL, to be used with labltk.
89 This package contains files needed to develop OCaml programs using
92 %description togl-devel -l pl
93 Widget Togl u¿ywaj±cy TK dla lablGL. Mo¿e byæ on u¿ywany wraz z
96 Pakiet ten zawiera pliki niezbêdne do tworzenia programów u¿ywaj±cych
100 Summary: GLUT binding for OCaml
101 Summary(pl): Wi±zanie OCamla dla biblioteki GLUT
103 Requires: %{name} = %{version}-%{release}
104 %requires_eq ocaml-runtime
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.
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.
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}
123 %description glut-devel
124 This package contains development files for GLUT binding for OCaml.
126 %description glut-devel -l pl
127 Ten pakiet zawiera pliki programistyczne wi±zania OCamla dla
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}
137 %description toplevel
138 LablGL is an OpenGL interface for Objective Caml. All of the GL and
139 GLU libraries are available.
141 This package contains OCaml toplevel interactive system linked with
144 %description toplevel -l pl
145 LablGL umo¿liwia u¿ywanie OpenGL w OCamlu. Dostêpne s± wszystkie
148 Pakiet ten zawiera system interaktywny OCamla skonsolidowany z lablgl.
151 %setup -q -n lablgl-%{version}
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
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}
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}
171 mv -f $RPM_BUILD_ROOT%{_libdir}/ocaml/lablGL/*.mli .
173 cp -r LablGlut/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/LablGlut
174 cp -r Togl/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/Togl
176 cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/lablgl/META <<EOF
177 # Specifications for the "lablgl" library:
179 version = "%{version}"
180 directory = "+lablGL"
181 archive(byte) = "lablgl.cma"
182 archive(native) = "lablgl.cmxa"
186 cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/togl/META <<EOF
187 # Specifications for the "togl" library:
189 version = "%{version}"
190 directory = "+lablGL"
191 archive(byte) = "togl.cma"
192 archive(native) = "togl.cmxa"
197 rm -rf $RPM_BUILD_ROOT
200 %defattr(644,root,root,755)
201 %doc COPYRIGHT CHANGES README
202 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dlllablgl.so
205 %defattr(644,root,root,755)
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}
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
221 %defattr(644,root,root,755)
222 %{_libdir}/ocaml/lablGL/lablglut.*
223 %{_libdir}/ocaml/lablGL/liblablglut.a
226 %defattr(644,root,root,755)
227 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dlltogl.so
230 %defattr(644,root,root,755)
231 %{_libdir}/ocaml/lablGL/togl.*
232 %{_libdir}/ocaml/lablGL/libtogl.a
233 %{_libdir}/ocaml/site-lib/togl
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_bindir}/*