]> git.pld-linux.org Git - packages/ocaml-lablgl.git/blame - ocaml-lablgl.spec
- typo
[packages/ocaml-lablgl.git] / ocaml-lablgl.spec
CommitLineData
fca531cd
JR
1#
2# Conditional build:
3%bcond_without ocaml_opt # skip building native optimized binaries (bytecode is always built)
4
2d46b5fe 5# not yet available on x32 (ocaml 4.02.1), update when upstream will support it
6a25eca3 6%ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9
fca531cd
JR
7%undefine with_ocaml_opt
8%endif
9
125783ca
JR
10%if %{without ocaml_opt}
11%define _enable_debug_packages 0
12%endif
13
ad2dbbb1 14%define ocaml_ver 1:3.09.2
d0c4eccb 15Summary: OpenGL binding for OCaml
86a9d925 16Summary(pl.UTF-8): Wiązania OpenGL dla OCamla
d0c4eccb 17Name: ocaml-lablgl
125783ca 18Version: 1.06
7d371e76 19Release: 3
d0c4eccb
MM
20License: BSD
21Group: Libraries
6a25eca3 22#Source0Download: https://github.com/garrigue/lablgl/releases
125783ca
JR
23Source0: https://github.com/garrigue/lablgl/archive/v%{version}/lablgl-%{version}.tar.gz
24# Source0-md5: 8ee7a37b016095c4f7cd066f0ebd4436
25URL: http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgl.html
4d49067c
JB
26BuildRequires: OpenGL-GLX-devel
27BuildRequires: OpenGL-glut-devel >= 3.7
5444590c 28BuildRequires: ocaml >= %{ocaml_ver}
06fa1cd1 29BuildRequires: ocaml-camlp4
d0c4eccb 30BuildRequires: ocaml-labltk-devel
d0c4eccb 31BuildRequires: tcl-devel
4d49067c
JB
32BuildRequires: tk-devel >= 4.0
33BuildRequires: xorg-lib-libXmu-devel
d0c4eccb
MM
34%requires_eq ocaml-runtime
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%description
38LablGL is an OpenGL interface for Objective Caml. All of the GL and
39GLU libraries are available.
40
41This package contains files needed to run bytecode executables using
42this library.
43
f2f3d6fe
JR
44%description -l pl.UTF-8
45LablGL umożliwia używanie OpenGL w OCamlu. Dostępne są wszystkie
d0c4eccb
MM
46biblioteki GL i GLU.
47
f2f3d6fe
JR
48Pakiet ten zawiera binaria potrzebne do uruchamiania programów
49używających tej biblioteki.
d0c4eccb
MM
50
51%package devel
52Summary: OpenGL binding for OCaml - development part
d1037ea0 53Summary(pl.UTF-8): Wiązania OpenGL dla OCamla - część programistyczna
d0c4eccb
MM
54Group: Development/Libraries
55Requires: %{name} = %{version}-%{release}
56%requires_eq ocaml
57
58%description devel
59LablGL is an OpenGL interface for Objective Caml. All of the GL and
60GLU libraries are available.
61
62This package contains files needed to develop OCaml programs using
63this library.
64
f2f3d6fe
JR
65%description devel -l pl.UTF-8
66LablGL umożliwia używanie OpenGL w OCamlu. Dostępne są wszystkie
d0c4eccb
MM
67biblioteki GL i GLU.
68
f2f3d6fe 69Pakiet ten zawiera pliki niezbędne do tworzenia programów używających
d0c4eccb
MM
70tej biblioteki.
71
72%package togl
73Summary: Tk widget for lablGL
86a9d925 74Summary(pl.UTF-8): Widget Tk dla lablGL
d0c4eccb
MM
75Group: Libraries
76Requires: %{name} = %{version}-%{release}
d0c4eccb 77%requires_eq ocaml-labltk
4d49067c 78%requires_eq ocaml-runtime
d0c4eccb
MM
79
80%description togl
81Togl Tk widget for lablGL, to be used with labltk.
82
83This package contains files needed to run bytecode executables using
84this library.
85
f2f3d6fe
JR
86%description togl -l pl.UTF-8
87Widget Togl używający Tk dla lablGL. Może być on używany wraz z
d0c4eccb
MM
88labltk.
89
f2f3d6fe
JR
90Pakiet ten zawiera binaria potrzebne do uruchamiania programów
91używających tej biblioteki.
d0c4eccb
MM
92
93%package togl-devel
94Summary: Tk widget for lablGL - development part
d1037ea0 95Summary(pl.UTF-8): Widget Tk dla lablGL - część programistyczna
d0c4eccb
MM
96Group: Development/Libraries
97Requires: %{name} = %{version}-%{release}
98%requires_eq ocaml
99%requires_eq ocaml-labltk-devel
100
101%description togl-devel
42bac6fb 102Togl Tk widget for lablGL, to be used with labltk.
d0c4eccb
MM
103
104This package contains files needed to develop OCaml programs using
105this library.
106
f2f3d6fe
JR
107%description togl-devel -l pl.UTF-8
108Widget Togl używający Tk dla lablGL. Może być on używany wraz z
d0c4eccb
MM
109labltk.
110
f2f3d6fe 111Pakiet ten zawiera pliki niezbędne do tworzenia programów używających
d0c4eccb
MM
112tej biblioteki.
113
4341aaa6
JB
114%package glut
115Summary: GLUT binding for OCaml
86a9d925 116Summary(pl.UTF-8): Wiązanie OCamla dla biblioteki GLUT
4341aaa6
JB
117Group: Libraries
118Requires: %{name} = %{version}-%{release}
119%requires_eq ocaml-runtime
120
121%description glut
122The lablglut library is an OCaml binding for GLUT version 3.7. GLUT
5444590c 123(GL Utility Toolkit) is a portable windowing library for OpenGL,
4341aaa6
JB
124written by Mark Kilgard.
125
f2f3d6fe
JR
126%description glut -l pl.UTF-8
127Biblioteka lablglut to wiązanie OCamla dla biblioteki GLUT w wersji
1283.7. GLUT (czyli GL Utility Toolkit) to przenośna biblioteka okienkowa
4341aaa6
JB
129dla OpenGL-a, napisana przez Marka Kilgarda.
130
131%package glut-devel
132Summary: GLUT binding for OCaml - development part
86a9d925 133Summary(pl.UTF-8): Wiązanie OCamla dla biblioteki GLUT - część programistyczna
4341aaa6
JB
134Group: Development/Libraries
135Requires: %{name} = %{version}-%{release}
136%requires_eq ocaml
137
138%description glut-devel
139This package contains development files for GLUT binding for OCaml.
140
f2f3d6fe
JR
141%description glut-devel -l pl.UTF-8
142Ten pakiet zawiera pliki programistyczne wiązania OCamla dla
4341aaa6
JB
143biblioteki GLUT.
144
d0c4eccb
MM
145%package toplevel
146Summary: OpenGL binding for OCaml - interactive system
86a9d925 147Summary(pl.UTF-8): Wiązania OpenGL dla OCamla - system interaktywny
d0c4eccb
MM
148Group: Development/Libraries
149Requires: %{name} = %{version}-%{release}
150%requires_eq ocaml
151
152%description toplevel
153LablGL is an OpenGL interface for Objective Caml. All of the GL and
154GLU libraries are available.
155
156This package contains OCaml toplevel interactive system linked with
157lablgl.
158
f2f3d6fe
JR
159%description toplevel -l pl.UTF-8
160LablGL umożliwia używanie OpenGL w OCamlu. Dostępne są wszystkie
d0c4eccb
MM
161biblioteki GL i GLU.
162
b833e602 163Pakiet ten zawiera system interaktywny OCamla skonsolidowany z lablgl.
d0c4eccb
MM
164
165%prep
1cb8f00c 166%setup -q -n lablgl-%{version}
d0c4eccb 167
125783ca
JR
168find LablGlut/examples -name '*.ml' -print0 | xargs --null \
169 %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+lablglut(\s|$),#!%{_bindir}/lablglut\1,' \
170
d0c4eccb 171%build
4d49067c
JB
172sed -e 's|^\(X\|TK\)INCLUDES|#&|;
173 s|^GLLIBS.*|GLLIBS = -lGL -lGLU -lXmu|;
d0c4eccb
MM
174 s|^COPTS.*|COPTS = %{rpmcflags} -c -fPIC|;' \
175 Makefile.config.ex > Makefile.config
fca531cd 176%{__make} -j1 all %{?with_ocaml_opt:opt}
d0c4eccb
MM
177
178%install
179rm -rf $RPM_BUILD_ROOT
6deb7980 180install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/ocaml/stublibs} \
4341aaa6 181 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/{LablGlut,Togl}
d0c4eccb
MM
182
183%{__make} install \
4341aaa6
JB
184 INSTALLDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/lablGL \
185 DLLDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs \
c3b93b58 186 LIBDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \
d0c4eccb
MM
187 BINDIR=$RPM_BUILD_ROOT%{_bindir}
188
6a25eca3 189%{__mv} $RPM_BUILD_ROOT%{_libdir}/ocaml/lablGL/*.mli .
d0c4eccb 190
4341aaa6
JB
191cp -r LablGlut/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/LablGlut
192cp -r Togl/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/Togl
d0c4eccb 193
6deb7980 194cp -p META $RPM_BUILD_ROOT%{_libdir}/ocaml/lablGL
d0c4eccb 195
d0c4eccb
MM
196%clean
197rm -rf $RPM_BUILD_ROOT
198
199%files
200%defattr(644,root,root,755)
4341aaa6 201%doc COPYRIGHT CHANGES README
6deb7980
JR
202%dir %{_libdir}/ocaml/lablGL
203%{_libdir}/ocaml/lablGL/META
c3b93b58 204%attr(755,root,root) %{_libdir}/ocaml/stublibs/dlllablgl.so
d0c4eccb 205
4341aaa6
JB
206%files devel
207%defattr(644,root,root,755)
208%doc *.mli
1cb8f00c 209%{_libdir}/ocaml/lablGL/build.ml
4341aaa6
JB
210%{_libdir}/ocaml/lablGL/gl*
211%{_libdir}/ocaml/lablGL/lablgl.*
212%{_libdir}/ocaml/lablGL/liblablgl.a
213%{_libdir}/ocaml/lablGL/raw.*
4341aaa6
JB
214%{_examplesdir}/%{name}-%{version}
215
216%files glut
217%defattr(644,root,root,755)
4341aaa6
JB
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
d0c4eccb
MM
225%files togl
226%defattr(644,root,root,755)
c3b93b58 227%attr(755,root,root) %{_libdir}/ocaml/stublibs/dlltogl.so
d0c4eccb
MM
228
229%files togl-devel
230%defattr(644,root,root,755)
4341aaa6
JB
231%{_libdir}/ocaml/lablGL/togl.*
232%{_libdir}/ocaml/lablGL/libtogl.a
d0c4eccb 233
d0c4eccb
MM
234%files toplevel
235%defattr(644,root,root,755)
2d46b5fe
JB
236%attr(755,root,root) %{_bindir}/lablgl
237%attr(755,root,root) %{_bindir}/lablglut
This page took 0.131437 seconds and 4 git commands to generate.