Summary: OpenGL binding for OCaml Summary(pl): Wiązania OpenGL dla OCamla Name: ocaml-lablgl Version: 0.97 Release: 1 License: BSD Group: Libraries URL: http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgl.html Source0: http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/lablgl-%{version}.tar.gz BuildRequires: ocaml >= 3.04-7 BuildRequires: ocaml-labltk-devel BuildRequires: OpenGL-devel BuildRequires: XFree86-devel BuildRequires: tcl-devel BuildRequires: tk-devel %requires_eq ocaml-runtime BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description LablGL is an OpenGL interface for Objective Caml. All of the GL and GLU libraries are available. This package contains files needed to run bytecode executables using this library. %description -l pl LablGL umożliwia używanie OpenGL w OCamlu. Dostępne są wszystkie biblioteki GL i GLU. Pakiet ten zawiera binaria potrzebne do uruchamiania programów używających tej biblioteki. %package devel Summary: OpenGL binding for OCaml - development part Summary(pl): Wiązania OpenGL dla OCamla - cześć programistyczna Group: Development/Libraries Requires: %{name} = %{version}-%{release} %requires_eq ocaml %description devel LablGL is an OpenGL interface for Objective Caml. All of the GL and GLU libraries are available. This package contains files needed to develop OCaml programs using this library. %description devel -l pl LablGL umożliwia używanie OpenGL w OCamlu. Dostępne są wszystkie biblioteki GL i GLU. Pakiet ten zawiera pliki niezbędne do tworzenia programów używających tej biblioteki. %package togl Summary: Tk widget for lablGL Summary(pl): Widget Tk dla lablGL Group: Libraries Requires: %{name} = %{version}-%{release} %requires_eq ocaml-runtime %requires_eq ocaml-labltk %description togl Togl Tk widget for lablGL, to be used with labltk. This package contains files needed to run bytecode executables using this library. %description togl -l pl Widget Togl używający Tk dla lablGL. Może być on używany wraz z labltk. Pakiet ten zawiera binaria potrzebne do uruchamiania programów używających tej biblioteki. %package togl-devel Summary: Tk widget for lablGL - development part Summary(pl): Widget Tk dla lablGL - cześć programistyczna Group: Development/Libraries Requires: %{name} = %{version}-%{release} %requires_eq ocaml %requires_eq ocaml-labltk-devel %description togl-devel Togl TK widget for lablGL, to be used with labltk. This package contains files needed to develop OCaml programs using this library. %description togl-devel -l pl Widget Togl używający TK dla lablGL. Może być on używany wraz z labltk. Pakiet ten zawiera pliki niezbędne do tworzenia programów używających tej biblioteki. %package toplevel Summary: OpenGL binding for OCaml - interactive system Summary(pl): Wiązania OpenGL dla OCamla - system interaktywny Group: Development/Libraries Requires: %{name} = %{version}-%{release} %requires_eq ocaml %description toplevel LablGL is an OpenGL interface for Objective Caml. All of the GL and GLU libraries are available. This package contains OCaml toplevel interactive system linked with lablgl. %description toplevel -l pl LablGL umożliwia używanie OpenGL w OCamlu. Dostępne są wszystkie biblioteki GL i GLU. Pakiet ten zawiera system interaktywny OCamla zlinkowany z lablgl. %prep %setup -q -n lablGL-%{version} %build sed -e 's|^TKINCLUDES|#&|; s|^GLLIBS.*|GLLIBS = -L%{_prefix}/X11R6/lib -lGL -lGLU -lXmu|; s|^COPTS.*|COPTS = %{rpmcflags} -c -fPIC|;' \ Makefile.config.ex > Makefile.config %{__make} all opt %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_bindir} %{__make} install \ INSTALLDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/lablgl \ LIBDIR=$RPM_BUILD_ROOT%{_libdir} \ BINDIR=$RPM_BUILD_ROOT%{_bindir} gzip -9nf $RPM_BUILD_ROOT%{_libdir}/ocaml/lablgl/*.mli mv $RPM_BUILD_ROOT%{_libdir}/ocaml/lablgl/*.mli.gz . (cd $RPM_BUILD_ROOT%{_libdir}/ocaml && ln -s lablgl/dll*.so .) install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/{lablgl,togl} cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/lablgl/META < $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/togl/META <