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