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