]>
Commit | Line | Data |
---|---|---|
996e0e35 MM |
1 | # |
2 | # Conditional build: | |
3b270079 JB |
3 | %bcond_without opengl # lablgtkgl library |
4 | %bcond_without glade # lablgtkglade library | |
5 | %bcond_without gnome # lablgtkgnome library (incompatible with GNOME 3) | |
6 | %bcond_without ocaml_opt # native optimized binaries (bytecode is always built) | |
242e476d | 7 | # |
e9f4803c | 8 | # not yet available on x32 (ocaml 4.02.1), update when upstream will support it |
3b270079 | 9 | %ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9 |
5c25f926 JR |
10 | %undefine with_ocaml_opt |
11 | %endif | |
12 | ||
242e476d | 13 | %define ocaml_ver 1:3.09.2 |
996e0e35 | 14 | Summary: GTK+ binding for OCaml |
bb33b9f8 | 15 | Summary(pl.UTF-8): Wiązania GTK+ dla OCamla |
996e0e35 | 16 | Name: ocaml-lablgtk2 |
d3e52e9f | 17 | Version: 2.18.11 |
2bd708d5 | 18 | Release: 5 |
349f075d | 19 | License: LGPL with linking exceptions |
996e0e35 | 20 | Group: Libraries |
3b270079 | 21 | #Source0Download: https://github.com/garrigue/lablgtk/releases |
d3e52e9f JR |
22 | Source0: https://github.com/garrigue/lablgtk/archive/%{version}/lablgtk-%{version}.tar.gz |
23 | # Source0-md5: a21a5b52bfd8de0fad705e67817750ef | |
3b270079 | 24 | URL: https://github.com/garrigue/lablgtk |
0eadafdd | 25 | BuildRequires: gtk+2-devel >= 2:2.10.0 |
dfb11ec9 | 26 | %{?with_opengl:BuildRequires: gtkglarea-devel >= 1.99} |
81e11f87 | 27 | BuildRequires: gtkspell-devel >= 2.0 |
0eadafdd | 28 | BuildRequires: gtksourceview-devel |
09f9f97d | 29 | BuildRequires: gtksourceview2-devel |
81e11f87 | 30 | %{?with_glade:BuildRequires: libglade2-devel >= 2.0} |
3d2fc064 | 31 | %if %{with gnome} |
3d2fc064 JR |
32 | BuildRequires: libgnomecanvas-devel |
33 | BuildRequires: libgnomeui-devel | |
34 | %endif | |
996e0e35 | 35 | BuildRequires: librsvg-devel >= 2.0 |
87b68c14 | 36 | BuildRequires: ocaml-camlp4 >= %{ocaml_ver} |
dd8c666d | 37 | %{?with_opengl:BuildRequires: ocaml-lablgl-devel >= 1.04} |
2bd708d5 | 38 | BuildRequires: sed >= 4.0 |
996e0e35 MM |
39 | %requires_eq ocaml-runtime |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
41 | ||
f61c4561 JR |
42 | %define _noautoreq GtkSourceView_types GtkSourceView2_types |
43 | ||
996e0e35 MM |
44 | %description |
45 | GTK+ binding for OCaml. This package contains files needed to run | |
46 | bytecode OCaml programs using LablGtk. | |
47 | ||
5a844e47 JR |
48 | %description -l pl.UTF-8 |
49 | Wiązania GTK+ dla OCamla. Pakiet ten zawiera binaria potrzebne do | |
50 | uruchamiania programów używających LablGtk. | |
996e0e35 MM |
51 | |
52 | %package devel | |
53 | Summary: GTK+ binding for OCaml - development part | |
bb33b9f8 | 54 | Summary(pl.UTF-8): Wiązania GTK+ dla OCamla - cześć programistyczna |
996e0e35 MM |
55 | Group: Development/Libraries |
56 | Requires: %{name} = %{version}-%{release} | |
57 | %requires_eq ocaml | |
996e0e35 MM |
58 | |
59 | %description devel | |
60 | GTK+ binding for OCaml. This package contains files needed to develop | |
61 | OCaml programs using LablGtk. | |
62 | ||
5a844e47 JR |
63 | %description devel -l pl.UTF-8 |
64 | Wiązania GTK+ dla OCamla. Pakiet ten zawiera pliki niezbędne do | |
65 | tworzenia programów używających LablGtk. | |
996e0e35 | 66 | |
81e11f87 JB |
67 | %package gl |
68 | Summary: GTK+ binding for OCaml - GtkGL support | |
bb33b9f8 | 69 | Summary(pl.UTF-8): Wiązania GTK+ dla OCamla - wsparcie dla GtkGL |
996e0e35 MM |
70 | Group: Libraries |
71 | Requires: %{name} = %{version}-%{release} | |
81e11f87 | 72 | %requires_eq ocaml-lablgl |
996e0e35 MM |
73 | %requires_eq ocaml-runtime |
74 | ||
81e11f87 JB |
75 | %description gl |
76 | GTK+ binding for OCaml, GtkGL support. This package contains files | |
77 | needed to run bytecode OCaml programs using LablGtk-GtkGL. | |
996e0e35 | 78 | |
5a844e47 JR |
79 | %description gl -l pl.UTF-8 |
80 | Wiązania GTK+ dla OCamla, wsparcie dla GtkGL. Pakiet ten zawiera | |
81 | binaria potrzebne do uruchamiania programów używających LablGtk-GtkGL. | |
996e0e35 | 82 | |
81e11f87 JB |
83 | %package gl-devel |
84 | Summary: GTK+ binding for OCaml - GtkGL support, development part | |
bb33b9f8 | 85 | Summary(pl.UTF-8): Wiązania GTK+ dla OCamla - wsparcie dla GtkGL, część programistyczna |
996e0e35 | 86 | Group: Development/Libraries |
81e11f87 | 87 | Requires: %{name}-gl = %{version}-%{release} |
996e0e35 | 88 | %requires_eq ocaml |
81e11f87 | 89 | %requires_eq ocaml-lablgl-devel |
996e0e35 | 90 | |
81e11f87 JB |
91 | %description gl-devel |
92 | GTK+ binding for OCaml, GtkGL support. This package contains files | |
93 | needed to develop OCaml programs using LablGtk-GtkGL. | |
996e0e35 | 94 | |
5a844e47 JR |
95 | %description gl-devel -l pl.UTF-8 |
96 | Wiązania GTK+ dla OCamla, wsparcie dla GtkGL. Pakiet ten zawiera pliki | |
97 | niezbędne do tworzenia programów używających LablGtk-GtkGL. | |
996e0e35 MM |
98 | |
99 | %package glade | |
100 | Summary: GTK+ binding for OCaml - Glade support | |
bb33b9f8 | 101 | Summary(pl.UTF-8): Wiązania GTK+ dla OCamla - wsparcie dla Glade |
996e0e35 MM |
102 | Group: Libraries |
103 | Requires: %{name} = %{version}-%{release} | |
104 | %requires_eq ocaml-runtime | |
105 | ||
106 | %description glade | |
107 | GTK+ binding for OCaml, Glade support. This package contains files | |
108 | needed to run bytecode OCaml programs using LablGtk-Glade. | |
109 | ||
5a844e47 JR |
110 | %description glade -l pl.UTF-8 |
111 | Wiązania GTK+ dla OCamla, wsparcie dla Glade. Pakiet ten zawiera | |
112 | binaria potrzebne do uruchamiania programów używających LablGtk-Glade. | |
996e0e35 MM |
113 | |
114 | %package glade-devel | |
115 | Summary: GTK+ binding for OCaml - Glade support, development part | |
bb33b9f8 | 116 | Summary(pl.UTF-8): Wiązania GTK+ dla OCamla - wsparcie dla Glade, część programistyczna |
996e0e35 MM |
117 | Group: Development/Libraries |
118 | Requires: %{name}-glade = %{version}-%{release} | |
119 | %requires_eq ocaml | |
120 | ||
121 | %description glade-devel | |
122 | GTK+ binding for OCaml, Glade support. This package contains files | |
123 | needed to develop OCaml programs using LablGtk-Glade. | |
124 | ||
5a844e47 JR |
125 | %description glade-devel -l pl.UTF-8 |
126 | Wiązania GTK+ dla OCamla, wsparcie dla Glade. Pakiet ten zawiera pliki | |
127 | niezbędne do tworzenia programów używających LablGtk-Glade. | |
996e0e35 | 128 | |
81e11f87 JB |
129 | %package gnome |
130 | Summary: GTK+ binding for OCaml - GNOME support | |
bb33b9f8 | 131 | Summary(pl.UTF-8): Wiązania GTK+ dla OCamla - wsparcie dla GNOME |
81e11f87 JB |
132 | Group: Libraries |
133 | Requires: %{name} = %{version}-%{release} | |
134 | %requires_eq ocaml-runtime | |
135 | ||
136 | %description gnome | |
137 | GTK+ binding for OCaml, GNOME support. This package contains files | |
138 | needed to run bytecode OCaml programs using LablGtk-GNOME. | |
139 | ||
5a844e47 JR |
140 | %description gnome -l pl.UTF-8 |
141 | Wiązania GTK+ dla OCamla, wsparcie dla GNOME. Pakiet ten zawiera | |
142 | binaria potrzebne do uruchamiania programów używających LablGtk-GNOME. | |
81e11f87 JB |
143 | |
144 | %package gnome-devel | |
145 | Summary: GTK+ binding for OCaml - GNOME support, development part | |
bb33b9f8 | 146 | Summary(pl.UTF-8): Wiązania GTK+ dla OCamla - wsparcie dla GNOME, część programistyczna |
81e11f87 JB |
147 | Group: Development/Libraries |
148 | Requires: %{name}-gnome = %{version}-%{release} | |
149 | %requires_eq ocaml | |
150 | ||
151 | %description gnome-devel | |
152 | GTK+ binding for OCaml, GNOME support. This package contains files | |
153 | needed to develop OCaml programs using LablGtk-GNOME. | |
154 | ||
5a844e47 JR |
155 | %description gnome-devel -l pl.UTF-8 |
156 | Wiązania GTK+ dla OCamla, wsparcie dla GNOME. Pakiet ten zawiera pliki | |
157 | niezbędne do tworzenia programów używających LablGtk-GNOME. | |
81e11f87 | 158 | |
07d0bc2d JB |
159 | %package gtkspell |
160 | Summary: GTK+ binding for OCaml - GtkSpell support | |
bb33b9f8 | 161 | Summary(pl.UTF-8): Wiązania GTK+ dla OCamla - obsługa GtkSpella |
07d0bc2d JB |
162 | Group: Libraries |
163 | Requires: %{name} = %{version}-%{release} | |
164 | %requires_eq ocaml-runtime | |
165 | ||
166 | %description gtkspell | |
167 | GTK+ binding for OCaml, GtkSpell support. | |
168 | ||
5a844e47 JR |
169 | %description gtkspell -l pl.UTF-8 |
170 | Wiązania GTK+ dla OCamla, obsługa GtkSpella | |
07d0bc2d JB |
171 | |
172 | %package gtkspell-devel | |
173 | Summary: GTK+ binding for OCaml - GtkSpell support, development part | |
bb33b9f8 | 174 | Summary(pl.UTF-8): Wiązania GTK+ dla OCamla - obsługa GtkSpella, część programistyczna |
07d0bc2d JB |
175 | Group: Development/Libraries |
176 | Requires: %{name}-gtkspell = %{version}-%{release} | |
177 | %requires_eq ocaml | |
178 | ||
179 | %description gtkspell-devel | |
180 | GTK+ binding for OCaml, GtkSpell support. This package contains files | |
181 | needed to develop OCaml programs using LablGtk-GtkSpell. | |
182 | ||
5a844e47 JR |
183 | %description gtkspell-devel -l pl.UTF-8 |
184 | Wiązania GTK+ dla OCamla, obsługa GtkSpella. Ten pakiet zawiera pliki | |
185 | niezbędne do tworzenia programów używających LablGtk-GtkSpell. | |
07d0bc2d | 186 | |
0eadafdd MB |
187 | %package gtksourceview |
188 | Summary: GTK+ binding for OCaml - GtkSourceView support | |
189 | Summary(pl.UTF-8): Wiązania GTK+ dla OCamla - wsparcie dla GtkSourceView | |
190 | Group: Libraries | |
191 | Requires: %{name} = %{version}-%{release} | |
192 | %requires_eq ocaml | |
193 | ||
194 | %description gtksourceview | |
caf9a8a0 JB |
195 | GTK+ binding for OCaml, GtkSourceView support. This package contains |
196 | files needed to run bytecode OCaml programs using | |
197 | LablGtk-GtkSourceView. | |
0eadafdd MB |
198 | |
199 | %description gtksourceview -l pl.UTF-8 | |
caf9a8a0 JB |
200 | Wiązania GTK+ dla OCamla, wsparcie dla GtkSourceView. Pakiet ten |
201 | zawiera binaria potrzebne do uruchamiania programów używających | |
202 | LablGtk-GtkSourceView. | |
0eadafdd MB |
203 | |
204 | %package gtksourceview-devel | |
205 | Summary: GTK+ binding for OCaml - GtkSourceView support, development part | |
206 | Summary(pl.UTF-8): Wiązania GTK+ dla OCamla - wsparcie dla GtkSourceView, część programistyczna | |
207 | Group: Development/Libraries | |
208 | Requires: %{name}-gtksourceview = %{version}-%{release} | |
209 | %requires_eq ocaml | |
210 | ||
211 | %description gtksourceview-devel | |
caf9a8a0 JB |
212 | GTK+ binding for OCaml, GtkSourceView support. This package contains |
213 | files needed to develop OCaml programs using LablGtk-GtkSourceView. | |
0eadafdd MB |
214 | |
215 | %description gtksourceview-devel -l pl.UTF-8 | |
caf9a8a0 JB |
216 | Wiązania GTK+ dla OCamla, wsparcie dla GtkSourceView. Pakiet ten |
217 | zawiera pliki niezbędne do tworzenia programów używających | |
218 | LablGtk-GtkSourceView. | |
0eadafdd | 219 | |
023540cd JR |
220 | %package gtksourceview2 |
221 | Summary: GTK+ binding for OCaml - GtkSourceView2 support | |
222 | Summary(pl.UTF-8): Wiązania GTK+ dla OCamla - wsparcie dla GtkSourceView2 | |
223 | Group: Libraries | |
224 | Requires: %{name} = %{version}-%{release} | |
225 | %requires_eq ocaml | |
226 | ||
227 | %description gtksourceview2 | |
228 | GTK+ binding for OCaml, GtkSourceView2 support. This package contains | |
229 | files needed to run bytecode OCaml programs using | |
230 | LablGtk-GtkSourceView2. | |
231 | ||
232 | %description gtksourceview2 -l pl.UTF-8 | |
233 | Wiązania GTK+ dla OCamla, wsparcie dla GtkSourceView2. Pakiet ten | |
234 | zawiera binaria potrzebne do uruchamiania programów używających | |
235 | LablGtk-GtkSourceView2. | |
236 | ||
237 | %package gtksourceview2-devel | |
238 | Summary: GTK+ binding for OCaml - GtkSourceView2 support, development part | |
239 | Summary(pl.UTF-8): Wiązania GTK+ dla OCamla - wsparcie dla GtkSourceView2, część programistyczna | |
240 | Group: Development/Libraries | |
241 | Requires: %{name}-gtksourceview2 = %{version}-%{release} | |
242 | %requires_eq ocaml | |
243 | ||
244 | %description gtksourceview2-devel | |
245 | GTK+ binding for OCaml, GtkSourceView2 support. This package contains | |
246 | files needed to develop OCaml programs using LablGtk-GtkSourceView2. | |
247 | ||
248 | %description gtksourceview2-devel -l pl.UTF-8 | |
249 | Wiązania GTK+ dla OCamla, wsparcie dla GtkSourceView2. Pakiet ten | |
250 | zawiera pliki niezbędne do tworzenia programów używających | |
251 | LablGtk-GtkSourceView2. | |
252 | ||
996e0e35 MM |
253 | %package rsvg |
254 | Summary: GTK+ binding for OCaml - RSVG support | |
bb33b9f8 | 255 | Summary(pl.UTF-8): Wiązania GTK+ dla OCamla - wsparcie dla RSVG |
996e0e35 MM |
256 | Group: Libraries |
257 | Requires: %{name} = %{version}-%{release} | |
258 | %requires_eq ocaml-runtime | |
259 | ||
260 | %description rsvg | |
261 | GTK+ binding for OCaml, RSVG support. This package contains files | |
262 | needed to run bytecode OCaml programs using LablGtk-RSVG. | |
263 | ||
5a844e47 JR |
264 | %description rsvg -l pl.UTF-8 |
265 | Wiązania GTK+ dla OCamla, wsparcie dla RSVG. Pakiet ten zawiera | |
266 | binaria potrzebne do uruchamiania programów używających LablGtk-RSVG. | |
996e0e35 MM |
267 | |
268 | %package rsvg-devel | |
269 | Summary: GTK+ binding for OCaml - RSVG support, development part | |
bb33b9f8 | 270 | Summary(pl.UTF-8): Wiązania GTK+ dla OCamla - wsparcie dla RSVG, część programistyczna |
996e0e35 MM |
271 | Group: Development/Libraries |
272 | Requires: %{name}-rsvg = %{version}-%{release} | |
273 | %requires_eq ocaml | |
274 | ||
275 | %description rsvg-devel | |
276 | GTK+ binding for OCaml, RSVG support. This package contains files | |
277 | needed to develop OCaml programs using LablGtk-RSVG. | |
278 | ||
5a844e47 JR |
279 | %description rsvg-devel -l pl.UTF-8 |
280 | Wiązania GTK+ dla OCamla, wsparcie dla RSVG. Pakiet ten zawiera pliki | |
281 | niezbędne do tworzenia programów używających LablGtk-RSVG. | |
996e0e35 | 282 | |
996e0e35 MM |
283 | %package toplevel |
284 | Summary: GTK+ binding for OCaml - interactive system | |
bb33b9f8 | 285 | Summary(pl.UTF-8): Wiązania GTK+ dla OCamla - system interaktywny |
996e0e35 MM |
286 | Group: Development/Libraries |
287 | Requires: %{name}-devel = %{version}-%{release} | |
288 | %requires_eq ocaml | |
289 | ||
290 | %description toplevel | |
291 | GTK+ binding for OCaml. GNOME and Glade support is included. This | |
292 | package contains OCaml toplevel interactive system linked with | |
293 | lablgtk. | |
294 | ||
5a844e47 JR |
295 | %description toplevel -l pl.UTF-8 |
296 | Wiązania GTK+ dla OCamla. Wsparcie dla GNOME i Glade jest dołączone. | |
64717d98 | 297 | Pakiet ten zawiera system interaktywny OCamla skonsolidowany z |
298 | lablgtk. | |
996e0e35 MM |
299 | |
300 | %prep | |
270bbfa7 | 301 | %setup -q -n lablgtk-%{version} |
996e0e35 | 302 | |
2bd708d5 JB |
303 | %if %{without ocaml_opt} |
304 | %{__sed} -i -e '/exists_if/ s/,[^,]*cmx[as]\?//g' META | |
305 | %endif | |
306 | ||
996e0e35 | 307 | %build |
130f2cd1 | 308 | %configure \ |
996e0e35 | 309 | CC="%{__cc} %{rpmcflags} -fPIC" \ |
130f2cd1 MM |
310 | %{!?with_gnome:--without-gnomecanvas} \ |
311 | %{!?with_glade:--without-glade} \ | |
dfb11ec9 | 312 | %{!?with_opengl:--without-gl} |
996e0e35 | 313 | |
87b68c14 | 314 | %{__make} -j1 \ |
5c25f926 | 315 | all %{?with_ocaml_opt:opt} |
996e0e35 MM |
316 | |
317 | %install | |
318 | rm -rf $RPM_BUILD_ROOT | |
ef37d594 | 319 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/ocaml/stublibs,%{_examplesdir}/%{name}-%{version}} |
996e0e35 | 320 | |
6b75c3dc | 321 | %{__make} old-install \ |
996e0e35 MM |
322 | INSTALLDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/lablgtk2 \ |
323 | DLLDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs \ | |
324 | LIBDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \ | |
325 | BINDIR=$RPM_BUILD_ROOT%{_bindir} | |
326 | ||
327 | cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
328 | ||
329 | # .mli files stay, they are the only documentation, but .ml go | |
349f075d | 330 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/lablgtk2/*.ml |
996e0e35 | 331 | gzip -9nf $RPM_BUILD_ROOT%{_libdir}/ocaml/lablgtk2/*.mli |
3b270079 | 332 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/ocaml/lablgtk2/*.gz . |
996e0e35 | 333 | |
996e0e35 MM |
334 | %clean |
335 | rm -rf $RPM_BUILD_ROOT | |
336 | ||
337 | %files | |
338 | %defattr(644,root,root,755) | |
339 | %doc CHANGES COPYING README | |
340 | %dir %{_libdir}/ocaml/lablgtk2 | |
ef37d594 | 341 | %{_libdir}/ocaml/lablgtk2/META |
e9f4803c JB |
342 | %{_libdir}/ocaml/lablgtk2/lablgtk.cma |
343 | %if %{with ocaml_opt} | |
344 | %attr(755,root,root) %{_libdir}/ocaml/lablgtk2/lablgtk.cmxs | |
345 | %endif | |
996e0e35 MM |
346 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dlllablgtk2.so |
347 | ||
348 | %files devel | |
349 | %defattr(644,root,root,755) | |
ad67830b | 350 | %attr(755,root,root) %{_bindir}/gdk_pixbuf_mlsource |
e9f4803c JB |
351 | %{_libdir}/ocaml/lablgtk2/g[ABCDEFLMOPRTUW]*.cmi |
352 | %{_libdir}/ocaml/lablgtk2/gaux.cmi | |
353 | %{_libdir}/ocaml/lablgtk2/gdk*.cmi | |
354 | %{_libdir}/ocaml/lablgtk2/glib.cmi | |
355 | %{_libdir}/ocaml/lablgtk2/gobject.cmi | |
356 | %{_libdir}/ocaml/lablgtk2/gpointer.cmi | |
357 | %{_libdir}/ocaml/lablgtk2/gtk.cmi | |
358 | %{_libdir}/ocaml/lablgtk2/gtk[ABDEFILMNOPRTW]*.cmi | |
359 | %{_libdir}/ocaml/lablgtk2/gtkSignal.cmi | |
360 | %{_libdir}/ocaml/lablgtk2/gtkStock.cmi | |
361 | %{_libdir}/ocaml/lablgtk2/gutf8.cmi | |
362 | %{_libdir}/ocaml/lablgtk2/ogtk*.cmi | |
363 | %{_libdir}/ocaml/lablgtk2/pango*.cmi | |
364 | %{_libdir}/ocaml/lablgtk2/gtkInit.cmo | |
365 | %{_libdir}/ocaml/lablgtk2/gtkThInit.cmo | |
366 | %{_libdir}/ocaml/lablgtk2/gtkThread.cmo | |
367 | %{_libdir}/ocaml/lablgtk2/liblablgtk2.a | |
5c25f926 | 368 | %if %{with ocaml_opt} |
e9f4803c JB |
369 | %{_libdir}/ocaml/lablgtk2/g[ABCDEFLMOPRTUW]*.cmx |
370 | %{_libdir}/ocaml/lablgtk2/gaux.cmx | |
371 | %{_libdir}/ocaml/lablgtk2/gdk*.cmx | |
372 | %{_libdir}/ocaml/lablgtk2/glib.cmx | |
373 | %{_libdir}/ocaml/lablgtk2/gobject.cmx | |
374 | %{_libdir}/ocaml/lablgtk2/gpointer.cmx | |
375 | %{_libdir}/ocaml/lablgtk2/gtk.cmx | |
376 | %{_libdir}/ocaml/lablgtk2/gtk[ABDEFILMNOPRTW]*.cmx | |
377 | %{_libdir}/ocaml/lablgtk2/gtkSignal.cmx | |
378 | %{_libdir}/ocaml/lablgtk2/gtkStock.cmx | |
379 | %{_libdir}/ocaml/lablgtk2/gutf8.cmx | |
380 | %{_libdir}/ocaml/lablgtk2/ogtk*.cmx | |
381 | %{_libdir}/ocaml/lablgtk2/pango*.cmx | |
6b75c3dc JB |
382 | %{_libdir}/ocaml/lablgtk2/gtkInit.o |
383 | %{_libdir}/ocaml/lablgtk2/gtkThread.o | |
5c25f926 | 384 | %{_libdir}/ocaml/lablgtk2/lablgtk.a |
e9f4803c | 385 | %{_libdir}/ocaml/lablgtk2/lablgtk.cmxa |
5c25f926 | 386 | %endif |
6b75c3dc JB |
387 | %{_libdir}/ocaml/lablgtk2/gdk_tags.h |
388 | %{_libdir}/ocaml/lablgtk2/gdkpixbuf_tags.h | |
389 | %{_libdir}/ocaml/lablgtk2/gdkprivate-win32.h | |
390 | %{_libdir}/ocaml/lablgtk2/glib_tags.h | |
b920670e | 391 | %{_libdir}/ocaml/lablgtk2/gnomeui_tags.h |
6b75c3dc JB |
392 | %{_libdir}/ocaml/lablgtk2/gobject_tags.h |
393 | %{_libdir}/ocaml/lablgtk2/gtk_tags.h | |
394 | %{_libdir}/ocaml/lablgtk2/ml_*.h | |
395 | %{_libdir}/ocaml/lablgtk2/pango_tags.h | |
396 | %{_libdir}/ocaml/lablgtk2/win32.h | |
397 | %{_libdir}/ocaml/lablgtk2/wrappers.h | |
130f2cd1 | 398 | %attr(755,root,root) %{_libdir}/ocaml/lablgtk2/propcc |
6b75c3dc | 399 | %attr(755,root,root) %{_libdir}/ocaml/lablgtk2/varcc |
6b75c3dc | 400 | %{_examplesdir}/%{name}-%{version} |
996e0e35 | 401 | |
dfb11ec9 | 402 | %if %{with opengl} |
81e11f87 | 403 | %files gl |
996e0e35 | 404 | %defattr(644,root,root,755) |
e9f4803c JB |
405 | %{_libdir}/ocaml/lablgtk2/lablgtkgl.cma |
406 | %if %{with ocaml_opt} | |
407 | %attr(755,root,root) %{_libdir}/ocaml/lablgtk2/lablgtkgl.cmxs | |
408 | %endif | |
81e11f87 | 409 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dlllablgtkgl2.so |
996e0e35 | 410 | |
81e11f87 | 411 | %files gl-devel |
996e0e35 | 412 | %defattr(644,root,root,755) |
e9f4803c JB |
413 | %{_libdir}/ocaml/lablgtk2/glGtk.cmi |
414 | %{_libdir}/ocaml/lablgtk2/liblablgtkgl2.a | |
5c25f926 | 415 | %if %{with ocaml_opt} |
e9f4803c | 416 | %{_libdir}/ocaml/lablgtk2/glGtk.cmx |
6b75c3dc | 417 | %{_libdir}/ocaml/lablgtk2/lablgtkgl.a |
e9f4803c | 418 | %{_libdir}/ocaml/lablgtk2/lablgtkgl.cmxa |
5c25f926 | 419 | %endif |
e9f4803c | 420 | %{_libdir}/ocaml/lablgtk2/gtkgl_tags.h |
996e0e35 MM |
421 | %endif |
422 | ||
5f0a129b | 423 | %if %{with glade} |
996e0e35 MM |
424 | %files glade |
425 | %defattr(644,root,root,755) | |
e9f4803c JB |
426 | %{_libdir}/ocaml/lablgtk2/lablglade.cma |
427 | %if %{with ocaml_opt} | |
428 | %attr(755,root,root) %{_libdir}/ocaml/lablgtk2/lablglade.cmxs | |
429 | %endif | |
996e0e35 MM |
430 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dlllablglade2.so |
431 | ||
432 | %files glade-devel | |
433 | %defattr(644,root,root,755) | |
434 | %attr(755,root,root) %{_bindir}/lablgladecc2 | |
e9f4803c JB |
435 | %{_libdir}/ocaml/lablgtk2/glade.cmi |
436 | %{_libdir}/ocaml/lablgtk2/liblablglade2.a | |
5c25f926 | 437 | %if %{with ocaml_opt} |
e9f4803c | 438 | %{_libdir}/ocaml/lablgtk2/glade.cmx |
6b75c3dc | 439 | %{_libdir}/ocaml/lablgtk2/lablglade.a |
e9f4803c | 440 | %{_libdir}/ocaml/lablgtk2/lablglade.cmxa |
5c25f926 | 441 | %endif |
996e0e35 MM |
442 | %endif |
443 | ||
81e11f87 JB |
444 | %if %{with gnome} |
445 | %files gnome | |
996e0e35 | 446 | %defattr(644,root,root,755) |
e9f4803c JB |
447 | %{_libdir}/ocaml/lablgtk2/lablgnomecanvas.cma |
448 | %{_libdir}/ocaml/lablgtk2/lablgnomeui.cma | |
449 | %if %{with ocaml_opt} | |
450 | %attr(755,root,root) %{_libdir}/ocaml/lablgtk2/lablgnomecanvas.cmxs | |
451 | %attr(755,root,root) %{_libdir}/ocaml/lablgtk2/lablgnomeui.cmxs | |
452 | %endif | |
81e11f87 JB |
453 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dlllablgnomecanvas.so |
454 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dlllablgnomeui.so | |
996e0e35 | 455 | |
81e11f87 | 456 | %files gnome-devel |
996e0e35 | 457 | %defattr(644,root,root,755) |
e9f4803c JB |
458 | %{_libdir}/ocaml/lablgtk2/gnoCanvas*.cmi |
459 | %{_libdir}/ocaml/lablgtk2/gnoDruid.cmi | |
460 | %{_libdir}/ocaml/lablgtk2/gnomeCanvas*.cmi | |
461 | %{_libdir}/ocaml/lablgtk2/gnomeDruid.cmi | |
462 | %{_libdir}/ocaml/lablgtk2/liblablgnomecanvas.a | |
463 | %{_libdir}/ocaml/lablgtk2/liblablgnomeui.a | |
5c25f926 | 464 | %if %{with ocaml_opt} |
e9f4803c JB |
465 | %{_libdir}/ocaml/lablgtk2/gnoCanvas*.cmx |
466 | %{_libdir}/ocaml/lablgtk2/gnoDruid.cmx | |
467 | %{_libdir}/ocaml/lablgtk2/gnomeCanvas*.cmx | |
468 | %{_libdir}/ocaml/lablgtk2/gnomeDruid.cmx | |
5c25f926 | 469 | %{_libdir}/ocaml/lablgtk2/lablgnomecanvas.a |
e9f4803c | 470 | %{_libdir}/ocaml/lablgtk2/lablgnomecanvas.cmxa |
6b75c3dc | 471 | %{_libdir}/ocaml/lablgtk2/lablgnomeui.a |
e9f4803c | 472 | %{_libdir}/ocaml/lablgtk2/lablgnomeui.cmxa |
5c25f926 | 473 | %endif |
996e0e35 MM |
474 | %endif |
475 | ||
07d0bc2d JB |
476 | %files gtkspell |
477 | %defattr(644,root,root,755) | |
e9f4803c JB |
478 | %{_libdir}/ocaml/lablgtk2/lablgtkspell.cma |
479 | %if %{with ocaml_opt} | |
480 | %attr(755,root,root) %{_libdir}/ocaml/lablgtk2/lablgtkspell.cmxs | |
481 | %endif | |
07d0bc2d JB |
482 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dlllablgtkspell.so |
483 | ||
484 | %files gtkspell-devel | |
485 | %defattr(644,root,root,755) | |
e9f4803c JB |
486 | %{_libdir}/ocaml/lablgtk2/gtkSpell.cmi |
487 | %{_libdir}/ocaml/lablgtk2/liblablgtkspell.a | |
5c25f926 | 488 | %if %{with ocaml_opt} |
e9f4803c | 489 | %{_libdir}/ocaml/lablgtk2/gtkSpell.cmx |
6b75c3dc | 490 | %{_libdir}/ocaml/lablgtk2/lablgtkspell.a |
e9f4803c | 491 | %{_libdir}/ocaml/lablgtk2/lablgtkspell.cmxa |
5c25f926 | 492 | %endif |
07d0bc2d | 493 | |
0eadafdd MB |
494 | %files gtksourceview |
495 | %defattr(644,root,root,755) | |
e9f4803c JB |
496 | %{_libdir}/ocaml/lablgtk2/lablgtksourceview.cma |
497 | %if %{with ocaml_opt} | |
498 | %attr(755,root,root) %{_libdir}/ocaml/lablgtk2/lablgtksourceview.cmxs | |
499 | %endif | |
0eadafdd MB |
500 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dlllablgtksourceview.so |
501 | ||
502 | %files gtksourceview-devel | |
503 | %defattr(644,root,root,755) | |
e9f4803c JB |
504 | %{_libdir}/ocaml/lablgtk2/gSourceView.cmi |
505 | %{_libdir}/ocaml/lablgtk2/gtkSourceView.cmi | |
506 | %{_libdir}/ocaml/lablgtk2/sourceViewEnums.cmi | |
507 | %{_libdir}/ocaml/lablgtk2/liblablgtksourceview.a | |
5c25f926 | 508 | %if %{with ocaml_opt} |
e9f4803c JB |
509 | %{_libdir}/ocaml/lablgtk2/gSourceView.cmx |
510 | %{_libdir}/ocaml/lablgtk2/gtkSourceView.cmx | |
511 | %{_libdir}/ocaml/lablgtk2/sourceViewEnums.cmx | |
0eadafdd | 512 | %{_libdir}/ocaml/lablgtk2/lablgtksourceview.a |
e9f4803c | 513 | %{_libdir}/ocaml/lablgtk2/lablgtksourceview.cmxa |
5c25f926 | 514 | %endif |
e9f4803c | 515 | %{_libdir}/ocaml/lablgtk2/sourceView_tags.h |
0eadafdd | 516 | |
023540cd JR |
517 | %files gtksourceview2 |
518 | %defattr(644,root,root,755) | |
e9f4803c JB |
519 | %{_libdir}/ocaml/lablgtk2/lablgtksourceview2.cma |
520 | %if %{with ocaml_opt} | |
521 | %attr(755,root,root) %{_libdir}/ocaml/lablgtk2/lablgtksourceview2.cmxs | |
522 | %endif | |
023540cd JR |
523 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dlllablgtksourceview2.so |
524 | ||
525 | %files gtksourceview2-devel | |
526 | %defattr(644,root,root,755) | |
e9f4803c JB |
527 | %{_libdir}/ocaml/lablgtk2/gSourceView2.cmi |
528 | %{_libdir}/ocaml/lablgtk2/gtkSourceView2.cmi | |
529 | %{_libdir}/ocaml/lablgtk2/sourceView2Enums.cmi | |
530 | %{_libdir}/ocaml/lablgtk2/liblablgtksourceview2.a | |
5c25f926 | 531 | %if %{with ocaml_opt} |
e9f4803c JB |
532 | %{_libdir}/ocaml/lablgtk2/gSourceView2.cmx |
533 | %{_libdir}/ocaml/lablgtk2/gtkSourceView2.cmx | |
534 | %{_libdir}/ocaml/lablgtk2/sourceView2Enums.cmx | |
023540cd | 535 | %{_libdir}/ocaml/lablgtk2/lablgtksourceview2.a |
e9f4803c | 536 | %{_libdir}/ocaml/lablgtk2/lablgtksourceview2.cmxa |
5c25f926 | 537 | %endif |
e9f4803c | 538 | %{_libdir}/ocaml/lablgtk2/sourceView2_tags.h |
023540cd | 539 | |
996e0e35 MM |
540 | %files rsvg |
541 | %defattr(644,root,root,755) | |
e9f4803c JB |
542 | %{_libdir}/ocaml/lablgtk2/lablrsvg.cma |
543 | %if %{with ocaml_opt} | |
544 | %attr(755,root,root) %{_libdir}/ocaml/lablgtk2/lablrsvg.cmxs | |
545 | %endif | |
996e0e35 MM |
546 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dlllablrsvg.so |
547 | ||
548 | %files rsvg-devel | |
549 | %defattr(644,root,root,755) | |
e9f4803c | 550 | %{_libdir}/ocaml/lablgtk2/rsvg.cmi |
5c25f926 | 551 | %if %{with ocaml_opt} |
e9f4803c JB |
552 | %{_libdir}/ocaml/lablgtk2/rsvg.cmx |
553 | %{_libdir}/ocaml/lablgtk2/lablrsvg.cmxa | |
6b75c3dc | 554 | %{_libdir}/ocaml/lablgtk2/lablrsvg.a |
5c25f926 | 555 | %endif |
6b75c3dc | 556 | %{_libdir}/ocaml/lablgtk2/liblablrsvg.a |
996e0e35 MM |
557 | |
558 | %files toplevel | |
559 | %defattr(644,root,root,755) | |
560 | %attr(755,root,root) %{_bindir}/lablgtk2 |