%define bound_lib gsl %define major 0 %define libgsl_name %mklibname %{bound_lib} %major Name: ocaml-gsl Version: 1.11.0 Release: %mkrel 4 Summary: GSL-Bindings for OCaml (GNU Scientific Library) License: GPL-3+ Group: Development/OCaml URL: https://bitbucket.org/mmottl/gsl-ocaml Source0: https://bitbucket.org/mmottl/gsl-ocaml/downloads/gsl-ocaml-%{version}.tar.gz BuildRequires: ocaml-findlib BuildRequires: camlp4 BuildRequires: libgsl-devel Requires: %{libgsl_name} %description This is an interface to GSL (the GNU scientific library) for the OCaml language. GSL homepage: http://www.gnu.org/software/gsl %package devel Summary: Development files for %{name} Group: Development/OCaml Requires: %{name} = %{version}-%{release} Requires: libgsl-devel %description devel The %{name}-devel package contains libraries and signature files for developing applications that use %{name}. %prep %setup -q -n gsl-ocaml-%{version} %build ./configure \ --prefix %{_prefix} \ --libdir %{_libdir} \ --libexecdir %{_libexecdir} \ --exec-prefix %{_exec_prefix} \ --bindir %{_bindir} \ --mandir %{_mandir} \ --datadir %{_datadir} \ --localstatedir %{_localstatedir} \ --docdir %{_docdir}/%{name}-devel \ --destdir %{buildroot} make make doc %install rm -rf %{buildroot} export DESTDIR=%{buildroot} export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml export DLLDIR=$OCAMLFIND_DESTDIR/stublibs mkdir -p $OCAMLFIND_DESTDIR/stublibs mkdir -p $OCAMLFIND_DESTDIR/gsl make install %files %doc README.md COPYING.txt AUTHORS.txt CHANGES.txt NOTES.md TODO.md %dir %{_libdir}/ocaml/gsl %{_libdir}/ocaml/gsl/META %{_libdir}/ocaml/gsl/*.cmi %{_libdir}/ocaml/gsl/*.cma %{_libdir}/ocaml/gsl/*.cmxs %{_libdir}/ocaml/stublibs/*.so* %files devel %doc examples/ %{_libdir}/ocaml/gsl/*.a %{_libdir}/ocaml/gsl/*.cmxa %{_libdir}/ocaml/gsl/*.mli %{_libdir}/ocaml/gsl/*.ml %changelog * Sun Jan 13 2013 umeabot <umeabot> 1.11.0-4.mga3 + Revision: 361408 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Fri Nov 23 2012 blue_prawn <blue_prawn> 1.11.0-3.mga3 + Revision: 321390 - just rebuild * Mon Oct 01 2012 blue_prawn <blue_prawn> 1.11.0-2.mga3 + Revision: 301107 - rebuild for ocaml-4.00.0 * Sat Sep 29 2012 blue_prawn <blue_prawn> 1.11.0-1.mga3 + Revision: 300145 - updated to last version 1.11.0 * Sat Sep 29 2012 blue_prawn <blue_prawn> 1.10.2-3.mga3 + Revision: 300140 - new rpm group for ocaml * Wed Aug 29 2012 blue_prawn <blue_prawn> 1.10.2-2.mga3 + Revision: 285580 - fixed dependency on libgsl * Wed Aug 22 2012 blue_prawn <blue_prawn> 1.10.2-1.mga3 + Revision: 283154 - build requires camlp4 - imported package ocaml-gsl