X-Git-Url: http://git.pld-linux.org/?p=packages%2Focaml-SDL.git;a=blobdiff_plain;f=ocaml-SDL.spec;h=ac1f70f2fb224f0c865f099e76929d785c63bd55;hp=e8a8c68a1a41f6cd60779c019d286674f2a7cf39;hb=6382d7bbff9fb8844f9dd469519661ff29534ca0;hpb=4607d6ce8d69e96693f82a4a4a0e864e46922cfa diff --git a/ocaml-SDL.spec b/ocaml-SDL.spec index e8a8c68..ac1f70f 100644 --- a/ocaml-SDL.spec +++ b/ocaml-SDL.spec @@ -1,18 +1,30 @@ +# +# Conditional build: +%bcond_without ocaml_opt # skip building native optimized binaries (bytecode is always built) + +%ifnarch %{ix86} %{x8664} arm aarch64 ppc sparc sparcv9 +%undefine with_ocaml_opt +%endif + +%define ocaml_ver 1:3.09.2 Summary: SDL binding for OCaml -Summary(pl): Wi±zania SDL dla OCamla +Summary(pl.UTF-8): Wiązania SDL dla OCamla Name: ocaml-SDL -Version: 0.7.1 +Version: 0.9.1 Release: 1 -License: GPL +License: LGPL v2+ Group: Libraries -Source0: http://dl.sourceforge.net/ocamlsdl/ocamlsdl-%{version}.tar.gz -# Source0-md5: 3829b20bd975e3bef5195a54e2cd04cb +Source0: http://downloads.sourceforge.net/ocamlsdl/ocamlsdl-%{version}.tar.gz +# Source0-md5: c3086423991fcdc1ba468afd52fc112b URL: http://ocamlsdl.sourceforge.net/ -BuildRequires: SDL-devel +BuildRequires: SDL-devel >= 1.2.0 +BuildRequires: SDL_image-devel BuildRequires: SDL_mixer-devel BuildRequires: SDL_ttf-devel -BuildRequires: SDL_image-devel -BuildRequires: ocaml >= 3.07 +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: ocaml >= %{ocaml_ver} +BuildRequires: ocaml-findlib BuildRequires: ocaml-lablgl-devel %requires_eq ocaml-runtime BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -24,9 +36,16 @@ between the ML programming language and the SDL C library. This package contains files needed to run bytecode executables using this library. +%description -l pl.UTF-8 +OCamlSDL to próba napisania interfejsu programowego między językiem +programowania ML a biblioteką C SDL. + +Ten pakiet zawiera pliki potrzebne do uruchamiania wykonywalnego +bytecodu używającego tej biblioteki. + %package devel Summary: SDL binding for OCaml - development part -Summary(pl): Wi±zania SDL dla OCamla - cze¶æ programistyczna +Summary(pl.UTF-8): Wiązania SDL dla OCamla - cześć programistyczna Group: Development/Libraries Requires: %{name} = %{version}-%{release} %requires_eq ocaml @@ -38,29 +57,59 @@ between the ML programming language and the SDL C library. This package contains files needed to develop OCaml programs using this library. +%description devel -l pl.UTF-8 +OCamlSDL to próba napisania interfejsu programowego między językiem +programowania ML a biblioteką C SDL. + +Ten pakiet zawiera pliki potrzebne do tworzenia programów w OCamlu +używających tej biblioteki. + %prep %setup -q -n ocamlsdl-%{version} %build +cp -f /usr/share/automake/config.* support +%{__aclocal} -I support +%{__autoconf} %configure -%{__make} +%{__make} \ + %{!?with_ocaml_opt:OCAMLOPT=} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs + +%{__make} install \ + OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \ + %{!?with_ocaml_opt:OCAMLOPT=} -%{__make} install DESTDIR=$RPM_BUILD_ROOT +# ocamlfind-specific, useless in rpm +%{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/*.owner %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/ocaml/stublibs/*.so +%doc AUTHORS NEWS README +%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllsdlstub.so +%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllsdlgfxstub.so +%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllsdlloaderstub.so +%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllsdlmixerstub.so +%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllsdlttfstub.so %files devel %defattr(644,root,root,755) -%doc README AUTHORS NEWS doc/html doc/ocaml* +%doc doc/html/* %dir %{_libdir}/ocaml/sdl -%{_libdir}/ocaml/sdl/* -%attr(755, root, root) %{_libdir}/ocaml/stublibs/* +%{_libdir}/ocaml/sdl/META +%{_libdir}/ocaml/sdl/libsdl*.a +%{_libdir}/ocaml/sdl/sdl*.cma +%{_libdir}/ocaml/sdl/sdl*.cmi +# doc? +%{_libdir}/ocaml/sdl/sdl*.mli +%if %{with ocaml_opt} +%{_libdir}/ocaml/sdl/sdl*.a +%{_libdir}/ocaml/sdl/sdl*.cmx +%{_libdir}/ocaml/sdl/sdl*.cmxa +%endif