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